IDWriteFontFace3::GetWeight method (dwrite_3.h)

Gets the weight of this font.

Syntax

DWRITE_FONT_WEIGHT GetWeight();

Return value

Type: DWRITE_FONT_WEIGHT

Returns a DWRITE_FONT_WEIGHT-typed value that specifies the density of a typeface, in terms of the lightness or heaviness of the strokes.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header dwrite_3.h
Library Dwrite.lib
DLL Dwrite.dll

See also

IDWriteFontFace3