1
0
Fork 0

enforcing using imcomplete fonsets anyways

This commit is contained in:
arg@mig29 2006-12-05 10:31:20 +01:00
parent 1026eb8308
commit 5d43e9243c
2 changed files with 2 additions and 7 deletions

View file

@ -1,5 +1,5 @@
# dmenu version # dmenu version
VERSION = 1.5 VERSION = 1.6
# Customize below to fit your system # Customize below to fit your system

7
draw.c
View file

@ -88,13 +88,8 @@ setfont(const char *fontstr) {
if(dc.font.set) if(dc.font.set)
XFreeFontSet(dpy, dc.font.set); XFreeFontSet(dpy, dc.font.set);
dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def);
if(missing) { if(missing)
XFreeStringList(missing); XFreeStringList(missing);
if(dc.font.set) {
XFreeFontSet(dpy, dc.font.set);
dc.font.set = NULL;
}
}
if(dc.font.set) { if(dc.font.set) {
XFontSetExtents *font_extents; XFontSetExtents *font_extents;
XFontStruct **xfonts; XFontStruct **xfonts;