IDWriteFontSet1::CreateFontFace method (dwrite_3.h)
Creates a font face for a single item (rather than going through the font face reference).
Syntax
HRESULT CreateFontFace(
UINT32 listIndex,
[out] IDWriteFontFace5 **fontFace
);
Parameters
listIndex
Type: UINT32
Zero-based index of the font item in the set.
[out] fontFace
Type: IDWriteFontFace5**
The address of a pointer to an IDWriteFontFace5 interface. On successful completion, the function sets the pointer to a newly created font face object.
Return value
Type: HRESULT
If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Return value | Description |
---|---|
DWRITE_E_REMOTEFONT | The font is not local. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 Build 20348 |
Minimum supported server | Windows 10 Build 20348 |
Target Platform | Windows |
Header | dwrite_3.h |
Library | Dwrite.lib |