Font-metrics structure.

This structure is returned to applications on the GpiQueryFonts and GpiQueryFontMetrics calls and conveys information from the font creator to the application.

typedef struct _FONTMETRICS {
  CHAR       szFamilyname[FACESIZE];  /*  Family name. */
  CHAR       szFacename[FACESIZE];    /*  Face name. */
  USHORT     idRegistry;              /*  Registry identifier. */
  USHORT     usCodePage;              /*  Code page. */
  LONG       lEmHeight;               /*  Em height. */
  LONG       lXHeight;                /*  X height. */
  LONG       lMaxAscender;            /*  Maximum ascender. */
  LONG       lMaxDescender;           /*  Maximum descender. */
  LONG       lLowerCaseAscent;        /*  Lowercase ascent. */
  LONG       lLowerCaseDescent;       /*  Lowercase descent. */
  LONG       lInternalLeading;        /*  Internal leading. */
  LONG       lExternalLeading;        /*  External leading. */
  LONG       lAveCharWidth;           /*  Average character width. */
  LONG       lMaxCharInc;             /*  Maximum character increment. */
  LONG       lEmInc;                  /*  Em increment. */
  LONG       lMaxBaselineExt;         /*  Maximum baseline extent. */
  SHORT      sCharSlope;              /*  Character slope. */
  SHORT      sInlineDir;              /*  Inline direction. */
  SHORT      sCharRot;                /*  Character rotation. */
  USHORT     usWeightClass;           /*  Weight class. */
  USHORT     usWidthClass;            /*  Width class. */
  SHORT      sXDeviceRes;             /*  X-device resolution. */
  SHORT      sYDeviceRes;             /*  Y-device resolution. */
  SHORT      sFirstChar;              /*  First character. */
  SHORT      sLastChar;               /*  Last character. */
  SHORT      sDefaultChar;            /*  Default character. */
  SHORT      sBreakChar;              /*  Break character. */
  SHORT      sNominalPointSize;       /*  Nominal point size. */
  SHORT      sMinimumPointSize;       /*  Minimum point size. */
  SHORT      sMaximumPointSize;       /*  Maximum point size. */
  USHORT     fsType;                  /*  Type indicators. */
  USHORT     fsDefn;                  /*  Definition indicators. */
  USHORT     fsSelection;             /*  Selection indicators. */
  USHORT     fsCapabilities;          /*  Font capabilities. */
  LONG       lSubscriptXSize;         /*  Subscript x-size. */
  LONG       lSubscriptYSize;         /*  Subscript y-size. */
  LONG       lSubscriptXOffset;       /*  Subscript x-offset. */
  LONG       lSubscriptYOffset;       /*  Subscript y-offset. */
  LONG       lSuperscriptXSize;       /*  Superscript x-size. */
  LONG       lSuperscriptYSize;       /*  Superscript y-size. */
  LONG       lSuperscriptXOffset;     /*  Superscript x-offset. */
  LONG       lSuperscriptYOffset;     /*  Superscript y-offset. */
  LONG       lUnderscoreSize;         /*  Underscore size. */
  LONG       lUnderscorePosition;     /*  Underscore position. */
  LONG       lStrikeoutSize;          /*  Strikeout size. */
  LONG       lStrikeoutPosition;      /*  Strikeout position. */
  SHORT      sKerningPairs;           /*  Kerning pairs. */
  SHORT      sFamilyClass;            /*  Font family design classification. */
  LONG       lMatch;                  /*  Matched font identity. */
  LONG       FamilyNameAtom;          /*  Font family name atom. */
  LONG       FaceNameAtom;            /*  Font facename atom. */
  PANOSE     panose;                  /*  Panose font descriptor. */
} FONTMETRICS;

typedef   FONTMETRICS   * PFONTMETRICS ;


[Back] [Next]