|  | Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  | 
#include <FXFont.h>
Inheritance diagram for FX::FXFont:

| Public Member Functions | |
| FXFont (FXApp *a, const FXString &string) | |
| 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) | |
| FXFont (FXApp *a, const FXFontDesc &fontdesc) | |
| virtual void | create () | 
| virtual void | detach () | 
| virtual void | destroy () | 
| const FXString & | getName () const | 
| const FXString & | getActualName () const | 
| FXuint | getSize () const | 
| FXuint | getActualSize () const | 
| FXuint | getWeight () const | 
| FXuint | getActualWeight () const | 
| FXuint | getSlant () const | 
| FXuint | getActualSlant () const | 
| FXuint | getEncoding () const | 
| FXuint | getActualEncoding () const | 
| FXuint | getSetWidth () const | 
| FXuint | getActualSetWidth () const | 
| FXuint | getHints () const | 
| void | setFontDesc (const FXFontDesc &fontdesc) | 
| void | getFontDesc (FXFontDesc &fontdesc) const | 
| FXbool | setFont (const FXString &string) | 
| FXString | getFont () const | 
| FXbool | isFontMono () const | 
| FXbool | hasChar (FXint ch) const | 
| FXint | getMinChar () const | 
| FXint | getMaxChar () const | 
| FXint | leftBearing (FXchar ch) const | 
| FXint | rightBearing (FXchar ch) const | 
| FXint | getFontWidth () const | 
| FXint | getFontHeight () const | 
| FXint | getFontAscent () const | 
| FXint | getFontDescent () const | 
| FXint | getFontLeading () const | 
| FXint | getFontSpacing () const | 
| FXint | getTextWidth (const FXchar *text, FXuint n) const | 
| FXint | getTextWidth (const FXString &text) const | 
| FXint | getTextHeight (const FXchar *text, FXuint n) const | 
| FXint | getTextHeight (const FXString &text) const | 
| virtual void | save (FXStream &store) const | 
| virtual void | load (FXStream &store) | 
| virtual | ~FXFont () | 
| Static Public Member Functions | |
| 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) | 
See also:
| 
 | ||||||||||||
| Construct a font with given font description of the form:. fontname [ "[" foundry "]" ] ["," size ["," weight ["," slant ["," setwidth ["," encoding ["," hints]]]]]] For example: "helvetica [bitstream],120,bold,i,normal,iso8859-1,0" Typically, at least the font name, and size must be given for normal font matching. As a special case, raw X11 fonts can also be passed, for example: "9x15bold" Finally, an old FOX 1.0 style font string may be passed as well: "[helvetica] 90 700 1 1 0 0" | 
| 
 | ||||||||||||||||||||||||||||||||||||
| Construct a font with given name, size in points, weight, slant, character set encoding, setwidth, and hints. The font name may be comprised of a family name and optional foundry name enclosed in square brackets, for example, "helvetica [bitstream]". | 
| 
 | ||||||||||||
| Construct font from font description. 
 | 
| 
 | 
| Destroy font. 
 | 
| 
 | 
| Create the font. 
 Reimplemented from FX::FXId. | 
| 
 | 
| Detach the font. 
 Reimplemented from FX::FXId. | 
| 
 | 
| Destroy the font. 
 Reimplemented from FX::FXId. | 
| 
 | 
| Get font family name. 
 | 
| 
 | 
| Get actual family name. 
 | 
| 
 | 
| Get size in deci-points. 
 | 
| 
 | 
| Get actual size in deci-points. 
 | 
| 
 | 
| Get font weight. 
 | 
| 
 | 
| Get actual font weight. 
 | 
| 
 | 
| Get slant. 
 | 
| 
 | 
| Get actual slant. 
 | 
| 
 | 
| Get character set encoding. 
 | 
| 
 | 
| Get actual encoding. 
 | 
| 
 | 
| Get setwidth. 
 | 
| 
 | 
| Get actual setwidth. 
 | 
| 
 | 
| Get hints. 
 | 
| 
 | 
| Change font description. 
 | 
| 
 | 
| Get font description. 
 | 
| 
 | 
| Change the font to the specified font description string. 
 | 
| 
 | 
| Return the font description as a string suitable for parsing with setFont(), see above. 
 | 
| 
 | 
| Find out if the font is monotype or proportional. 
 | 
| 
 | 
| See if font has glyph for ch. 
 | 
| 
 | 
| Get first character glyph in font. 
 | 
| 
 | 
| Get last character glyph in font. 
 | 
| 
 | 
| Left bearing. 
 | 
| 
 | 
| Right bearing. 
 | 
| 
 | 
| Width of widest character in font. 
 | 
| 
 | 
| Height of highest character in font. 
 | 
| 
 | 
| Ascent from baseline. 
 | 
| 
 | 
| Descent from baseline. 
 | 
| 
 | 
| Get font leading [that is lead-ing as in Pb!]. 
 | 
| 
 | 
| Get font line spacing. 
 | 
| 
 | ||||||||||||
| Calculate width of given text in this font. 
 | 
| 
 | 
| Calculate width of given text in this font. 
 | 
| 
 | ||||||||||||
| Calculate height of given text in this font. 
 | 
| 
 | 
| Calculate height of given text in this font. 
 | 
| 
 | ||||||||||||||||||||||||||||||||||||
| List all fonts matching hints. If listFonts() returns TRUE then fonts points to a newly-allocated array of length numfonts. It is the caller's responsibility to free this array using FXFREE(). | 
| 
 | 
| Save font data into stream. 
 Reimplemented from FX::FXId. | 
| 
 | 
| Load font data from stream. 
 Reimplemented from FX::FXId. | 
|  Copyright © 1997-2005 Jeroen van der Zijp |