TPDFlibColorGlyph
文字、字型、彩色字形
描述
帶有彩色字型檢查 API 傳回的對應字形索引、色彩表格描述,以及可選的 SVG 或點陣圖承載資料
語法
Delphi
TPDFlibColorGlyph = Record
Kind: TPDFlibColorGlyphKind;
GlyphIndex: Integer;
PaletteCount: Integer;
PaletteEntryCount: Integer;
DescriptionJSON: WideString;
Data: AnsiString;
MIMEType: AnsiString;
PPEMX: Integer;
PPEMY: Integer;
OriginX: Integer;
OriginY: Integer;
End;參數
| Kind | 從 COLR、SVG 或內嵌點陣資料中選出的表示 |
|---|---|
| GlyphIndex | 映射或明確要求的字形索引(零起算) |
| PaletteCount | COLR 字形的 CPAL 調色盤數量 |
| PaletteEntryCount | 每個 CPAL 調色盤的顏色條目數 |
| DescriptionJSON | 結構化 COLR paint 資料,或描述 SVG/點陣來源的中繼資料 |
| Data | 確切的 SVG 文件或點陣酬載;COLR 字形為空 |
| MIMEType | 酬載的媒體類型,例如 image/svg+xml、image/png 或 image/jpeg |
| PPEMX | 點陣字 strike 的水平 pixels-per-em 值 |
| PPEMY | 點陣字 strike 的垂直 pixels-per-em 值 |
| OriginX | 可取得時的 sbix 水平原點偏移 |
| OriginY | 可取得時的 sbix 垂直原點偏移 |
備註
COLR 定點值在 JSON 中保持整數欄位,名稱如 alphaF2Dot14 與 xxF16Dot16,避免受地區設定影響的小數轉換,並保留原始表格精度
另請參閱
TPDFlibColorGlyphKind, GetFontColorGlyph, GetFontColorGlyphByIndex