FontFamily::GetEmHeight method (gdiplusheaders.h)

The FontFamily::GetEmHeight method gets the size (commonly called em size or em height), in design units, of this font family.

Syntax

UINT16 GetEmHeight(
  [in] INT style
);

Parameters

[in] style

Type: INT

Integer that specifies the style of the typeface. This value must be an element of the FontStyle enumeration or the result of a bitwise OR applied to two or more of these elements. For example, FontStyleBold | FontStyleUnderline | FontStyleStrikeout specifies a combination of the three styles.

Return value

Type: UINT16

This method returns the size, in design units, of this font family.

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusheaders.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

FontFamily

FontFamily::GetCellDescent

FontFamily::GetEmHeight

FontFamily::GetLineSpacing

FontStyle

Obtaining Font Metrics