GetFontGlyphIndex

文字、字型、字形檢視

描述

以所選 TrueType 或 OpenType-TT 字型程式對應 Unicode 純量值,傳回其字形索引

語法

Delphi

Function TPDFlib.GetFontGlyphIndex(FontID: Integer; CodePoint: Cardinal): Integer;

參數

FontID字型建立或載入 API 所傳回的字型控制代碼
CodePointUnicode 純量值,U+0000 到 U+10FFFF

傳回值

零起算的字形索引(字型的 notdef 映射為 0);字型無效、沒有受支援的輪廓程式,或未映射該碼點則為 -1

備註

支援 Unicode 平台映射與 Windows format 4、format 12 的 cmap 子表,包括增補平面碼點

解析後的大綱程式在共享字型快取預算下重複使用

另請參閱

GetFontGlyphOutline, SetFontCacheLimit