|
THotPDF GSUB-opslagsmetoder THotPDFAPI-reference
|
THotPDF-metoder Auto-formning GSUB |
|
Dokumenterer GSUB-opslags-API'er på funktionsniveau for enkelt-, fler-, alternativ-, ligatur-, kontekstuel, kædet kontekstuel, omvendt kædet, kontekstuel-funktions- og lokaliserede form-erstatninger
Delphi-syntaks 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;
Dækkede API'er
Brugsnoter Disse metoder svarer på, hvad skrifttypens GSUB-tabel ville gøre. ApplyGSUBContextualFeature is den delte sti for kontekstuelle funktioner såsom rclt og calt; ApplyLocalizedForms anvender locl under det aktive GSUB-script og -sprog. Hvis kalderen udsender returnerede erstatnings-GID'er manuelt, skal MarkUnicodeGlyphUsed eller en syntetisk kodepunktsafbildning beholde disse glyffer inde i det indlejrede subset og ToUnicode-map
Se også: OpenType GSUB Engine GSUB-script- og sprogmetoder ShapingFeatures Subset- og afbildningsmetoder |