From 17c835c63054054231af68b70af9e2c4482c0024 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Thu, 20 Apr 2023 16:02:41 +0200 Subject: [PATCH] Select specific shortening mode for some fonts [why] Most fonts can run with the full naming (--makegroups 1). But for some (especially with full fledged subfamilies) the names become too long. Here we need to select more shortening. [how] This can be either done/stored in the font-patcher script, but if you need shortening (and which) still depends on what set of fonts you want to patch. So instead we make it a config.cfg option of the unpatched-fonts. [note] Findings: 3270 2 Agave 1 AnonymousPro 1 Arimo 1 Aurulent 1 BigBlueTerminal 1 BitstreamVera too long, and has RFM CascadiaCove 4 CodeNewRoman 1 Cousine 1 DaddyTimeMono 1 DejaVuSansMono 1 DroidSansMono 1 FantasqueSansMono 1 FiraCode 2 FiraMono 1 Gohu 1 Go-Mono 1 Hack 1 Hasklig 2 HeavyData 1 Hermit 1 iA-Writer PROBLEM Quattro / Duospace IBMPlexMono 1 Inconsolata 1 InconsolataGo 1 InconsolataLGC 1 Iosevka 4 (would also work with 3, but keep same with Term) IosevkaTerm 4 JetBrainsMono 4 Lekton 1 LiberationMono 1 Lilex 1 Meslo 1 Monofur 1 Monoid 1 Mononoki 1 MPlus 2, latX -> 3 NerdFontsSymbolsOnly 1 Noto 5, but!! "ExtraCondensed ExtraLight Italic" OpenDyslexic 1 Overpass 2 ProFont 1 ProggyClean 1 RobotoMono 3 ShareTechMono 1 SourceCodePro 4 SpaceMono 1 Terminus 1 Tinos 1 Ubuntu 2 UbuntuMono 2 VictorMono 4 Signed-off-by: Fini Jastrow --- src/unpatched-fonts/3270/config.cfg | 1 + src/unpatched-fonts/CascadiaCode/config.cfg | 1 + src/unpatched-fonts/FiraCode/config.cfg | 1 + src/unpatched-fonts/Hasklig/config.cfg | 1 + src/unpatched-fonts/Iosevka/config.cfg | 1 + src/unpatched-fonts/IosevkaTerm/config.cfg | 1 + src/unpatched-fonts/JetBrainsMono/config.cfg | 1 + src/unpatched-fonts/MPlus/M_Plus_code_latin_expanded/config.cfg | 1 + src/unpatched-fonts/MPlus/config.cfg | 1 + src/unpatched-fonts/Noto/config.cfg | 1 + src/unpatched-fonts/Overpass/config.cfg | 1 + src/unpatched-fonts/RobotoMono/config.cfg | 1 + src/unpatched-fonts/SourceCodePro/config.cfg | 1 + src/unpatched-fonts/Ubuntu/config.cfg | 2 +- src/unpatched-fonts/UbuntuMono/config.cfg | 2 +- src/unpatched-fonts/VictorMono/config.cfg | 1 + 16 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/unpatched-fonts/3270/config.cfg create mode 100644 src/unpatched-fonts/JetBrainsMono/config.cfg create mode 100644 src/unpatched-fonts/MPlus/M_Plus_code_latin_expanded/config.cfg create mode 100644 src/unpatched-fonts/MPlus/config.cfg create mode 100644 src/unpatched-fonts/Noto/config.cfg create mode 100644 src/unpatched-fonts/Overpass/config.cfg create mode 100644 src/unpatched-fonts/RobotoMono/config.cfg create mode 100644 src/unpatched-fonts/VictorMono/config.cfg diff --git a/src/unpatched-fonts/3270/config.cfg b/src/unpatched-fonts/3270/config.cfg new file mode 100644 index 000000000..f397cae70 --- /dev/null +++ b/src/unpatched-fonts/3270/config.cfg @@ -0,0 +1 @@ +config_patch_flags="--makegroups 2" diff --git a/src/unpatched-fonts/CascadiaCode/config.cfg b/src/unpatched-fonts/CascadiaCode/config.cfg index b54ec6e58..05f4f1cae 100644 --- a/src/unpatched-fonts/CascadiaCode/config.cfg +++ b/src/unpatched-fonts/CascadiaCode/config.cfg @@ -1,2 +1,3 @@ config_rfn="Cascadia Code" config_rfn_substitue="Caskaydia Cove" +config_patch_flags="--makegroups 4" diff --git a/src/unpatched-fonts/FiraCode/config.cfg b/src/unpatched-fonts/FiraCode/config.cfg index 53c38882b..11945eed0 100644 --- a/src/unpatched-fonts/FiraCode/config.cfg +++ b/src/unpatched-fonts/FiraCode/config.cfg @@ -1 +1,2 @@ config_has_powerline=1 +config_patch_flags="--makegroups 2" diff --git a/src/unpatched-fonts/Hasklig/config.cfg b/src/unpatched-fonts/Hasklig/config.cfg index edfda626e..869e8bd6e 100644 --- a/src/unpatched-fonts/Hasklig/config.cfg +++ b/src/unpatched-fonts/Hasklig/config.cfg @@ -1,3 +1,4 @@ config_has_powerline=1 config_rfn=Hasklig config_rfn_substitue=Hasklug +config_patch_flags="--makegroups 2" diff --git a/src/unpatched-fonts/Iosevka/config.cfg b/src/unpatched-fonts/Iosevka/config.cfg index 53c38882b..32c1cec77 100644 --- a/src/unpatched-fonts/Iosevka/config.cfg +++ b/src/unpatched-fonts/Iosevka/config.cfg @@ -1 +1,2 @@ config_has_powerline=1 +config_patch_flags="--makegroups 4" diff --git a/src/unpatched-fonts/IosevkaTerm/config.cfg b/src/unpatched-fonts/IosevkaTerm/config.cfg index 53c38882b..32c1cec77 100644 --- a/src/unpatched-fonts/IosevkaTerm/config.cfg +++ b/src/unpatched-fonts/IosevkaTerm/config.cfg @@ -1 +1,2 @@ config_has_powerline=1 +config_patch_flags="--makegroups 4" diff --git a/src/unpatched-fonts/JetBrainsMono/config.cfg b/src/unpatched-fonts/JetBrainsMono/config.cfg new file mode 100644 index 000000000..bf003486c --- /dev/null +++ b/src/unpatched-fonts/JetBrainsMono/config.cfg @@ -0,0 +1 @@ +config_patch_flags="--makegroups 4" diff --git a/src/unpatched-fonts/MPlus/M_Plus_code_latin_expanded/config.cfg b/src/unpatched-fonts/MPlus/M_Plus_code_latin_expanded/config.cfg new file mode 100644 index 000000000..c68e3cf15 --- /dev/null +++ b/src/unpatched-fonts/MPlus/M_Plus_code_latin_expanded/config.cfg @@ -0,0 +1 @@ +config_patch_flags="--makegroups 3" diff --git a/src/unpatched-fonts/MPlus/config.cfg b/src/unpatched-fonts/MPlus/config.cfg new file mode 100644 index 000000000..f397cae70 --- /dev/null +++ b/src/unpatched-fonts/MPlus/config.cfg @@ -0,0 +1 @@ +config_patch_flags="--makegroups 2" diff --git a/src/unpatched-fonts/Noto/config.cfg b/src/unpatched-fonts/Noto/config.cfg new file mode 100644 index 000000000..152146fbe --- /dev/null +++ b/src/unpatched-fonts/Noto/config.cfg @@ -0,0 +1 @@ +config_patch_flags="--makegroups 5" diff --git a/src/unpatched-fonts/Overpass/config.cfg b/src/unpatched-fonts/Overpass/config.cfg new file mode 100644 index 000000000..f397cae70 --- /dev/null +++ b/src/unpatched-fonts/Overpass/config.cfg @@ -0,0 +1 @@ +config_patch_flags="--makegroups 2" diff --git a/src/unpatched-fonts/RobotoMono/config.cfg b/src/unpatched-fonts/RobotoMono/config.cfg new file mode 100644 index 000000000..c68e3cf15 --- /dev/null +++ b/src/unpatched-fonts/RobotoMono/config.cfg @@ -0,0 +1 @@ +config_patch_flags="--makegroups 3" diff --git a/src/unpatched-fonts/SourceCodePro/config.cfg b/src/unpatched-fonts/SourceCodePro/config.cfg index 7e1a4688b..14213ca37 100644 --- a/src/unpatched-fonts/SourceCodePro/config.cfg +++ b/src/unpatched-fonts/SourceCodePro/config.cfg @@ -1,3 +1,4 @@ config_has_powerline=1 config_rfn=Source config_rfn_substitue=Sauce +config_patch_flags="--makegroups 4" diff --git a/src/unpatched-fonts/Ubuntu/config.cfg b/src/unpatched-fonts/Ubuntu/config.cfg index e9f08b8c4..f397cae70 100644 --- a/src/unpatched-fonts/Ubuntu/config.cfg +++ b/src/unpatched-fonts/Ubuntu/config.cfg @@ -1 +1 @@ -config_has_powerline=0 +config_patch_flags="--makegroups 2" diff --git a/src/unpatched-fonts/UbuntuMono/config.cfg b/src/unpatched-fonts/UbuntuMono/config.cfg index e9f08b8c4..f397cae70 100644 --- a/src/unpatched-fonts/UbuntuMono/config.cfg +++ b/src/unpatched-fonts/UbuntuMono/config.cfg @@ -1 +1 @@ -config_has_powerline=0 +config_patch_flags="--makegroups 2" diff --git a/src/unpatched-fonts/VictorMono/config.cfg b/src/unpatched-fonts/VictorMono/config.cfg new file mode 100644 index 000000000..bf003486c --- /dev/null +++ b/src/unpatched-fonts/VictorMono/config.cfg @@ -0,0 +1 @@ +config_patch_flags="--makegroups 4"