25   struct FT_LibraryRec_;
 
   27   struct FT_CharMapRec_;
 
   31   typedef struct FT_LibraryRec_* FT_Library;
 
   32   typedef struct FT_FaceRec_* FT_Face;
 
   33   typedef struct FT_CharMapRec_* FT_CharMap;
 
   34   typedef struct FT_GlyphRec_* FT_Glyph;
 
   35   typedef struct FT_Matrix_ FT_Matrix;
 
   36   typedef struct FT_Bitmap_ FT_Bitmap; 
 
   37   typedef signed long FT_Pos;
 
   39   struct FT_Vector_ { FT_Pos 
x, 
y; };
 
   40   struct FT_BBox_ { FT_Pos xMin, yMin, xMax, yMax; };
 
   42   typedef struct FT_Vector_ FT_Vector;
 
   43   typedef struct FT_BBox_ FT_BBox;
 
   50class TMathTextRenderer;
 
  108   static const FT_BBox &
GetBox();
 
#define ClassDef(name, id)
 
This class is the basic interface to the Win32 graphics system.
 
Interface to low level X11 (Xlib).
 
TTF helper class containing glyphs description.
 
FT_Vector fPos
position of glyph origin
 
FT_Glyph fImage
glyph image
 
UInt_t fIndex
glyph index in face
 
Interface to the freetype 2 library.
 
friend class TMathTextRenderer
 
static void SetKerning(Bool_t state)
Set kerning flag.
 
static Bool_t fgHinting
use hinting (true by default)
 
static Bool_t IsInitialized()
 
static void GetTextAdvance(UInt_t &a, char *text)
Get advance (a) when text is horizontal.
 
static void PrepareString(const char *string)
Put the characters in "string" in the "glyphs" array.
 
static TTF::TTGlyph fgGlyphs[kMaxGlyphs]
glyphs
 
static Bool_t GetKerning()
 
static Bool_t fgSmoothing
use anti-aliasing (true when >8 planes, false otherwise)
 
static void Version(Int_t &major, Int_t &minor, Int_t &patch)
 
static void SetHinting(Bool_t state)
Set hinting flag.
 
static void Init()
Initialise the TrueType fonts interface.
 
static FT_Face fgFace[kTTMaxFonts]
font face
 
static FT_CharMap fgCharMap[kTTMaxFonts]
font character map
 
static void LayoutGlyphs()
Compute the glyphs positions, fgAscent and fgWidth (needed for alignment).
 
static void SetSmoothing(Bool_t state)
Set smoothing (anti-aliasing) flag.
 
static void SetRotationMatrix(Float_t angle)
Set the rotation matrix used to rotate the font outlines.
 
static void SetTextFont(Font_t fontnumber)
Set specified font.
 
static Short_t CharToUnicode(UInt_t code)
Map char to unicode. Returns 0 in case no mapping exists.
 
static void GetTextExtent(UInt_t &w, UInt_t &h, char *text)
Get width (w) and height (h) when text is horizontal.
 
static TTGlyph * GetGlyphs()
 
static Int_t GetNumGlyphs()
 
static Int_t fgAscent
string ascent, used to compute Y alignment
 
static Int_t fgWidth
string width, used to compute X alignment
 
static Bool_t fgInit
true if the Init has been called
 
static Int_t fgCurFontIdx
current font index
 
static Int_t fgSymbItaFontIdx
Symbol italic font index.
 
static void Cleanup()
Cleanup. Is called by the gCleanupTTF destructor.
 
virtual ~TTF()
Cleanup TTF environment.
 
static const FT_BBox & GetBox()
 
static char * fgFontName[kTTMaxFonts]
font name
 
static FT_Library fgLibrary
FreeType font library.
 
static Int_t fgNumGlyphs
number of glyphs in the string
 
static FT_Matrix * fgRotMatrix
rotation matrix
 
static Bool_t fgKerning
use kerning (true by default)
 
static Int_t fgTBlankW
trailing blanks width
 
static Bool_t GetHinting()
 
static Bool_t GetSmoothing()
 
static Int_t fgFontCount
number of fonts loaded
 
static void SetTextSize(Float_t textsize)
Set current text size.
 
static FT_Matrix * GetRotMatrix()
 
static FT_BBox fgCBox
string control box