GLYPHMETRICS

The GLYPHMETRICS structure contains information about the placement and orientation of a glyph in a character cell.

typedef struct _GLYPHMETRICS { // glmt 
    UINT  gmBlackBoxX; 
    UINT  gmBlackBoxY; 
    POINT gmptGlyphOrigin; 
    short gmCellIncX; 
    short gmCellIncY; 
} GLYPHMETRICS; 
 

Members

gmBlackBoxX
Specifies the width of the smallest rectangle that completely encloses the glyph (its "black box").
gmBlackBoxY
Specifies the height of the smallest rectangle that completely encloses the glyph (its "black box").
gmptGlyphOrigin
Specifies the x- and y-coordinates of the upper left corner of the smallest rectangle that completely encloses the glyph.
gmCellIncX
Specifies the horizontal distance from the origin of the current character cell to the origin of the next character cell.
gmCellIncY
Specifies the vertical distance from the origin of the current character cell to the origin of the next character cell.

Remarks

Values in the GLYPHMETRICS structure are specified in device units.

QuickInfo

  Windows NT: Requires version 3.5 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in wingdi.h.

See Also

Fonts and Text Overview, Font and Text Structures, GetGlyphOutline