A class for X fonts.
![]() | XFont (const string *foundry, int name, int style, int size, bool scalable) Creates new X font with the specified name, style and point size. |
![]() | ~XFont () |
![]() | Scale (double factor) scale the X font (if scalable) with factor. |
![]() | FindFamily (const char *desc) Gets family name from X font description. |
![]() | FindStyle (const char *desc) Gets font style from X font description. |
![]() | FindSize (const char *desc) Gets point size from X font description. |
![]() | GetLeading () Gets the standard leading, or line spacing, for the font. |
![]() | GetAscent () Gets font ascent (distance from base line to top of characters). |
![]() | GetDescent () Gets font descent (distance from base line to bottom of characters). |
![]() | GetHeight () Gets total height of font (= is leading + ascent + descent) |
![]() | GetMaxAscent () Gets the maximum ascent of all characters in this Font. |
![]() | GetMaxDescent () Gets the maximum descent of all characters. |
![]() | GetMaxAdvance () Gets maximum advance width of any character (-1 if unknown). |
![]() | StringWidth (const string *str) Returns width of specified String in Font. |
![]() | StringWidth (const char *str) see above. |
![]() | Box (const string *s, int &wd, int &ht) calculates height and width of multiline string in grafport. |
![]() | Box (const char *s, int &wd, int &ht) see above. |
![]() | GetXFid () Return x font id of stored X font. |
![]() | GetXLFD (char *xd) Get XLFD description. |
![]() | GetXLFD (string *xd) Get XLFD description. |
![]() | GetPostScript (char *ps) Get PostScript name of this Font. |
![]() | GetXFontStruct () |
![]() | CalcXLFD (string *fn, bool scalable) Calculate X logical font description. |
![]() | IsScalableFont (const string *name) |
![]() | LoadQueryScalableFont (Display *d, const char *name, int size) |
A class for X fonts.
~XFont()
void Scale(double factor)
static int FindFamily(const char *desc)
static int FindStyle(const char *desc)
static int FindSize(const char *desc)
int GetLeading()
int GetAscent()
int GetDescent()
int GetHeight()
int GetMaxAscent()
int GetMaxDescent()
int GetMaxAdvance()
int StringWidth(const string *str)
int StringWidth(const char *str)
void Box(const string *s, int &wd, int &ht)
void Box(const char *s, int &wd, int &ht)
long GetXFid()
void GetXLFD(char *xd)
void GetXLFD(string *xd)
void GetPostScript(char *ps)
XFontStruct* GetXFontStruct()
void CalcXLFD(string *fn, bool scalable)
static bool IsScalableFont(const string *name)
static XFontStruct* LoadQueryScalableFont(Display *d, const char *name, int size)
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de