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 () | 
| Cleanup. Is called by the gCleanupTTF destructor.   | |
| 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, char *text) | 
| Get advance (a) when text is horizontal.   | |
| static void | GetTextExtent (UInt_t &w, UInt_t &h, char *text) | 
| Get width (w) and height (h) when text is horizontal.   | |
| static void | GetTextExtent (UInt_t &w, UInt_t &h, wchar_t *text) | 
| Get width (w) and height (h) when text is horizontal.   | |
| static Int_t | GetWidth () | 
| static void | Init () | 
| Initialise the TrueType fonts interface.   | |
| 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) | 
| Set current text size.   | |
| static void | Version (Int_t &major, Int_t &minor, Int_t &patch) | 
Protected Types | |
| enum | { kTTMaxFonts = 32 , kMaxGlyphs = 1024 } | 
Static Protected Attributes | |
| static Int_t | fgAscent = 0 | 
| string ascent, used to compute Y alignment   | |
| static FT_BBox | fgCBox | 
| string control box   | |
| static FT_CharMap | fgCharMap [kTTMaxFonts] | 
| font character map   | |
| static Int_t | fgCurFontIdx = -1 | 
| current font index   | |
| static FT_Face | fgFace [kTTMaxFonts] | 
| font face   | |
| static Int_t | fgFontCount = 0 | 
| number of fonts loaded   | |
| static char * | fgFontName [kTTMaxFonts] | 
| font name   | |
| static TTF::TTGlyph | fgGlyphs [kMaxGlyphs] | 
| glyphs   | |
| static Bool_t | fgHinting = kFALSE | 
| use hinting (true by default)   | |
| static Bool_t | fgInit = kFALSE | 
| true if the Init has been called   | |
| static Bool_t | fgKerning = kTRUE | 
| use kerning (true by default)   | |
| static FT_Library | fgLibrary | 
| FreeType font library.   | |
| static Int_t | fgNumGlyphs = 0 | 
| number of glyphs in the string   | |
| static FT_Matrix * | fgRotMatrix = nullptr | 
| rotation matrix   | |
| static Bool_t | fgSmoothing = kTRUE | 
| use anti-aliasing (true when >8 planes, false otherwise)   | |
| static Int_t | fgSymbItaFontIdx = -1 | 
| Symbol italic font index.   | |
| static Int_t | fgTBlankW = 0 | 
| trailing blanks width   | |
| static Int_t | fgWidth = 0 | 
| string width, used to compute X alignment   | |
Friends | |
| class | TGWin32 | 
| class | TGX11TTF | 
| class | TMathTextRenderer | 
#include <TTF.h>
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
Set specified font.
List of the currently supported fonts (screen and PostScript)
| Font number | TTF Names | PostScript/PDF Names | 
|---|---|---|
| 1 | Free Serif Italic | Times-Italic | 
| 2 | Free Serif Bold | Times-Bold | 
| 3 | Free Serif Bold Italic | Times-BoldItalic | 
| 4 | Tex Gyre Regular | Helvetica | 
| 5 | Tex Gyre Italic | Helvetica-Oblique | 
| 6 | Tex Gyre Bold | Helvetica-Bold | 
| 7 | Tex Gyre Bold Italic | Helvetica-BoldOblique | 
| 8 | Free Mono | Courier | 
| 9 | Free Mono Oblique | Courier-Oblique | 
| 10 | Free Mono Bold | Courier-Bold | 
| 11 | Free Mono Bold Oblique | Courier-BoldOblique | 
| 12 | Symbol | Symbol | 
| 13 | Free Serif | Times-Roman | 
| 14 | Wingdings | ZapfDingbats | 
      
  | 
  static | 
      
  | 
  inline | 
      
  | 
  friend | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected |