INKMETRIC structure (msinkaut.h)

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

Syntax

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

Members

iHeight

Ink height.

iFontAscent

Assent height.

iFontDescent

Descent height.

dwFlags

Ink metric flags.

Ink Metric Flags Meaning
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.

Requirements

Requirement Value
Minimum supported client Windows XP Tablet PC Edition [desktop apps only]
Minimum supported server None supported
Header msinkaut.h

See also

GetFormat Method

GetInkExtent Method

SetFormat Method