A FreeType GL font manager.
Each GL rendering context has an instance of FTGLManager. This enables FTGL fonts to be shared same way as textures and display lists.
Definition at line 119 of file TGLFontManager.h.
Public Types | |
typedef std::vector< Int_t > | FontSizeVec_t |
Public Member Functions | |
TGLFontManager () | |
virtual | ~TGLFontManager () |
Destructor. | |
ClassDef (TGLFontManager, 0) | |
void | ClearFontTrash () |
Delete FTFFont objects registered for destruction. | |
void | RegisterFont (Int_t size, const char *name, TGLFont::EMode mode, TGLFont &out) |
Get mapping from ttf id to font names. Table taken from TTF.cxx. | |
void | RegisterFont (Int_t size, Int_t file, TGLFont::EMode mode, TGLFont &out) |
Provide font with given size, file and FTGL class. | |
void | ReleaseFont (TGLFont &font) |
Release font with given attributes. | |
Static Public Member Functions | |
static Int_t | GetExtendedFontStartIndex () |
static TObjArray * | GetFontFileArray () |
Get id to file name map. | |
static const char * | GetFontNameFromId (Int_t) |
Get font name from TAttAxis font id. | |
static Int_t | GetFontSize (Int_t ds) |
Get availabe font size. | |
static Int_t | GetFontSize (Int_t ds, Int_t min, Int_t max) |
Get availabe font size. | |
static FontSizeVec_t * | GetFontSizeArray () |
Get valid font size vector. | |
Protected Types | |
typedef std::list< constTGLFont * >::const_iterator | FontList_ci |
typedef std::list< constTGLFont * >::iterator | FontList_i |
typedef std::list< const TGLFont * > | FontList_t |
typedef std::map< TGLFont, Int_t >::iterator | FontMap_i |
typedef std::map< TGLFont, Int_t > | FontMap_t |
Static Protected Member Functions | |
static void | InitStatics () |
Create a list of available font files and allowed font sizes. | |
Protected Attributes | |
FontMap_t | fFontMap |
FontList_t | fFontTrash |
Static Protected Attributes | |
static Int_t | fgExtendedFontStart |
static TObjArray | fgFontFileArray |
static FontSizeVec_t | fgFontSizeArray |
static Bool_t | fgStaticInitDone = kFALSE |
Private Member Functions | |
TGLFontManager (const TGLFontManager &) | |
TGLFontManager & | operator= (const TGLFontManager &) |
#include <TGLFontManager.h>
|
protected |
Definition at line 134 of file TGLFontManager.h.
|
protected |
Definition at line 133 of file TGLFontManager.h.
|
protected |
Definition at line 132 of file TGLFontManager.h.
|
protected |
Definition at line 130 of file TGLFontManager.h.
|
protected |
Definition at line 129 of file TGLFontManager.h.
typedef std::vector<Int_t> TGLFontManager::FontSizeVec_t |
Definition at line 122 of file TGLFontManager.h.
|
private |
|
inline |
Definition at line 148 of file TGLFontManager.h.
|
virtual |
Destructor.
Definition at line 429 of file TGLFontManager.cxx.
TGLFontManager::ClassDef | ( | TGLFontManager | , |
0 | |||
) |
void TGLFontManager::ClearFontTrash | ( | ) |
Delete FTFFont objects registered for destruction.
Definition at line 699 of file TGLFontManager.cxx.
|
static |
Definition at line 569 of file TGLFontManager.cxx.
|
static |
Get id to file name map.
Definition at line 552 of file TGLFontManager.cxx.
|
static |
Get font name from TAttAxis font id.
Definition at line 605 of file TGLFontManager.cxx.
Get availabe font size.
Definition at line 581 of file TGLFontManager.cxx.
Get availabe font size.
Definition at line 595 of file TGLFontManager.cxx.
|
static |
Get valid font size vector.
Definition at line 561 of file TGLFontManager.cxx.
|
staticprotected |
Create a list of available font files and allowed font sizes.
Definition at line 623 of file TGLFontManager.cxx.
|
private |
void TGLFontManager::RegisterFont | ( | Int_t | size, |
const char * | name, | ||
TGLFont::EMode | mode, | ||
TGLFont & | out | ||
) |
Get mapping from ttf id to font names. Table taken from TTF.cxx.
Definition at line 510 of file TGLFontManager.cxx.
void TGLFontManager::RegisterFont | ( | Int_t | size, |
Int_t | file, | ||
TGLFont::EMode | mode, | ||
TGLFont & | out | ||
) |
Provide font with given size, file and FTGL class.
Definition at line 442 of file TGLFontManager.cxx.
void TGLFontManager::ReleaseFont | ( | TGLFont & | font | ) |
Release font with given attributes.
Returns false if font has not been found in the managers font set.
Definition at line 533 of file TGLFontManager.cxx.
|
protected |
Definition at line 136 of file TGLFontManager.h.
|
protected |
Definition at line 137 of file TGLFontManager.h.
|
staticprotected |
Definition at line 141 of file TGLFontManager.h.
|
staticprotected |
Definition at line 139 of file TGLFontManager.h.
|
staticprotected |
Definition at line 143 of file TGLFontManager.h.
Definition at line 144 of file TGLFontManager.h.