More ifdefs; use Xft font to split messages

This commit is contained in:
Ray Chason
2026-08-19 09:37:41 +03:00
committed by Pasi Kallinen
parent cada45a786
commit 3f8e704231
6 changed files with 101 additions and 54 deletions
+5 -1
View File
@@ -1161,8 +1161,10 @@ X11_create_nhwindow(int type)
wp->pixel_height = 0;
wp->keep_window = FALSE;
wp->nh_colors_inited = FALSE;
#ifndef USE_XFT
wp->boldfs = (XFontStruct *) 0;
wp->boldfs_dpy = (Display *) 0;
#endif
wp->title = (char *) 0;
switch (type) {
@@ -1304,11 +1306,13 @@ X11_destroy_nhwindow(winid window)
WIN_INVEN = WIN_ERR;
}
#ifndef USE_XFT
if (wp->boldfs) {
XFreeFont(wp->boldfs_dpy, wp->boldfs);
wp->boldfs = (XFontStruct *) 0;
wp->boldfs_dpy = (Display *) 0;
}
#endif
if (wp->title) {
free(wp->title);
@@ -3158,7 +3162,6 @@ X11_italic_font(Display *display, XFontStruct *font)
return font2;
}
#endif /* !USE_XFT */
#ifdef ENHANCED_SYMBOLS
/* Given an XFontStruct, return a corresponding font that supports Unicode */
@@ -3202,6 +3205,7 @@ X11_unicode_font(Display *display, XFontStruct *font)
return unifont;
}
#endif /* ENHANCED_SYMBOLS */
#endif /* !USE_XFT */
#ifdef USE_XFT