IDWriteFont interface (dwrite.h)

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.

Inheritance

The IDWriteFont interface inherits from the IUnknown interface. IDWriteFont also has these types of members:

Methods

The IDWriteFont interface has these methods.

 
IDWriteFont::CreateFontFace

Creates a font face object for the font. (IDWriteFont.CreateFontFace)
IDWriteFont::GetFaceNames

Gets a localized strings collection containing the face names for the font (such as Regular or Bold), indexed by locale name.
IDWriteFont::GetFontFamily

Gets the font family to which the specified font belongs.
IDWriteFont::GetInformationalStrings

Gets a localized strings collection containing the specified informational strings, indexed by locale name.
IDWriteFont::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. (IDWriteFont.GetMetrics)
IDWriteFont::GetSimulations

Gets a value that indicates what simulations are applied to the specified font.
IDWriteFont::GetStretch

Gets the stretch, or width, of the specified font.
IDWriteFont::GetStyle

Gets the style, or slope, of the specified font.
IDWriteFont::GetWeight

Gets the weight, or stroke thickness, of the specified font.
IDWriteFont::HasCharacter

Determines whether the font supports a specified character.
IDWriteFont::IsSymbolFont

Determines whether the font is a symbol font. (IDWriteFont.IsSymbolFont)

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header dwrite.h