|
THotPDF GPOS Kerning and Placement Methods THotPDF API 참조
|
THotPDF 메서드 자동 shaping GSUB |
|
HotPDF의 GPOS pair-kerning, contextual kerning, vertical kerning, cursive-anchor, mark-positioning, mark-to-ligature 조회와 텍스트 출력 시 이를 적용하는 ShapingFeatures 플래그를 문서화합니다
Delphi 문법 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은 1000 유닛 em 기준으로 부호 있는 advance·배치 조정을 반환합니다. Contextual kerning은 glyph run에 걸쳐 Type 7/8 lookup을 해석합니다. Mark positioning은 Mark-to-Base, Mark-to-Mark, Mark-to-Ligature anchor를 다룹니다. ApplyMarkToLigatureShaping은 sfMarkToLigature가 쓰는 run 수준 ligature 컴포넌트 데이터를 준비합니다. Cursive attachment는 한 glyph의 이탈 anchor를 다음 glyph의 진입 anchor에 정렬하며, native 아랍어 GSUB shaping이 그 anchor를 지닌 폰트별 contextual glyph ID를 만들어 낸 뒤에 가장 유용합니다. 출력 경로는 대응 shaping 플래그가 켜져 있을 때만 이를 적용합니다
참고: ShapingFeatures OpenType GSUB Engine Automatic Shaping Pipeline |