sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 4a587c348da8424baf6903437dfccbbcb107b07a
parent c60a120fd3738654cfbe14e7c09da2b20152b9e0
Author: avalonwilliams <avalonwilliams@protonmail.com>
Date:   Tue,  8 Mar 2022 10:08:58 -0500

Added nobadweight patch

Added patch that fixes bugs that some fonts experience in st. This
isn't a general bug fix, and I'm almost 100% sure it may break other
fonts, but it works for my usecase.

Diffstat:
Ast.suckless.org/patches/nobadweight/index.md | 12++++++++++++
Ast.suckless.org/patches/nobadweight/st-nobadweight-20220308-4b53196.diff | 26++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/st.suckless.org/patches/nobadweight/index.md b/st.suckless.org/patches/nobadweight/index.md @@ -0,0 +1,12 @@ +nobadweight +=========== +Small patch that removes the badweight detection. Useful for fonts +broken by this, like [Go Mono](https://go.dev/blog/go-fonts) + +Download +-------- +* [st-nobadweight-20220308-4b53196.diff](st-nobadweight-20220308-4b53196.diff) (729) + +Authors +------- +* Avalon Williams <avalonwilliams@protonmail.com> diff --git a/st.suckless.org/patches/nobadweight/st-nobadweight-20220308-4b53196.diff b/st.suckless.org/patches/nobadweight/st-nobadweight-20220308-4b53196.diff @@ -0,0 +1,26 @@ +From 4b531966e2c630ddf1810ce68eb96656cb9cbfb2 Mon Sep 17 00:00:00 2001 +From: avalonwilliams <avalonwilliams@protonmail.com> +Date: Tue, 8 Mar 2022 09:51:03 -0500 +Subject: [PATCH] nobadweight patch + +Fixes issues that certain fonts have due to badweight detection. +This in particular effects the Go Mono font +--- + x.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/x.c b/x.c +index cd96575..be86e68 100644 +--- a/x.c ++++ b/x.c +@@ -957,7 +957,6 @@ xloadfont(Font *f, FcPattern *pattern) + XftResultMatch)) { + if ((XftPatternGetInteger(f->match->pattern, "weight", 0, + &haveattr) != XftResultMatch) || haveattr != wantattr) { +- f->badweight = 1; + fputs("font weight does not match\n", stderr); + } + } +-- +2.35.1 +