IDWriteFontFace2::GetColorPaletteCount method (dwrite_2.h)

Gets the number of color palettes defined by the font.

Syntax

UINT32 GetColorPaletteCount();

Return value

The return value is zero if the font has no color information. Color fonts are required to define at least one palette, with palette index zero reserved as the default palette.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header dwrite_2.h
Library Dwrite.lib
DLL Dwrite.dll

See also

IDWriteFontFace2