Share via


IDWriteTextLayout::SetFontFamilyName Method

Sets null-terminated font family name for text within a specified text range.

Syntax

virtual HRESULT SetFontFamilyName(
  [in]  const WCHAR * fontFamilyName,
  DWRITE_TEXT_RANGE  textRange
) = 0;

Parameter

  • fontFamilyName [in]
    The font family name that applies to the entire text string within the range specified by textRange.

  • textRange
    Text range to which this change applies.

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

IDWriteTextLayout