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;
118 static const FT_BBox &
GetBox();
static void Init()
Initialise the TrueType fonts interface.
static FT_Matrix * fgRotMatrix
static Bool_t IsInitialized()
static void Cleanup()
Cleanup. Is called by the gCleanupTTF destructor.
Interface to the freetype 2 library.
This class is the basic interface to the Win32 graphics system.
static void Version(Int_t &major, Int_t &minor, Int_t &patch)
Interface to low level X11 (Xlib).
static FT_CharMap fgCharMap[kTTMaxFonts]
static TTF::TTGlyph fgGlyphs[kMaxGlyphs]
static void LayoutGlyphs()
Compute the glyphs positions, fgAscent and fgWidth (needed for alignment).
#define ClassDef(name, id)
static Bool_t GetHinting()
static void SetTextFont(Font_t fontnumber)
Set specified font.
static void GetTextExtent(UInt_t &w, UInt_t &h, char *text)
Get width (w) and height (h) when text is horizontal.
static void PrepareString(const char *string)
Put the characters in "string" in the "glyphs" array.
static void GetTextAdvance(UInt_t &a, char *text)
Get advance (a) when text is horizontal.
static TTGlyph * GetGlyphs()
static void SetSmoothing(Bool_t state)
Set smoothing (anti-aliasing) flag.
static Int_t fgCurFontIdx
static FT_Library fgLibrary
static Bool_t GetKerning()
static FT_Matrix * GetRotMatrix()
TTF helper class containing glyphs description.
static void SetHinting(Bool_t state)
Set hinting flag.
static void SetKerning(Bool_t state)
Set kerning flag.
static char * fgFontName[kTTMaxFonts]
friend class TMathTextRenderer
static Int_t fgSymbItaFontIdx
static Bool_t fgSmoothing
static void SetRotationMatrix(Float_t angle)
Set the rotation matrix used to rotate the font outlines.
static FT_Face fgFace[kTTMaxFonts]
static void SetTextSize(Float_t textsize)
Set current text size.
static Short_t CharToUnicode(UInt_t code)
Map char to unicode. Returns 0 in case no mapping exists.
static Int_t GetNumGlyphs()
static const FT_BBox & GetBox()
static Bool_t GetSmoothing()