GrGetFontInfo

Name

GrGetFontInfo -- Retrieve data for a font

Synopsis

void GrGetFontInfo (
  GR_FONT        font,
  GR_FONT_INFO * fip
);

Parameters

font

The font number.

fip

A pointer to a GR_FONT_INFO structure that will store the requested font information.

Description

The GrGetFontInfo function retrieves information about the specified font, including the font number, the height of the font, the maximum width of any character in the font, the height of the baseline, a flag indicating whether or not the font is fixed-width, and a table of the individual widths of each character in the font. If the GrGetFontInfo function cannot find a font with the number font, it sets the returned font number to zero and the remainder of the information is undefined.