mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-11-25 16:47:37 +02:00
Fix weather icons cloud scaling
[why] The scaling of the clouds is not identical but depends on the actual glyph bounding box. But the clouds should all have the same scaling to be 'interchangeable' [how] Put all clouds in a ScaleGroup. Also add missing Celsius degrees glyph to other degree glyphs group. Fixes: #1107 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
dfffc615ad
commit
68b381eac5
17
font-patcher
17
font-patcher
@ -899,11 +899,22 @@ class font_patcher:
|
|||||||
0xf0ca, # dash
|
0xf0ca, # dash
|
||||||
]}
|
]}
|
||||||
WEATH_SCALE_LIST = {'ScaleGroups': [
|
WEATH_SCALE_LIST = {'ScaleGroups': [
|
||||||
|
[0xf03c, 0xf042, 0xf045 ], # degree signs
|
||||||
|
[0xf043, 0xf044, 0xf048, 0xf04b, 0xf04c, 0xf04d, 0xf057, 0xf058, 0xf087, 0xf088], # arrows
|
||||||
|
range(0xf053, 0xf055 + 1), # thermometers
|
||||||
|
[*range(0xf059, 0xf061 + 1), 0xf0b1], # wind directions
|
||||||
|
range(0xf089, 0xf094 + 1), # clocks
|
||||||
range(0xf095, 0xf0b0 + 1), # moon phases
|
range(0xf095, 0xf0b0 + 1), # moon phases
|
||||||
range(0xf0b7, 0xf0c3 + 1), # wind strengths
|
range(0xf0b7, 0xf0c3 + 1), # wind strengths
|
||||||
range(0xf053, 0xf055 + 1), # thermometer
|
[0xf06e, 0xf070 ], # solar/lunar eclipse
|
||||||
[0xf06e, 0xf070 ], # solar eclipse
|
# Note: Codepoints listed before that are also in the following range
|
||||||
[0xf042, 0xf045 ], # degree sign
|
# 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!)
|
||||||
]}
|
]}
|
||||||
MDI_SCALE_LIST = {'ScaleGlyph': 0xf068d, # 'solid' fills complete design space
|
MDI_SCALE_LIST = {'ScaleGlyph': 0xf068d, # 'solid' fills complete design space
|
||||||
'GlyphsToScale+': [
|
'GlyphsToScale+': [
|
||||||
|
Loading…
Reference in New Issue
Block a user