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

This commit is contained in:
Behdad Esfahbod 2017-09-18 20:14:33 -04:00
parent 131219f9e5
commit 8183194ae3
1 changed files with 3 additions and 1 deletions

View File

@ -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)