|
Metode Kerning dan Penempatan GPOS THotPDF Referensi API THotPDF
|
THotPDF Methods Auto Shaping GSUB |
|
Mendokumentasikan kueri pair-kerning, contextual kerning, vertical kerning, cursive-anchor, mark-positioning, dan mark-to-ligature GPOS HotPDF beserta flag ShapingFeatures yang menerapkannya selama output teks
Sintaks Delphi function HasGPOSKerning: Boolean; function GetGPOSPairAdjustment(FirstGID, SecondGID: Word): Integer; function GetGPOSPairAdjustment(FirstGID, SecondGID: Word; out AXPlacement, AYPlacement, AYAdvance: Integer): Integer; function GetGPOSContextualKernRun(const GIDs: array of Word): TArray<Integer>; function HasGPOSVerticalKern: Boolean; function GetGPOSVerticalKern(FirstGID, SecondGID: Word): Integer; function GetGPOSMarkOffset(BaseGID, MarkGID: Word; out DX, DY: Integer): Boolean; function GetGPOSMarkMarkOffset(BaseMarkGID, AttachMarkGID: Word; out DX, DY: Integer): Boolean; function HasGPOSCursive: Boolean; function GetGPOSCursiveAnchors(GID: Word; out EntryX, EntryY, ExitX, ExitY: Integer; out HasEntry, HasExit: Boolean): Boolean; function GetGPOSMarkToLigatureOffset(LigGID: Word; ComponentIndex: Integer; MarkGID: Word; out DX, DY: Integer): Boolean; function GetGPOSLigatureComponentCount(LigGID: Word): Integer; function ApplyMarkToLigatureShaping(const Wide: UnicodeString): UnicodeString;
API yang dicakup
Catatan penggunaan Pair kerning mengembalikan penyesuaian advance dan penempatan bertanda dalam em 1000 unit. Contextual kerning menyelesaikan lookup Type 7 dan Type 8 di seluruh glyph run. Mark positioning mencakup anchor Mark-to-Base, Mark-to-Mark, dan Mark-to-Ligature. ApplyMarkToLigatureShaping menyiapkan data komponen ligature tingkat run yang dipakai oleh sfMarkToLigature. Attachment cursive menyelaraskan anchor keluar pada satu glyph ke anchor masuk pada glyph berikutnya, yang paling berguna setelah shaping GSUB Arab asli menghasilkan ID glyph kontekstual spesifik font yang membawa anchor tersebut. Jalur emit menerapkan ini hanya saat flag shaping yang cocok diaktifkan
Lihat juga ShapingFeatures OpenType GSUB Engine Automatic Shaping Pipeline |