Freigeben über


IDWriteFontFace::GetMetrics Method

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

virtual void GetMetrics(
  [out]  DWRITE_FONT_METRICS * fontFaceMetrics
) = 0;

Parameter

  • fontFaceMetrics [out]
    When this method returns, a DWRITE_FONT_METRICS structure that holds metrics (such as ascent, descent, or cap height) for the current font face element. The metrics returned by this function are in font design units.

Rückgabewert

Methode gibt keinen Wert zurück.

Anforderungen

Mindestens unterstützter Client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista

Mindestens unterstützter Server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008

Header

Dwrite.h

Bibliothek

Dwrite.lib

DLL

Dwrite.dll

Siehe auch

IDWriteFontFace