THotPDF GSUB Script and Language – metody

THotPDF API reference

 

THotPDF Methods  Auto Shaping  GSUB

Vybírá a zjišťuje položky OpenType GSUB ScriptList, LangSys a FeatureList používané všemi dotazy GSUB lookup

 

Delphi syntax

procedure SetGSUBScript(const ScriptTag: AnsiString);

procedure SetGSUBLanguage(const LangTag: AnsiString);

function GetGSUBScripts: TGSUBStringArray;

function GetGSUBLanguages(const ScriptTag: AnsiString): TGSUBStringArray;

function GetGSUBFeatures(const ScriptTag, LangTag: AnsiString): TGSUBStringArray;

 

Covered APIs

APIPoznámky k použití
SetGSUBScriptSelects the OpenType script tag used by later GSUB feature and lookup queries
SetGSUBLanguageSelects the OpenType language-system tag and falls back to the script default when unavailable
GetGSUBScriptsReturns the script tags advertised by the registered Unicode font's GSUB ScriptList
GetGSUBLanguagesReturns the language-system tags available for a script tag
GetGSUBFeaturesReturns the feature tags reachable for a script and language-system pair

 

Poznámky k použití

SetGSUBScript je striktní: neznámý tag skriptu způsobí, že pozdější dotazy vrátí no-op výsledky. SetGSUBLanguage se při nedostupnosti požadovaného jazykového tagu vrátí na výchozí LangSys skriptu, což odpovídá běžnému chování OpenType

 

Viz také: OpenType GSUB Engine GSUB lookup methods ShapingFeatures