Commit 9d32c2d3 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

usp10: Fall back to 'dflt' language if shaping language tag isn't found.

parent e0915572
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment