From 2506fb17fafaa5c15c973e250dfa500f00e09d91 Mon Sep 17 00:00:00 2001 From: justsaumit Date: Wed, 2 Mar 2022 08:51:54 +0530 Subject: Removed lines in drw.c 143/144 --- config.h | 2 +- dmenu | Bin 43624 -> 43520 bytes dmenu.o | Bin 35360 -> 35360 bytes drw.c | 15 +-------------- drw.o | Bin 10536 -> 10328 bytes 5 files changed, 2 insertions(+), 15 deletions(-) diff --git a/config.h b/config.h index 1edb647..9db2b9a 100644 --- a/config.h +++ b/config.h @@ -4,7 +4,7 @@ static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *fonts[] = { - "monospace:size=10" + "monospace:size=13" }; static const char *prompt = NULL; /* -p option; prompt to the left of input field */ static const char *colors[SchemeLast][2] = { diff --git a/dmenu b/dmenu index f88e021..55ceda8 100755 Binary files a/dmenu and b/dmenu differ diff --git a/dmenu.o b/dmenu.o index f284532..a961f63 100644 Binary files a/dmenu.o and b/dmenu.o differ diff --git a/drw.c b/drw.c index 4cdbcbe..c50cdb6 100644 --- a/drw.c +++ b/drw.c @@ -132,20 +132,7 @@ xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern) } else { die("no font specified."); } - - /* Do not allow using color fonts. This is a workaround for a BadLength - * error from Xft with color glyphs. Modelled on the Xterm workaround. See - * https://bugzilla.redhat.com/show_bug.cgi?id=1498269 - * https://lists.suckless.org/dev/1701/30932.html - * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916349 - * and lots more all over the internet. - */ - FcBool iscol; - if(FcPatternGetBool(xfont->pattern, FC_COLOR, 0, &iscol) == FcResultMatch && iscol) { - XftFontClose(drw->dpy, xfont); - return NULL; - } - + font = ecalloc(1, sizeof(Fnt)); font->xfont = xfont; font->pattern = pattern; diff --git a/drw.o b/drw.o index 769ec78..2b22ad3 100644 Binary files a/drw.o and b/drw.o differ -- cgit v1.2.3