X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fjuggle.c;h=8a26ec9a5091ffc5a63282c0af8e78dbf45d39f4;hp=7634d3e5f11720a62c15e29ee7c5f3969d17ba67;hb=6b1c86cf395f59389e4ece4ea8f4bea2c332745b;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439 diff --git a/hacks/juggle.c b/hacks/juggle.c index 7634d3e5..8a26ec9a 100644 --- a/hacks/juggle.c +++ b/hacks/juggle.c @@ -2614,7 +2614,8 @@ init_juggle (ModeInfo * mi) sp->scale = MIN(MI_HEIGHT(mi)/480.0, MI_WIDTH(mi)/160.0); if(describe && !sp->mode_font) { /* Check to see if there's room to describe patterns. */ - sp->mode_font = XQueryFont(MI_DISPLAY(mi), XGContextFromGC(MI_GC(mi))); + char *font = get_string_resource (MI_DISPLAY(mi), "font", "Font"); + sp->mode_font = XLoadQueryFont(MI_DISPLAY(mi), font); } }