(0) exportieren Drucken
Alle erweitern

IDWriteFontFamily::GetFirstMatchingFont Method

Gets the font that best matches the specified properties.

Syntax

virtual HRESULT GetFirstMatchingFont(
  DWRITE_FONT_WEIGHT   weight,
  DWRITE_FONT_STRETCH  stretch,
  DWRITE_FONT_STYLE    style,
  [out]  IDWriteFont ** matchingFont
) = 0;

Parameter

weight

A value that is used to match a requested font weight.

stretch

A value that is used to match a requested font stretch.

style

A value that is used to match a requested font style.

matchingFont [out]

When this method returns, contains the address of a pointer to the newly created IDWriteFont object.

Rückgabewert

Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.

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

IDWriteFontFamily

 

 

Anzeigen:
© 2014 Microsoft