Commit 2d006394 authored by Behdad Esfahbod's avatar Behdad Esfahbod

[varfonts] Do not set postscriptname for varfont pattern

parent be735d6a
......@@ -1207,8 +1207,6 @@ FcFreeTypeQueryFace (const FT_Face face,
FcChar8 *style = 0;
int st;
char psname[256];
const char *tmp;
FcBool symbol = FcFalse;
......@@ -1595,6 +1593,10 @@ FcFreeTypeQueryFace (const FT_Face face,
}
/* Add the PostScript name into the cache */
if (!variable)
{
char psname[256];
const char *tmp;
tmp = FT_Get_Postscript_Name (face);
if (!tmp)
{
......@@ -1641,6 +1643,7 @@ FcFreeTypeQueryFace (const FT_Face face,
}
if (!FcPatternAddString (pat, FC_POSTSCRIPT_NAME, (const FcChar8 *)psname))
goto bail1;
}
if (file && *file && !FcPatternAddString (pat, FC_FILE, file))
goto bail1;
......
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