Share via


INKMETRIC Structure

INKMETRIC Structure

Specifies display properties for a text ink object (tInk).

Declaration

[C++]

typedef struct tagINKMETRIC {
    INT iHeight;
    INT iFontAscent;
    INT iFontDescent;
    DWORD dwFlags;
    COLORREF color;
} INKMETRIC, *PINKMETRIC;

Members

Member Name Ink Metric Flags Description
iHeight   Ink height.
iFontAscent   Assent height.
iFontDescent   Descent height.
dwFlags   Ink metric flags.
  IMF_FONT_SELECTED_IN_HDC Use the ambient properties of the surrounding text.
  IMF_ITALIC Apply the italic style.
  IMF_BOLD Apply the bold style.
color   Ink color.

Remarks

The iHeight, iFontAssent and iFontDescent fields are in HIMETRIC units.

Applying italics to a text ink object slants the ink to the right.