Represents a physical font in a font collection. This interface is used to create font faces from physical fonts, or to retrieve information such as font face metrics or face names from existing font faces.
Members
The IDWriteFont interface inherits from the IUnknown interface. IDWriteFont also has these types of members:
Methods
The IDWriteFont interface has these methods.
| Method | Description |
|---|---|
| CreateFontFace |
Creates a font face object for the font. |
| GetFaceNames |
Gets a localized strings collection containing the face names for the font (such as Regular or Bold), indexed by locale name. |
| GetFontFamily |
Gets the font family to which the specified font belongs. |
| GetInformationalStrings |
Gets a localized strings collection containing the specified informational strings, indexed by locale name. |
| GetMetrics |
Obtains design units and common metrics for the font face. These metrics are applicable to all the glyphs within a font face and are used by applications for layout calculations. |
| GetSimulations |
Gets a value that indicates what simulations are applied to the specified font. |
| GetStretch |
Gets the stretch, or width, of the specified font. |
| GetStyle |
Gets the style, or slope, of the specified font. |
| GetWeight |
Gets the weight, or stroke thickness, of the specified font. |
| HasCharacter |
Determines whether the font supports a specified character. |
| IsSymbolFont |
Determines whether the font is a symbol font. |
Requirements
|
Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps] |
|
Header |
|
|
Library |
|
|
DLL |
|
Send comments about this topic to Microsoft
Build date: 11/22/2012