35 struct FT_LibraryRec_;
37 struct FT_CharMapRec_;
41 typedef struct FT_LibraryRec_* FT_Library;
42 typedef struct FT_FaceRec_* FT_Face;
43 typedef struct FT_CharMapRec_* FT_CharMap;
44 typedef struct FT_GlyphRec_* FT_Glyph;
45 typedef struct FT_Matrix_ FT_Matrix;
46 typedef struct FT_Bitmap_ FT_Bitmap;
47 typedef signed long FT_Pos;
49 struct FT_Vector_ { FT_Pos
x,
y; };
50 struct FT_BBox_ { FT_Pos xMin, yMin, xMax, yMax; };
52 typedef struct FT_Vector_ FT_Vector;
53 typedef struct FT_BBox_ FT_BBox;
60 class TMathTextRenderer;
67 friend class TMathTextRenderer;
83 enum { kTTMaxFonts = 32, kMaxGlyphs = 1024 };
87 static FT_CharMap fgCharMap[kTTMaxFonts];
90 static Int_t fgFontID[kTTMaxFonts];
91 static FT_Face fgFace[kTTMaxFonts];
105 static void LayoutGlyphs();
106 static void PrepareString(
const char *
string);
107 static void PrepareString(
const wchar_t *
string);
108 static void SetRotationMatrix(
Float_t angle);
115 static void Cleanup();
116 static Int_t GetAscent();
117 static const FT_BBox &GetBox();
119 static Bool_t GetHinting();
120 static Bool_t GetKerning();
121 static Int_t GetNumGlyphs();
122 static FT_Matrix *GetRotMatrix();
123 static Bool_t GetSmoothing();
124 static Int_t GetWidth();
125 static void SetHinting(
Bool_t state);
126 static void SetKerning(
Bool_t state);
127 static void SetSmoothing(
Bool_t state);
129 static void GetTextExtent(
UInt_t &w,
UInt_t &h,
wchar_t *text);
130 static void GetTextAdvance(
UInt_t &
a,
char *text);
134 static Bool_t IsInitialized();
static FT_Matrix * fgRotMatrix
Interface to the freetype 2 library.
This class is the basic interface to the Win32 graphics system.
Interface to low level X11 (Xlib).
#define ClassDef(name, id)
void Init(TClassEdit::TInterpreterLookupHelper *helper)
static Int_t fgCurFontIdx
static FT_Library fgLibrary
TTF helper class containing glyphs description.
static Bool_t fgSmoothing