Interface to the freetype 2 library.
Implements old static API. Unitl ROOT7 just redirects to static TTFhandle instance, then TTFhandle will be renamed into TTF class
Classes | |
| class | TTGlyph |
| TTF helper class containing glyphs description. More... | |
Public Member Functions | |
| TTF () | |
| virtual | ~TTF () |
| Cleanup TTF environment. | |
| virtual TClass * | IsA () const |
| virtual void | Streamer (TBuffer &) |
| void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
| static Short_t | CharToUnicode (UInt_t code) |
| Map char to unicode. Returns 0 in case no mapping exists. | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static void | Cleanup () |
| static void | CleanupGlyphs () |
| Remove temporary data created by LayoutGlyphs. | |
| static void | ComputeTrailingBlanksWidth (Int_t n) |
| Compute the trailing blanks width. | |
| static const char * | DeclFileName () |
| static Int_t | GetAscent () |
| static const FT_BBox & | GetBox () |
| static TTGlyph * | GetGlyphs () |
| static Bool_t | GetHinting () |
| static Bool_t | GetKerning () |
| static Int_t | GetNumGlyphs () |
| static FT_Matrix * | GetRotMatrix () |
| static Bool_t | GetSmoothing () |
| static void | GetTextAdvance (UInt_t &a, const char *text) |
| Get advance (a) when text is horizontal. | |
| static void | GetTextExtent (UInt_t &w, UInt_t &h, const char *text) |
| Get width (w) and height (h) when text is horizontal. | |
| static void | GetTextExtent (UInt_t &w, UInt_t &h, const wchar_t *text) |
| Get width (w) and height (h) when text is horizontal. | |
| static Int_t | GetTrailingBlanksWidth () |
| static Int_t | GetWidth () |
| static void | Init () |
| Init TTF environment. | |
| static Bool_t | IsInitialized () |
| static void | LayoutGlyphs () |
| Compute the glyphs positions, fgAscent and fgWidth (needed for alignment). | |
| static void | PrepareString (const char *string) |
| Put the characters in "string" in the "glyphs" array. | |
| static void | PrepareString (const wchar_t *string) |
| Put the characters in "string" in the "glyphs" array. | |
| static void | SetHinting (Bool_t state) |
| Set hinting flag. | |
| static void | SetKerning (Bool_t state) |
| Set kerning flag. | |
| static void | SetRotationMatrix (Float_t angle) |
| Set the rotation matrix used to rotate the font outlines. | |
| static void | SetSmoothing (Bool_t state) |
| Set smoothing (anti-aliasing) flag. | |
| static Int_t | SetTextFont (const char *fontname, Int_t italic=0) |
| Set text font to specified name. | |
| static void | SetTextFont (Font_t fontnumber) |
| Set specified font. | |
| static void | SetTextSize (Float_t textsize) |
| static void | Version (Int_t &major, Int_t &minor, Int_t &patch) |
Friends | |
| class | TTFhandle |
#include <TTF.h>
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inline |