Skip to content

Commit

Permalink
[lib] Added support for default script
Browse files Browse the repository at this point in the history
  • Loading branch information
mta452 committed Nov 25, 2018
1 parent 78c7279 commit c2789bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/SFScheme.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ static void AddHeaderTable(SFSchemeRef scheme, SFPatternBuilderRef patternBuilde
/* Get script table belonging to the desired tag. */
scriptTable = SearchScriptTable(scriptListTable, scheme->_scriptTag);

/* Use the default script table if the desired script tag is not available. */
if (!scriptTable) {
scriptTable = SearchScriptTable(scriptListTable, TAG('D', 'F', 'L', 'T'));
}

if (scriptTable) {
/* Get lang sys table belonging to the desired tag. */
langSysTable = SearchLangSysTable(scriptTable, scheme->_languageTag);
Expand Down

0 comments on commit c2789bd

Please sign in to comment.