|
Các phương thức GPOS về kerning và định vị của THotPDF THotPDF API reference
|
THotPDF Methods Auto Shaping GSUB |
|
Ghi tài liệu các truy vấn GPOS của HotPDF cho pair-kerning, contextual kerning, vertical kerning, cursive-anchor, mark-positioning và mark-to-ligature, cùng các cờ ShapingFeatures áp dụng chúng trong quá trình xuất văn bản
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 được bao phủ
Ghi chú sử dụng Pair kerning trả về các điều chỉnh advance và vị trí có dấu trong một em 1000 đơn vị. Contextual kerning giải quyết các tra cứu Type 7 và Type 8 trên toàn bộ glyph run. Mark positioning bao gồm các anchor Mark-to-Base, Mark-to-Mark và Mark-to-Ligature. ApplyMarkToLigatureShaping chuẩn bị dữ liệu thành phần ligature ở mức run mà sfMarkToLigature dùng. Cursive attachment căn chỉnh anchor ra của glyph này với anchor vào của glyph kế tiếp, hữu ích nhất sau khi shaping Arabic GSUB gốc đã tạo ra các glyph ID theo ngữ cảnh đặc thù của phông có chứa các anchor đó. Đường phát chỉ áp dụng các xử lý này khi cờ shaping tương ứng được bật
Xem thêm: ShapingFeatures OpenType GSUB Engine Automatic Shaping Pipeline |