#include <fontFile.h>
Inheritance diagram for FontFile:
Public Member Functions | |
FontFile () | |
virtual | ~FontFile () |
virtual bool | read (const Filename &filename, bool extract_all, const string &extract_only)=0 |
double | get_ds () const |
Returns the designed size of the font in points. | |
double | get_dpi () const |
Returns the resolution of the rasterized font in dots per inch. | |
double | get_vppp () const |
Returns the vertical pixels per point of the rasterized font characters. | |
double | get_hppp () const |
Returns the horizontal pixels per point of the rasterized font characters. | |
void | sort_chars_by_height () |
Sorts the array of characters in the font as returned by get_char() so that the tallest ones appear first in the list. | |
int | get_num_chars () const |
Returns the number of characters (glyphs) read from the font. | |
CharBitmap * | get_char (int n) const |
Returns the nth character (glyph) read from the font. | |
Protected Types | |
typedef pvector< CharBitmap * > | Chars |
Protected Attributes | |
double | _ds |
double | _vppp |
double | _hppp |
Chars | _chars |
Definition at line 45 of file fontFile.h.
|
Definition at line 67 of file fontFile.h. |
|
Definition at line 47 of file fontFile.cxx. |
|
Definition at line 61 of file fontFile.cxx. References _chars. |
|
Returns the nth character (glyph) read from the font.
Definition at line 121 of file fontFile.I. |
|
Returns the resolution of the rasterized font in dots per inch. This is mainly useful for user information; use get_vppp() and get_hppp() for more precises measurements. Definition at line 55 of file fontFile.I. References _vppp. |
|
Returns the designed size of the font in points. This is the basic height of a line of text in the given font. Definition at line 36 of file fontFile.I. |
|
Returns the horizontal pixels per point of the rasterized font characters. This is the number of pixels wide each bitmap characters is per point of font. Definition at line 93 of file fontFile.I. |
|
Returns the number of characters (glyphs) read from the font.
Definition at line 108 of file fontFile.I. |
|
Returns the vertical pixels per point of the rasterized font characters. This is the number of pixels high each bitmap characters is per point of font. Definition at line 74 of file fontFile.I. |
|
Implemented in PkFontFile. |
|
Sorts the array of characters in the font as returned by get_char() so that the tallest ones appear first in the list.
Definition at line 77 of file fontFile.cxx. |
|
Definition at line 68 of file fontFile.h. Referenced by get_vppp(), and ~FontFile(). |
|
Definition at line 63 of file fontFile.h. Referenced by PkFontFile::do_xxx(). |
|
Definition at line 65 of file fontFile.h. Referenced by PkFontFile::do_xxx(). |
|
Definition at line 64 of file fontFile.h. Referenced by PkFontFile::do_xxx(), get_dpi(), and get_ds(). |