Düzenle

Aracılığıyla paylaş


GLYPHMETRICS structure (wingdi.h)

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

Syntax

typedef struct _GLYPHMETRICS {
  UINT  gmBlackBoxX;
  UINT  gmBlackBoxY;
  POINT gmptGlyphOrigin;
  short gmCellIncX;
  short gmCellIncY;
} GLYPHMETRICS, *LPGLYPHMETRICS;

Members

gmBlackBoxX

The width of the smallest rectangle that completely encloses the glyph (its black box).

gmBlackBoxY

The height of the smallest rectangle that completely encloses the glyph (its black box).

gmptGlyphOrigin

The x- and y-coordinates of the upper left corner of the smallest rectangle that completely encloses the glyph.

gmCellIncX

The horizontal distance from the origin of the current character cell to the origin of the next character cell.

gmCellIncY

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.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header wingdi.h (include Windows.h)

See also

Font and Text Structures

Fonts and Text Overview

GetGlyphOutline