|
THotPDF GPOS Kerning and Placement Methods THotPDF API reference
|
THotPDF Methods Auto Shaping GSUB |
|
Dokumentuje HotPDF-ove GPOS upite za pair-kerning, contextual kerning, vertical kerning, cursive-anchor, mark-positioning i mark-to-ligature plus ShapingFeatures zastavice koje ih primenjuju tokom izlaza teksta
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; function GetGPOSLigatureComponentCount(LigGID: Word): Integer; function ApplyMarkToLigatureShaping(const Wide: UnicodeString): UnicodeString;
Covered APIs
Usage notes Pair kerning vraća signed advance i placement korekcije u 1000-unit emu. Contextual kerning rešava Type 7 i Type 8 lookup-ove kroz glyph run. Mark positioning pokriva Mark-to-Base, Mark-to-Mark i Mark-to-Ligature anchor-e. ApplyMarkToLigatureShaping priprema run-level podatke o ligature komponentama koje koristi sfMarkToLigature. Cursive attachment poravnava exit anchor na jednom glyfu sa entry anchorom na sledećem glyfu, što je najkorisnije nakon native Arabic GSUB shaping-a kada font-specific contextual glyph IDs već nose te anchor-e. Emit putanja primenjuje ovo samo kada je odgovarajuća shaping zastavica uključena
See also: ShapingFeatures OpenType GSUB Engine Automatic Shaping Pipeline |