|
THotPDF GSUB Lookup Methods THotPDF-API-Referenz
|
THotPDF-Methoden Auto-Formung GSUB |
|
Dokumentiert die GSUB-Lookup-APIs auf Funktionsebene für Einzel-, Mehrfach-, Alternativ-, Ligatur-, kontextuelle, verkettete kontextuelle, umgekehrt verkettete, kontextbezogene und lokalisierte Form-Ersetzungen
Delphi-Syntax function GetSingleSubstituteGlyph(InputGID: Word; const FeatureTag: AnsiString): Word; function GetMultipleSubstituteGlyphs(InputGID: Word; const FeatureTag: AnsiString; var OutGIDs: TGSUBLookupArray): Boolean; function GetAlternateGlyphCount(InputGID: Word; const FeatureTag: AnsiString): Integer; function GetAlternateGlyph(InputGID: Word; const FeatureTag: AnsiString; AlternateIndex: Integer): Word; function ApplyLigatureSubstitution(const InputGIDs: array of Word; StartIndex: Integer; const FeatureTag: AnsiString; out OutGID: Word; out ConsumedCount: Integer): Boolean; function ApplyContextualSubst(const InputGIDs: array of Word; StartIndex: Integer; const FeatureTag: AnsiString; var OutGIDs: TGSUBLookupArray; out ConsumedLen: Integer): Boolean; function ApplyReverseChainedContextualSubst(const InputGIDs: array of Word; StartIndex: Integer; const FeatureTag: AnsiString; out OutGID: Word): Boolean; function ApplyGSUBContextualFeature(const Wide: UnicodeString; const AFeatureTag: AnsiString): UnicodeString; function ApplyLocalizedForms(const Wide: UnicodeString): UnicodeString;
Abgedeckte APIs
Verwendungshinweise Diese Methoden geben an, was die GSUB-Tabelle der Schriftart tun würde; ApplyGSUBContextualFeature ist der gemeinsame pfad für kontextbezogene Features wie rclt und calt; ApplyLocalizedForms wendet locl unter dem aktiven GSUB-Skript und der aktiven Sprache an; wenn der Aufrufer zurückgegebene Ersatz-GIDs manuell ausgibt, muss MarkUnicodeGlyphUsed oder ein synthetisches Codepoint-Mapping diese Glyphen innerhalb des eingebetteten Subsets und der ToUnicode-Map halten. Komplexe-Skript-Pipelines, die aufgelöste Lookups einzeln anwenden, beschränken jedes Lookup auf zulässige Glyphenpositionen, indem sie über einen
Siehe auch: OpenType GSUB-Engine GSUB-Skript- und Sprachmethoden ShapingFeatures Subset- und Mappingmethoden |