From 25ee48c0c3d105c080b9f7c4cdabfff136eb8760 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Wed, 30 Oct 2024 12:54:24 +0100 Subject: [PATCH] font-patcher: Fix weather icons scale for 'other' icons [why] A lot of icons that do not represent a 'weather state' but rather a 'weather event' are in the 'weather state' scaling group which scales the icons waaaay down. This makes those icons almost unusable in stand alone use cases. [how] Put all the extra icons into a new scaling group that is defined before the weather state scaling group and thus takes precedence. Split the final scaling group to have some icons on individual scale. Fixes: #1708 Signed-off-by: Fini Jastrow --- font-patcher | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/font-patcher b/font-patcher index bc6dba1768..967ea44172 100755 --- a/font-patcher +++ b/font-patcher @@ -6,7 +6,7 @@ from __future__ import absolute_import, print_function, unicode_literals # Change the script version when you edit this script: -script_version = "4.14.6" +script_version = "4.14.7" version = "3.2.1" projectName = "Nerd Fonts" @@ -1071,6 +1071,8 @@ class font_patcher: range(0xf095, 0xf0b0 + 1), # moon phases range(0xf0b7, 0xf0c3 + 1), # wind strengths [0xf06e, 0xf070 ], # solar/lunar eclipse + [0xf051, 0xf052, 0xf0c9, 0xf0ca, 0xf072 ], # sun/moon up/down + [0xf049, 0xf056, 0xf071, *range(0xf073, 0xf07c + 1), 0xf08a], # other things # Note: Codepoints listed before that are also in the following range # will take the scaling of the previous group (the ScaleGroups are # searched through in definition order). @@ -1078,7 +1080,12 @@ class font_patcher: # _will_ include all glyphs in its definition: Make sure the exempt # glyphs from above are smaller (do not extend) the combined bounding # box of this range: - range(0xf000, 0xf0cb + 1), # lots of clouds and other (Please read note above!) + [ *range(0xf000, 0xf041 + 1), + *range(0xf064, 0xf06d + 1), + *range(0xf07d, 0xf083 + 1), + *range(0xf085, 0xf086 + 1), + *range(0xf0b2, 0xf0b6 + 1) + ], # lots of clouds (weather states) (Please read note above!) ]} MDI_SCALE_LIST = None # Maybe later add some selected ScaleGroups