|
متدهای فاصلهگذاری و قرارگیری GPOS در THotPDF مرجع API برای THotPDF
|
متدهای THotPDF شکلدهی خودکار 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;
APIهای پوششدادهشده
یادداشتهای استفاده Pair kerning تنظیمهای advance و placement با علامت را در یک em با واحد 1000 برمیگرداند. Contextual kerning lookupهای Type 7 و Type 8 را در سراسر یک glyph run resolve میکند. Mark positioning anchorهای Mark-to-Base، Mark-to-Mark و Mark-to-Ligature را پوشش میدهد. ApplyMarkToLigatureShaping دادههای مؤلفه ligature در سطح run را که توسط sfMarkToLigature استفاده میشود آماده میکند. اتصال cursive یک anchor خروجی را روی یک glyph به یک anchor ورودی روی glyph بعدی تراز میکند و پس از آنکه shaping بومی Arabic GSUB GIDهای contextual ویژه فونت را که آن anchorها را حمل میکنند تولید کرده باشد بیشترین فایده را دارد. مسیر emit اینها را فقط وقتی پرچم shaping متناظر فعال باشد اعمال میکند
همچنین ببینید: ShapingFeatures OpenType GSUB Engine Automatic Shaping Pipeline |