GR_FONT_INFO

Name

GR_FONT_INFO -- Font properties

Synopsis

typedef struct 
{
    int      maxwidth;
    int      height;
    int      baseline;
    int      firstchar;
    int      lastchar;
    int      fixed;
    GR_CHAR  widths[256];
} GR_FONT_INFO;
  

Description

A GR_FONT_INFO structure contains properties of a nano-X font. The font properties are filled in by the function GrGetFontInfo().

Fields

TypeNameDescription
intmaxwidthThe width of the widest character in the font.
intheightThe height of the font in pixels.
intbaselineThe baseline ascent of the font in pixels.
intfirstcharThe first character in the font.
intlastcharThe last character in the font.
intfixedGR_TRUE if the font is fixed width, GR_FALSE if it is a proportional width font.
GR_CHARwidths[256]An array containing the width in pixels of each character in the font.

See Also

GrGetFontInfo(), GR_LOGFONT.