IDWriteFontSetBuilder1::AddFontFile method
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
- fontFile [in]
-
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
|
Header |
|
|---|---|
|
Library |
|
See also
- IDWriteFontSetBuilder1
- Creating a font set using arbitrary fonts in the local file system
- Creating a custom font set using font data loaded into memory
Show: