FontFamily::GetLineSpacing method (gdiplusheaders.h)

The FontFamily::GetLineSpacing method gets the line spacing, in design units, of this font family for the specified style or style combination. The line spacing is the vertical distance between the base lines of two consecutive lines of text.

Syntax

UINT16 GetLineSpacing(
  [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 line spacing 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::GetCellAscent

FontFamily::GetCellDescent

FontFamily::GetEmHeight

FontStyle

Obtaining Font Metrics