IDWriteFontCollection2 interface (dwrite_3.h)
This interface encapsulates a set of fonts, such as the set of fonts installed on the system, or the set of fonts in a particular directory. The font collection API can be used to discover what font families and fonts are available, and to obtain some metadata about the fonts. IDWriteFontCollection2 adds new facilities, including support for IDWriteFontSet1.
This interface extends IDWriteFontCollection1.
Inheritance
The IDWriteFontCollection2 interface inherits from the IDWriteFontCollection1 interface.
Methods
The IDWriteFontCollection2 interface has these methods.
IDWriteFontCollection2::GetFontFamily Creates a font family object, given a zero-based font family index. |
IDWriteFontCollection2::GetFontFamilyModel Retrieves the font family model used by the font collection to group families. |
IDWriteFontCollection2::GetFontSet Retrieves the underlying font set used by this collection. |
IDWriteFontCollection2::GetMatchingFonts Retrieves a list of fonts in the specified font family, ranked in order of how well they match the specified axis values. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 Build 20348 |
Minimum supported server | Windows 10 Build 20348 |
Target Platform | Windows |
Header | dwrite_3.h |