From ff2be6af816bc9b2217651bd7aa962a376906a7d Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Wed, 19 Apr 2023 15:50:36 +0200 Subject: [PATCH] font-patcher: Fix "FontName Nerd Fonts" plural 's' [why] The patched font is named 'OriginalName Nerd Font' and not 'OriginalName Nerd Fonts'. This is a bug. [how] Take the correct singular string form when assembling the names. Signed-off-by: Fini Jastrow --- font-patcher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/font-patcher b/font-patcher index c17987798..3460ef6c0 100755 --- a/font-patcher +++ b/font-patcher @@ -723,7 +723,7 @@ class font_patcher: font.appendSFNTName(str('English (US)'), str('Compatible Full'), font.fullname) font.appendSFNTName(str('English (US)'), str('SubFamily'), subFamily) else: - short_family = projectNameAbbreviation + variant_abbrev if self.args.makegroups in [ 2, 3] else projectName + variant_full + short_family = projectNameAbbreviation + variant_abbrev if self.args.makegroups in [ 2, 3] else projectNameSingular + variant_full # inject_suffix(family, ps_fontname, short_family) n.inject_suffix(verboseAdditionalFontNameSuffix, ps_suffix, short_family) n.rename_font(font)