inst->fonts[2] = gdk_font_load(inst->cfg.widefont.name); if (!inst->fonts[2]) { fprintf(stderr, "%s: unable to load wide font \"%s\"\n", appname, inst->cfg.widefont.name); exit(1); }
name = inst->cfg.widefont.name; guessed = FALSE; } else { name = guess_derived_font_name(inst->fonts[0], FALSE, TRUE); guessed = TRUE; } inst->fonts[2] = name ? gdk_font_load(name) : NULL; if (inst->fonts[2]) {
void setup_fonts_ucs(struct gui_data *inst){    int font_charset;    if (inst->fonts[0])        gdk_font_unref(inst->fonts[0]);    if (inst->fonts[1])        gdk_font_unref(inst->fonts[1]);    if (inst->fonts[2])        gdk_font_unref(inst->fonts[2]);    if (inst->fonts[3])        gdk_font_unref(inst->fonts[3]);    inst->fonts[0] = gdk_font_load(inst->cfg.font.name);    if (!inst->fonts[0]) {	fprintf(stderr, "%s: unable to load font \"%s\"\n", appname,		inst->cfg.font.name);	exit(1);    }    font_charset = set_font_info(inst, 0);    if (inst->cfg.boldfont.name[0]) {	inst->fonts[1] = gdk_font_load(inst->cfg.boldfont.name);	if (!inst->fonts[1]) {	    fprintf(stderr, "%s: unable to load bold font \"%s\"\n", appname,		    inst->cfg.boldfont.name);	    exit(1);	}	set_font_info(inst, 1);    } else	inst->fonts[1] = NULL;    if (inst->cfg.widefont.name[0]) {	inst->fonts[2] = gdk_font_load(inst->cfg.widefont.name);	if (!inst->fonts[2]) {	    fprintf(stderr, "%s: unable to load wide font \"%s\"\n", appname,		    inst->cfg.widefont.name);	    exit(1);	}	set_font_info(inst, 2);    } else	inst->fonts[2] = NULL;    if (inst->cfg.wideboldfont.name[0]) {	inst->fonts[3] = gdk_font_load(inst->cfg.wideboldfont.name);	if (!inst->fonts[3]) {	    fprintf(stderr, "%s: unable to load wide/bold font \"%s\"\n",                    appname, inst->cfg.wideboldfont.name);	    exit(1);	}	set_font_info(inst, 3);    } else	inst->fonts[3] = NULL;    inst->font_width = gdk_char_width(inst->fonts[0], ' ');    inst->font_height = inst->fonts[0]->ascent + inst->fonts[0]->descent;    inst->direct_to_font = init_ucs(&inst->ucsdata,				    inst->cfg.line_codepage, font_charset,				    inst->cfg.vtmode);}