IDWriteFontSetBuilder::AddFontFaceReference(IDWriteFontFaceReference*,DWRITE_FONT_PROPERTYconst*,UINT32) method (dwrite_3.h)
Adds a reference to a font to the set being built. The necessary metadata will automatically be extracted from the font upon calling CreateFontSet.
Syntax
HRESULT AddFontFaceReference(
[in] IDWriteFontFaceReference *fontFaceReference,
DWRITE_FONT_PROPERTY const *properties,
UINT32 propertyCount
);
Parameters
[in] fontFaceReference
Type: IDWriteFontFaceReference*
Font face reference object to add to the set.
properties
List of properties to associate with the reference.
propertyCount
The number of properties specified.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 [desktop apps only] |
Minimum supported server | Windows Server 2016 [desktop apps only] |
Target Platform | Windows |
Header | dwrite_3.h |
Library | Dwrite.lib |
DLL | Dwrite.dll |