GetFontColorPaletteCount

文字、字型、色彩

描述

傳回已載入 TrueType 或 OpenType 字型宣告的 CPAL 調色盤數量

語法

Delphi

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

參數

FontID字型控制代碼,來自 AddTrueTypeFont, AddTrueTypeFontFromFile 或類似的字型載入函式

傳回值

傳回字型宣告的 CPAL 調色盤數量;字型控制代碼無效或缺少 CPAL 表時為 0。

備註

在呼叫 SetColorGlyphPalette 列舉可用的淺色、深色或佈景主題專用 CPAL 調色盤之前,先使用此數量。

另請參閱

SetColorGlyphPalette, GetColorGlyphPalette, DrawColorText