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,
std::map< TGLFont, Int_t > FontMap_t
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
void SetTrashCount(Int_t c) const
static const char * GetFontNameFromId(Int_t)
Get font name from TAttAxis font id.
Int_t GetTrashCount() const
void ReleaseFont(TGLFont &font)
Release font with given attributes.
void CopyAttributes(const TGLFont &o)
Assignment operator.
static void InitStatics()
Create a list of available font files and allowed font sizes.
Bool_t operator<(const TGLFont &o) const
void RegisterFont(Int_t size, Int_t file, TGLFont::EMode mode, TGLFont &out)
Provide font with given size, file and FTGL class.
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 Render(const char *txt, Double_t x, Double_t y, Double_t angle, Double_t mgn) const
static TObjArray fgFontFileArray
std::vector< Int_t > FontSizeVec_t
static Int_t GetFontSize(Int_t ds)
Get availabe font size.
Float_t GetLineHeight() const
Get font's line-height.
std::list< const TGLFont * >::iterator FontList_i
Int_t IncTrashCount() const
ClassDef(TGLFontManager, 0)
std::list< const TGLFont * > FontList_t
Float_t GetAscent() const
Get font's ascent.
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.
virtual void PostRender() const
Reset GL state after FTFont rendering.
static Int_t fgExtendedFontStart
Float_t GetDescent() const
Get font's descent. The returned value is positive.
const FTFont * GetFont() const
std::map< TGLFont, Int_t >::iterator FontMap_i
void SetManager(TGLFontManager *mng)
const TGLFontManager * GetManager() const
TGLFontManager * fManager
static Bool_t fgStaticInitDone
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
virtual ~TGLFontManager()
Destructor.
TGLFontManager & operator=(const TGLFontManager &)
TGLFont & operator=(const TGLFont &o)
A FreeType GL font manager.
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::list< const TGLFont * >::const_iterator FontList_ci
virtual void PreRender(Bool_t autoLight=kTRUE, Bool_t lightOn=kFALSE) const
Set-up GL state before FTFont rendering.
static FontSizeVec_t * GetFontSizeArray()
Get valid font size vector.
static FontSizeVec_t fgFontSizeArray
static TObjArray * GetFontFileArray()
Get id to file name map.
A wrapper class for FTFont.
static Int_t GetExtendedFontStartIndex()
void ClearFontTrash()
Delete FTFFont objects registered for destruction.
virtual ~TGLFont()
Destructor.