12 #ifndef ROOT_TGLFontManager 13 #define ROOT_TGLFontManager 82 const char* txt=
"Xj")
const;
84 void BBox(
const char* txt,
87 void BBox(
const wchar_t* txt,
102 if (fSize == o.
fSize)
106 return fMode < o.
fMode;
108 return fFile < o.
fFile;
110 return fSize < o.
fSize;
145 static void InitStatics();
153 void ReleaseFont(
TGLFont& font);
156 static FontSizeVec_t* GetFontSizeArray();
158 static Int_t GetExtendedFontStartIndex();
161 static const char* GetFontNameFromId(
Int_t);
163 void ClearFontTrash();
Int_t IncTrashCount() const
std::map< TGLFont, Int_t > FontMap_t
Float_t GetAscent() const
Get font's ascent.
virtual void PreRender(Bool_t autoLight=kTRUE, Bool_t lightOn=kFALSE) const
Set-up GL state before FTFont rendering.
Bool_t operator<(const TGLFont &o) const
void Render(const char *txt, Double_t x, Double_t y, Double_t angle, Double_t mgn) const
void BBox(const char *txt, Float_t &llx, Float_t &lly, Float_t &llz, Float_t &urx, Float_t &ury, Float_t &urz) const
Get bounding box.
void CopyAttributes(const TGLFont &o)
Assignment operator.
static TObjArray fgFontFileArray
#define ClassDef(name, id)
std::vector< Int_t > FontSizeVec_t
std::list< const TGLFont * >::iterator FontList_i
std::list< const TGLFont * > FontList_t
Float_t GetDescent() const
Get font's descent. The returned value is positive.
void SetTrashCount(Int_t c) const
const TGLFontManager * GetManager() const
static Int_t fgExtendedFontStart
Float_t GetLineHeight() const
Get font's line-height.
void RenderHelper(const Char *txt, Double_t x, Double_t y, Double_t angle, Double_t) const
mgn is simply ignored, because ROOT's TVirtualX TGX11 are complete mess with painting attributes...
std::map< TGLFont, Int_t >::iterator FontMap_i
void SetManager(TGLFontManager *mng)
Int_t GetTrashCount() const
const FTFont * GetFont() const
TGLFontManager * fManager
static Bool_t fgStaticInitDone
you should not use this method at all Int_t Int_t z
TGLFont & operator=(const TGLFont &o)
virtual void PostRender() const
Reset GL state after FTFont rendering.
A FreeType GL font manager.
std::list< const TGLFont * >::const_iterator FontList_ci
static FontSizeVec_t fgFontSizeArray
A wrapper class for FTFont.
virtual ~TGLFont()
Destructor.
void MeasureBaseLineParams(Float_t &ascent, Float_t &descent, Float_t &line_height, const char *txt="Xj") const
Measure font's base-line parameters from the passed text.