2018-06-15 07:55:53 +02:00
|
|
|
---
|
|
|
|
lwlib/xlwmenu.c | 13 +++++--------
|
|
|
|
1 file changed, 5 insertions(+), 8 deletions(-)
|
|
|
|
|
|
|
|
--- lwlib/xlwmenu.c
|
|
|
|
+++ lwlib/xlwmenu.c 2018-06-15 05:50:45.749287186 +0000
|
2023-08-02 09:57:39 +02:00
|
|
|
@@ -2118,21 +2118,18 @@ XlwMenuInitialize (Widget request, Widge
|
2018-06-15 07:55:53 +02:00
|
|
|
gray_width, gray_height,
|
|
|
|
(unsigned long)1, (unsigned long)0, 1);
|
|
|
|
|
|
|
|
+ mw->menu.font = XLoadQueryFont (display, mw->menu.fontName);
|
2020-08-13 12:38:32 +02:00
|
|
|
#if defined USE_CAIRO || defined HAVE_XFT
|
2018-06-15 07:55:53 +02:00
|
|
|
- if (openXftFont (mw))
|
|
|
|
+ if (mw->menu.font || openXftFont (mw))
|
|
|
|
;
|
|
|
|
else
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
- mw->menu.font = XLoadQueryFont (display, mw->menu.fontName);
|
|
|
|
+ mw->menu.font = XLoadQueryFont (display, "fixed");
|
|
|
|
if (!mw->menu.font)
|
|
|
|
{
|
|
|
|
- mw->menu.font = XLoadQueryFont (display, "fixed");
|
|
|
|
- if (!mw->menu.font)
|
|
|
|
- {
|
|
|
|
- fprintf (stderr, "Menu font fixed not found, can't continue.\n");
|
|
|
|
- emacs_abort ();
|
|
|
|
- }
|
|
|
|
+ fprintf (stderr, "Menu font fixed not found, can't continue.\n");
|
|
|
|
+ emacs_abort ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|