![]() |
ROOT 6.14/05 Reference Guide |
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. More... | |
void | ClearFontTrash () |
Delete FTFFont objects registered for destruction. More... | |
void | RegisterFont (Int_t size, Int_t file, TGLFont::EMode mode, TGLFont &out) |
Provide font with given size, file and FTGL class. More... | |
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. More... | |
void | ReleaseFont (TGLFont &font) |
Release font with given attributes. More... | |
Static Public Member Functions | |
static Int_t | GetExtendedFontStartIndex () |
static TObjArray * | GetFontFileArray () |
Get id to file name map. More... | |
static const char * | GetFontNameFromId (Int_t) |
Get font name from TAttAxis font id. More... | |
static Int_t | GetFontSize (Int_t ds) |
Get availabe font size. More... | |
static Int_t | GetFontSize (Int_t ds, Int_t min, Int_t max) |
Get availabe font size. More... | |
static FontSizeVec_t * | GetFontSizeArray () |
Get valid font size vector. More... | |
Protected Types | |
typedef std::list< const TGLFont * >::const_iterator | FontList_ci |
typedef std::list< const TGLFont * >::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. More... | |
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 430 of file TGLFontManager.cxx.
void TGLFontManager::ClearFontTrash | ( | ) |
Delete FTFFont objects registered for destruction.
Definition at line 700 of file TGLFontManager.cxx.
|
static |
Definition at line 570 of file TGLFontManager.cxx.
|
static |
Get id to file name map.
Definition at line 553 of file TGLFontManager.cxx.
|
static |
Get font name from TAttAxis font id.
Definition at line 606 of file TGLFontManager.cxx.
Get availabe font size.
Definition at line 582 of file TGLFontManager.cxx.
Get availabe font size.
Definition at line 596 of file TGLFontManager.cxx.
|
static |
Get valid font size vector.
Definition at line 562 of file TGLFontManager.cxx.
|
staticprotected |
Create a list of available font files and allowed font sizes.
Definition at line 624 of file TGLFontManager.cxx.
|
private |
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 443 of file TGLFontManager.cxx.
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 511 of file TGLFontManager.cxx.
Release font with given attributes.
Returns false if font has not been found in the managers font set.
Definition at line 534 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.