GetFontColorPaletteCount
Text, Fonts, Color
Description
Return the number of CPAL palettes declared by a loaded TrueType or OpenType font
Syntax
Delphi
Function TPDFlib.GetFontColorPaletteCount(FontID: Integer): Integer;Parameters
| FontID | Font handle returned by AddTrueTypeFont, AddTrueTypeFontFromFile or similar font-loading functions |
|---|
Return values
Returns the number of CPAL palettes declared by the font, or 0 if the font handle is invalid or lacks a CPAL table.
Remarks
Use this count before calling SetColorGlyphPalette to enumerate available light, dark or theme-specific CPAL palettes.