26 struct FT_LibraryRec_;
28 struct FT_CharMapRec_;
32 struct FT_BitmapGlyphRec_;
33 typedef struct FT_LibraryRec_* FT_Library;
34 typedef struct FT_FaceRec_* FT_Face;
35 typedef struct FT_CharMapRec_* FT_CharMap;
36 typedef struct FT_GlyphRec_* FT_Glyph;
37 typedef struct FT_Matrix_ FT_Matrix;
38 typedef struct FT_Bitmap_ FT_Bitmap;
39 typedef struct FT_BitmapGlyphRec_* FT_BitmapGlyph;
40 typedef signed long FT_Pos;
42 struct FT_Vector_ { FT_Pos
x,
y; };
43 struct FT_BBox_ { FT_Pos xMin, yMin, xMax, yMax; };
45 typedef struct FT_Vector_ FT_Vector;
46 typedef struct FT_BBox_ FT_BBox;
93 static const FT_BBox &
GetBox();
float Float_t
Float 4 bytes (float)
short Font_t
Font number (short)
short Short_t
Signed Short integer 2 bytes (short)
#define ClassDef(name, id)
Option_t Option_t SetTextSize
Option_t Option_t fontnumber
Option_t Option_t SetTextFont
Option_t Option_t textsize
Option_t Option_t TPoint TPoint angle
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char fontname
Option_t Option_t TPoint TPoint const char text
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.
static void SetKerning(Bool_t state)
Set kerning flag.
static Bool_t IsInitialized()
static void PrepareString(const char *string)
Put the characters in "string" in the "glyphs" array.
static void GetTextExtent(UInt_t &w, UInt_t &h, const char *text)
Get width (w) and height (h) when text is horizontal.
static Bool_t GetKerning()
static void Version(Int_t &major, Int_t &minor, Int_t &patch)
static Int_t GetTrailingBlanksWidth()
static void SetHinting(Bool_t state)
Set hinting flag.
static void Init()
Init TTF environment.
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 CleanupGlyphs()
Remove temporary data created by LayoutGlyphs.
static Short_t CharToUnicode(UInt_t code)
Map char to unicode. Returns 0 in case no mapping exists.
static TTGlyph * GetGlyphs()
static Int_t GetNumGlyphs()
static void ComputeTrailingBlanksWidth(Int_t n)
Compute the trailing blanks width.
virtual ~TTF()
Cleanup TTF environment.
static const FT_BBox & GetBox()
static void GetTextAdvance(UInt_t &a, const char *text)
Get advance (a) when text is horizontal.
static Bool_t GetHinting()
static Bool_t GetSmoothing()
static FT_Matrix * GetRotMatrix()
Dynamic handle to work with freetype 2 library.