Commit 8183194a authored by Behdad Esfahbod's avatar Behdad Esfahbod

[varfonts] Don't set style for variable-font pattern

parent 131219f9
......@@ -1473,6 +1473,8 @@ FcFreeTypeQueryFace (const FT_Face face,
#endif
case TT_NAME_ID_PREFERRED_SUBFAMILY:
case TT_NAME_ID_FONT_SUBFAMILY:
if (variable)
break;
if (utf8)
{
pp = utf8;
......@@ -1551,7 +1553,7 @@ FcFreeTypeQueryFace (const FT_Face face,
++nfamily;
}
if (!nstyle && face->style_name &&
if (!variable && !nstyle && face->style_name &&
FcStrCmpIgnoreBlanksAndCase ((FcChar8 *) face->style_name, (FcChar8 *) "") != 0)
{
if (FcDebug () & FC_DBG_SCANV)
......
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