From 8183194ae39c43708e60458e94faf73d55b4ec4a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 18 Sep 2017 20:14:33 -0400 Subject: [PATCH] [varfonts] Don't set style for variable-font pattern --- src/fcfreetype.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fcfreetype.c b/src/fcfreetype.c index f1bc809..8154174 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -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)