typedef struct { int maxwidth; int height; int baseline; int firstchar; int lastchar; int fixed; GR_CHAR widths[256]; } GR_FONT_INFO; |
A GR_FONT_INFO structure contains properties of a nano-X font. The font properties are filled in by the function GrGetFontInfo().
Type | Name | Description |
---|---|---|
int | maxwidth | The width of the widest character in the font. |
int | height | The height of the font in pixels. |
int | baseline | The baseline ascent of the font in pixels. |
int | firstchar | The first character in the font. |
int | lastchar | The last character in the font. |
int | fixed | GR_TRUE if the font is fixed width, GR_FALSE if it is a proportional width font. |
GR_CHAR | widths[256] | An array containing the width in pixels of each character in the font. |