Make fc-match behave better when style is unknown (bug 15332)

This commit is contained in:
Keith Packard 2008-05-03 20:14:07 -07:00
parent 3322ca8553
commit bdbc26f3d9
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ main (int argc, char **argv)
if (FcPatternGetString (fs->fonts[j], FC_FAMILY, 0, &family) != FcResultMatch)
family = (FcChar8 *) "<unknown family>";
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);
}