X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=jwxyz%2Fjwxyz-common.c;h=81ffe373e5049a133352344388f085d3863b8fd2;hp=849c4567881677114550b36b9cb619c8ee5482ce;hb=78add6e627ee5f10e1fa6f3852602ea5066eee5a;hpb=39809ded547bdbb08207d3e514950425215b4410 diff --git a/jwxyz/jwxyz-common.c b/jwxyz/jwxyz-common.c index 849c4567..81ffe373 100644 --- a/jwxyz/jwxyz-common.c +++ b/jwxyz/jwxyz-common.c @@ -27,6 +27,7 @@ #include #include +#include #include "jwxyzI.h" #include "pow2.h" @@ -1035,6 +1036,9 @@ try_native_font (Display *dpy, const char *name, Font fid) fid->xa_font = strdup (name); // Maybe this should be an XLFD? break; } else { + // To list fonts: + // po [UIFont familyNames] + // po [UIFont fontNamesForFamilyName:@"Arial"] Log("No native font: \"%s\" %.0f", name2, size); } } @@ -1566,9 +1570,13 @@ XDrawImageString (Display *dpy, Drawable d, GC gc, int x, int y, jwxyz_fill_rect (dpy, d, gc, x + MIN (0, cs.lbearing), y - MAX (0, ascent), + + /* The +1 here is almost certainly wrong, but BSOD + requires it; and only BSOD, fluidballs, juggle + and grabclient call XDrawImageString... */ MAX (MAX (0, cs.rbearing) - MIN (0, cs.lbearing), - cs.width), + cs.width) + 1, MAX (0, ascent) + MAX (0, descent), VTBL->gc_gcv(gc)->background); return XDrawString (dpy, d, gc, x, y, str, len);