bool de_set_font_for_style(DEStyle *style, DEFont *font) { if(style->font!=NULL) de_free_font(style->font); style->font=font; font->refcount++; if(style->font->fontstruct!=NULL){ XSetFont(ioncore_g.dpy, style->normal_gc, style->font->fontstruct->fid); } return TRUE; }
bool de_set_font_for_style(DEStyle *style, DEFont *font) { if(style->font!=NULL) de_free_font(style->font); style->font=font; font->refcount++; #ifdef HAVE_X11_BMF if(style->font->fontstruct!=NULL){ XSetFont(ioncore_g.dpy, style->normal_gc, style->font->fontstruct->fid); } #endif /* HAVE_X11_BMF */ return TRUE; }
bool de_load_font_for_style(DEStyle *style, const char *fontname) { if(style->font!=NULL) de_free_font(style->font); style->font=de_load_font(fontname); if(style->font==NULL) return FALSE; if(style->font->fontstruct!=NULL){ XSetFont(ioncore_g.dpy, style->normal_gc, style->font->fontstruct->fid); } return TRUE; }