Commit 82052afb authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu

Avoid empty menu bar on Xaw with cairo

* lwlib/lwlib-utils.c (crxft_font_open_name) [USE_CAIRO]: Return NULL if
font extents are bogus.
parent e4f12a1b
Pipeline #1976 failed with stage
in 7 seconds
......@@ -192,6 +192,11 @@ crxft_font_open_name (Display *dpy, int screen, const char *name)
FcPatternDestroy (pattern);
if (pub && pub->height <= 0)
crxft_font_close (pub);
pub = NULL;
return pub;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment