Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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(
[in] IDWriteFontFile *fontFile
);
Parameters
[in] fontFile
Type: IDWriteFontFile*
Font file reference object to add to the set. If the file is not a supported OpenType font file, then a DWRITE_E_FILEFORMAT error will be returned.
Return value
Type: HRESULT
This method returns an HRESULT success or error code.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 10 Build 14393 |
| Minimum supported server | Windows 10 Build 14393 |
| Target Platform | Windows |
| Header | dwrite_3.h |
| Library | Dwrite.lib |
See also
Creating a custom font set using font data loaded into memory
Creating a font set using arbitrary fonts in the local file system