st-nobadweight-20220308-4b53196.diff (729B)
1 From 4b531966e2c630ddf1810ce68eb96656cb9cbfb2 Mon Sep 17 00:00:00 2001 2 From: avalonwilliams <avalonwilliams@protonmail.com> 3 Date: Tue, 8 Mar 2022 09:51:03 -0500 4 Subject: [PATCH] nobadweight patch 5 6 Fixes issues that certain fonts have due to badweight detection. 7 This in particular effects the Go Mono font 8 --- 9 x.c | 1 - 10 1 file changed, 1 deletion(-) 11 12 diff --git a/x.c b/x.c 13 index cd96575..be86e68 100644 14 --- a/x.c 15 +++ b/x.c 16 @@ -957,7 +957,6 @@ xloadfont(Font *f, FcPattern *pattern) 17 XftResultMatch)) { 18 if ((XftPatternGetInteger(f->match->pattern, "weight", 0, 19 &haveattr) != XftResultMatch) || haveattr != wantattr) { 20 - f->badweight = 1; 21 fputs("font weight does not match\n", stderr); 22 } 23 } 24 -- 25 2.35.1 26