מתודות כתב ושפת GSUB של THotPDF

THotPDF API reference

THotPDF Methods  Auto Shaping  GSUB

בוחר ומגלה את ערכי ה-OpenType GSUB ScriptList, LangSys, ו-FeatureList המשמשים את כל שאילתות חיפוש ה-GSUB

תחביר Delphi

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;

ממשקי API מכוסים

APIUsage notes
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

הערות שימוש

SetGSUBScript הוא קשיח: תג כתב לא ידוע גורם לשאילתות מאוחרות יותר להחזיר תוצאות ללא פעולה (no-op). SetGSUBLanguage חוזר למערכת השפה LangSys כברירת מחדל של הכתב כאשר תג השפה המבוקש אינו זמין, מה שמתאים להתנהגות הסטנדרתית של OpenType

See also: OpenType GSUB Engine GSUB lookup methods ShapingFeatures