char oldname[MAX_FONTNAME], *p = oldname; strcpy(p, fontname); if ((fp = get_font_name_props(dpy, fs)) == 0) return 0; fontname = bold_font_name(fp); while (*p && *fontname) { if (char2lower(*p++) != char2lower(*fontname++)) return 0; } return (*p == *fontname);
char actual[MAX_FONTNAME]; int got;  if ((fp = get_font_name_props(dpy, fs, actual)) == 0) got = 0; else got = same_font_name(requested, actual); return got;
got_bold_font(Display *dpy, XFontStruct *fs, char *fontname){	FontNameProperties *fp;	char oldname[MAX_FONTNAME], *p = oldname;	strcpy(p, fontname);	if ((fp = get_font_name_props(dpy, fs)) == 0)		return 0;	fontname = bold_font_name(fp);	while (*p && *fontname) {		if (char2lower(*p++) != char2lower(*fontname++))			return 0;	}	return (*p == *fontname);	/* both should be NUL */}