|
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 queries του HotPDF, καθώς και τα ShapingFeatures flags που τα εφαρμόζουν κατά την έξοδο κειμένου
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
Σημειώσεις χρήσης Το pair kerning επιστρέφει signed advance και placement adjustments σε 1000-unit em. Το contextual kerning επιλύει Type 7 και Type 8 lookups σε όλο το glyph run. Το mark positioning καλύπτει Mark-to-Base, Mark-to-Mark και Mark-to-Ligature anchors. Το ApplyMarkToLigatureShaping προετοιμάζει τα run-level ligature component data που χρησιμοποιεί το sfMarkToLigature. Το cursive attachment ευθυγραμμίζει exit anchor σε ένα glyph με entry anchor στο επόμενο glyph, κάτι ιδιαίτερα χρήσιμο αφού το native Arabic GSUB shaping έχει παράγει font-specific contextual glyph IDs που μεταφέρουν αυτά τα anchors. Η emit path τα εφαρμόζει μόνο όταν είναι ενεργό το αντίστοιχο shaping flag
See also: ShapingFeatures OpenType GSUB Engine Automatic Shaping Pipeline |