IDWriteFont1::GetMetrics method (dwrite_1.h)

Obtains design units and common metrics for the font face. These metrics are applicable to all the glyphs within a font face and are used by applications for layout calculations.

Syntax

void GetMetrics(
  [out] DWRITE_FONT_METRICS1 *fontMetrics
);

Parameters

[out] fontMetrics

Type: DWRITE_FONT_METRICS1*

A filled DWRITE_FONT_METRICS1 structure that has font metrics for the current font face. The metrics returned by this method are in font design units.

Return value

None

Requirements

   
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header dwrite_1.h
Library Dwrite_1.lib
DLL Dwrite_1.dll

See also

IDWriteFont1