mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-25 08:46:23 +00:00
usp10: Fall back to 'dflt' language if shaping language tag isn't found.
Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e09155723b
commit
9d32c2d31a
|
@ -638,8 +638,12 @@ static LoadedFeature* load_OT_feature(HDC hdc, SCRIPT_ANALYSIS *psa, ScriptCache
|
|||
} while(attempt && !feature);
|
||||
|
||||
/* try in the default (latin) table */
|
||||
if (!feature && !script)
|
||||
OpenType_GetFontFeatureTags(psc, MS_MAKE_TAG('l','a','t','n'), MS_MAKE_TAG('d','f','l','t'), FALSE, MS_MAKE_TAG(feat[0],feat[1],feat[2],feat[3]), tableType, 1, &tags, &cTags, &feature);
|
||||
if (!feature)
|
||||
{
|
||||
if (!script)
|
||||
script = MS_MAKE_TAG('l','a','t','n');
|
||||
OpenType_GetFontFeatureTags(psc, script, MS_MAKE_TAG('d','f','l','t'), FALSE, MS_MAKE_TAG(feat[0],feat[1],feat[2],feat[3]), tableType, 1, &tags, &cTags, &feature);
|
||||
}
|
||||
}
|
||||
|
||||
TRACE("Feature %s located at %p\n",debugstr_an(feat,4),feature);
|
||||
|
|
Loading…
Reference in a new issue