|
THotPDF Shaping Subset and ToUnicode Mapping Methods Dokumentacja API THotPDF
|
THotPDF Methods Auto Shaping GSUB |
|
Dokumentuje infrastrukturę podzbioru glifów i ToUnicode, dzięki której ukształtowane GID-y są poprawnie renderowane i wyodrębniane function GetSyntheticCodepointForGID(GID: Word): Word; procedure MarkSyntheticCpRTL(Cp: Word); function IsRTLSyntheticCp(Cp: Word): Boolean; function IsRTLSyntheticGID(GID: Word): Boolean;
procedure RegisterToUnicodeReverseMapping(SubstCodepoint: Cardinal; const SourceCodepoints: array of Cardinal); 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;
Opisane API
Uwagi dotyczące użycia Używaj tych API, gdy workflow kształtowania emituje ID glifów nieosiągalne przez zwykły wpis cmap Unicode. Syntetyczne codepointy kierują renderowanie przez CIDToGIDMap, a mapowania odwrotne odtwarzają oryginalne codepointy źródłowe na potrzeby ekstrakcji tekstu
Zobacz także: AssignSyntheticCodepointForGID GSUB lookup methods Indic shaping methods |