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.
This commit is contained in:
parent
e4f12a1b1f
commit
82052afb24
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue