[varfonts] Do not set postscriptname for varfont pattern
This commit is contained in:
parent
be735d6a68
commit
2d0063948a
|
@ -1207,8 +1207,6 @@ FcFreeTypeQueryFace (const FT_Face face,
|
||||||
|
|
||||||
FcChar8 *style = 0;
|
FcChar8 *style = 0;
|
||||||
int st;
|
int st;
|
||||||
char psname[256];
|
|
||||||
const char *tmp;
|
|
||||||
|
|
||||||
FcBool symbol = FcFalse;
|
FcBool symbol = FcFalse;
|
||||||
|
|
||||||
|
@ -1595,6 +1593,10 @@ FcFreeTypeQueryFace (const FT_Face face,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add the PostScript name into the cache */
|
/* Add the PostScript name into the cache */
|
||||||
|
if (!variable)
|
||||||
|
{
|
||||||
|
char psname[256];
|
||||||
|
const char *tmp;
|
||||||
tmp = FT_Get_Postscript_Name (face);
|
tmp = FT_Get_Postscript_Name (face);
|
||||||
if (!tmp)
|
if (!tmp)
|
||||||
{
|
{
|
||||||
|
@ -1641,6 +1643,7 @@ FcFreeTypeQueryFace (const FT_Face face,
|
||||||
}
|
}
|
||||||
if (!FcPatternAddString (pat, FC_POSTSCRIPT_NAME, (const FcChar8 *)psname))
|
if (!FcPatternAddString (pat, FC_POSTSCRIPT_NAME, (const FcChar8 *)psname))
|
||||||
goto bail1;
|
goto bail1;
|
||||||
|
}
|
||||||
|
|
||||||
if (file && *file && !FcPatternAddString (pat, FC_FILE, file))
|
if (file && *file && !FcPatternAddString (pat, FC_FILE, file))
|
||||||
goto bail1;
|
goto bail1;
|
||||||
|
|
Loading…
Reference in New Issue