#include <PkFont.h>
Public Member Functions | |
PkGlyph (unsigned int cc, unsigned int tfmwidth, unsigned int dm, unsigned int w, unsigned int h, int hoff, int voff, PkRasterdata *rasterdata, PkFont *f) | |
Represents a single glyph in a font. | |
PkGlyph (unsigned int cc, unsigned int tfmwidth, unsigned int dx, unsigned int dy, unsigned int w, unsigned int h, int hoff, int voff, PkRasterdata *rasterdata, PkFont *f) | |
Represents a single glyph in a font. | |
PkGlyph (int resolution, PkFont *f) | |
Constructs a dummy glyph for a font. | |
unsigned int | characterCode () const |
The character code for this glyph. | |
char | characterChar () const |
The character which this glyph represents. | |
const Byte * | bitmap () |
Returns the bitmap which represents this glyph. | |
unsigned int | w () const |
Width of this character. | |
unsigned int | h () const |
Height of this character. | |
int | hoff () const |
Obtains the horizontal offset of the first pixel of the bitmap from the reference point for this glyph, with positive numbers indicating a rightward offset. | |
int | voff () const |
Obtains the vertical offset of the first pixel of the bitmap from the reference point for this glyph, with positive numbers indicating a downward offset (which is rather rare, since the reference point is generally near the lower-left corner of the glyph). | |
double | tfmWidth () const |
The glyph's width. | |
int | hEscapement () const |
The glyph's horizontal escapement. | |
int | vEscapement () const |
The glyph's vertical escapement. | |
Static Public Member Functions | |
verbosities | verbosity (const verbosities level) |
Sets the verbosity of this module. |
|
Represents a single glyph in a font. The parameters here correspond to the parameters of the same names which are read from the PK file.
|
|
Represents a single glyph in a font. The parameters here correspond to the parameters of the same names which are read from the PK file.
|
|
Constructs a dummy glyph for a font.
|
|
Returns the bitmap which represents this glyph.
This runs from the top-left of the character, with the width and height as given by methods
|
|
The character which this glyph represents.
|
|
The character code for this glyph.
|
|
Height of this character.
This is the number of columns in the bitmap returned by method
|
|
The glyph's horizontal escapement.
|
|
Obtains the horizontal offset of the first pixel of the bitmap from the reference point for this glyph, with positive numbers indicating a rightward offset. This is the negative of the horizontal offset of the reference point from the bitmap, as discussed in the constructor.
|
|
The glyph's width.
|
|
Sets the verbosity of this module.
|
|
The glyph's vertical escapement.
|
|
Obtains the vertical offset of the first pixel of the bitmap from the reference point for this glyph, with positive numbers indicating a downward offset (which is rather rare, since the reference point is generally near the lower-left corner of the glyph). This is the negative of the vertical offset of the reference point from the bitmap, as discussed in the constructor.
|
|
Width of this character.
This is the row-length of the bitmap returned by method
|