A++ » INCLUDE » TTF

class TTF

Function Members (Methods)

public:
virtual~TTF()
static Short_tCharToUnicode(UInt_t code)
static TClass*Class()
static voidCleanup()
static Int_tGetAscent()
static const FT_BBox&GetBox()
static TTF::TTGlyph*GetGlyphs()
static Bool_tGetHinting()
static Bool_tGetKerning()
static Int_tGetNumGlyphs()
static FT_Matrix*GetRotMatrix()
static Bool_tGetSmoothing()
static voidGetTextAdvance(UInt_t& a, char* text)
static voidGetTextExtent(UInt_t& w, UInt_t& h, char* text)
static voidGetTextExtent(UInt_t& w, UInt_t& h, wchar_t* text)
static Int_tGetWidth()
static voidInit()
virtual TClass*IsA() const
static Bool_tIsInitialized()
static voidLayoutGlyphs()
TTF&operator=(const TTF&)
static voidPrepareString(const char* string)
static voidPrepareString(const wchar_t* string)
static voidSetHinting(Bool_t state)
static voidSetKerning(Bool_t state)
static voidSetRotationMatrix(Float_t angle)
static voidSetSmoothing(Bool_t state)
static voidSetTextFont(Font_t fontnumber)
static Int_tSetTextFont(const char* fontname, Int_t italic = 0)
static voidSetTextSize(Float_t textsize)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TTF()
TTF(const TTF&)
static voidVersion(Int_t& major, Int_t& minor, Int_t& patch)

Data Members

protected:
static Int_tfgAscentstring ascent, used to compute Y alignment
static FT_BBoxfgCBoxstring control box
static FT_CharMapfgCharMap[32]font character map
static Int_tfgCurFontIdxcurrent font index
static FT_FacefgFace[32]font face
static Int_tfgFontCountnumber of fonts loaded
static char*fgFontName[32]font name
static TTF::TTGlyphfgGlyphs[1024]glyphs
static Bool_tfgHintinguse hinting (true by default)
static Bool_tfgInittrue if the Init has been called
static Bool_tfgKerninguse kerning (true by default)
static FT_LibraryfgLibraryFreeType font library
static Int_tfgNumGlyphsnumber of glyphs in the string
static FT_Matrix*fgRotMatrixrotation matrix
static Bool_tfgSmoothinguse anti-aliasing (true when >8 planes, false otherwise)
static Int_tfgSymbItaFontIdxSymbol italic font index
static Int_tfgTBlankWtrailing blanks width
static Int_tfgWidthstring width, used to compute X alignment
static TTF::(anonymous)kMaxGlyphs
static TTF::(anonymous)kTTMaxFonts

Class Charts

Inheritance Chart:
TTF

Function documentation

Short_t CharToUnicode(UInt_t code)
void LayoutGlyphs()
void PrepareString(const char* string)
void PrepareString(const wchar_t* string)
void SetRotationMatrix(Float_t angle)
TTF()
{ }
virtual ~TTF()
void Init()
void Cleanup()
Int_t GetAscent()
const FT_BBox & GetBox()
TTGlyph * GetGlyphs()
Bool_t GetHinting()
Bool_t GetKerning()
Int_t GetNumGlyphs()
FT_Matrix * GetRotMatrix()
Bool_t GetSmoothing()
Int_t GetWidth()
void SetHinting(Bool_t state)
void SetKerning(Bool_t state)
void SetSmoothing(Bool_t state)
void GetTextExtent(UInt_t& w, UInt_t& h, char* text)
void GetTextExtent(UInt_t& w, UInt_t& h, wchar_t* text)
void GetTextAdvance(UInt_t& a, char* text)
void SetTextFont(Font_t fontnumber)
Int_t SetTextFont(const char* fontname, Int_t italic = 0)
void SetTextSize(Float_t textsize)
Bool_t IsInitialized()
void Version(Int_t& major, Int_t& minor, Int_t& patch)