From 3be0825a98c73962c0f9af6fd1399902f0ed499a Mon Sep 17 00:00:00 2001 From: eightfiftytwo <73746603+eightfiftytwo@users.noreply.github.com> Date: Tue, 11 Apr 2023 16:27:14 +0800 Subject: [PATCH] Add SemiBold weight Fira Code offers a semibold weight, and lots of target fonts have it too. I've tested this and it seems to work okay. --- ligaturize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ligaturize.py b/ligaturize.py index 34540b2..734b9a6 100644 --- a/ligaturize.py +++ b/ligaturize.py @@ -24,7 +24,7 @@ def get_ligature_source(fontname): # Become case-insensitive fontname = fontname.lower() - for weight in ['Bold', 'Retina', 'Medium', 'Regular', 'Light']: + for weight in ['Bold', 'SemiBold', 'Retina', 'Medium', 'Regular', 'Light']: if fontname.endswith('-' + weight.lower()): # Exact match for one of the Fira Code weights return 'fonts/fira/distr/otf/FiraCode-%s.otf' % weight