|
THotPDF GPOS Kerning and Placement Methods THotPDF API reference
|
THotPDF Methods Auto Shaping GSUB |
|
Documents HotPDF's GPOS pair-kerning, contextual kerning, vertical kerning, cursive-anchor, mark-positioning, and mark-to-ligature queries plus the ShapingFeatures flags that apply them during text output function ApplyMarkToLigatureShaping(const Wide: UnicodeString): UnicodeString;
Delphi syntax 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;
Covered APIs
Usage notes Pair kerning returns signed advance and placement adjustments in a 1000-unit em. Contextual kerning resolves Type 7 and Type 8 lookups across a glyph run. Mark positioning covers Mark-to-Base, Mark-to-Mark, and Mark-to-Ligature anchors. The emit path applies these only when sfKerning, sfMarkPositioning, or sfVerticalKerning is enabled
See also: ShapingFeatures OpenType GSUB Engine Automatic Shaping Pipeline |