Skip to content

Commit

Permalink
font-patcher: Fix weather icons scale for 'other' icons
Browse files Browse the repository at this point in the history
[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 <ulf.fini.jastrow@desy.de>
  • Loading branch information
Finii committed Oct 30, 2024
1 parent d3bb7e2 commit 25ee48c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions font-patcher
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -1071,14 +1071,21 @@ 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).
# But be careful, the combined bounding box for the following group
# _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

Expand Down

0 comments on commit 25ee48c

Please sign in to comment.