12 #ifndef ROOT_FontCache
13 #define ROOT_FontCache
20 #include <ApplicationServices/ApplicationServices.h>
22 #ifndef ROOT_XLFDParser
68 double GetAscent(
const std::vector<UniChar> & unichars)
const;
71 double GetDescent(
const std::vector<UniChar> & unichars)
const;
char ** ListFonts(const X11::XLFDName &xlfd, int maxNames, int &count)
Util::CFStrongReference< CTFontRef > CTFontGuard_t
Namespace for new ROOT classes and functions.
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 GetTextBounds(UInt_t &w, UInt_t &h, const char *text) const
void FreeFontNames(char **fontList)
double GetLeading() const
std::map< UInt_t, CTFontGuard_t > FontMap_t
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)
bool fSymbolFontRegistered
void UnloadFont(FontStruct_t font)
CTFontRef SelectSymbolFont(Float_t fontSize, unsigned fontIndex)
double GetDescent() const