Font class
Inheritance:
Public Methods
-
FXFont(FXApp* a, const FXFontDesc& fontdesc)
- Construct font from font description
-
FXFont(FXApp* a, const FXString& face, FXuint sz, FXuint wt=FONTWEIGHT_NORMAL, FXuint sl=FONTSLANT_REGULAR, FXuint enc=FONTENCODING_DEFAULT, FXuint setw=FONTSETWIDTH_DONTCARE, FXuint h=0)
- Construct a font with given face name, size in points(pixels), weight, slant, character set encoding, setwidth, and hints
-
FXFont(FXApp* a, const FXString& nm)
- Construct a font with given X11 font string
-
virtual void create()
- Create the font
-
virtual void detach()
- Detach the font
-
virtual void destroy()
- Destroy the font
-
FXString getName() const
- Get face name
-
FXuint getSize() const
- Get size in deci-points
-
FXuint getWeight() const
- Get font weight
-
FXuint getSlant() const
- Get slant
-
FXuint getEncoding() const
- Get character set encoding
-
FXuint getSetWidth() const
- Get setwidth
-
FXuint getHints() const
- Get hints
-
void getFontDesc(FXFontDesc& fontdesc) const
- Get font description
-
void setFontDesc(const FXFontDesc& fontdesc)
- Change font description
-
FXbool isFontMono() const
- Find out if the font is monotype or proportional
-
FXbool hasChar(FXint ch) const
- See if font has glyph for ch
-
FXint getMinChar() const
- Get first character glyph in font
-
FXint getMaxChar() const
- Get last character glyph in font
-
FXint leftBearing(FXchar ch) const
- Left bearing
-
FXint rightBearing(FXchar ch) const
- Right bearing
-
FXint getFontWidth() const
- Width of widest character in font
-
FXint getFontHeight() const
- Height of highest character in font
-
FXint getFontAscent() const
- Ascent from baseline
-
FXint getFontDescent() const
- Descent from baseline
-
FXint getFontLeading() const
- Get font leading [that is lead-ing as in Pb!]
-
FXint getFontSpacing() const
- Get font line spacing
-
FXint getTextWidth(const FXchar* text, FXuint n) const
- Calculate width of given text in this font
-
FXint getTextHeight(const FXchar* text, FXuint n) const
- Calculate height of given text in this font
-
static FXbool listFonts(FXFontDesc*& fonts, FXuint& numfonts, const FXString& face, FXuint wt=FONTWEIGHT_DONTCARE, FXuint sl=FONTSLANT_DONTCARE, FXuint sw=FONTSETWIDTH_DONTCARE, FXuint en=FONTENCODING_DEFAULT, FXuint h=0)
- List all fonts matching hints
-
virtual void save(FXStream& store) const
- Save font data into stream
-
virtual void load(FXStream& store)
- Load font data from stream
-
virtual ~FXFont()
- Destroy font
Inherited from FXId:
Public Methods
-
FXApp* getApp() const
-
FXID id() const
-
void setUserData(void* ptr)
-
void* getUserData() const
Public Methods
-
const FXchar* getClassName() const
-
FXbool isMemberOf(const FXMetaClass* metaclass) const
Documentation
Font class
- FXFont(FXApp* a, const FXFontDesc& fontdesc)
- Construct font from font description
- FXFont(FXApp* a, const FXString& face, FXuint sz, FXuint wt=FONTWEIGHT_NORMAL, FXuint sl=FONTSLANT_REGULAR, FXuint enc=FONTENCODING_DEFAULT, FXuint setw=FONTSETWIDTH_DONTCARE, FXuint h=0)
- Construct a font with given face name, size in points(pixels), weight, slant, character set encoding, setwidth, and hints
- FXFont(FXApp* a, const FXString& nm)
- Construct a font with given X11 font string
- virtual void create()
- Create the font
- virtual void detach()
- Detach the font
- virtual void destroy()
- Destroy the font
- FXString getName() const
- Get face name
- FXuint getSize() const
- Get size in deci-points
- FXuint getWeight() const
- Get font weight
- FXuint getSlant() const
- Get slant
- FXuint getEncoding() const
- Get character set encoding
- FXuint getSetWidth() const
- Get setwidth
- FXuint getHints() const
- Get hints
- void getFontDesc(FXFontDesc& fontdesc) const
- Get font description
- void setFontDesc(const FXFontDesc& fontdesc)
- Change font description
- FXbool isFontMono() const
- Find out if the font is monotype or proportional
- FXbool hasChar(FXint ch) const
- See if font has glyph for ch
- FXint getMinChar() const
- Get first character glyph in font
- FXint getMaxChar() const
- Get last character glyph in font
- FXint leftBearing(FXchar ch) const
- Left bearing
- FXint rightBearing(FXchar ch) const
- Right bearing
- FXint getFontWidth() const
- Width of widest character in font
- FXint getFontHeight() const
- Height of highest character in font
- FXint getFontAscent() const
- Ascent from baseline
- FXint getFontDescent() const
- Descent from baseline
- FXint getFontLeading() const
- Get font leading [that is lead-ing as in Pb!]
- FXint getFontSpacing() const
- Get font line spacing
- FXint getTextWidth(const FXchar* text, FXuint n) const
- Calculate width of given text in this font
- FXint getTextHeight(const FXchar* text, FXuint n) const
- Calculate height of given text in this font
- static FXbool listFonts(FXFontDesc*& fonts, FXuint& numfonts, const FXString& face, FXuint wt=FONTWEIGHT_DONTCARE, FXuint sl=FONTSLANT_DONTCARE, FXuint sw=FONTSETWIDTH_DONTCARE, FXuint en=FONTENCODING_DEFAULT, FXuint h=0)
- List all fonts matching hints
- virtual void save(FXStream& store) const
- Save font data into stream
- virtual void load(FXStream& store)
- Load font data from stream
- virtual ~FXFont()
- Destroy font
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.