|
THotPDF Shaping Subset and ToUnicode Mapping Methods THotPDF API reference
|
THotPDF Methods Auto Shaping GSUB |
IsRTLSyntheticGID | Reports whether a glyph ID resolves to an RTL synthetic codepoint |
|
Documents the glyph-subset and ToUnicode plumbing that makes shaped GIDs render and extract correctly function GetSyntheticCodepointForGID(GID: Word): Word; procedure MarkSyntheticCpRTL(Cp: Word); function IsRTLSyntheticCp(Cp: Word): Boolean; function IsRTLSyntheticGID(GID: Word): Boolean;
Delphi syntax procedure EnableShapingFeatureForSubset(const FeatureTag: AnsiString); overload; procedure EnableShapingFeatureForSubset(Feature: THPDFShapingFeature); overload; procedure MarkUnicodeGlyphUsed(GID: Word); procedure RegisterToUnicodeReverseMapping(SubstCodepoint: Cardinal; const SourceCodepoints: array of Cardinal); procedure ClearToUnicodeReverseMappings; function ToUnicodeReverseMappingCount: Integer; function AssignSyntheticCodepointForGID(GID: Word; out SyntheticCP: Word): Boolean;
Covered APIs
Usage notes Use these APIs when a shaping workflow emits glyph IDs that are not reachable through a normal Unicode cmap entry. Synthetic codepoints route rendering through CIDToGIDMap, whilst reverse mappings recover the original source codepoints for text extraction
See also: AssignSyntheticCodepointForGID GSUB lookup methods Indic shaping methods |