|
THotPDF GPOS Kerning and Placement Methods THotPDF API reference
|
THotPDF Methods Auto Shaping GSUB |
|
Документира GPOS pair-kerning, contextual kerning, vertical kerning, cursive-anchor, mark-positioning и mark-to-ligature заявките на HotPDF плюс флаговете ShapingFeatures, които ги прилагат по време на извеждане на текст
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 връща подписани корекции за advance и позициониране в 1000-unit em. Contextual kerning разрешава Type 7 и Type 8 lookups през glyph run. Mark positioning покрива anchor-и Mark-to-Base, Mark-to-Mark и Mark-to-Ligature. ApplyMarkToLigatureShaping подготвя run-level данни за ligature component-ите, използвани от sfMarkToLigature. Cursive attachment свързва exit anchor на един glyph към entry anchor на следващ glyph, което е най-полезно след native Arabic GSUB shaping, което е произвело font-specific contextual glyph IDs които носят тези anchors. Пътят emit прилага това само когато съответният shaping flag е активен
See also: ShapingFeatures OpenType GSUB Engine Automatic Shaping Pipeline |