IDWriteFontSetBuilder2::AddFontFile method (dwrite_3.h)
Adds references to all the fonts in the specified font file. The method parses the font file to determine the fonts and their properties.
Syntax
HRESULT AddFontFile(
WCHAR const *filePath
);
Parameters
filePath
Type: WCHAR const *
Absolute file path to add to the font set.
Return value
Type: HRESULT
If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
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 |