IDWriteFontFace2 interface (dwrite_2.h)
Represents an absolute reference to a font face. This interface contains font face type, appropriate file references, and face identification data. It adds the ability to check whether a color rendering path is potentially necessary.
This interface extends IDWriteFontFace1. Various font data such as metrics, names, and glyph outlines are obtained from IDWriteFontFace.
Inheritance
The IDWriteFontFace2 interface inherits from the IDWriteFontFace1 interface.
Methods
The IDWriteFontFace2 interface has these methods.
IDWriteFontFace2::GetColorPaletteCount Gets the number of color palettes defined by the font. |
IDWriteFontFace2::GetPaletteEntries Gets color values from the font's color palette. |
IDWriteFontFace2::GetPaletteEntryCount Get the number of entries in each color palette. |
IDWriteFontFace2::GetRecommendedRenderingMode Determines the recommended text rendering and grid-fit mode to be used based on the font, size, world transform, and measuring mode. (IDWriteFontFace2.GetRecommendedRenderingMode) |
IDWriteFontFace2::IsColorFont Allows you to determine if a color rendering path is potentially necessary. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8.1 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | dwrite_2.h |