X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Ffontglide.c;h=c1e4bdd343623857a64e3696620194851132a6e9;hp=ee1cb2525e3108d66dbd7e192803384f0514e515;hb=ccb7f4903325f92555a9722bba74b58346654ba0;hpb=0d6b320def9180cf907ceaed56b23a972a11b757 diff --git a/hacks/fontglide.c b/hacks/fontglide.c index ee1cb252..c1e4bdd3 100644 --- a/hacks/fontglide.c +++ b/hacks/fontglide.c @@ -284,8 +284,9 @@ pick_font_1 (state *s, sentence *se) se->font = XLoadQueryFont (s->dpy, pattern); if (! se->font) { - fprintf (stderr, "%s: unable to load font %s\n", - progname, pattern); + if (s->debug_p) + fprintf (stderr, "%s: unable to load font %s\n", + progname, pattern); return False; } @@ -325,7 +326,7 @@ pick_font (state *s, sentence *se) for (i = 0; i < 20; i++) if (pick_font_1 (s, se)) return; - fprintf (stderr, "%s: too many failures: giving up!\n", progname); + fprintf (stderr, "%s: too many font-loading failures: giving up!\n", progname); exit (1); }