GetFontColorPaletteCount

文本、字体、颜色

描述

返回已加载的 TrueType 或 OpenType 字体声明的 CPAL 调色板数量

语法

Delphi

Function TPDFlib.GetFontColorPaletteCount(FontID: Integer): Integer;

参数

FontID由 AddTrueTypeFont、AddTrueTypeFontFromFile 等类似字体加载函数返回的字体句柄

返回值

返回字体声明的 CPAL 调色板数量,字体句柄无效或缺少 CPAL 表时返回 0。

备注

若要枚举可用的浅色、深色或主题特定 CPAL 调色板,请在调用 SetColorGlyphPalette 前使用此计数。

另请参阅

SetColorGlyphPalette, GetColorGlyphPalette, DrawColorText