Partager via


CD2DTextLayout::SetFontFamilyName

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

BOOL SetFontFamilyName(
   LPCWSTR pwzFontFamilyName,
   DWRITE_TEXT_RANGE textRange
);

Parameters

  • pwzFontFamilyName
    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

Return Value

If the method succeeds, it returns TRUE. Otherwise, it returns FALSE

Requirements

Header: afxrendertarget.h

See Also

Reference

CD2DTextLayout Class