1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtappbuilder: improve font settings.

This commit is contained in:
Liang Chang 2022-02-01 01:40:17 +08:00
parent 59094bcc26
commit 9fcdd2564e

View file

@ -1888,6 +1888,9 @@ setup_vwr_graphics(
if (!ui_handle->sm_font)
ui_handle->sm_font = (XFontStruct *)XLoadQueryFont(dpy, XmDEFAULT_FONT);
if (!ui_handle->sm_font)
ui_handle->sm_font = (XFontStruct *)XLoadQueryFont(dpy, "*");
XSetFont(dpy, ui_handle->normal_gc, ui_handle->sm_font->fid);
XSetFont(dpy, ui_handle->select_gc, ui_handle->sm_font->fid);
}