textfuns.cpp File Reference

(r1785/r1495)

#include "camtypes.h"
#include "textfuns.h"
#include "camelot.h"
#include "fontman.h"
#include "atmfonts.h"
#include "unicdman.h"

Go to the source code of this file.

Defines

#define new   CAM_DEBUG_NEW
#define FIXEDTOINT32(FIXED)   (*((INT32 *)&FIXED))
 To generate the bezier paths which represent a character from a TrueType and, eventually, an ATM, font character.
#define SCALEX(jobby)   (MulDiv(MulDiv(jobby,72000,DivConstX),pLogFont->lfHeight,-4096))
#define SCALEY(jobby)   (MulDiv(MulDiv(jobby,72000,DivConstY),pLogFont->lfHeight,-4096))

Functions

 DECLARE_SOURCE ("$Revision: 1495 $")
 CC_IMPLEMENT_MEMDUMP (CharMetrics, CC_CLASS_MEMDUMP)


Define Documentation

#define FIXEDTOINT32 FIXED   )     (*((INT32 *)&FIXED))
 

To generate the bezier paths which represent a character from a TrueType and, eventually, an ATM, font character.

Author:
Mark_Goodall (Xara Group Ltd) <camelotdev@xara.com>
Date:
25/1/95
Parameters:
pDC=>device context [INPUTS] CharNumber=character number of char this is a wide Unicode value pLogFontStruct=>LOGFONT struct defining char, the size field is in logcords (=device cords in MM_TextMode) NoPolyElements=Number of elements in PolyDraw arrays, If NoPolyElements=0 then NoPolyElements is set to no. of elements required If NoPolyElements<>0 then generate paths in PolyDraw arrays pPolyCordBuffer=>Cord array in PolyDraw system pPolyVerbBuffer=>Verb array in PolyDraw system Global: Assumes MM_TextMode
NoPolyElements=No. required if entry value=0 [OUTPUTS] PolyDrawArrays (Verb,Cord) filled if NoPolyElements<>0, CordArrays hold cords in 1/72000's
Returns:
If FALSE returned then error has occured

Definition at line 275 of file textfuns.cpp.

#define new   CAM_DEBUG_NEW
 

Definition at line 118 of file textfuns.cpp.

#define SCALEX jobby   )     (MulDiv(MulDiv(jobby,72000,DivConstX),pLogFont->lfHeight,-4096))
 

Definition at line 276 of file textfuns.cpp.

#define SCALEY jobby   )     (MulDiv(MulDiv(jobby,72000,DivConstY),pLogFont->lfHeight,-4096))
 

Definition at line 277 of file textfuns.cpp.


Function Documentation

CC_IMPLEMENT_MEMDUMP CharMetrics  ,
CC_CLASS_MEMDUMP 
 

DECLARE_SOURCE "$Revision: 1495 $"   ) 
 


Generated on Sat Nov 10 03:49:36 2007 for Camelot by  doxygen 1.4.4