int wide, int bold, int cellwidth)
{
struct multifont *mfont = (struct multifont *)font;
+ unifont *f;
int ok, i;
while (len > 0) {
/*
* Now display it.
*/
- unifont_draw_text(target, gc, ok ? mfont->main : mfont->fallback,
- x, y, string, i, wide, bold, cellwidth);
+ f = ok ? mfont->main : mfont->fallback;
+ if (f)
+ unifont_draw_text(target, gc, f, x, y, string, i, wide, bold,
+ cellwidth);
string += i;
len -= i;
x += i * cellwidth;