12 #ifndef ROOT_FontCache 13 #define ROOT_FontCache 20 #include <ApplicationServices/ApplicationServices.h> 22 #ifndef ROOT_XLFDParser 70 double GetAscent(
const std::vector<UniChar> & unichars)
const;
73 double GetDescent(
const std::vector<UniChar> & unichars)
const;
char ** ListFonts(const X11::XLFDName &xlfd, int maxNames, int &count)
Util::CFStrongReference< CTFontRef > CTFontGuard_t
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
FontStruct_t LoadFont(const X11::XLFDName &xlfd)
FontMap_t fFonts[nPadFonts]
std::map< std::string, std::string > PSNameMap_t
FontCache & operator=(const FontCache &rhs)
std::map< CTFontRef, CTFontGuard_t > fLoadedFonts
unsigned GetTextWidth(FontStruct_t font, const char *text, int nChars)
std::map< CTFontRef, CTFontGuard_t >::const_iterator const_font_iterator
std::map< CTFontRef, CTFontGuard_t >::iterator font_iterator
FontMap_t::const_iterator const_font_map_iterator
PSNameMap_t fXLFDtoPostscriptNames
std::vector< char * > fList
void FreeFontNames(char **fontList)
std::map< UInt_t, CTFontGuard_t > FontMap_t
double GetLeading() const
std::vector< char > fStringData
std::list< FontList > fFontLists
FontMap_t::iterator font_map_iterator
void GetFontProperties(FontStruct_t font, int &maxAscent, int &maxDescent)
CTFontRef SelectFont(Font_t fontIndex, Float_t fontSize)
void GetTextBounds(UInt_t &w, UInt_t &h, const char *text) const
double GetDescent() const
bool fSymbolFontRegistered
void UnloadFont(FontStruct_t font)
CTFontRef SelectSymbolFont(Float_t fontSize, unsigned fontIndex)