Make fc-match behave better when style is unknown (bug 15332)
This commit is contained in:
parent
3322ca8553
commit
bdbc26f3d9
|
@ -202,7 +202,7 @@ main (int argc, char **argv)
|
||||||
if (FcPatternGetString (fs->fonts[j], FC_FAMILY, 0, &family) != FcResultMatch)
|
if (FcPatternGetString (fs->fonts[j], FC_FAMILY, 0, &family) != FcResultMatch)
|
||||||
family = (FcChar8 *) "<unknown family>";
|
family = (FcChar8 *) "<unknown family>";
|
||||||
if (FcPatternGetString (fs->fonts[j], FC_STYLE, 0, &style) != FcResultMatch)
|
if (FcPatternGetString (fs->fonts[j], FC_STYLE, 0, &style) != FcResultMatch)
|
||||||
file = (FcChar8 *) "<unknown style>";
|
style = (FcChar8 *) "<unknown style>";
|
||||||
|
|
||||||
printf ("%s: \"%s\" \"%s\"\n", file, family, style);
|
printf ("%s: \"%s\" \"%s\"\n", file, family, style);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue