mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
font-patcher: Fix block scaling
[why] The greys seem to be too small. [how] Separate the blocks into real block, greys and quads. They all have different scales in Hack which we use to patch in. If we do not patch in and just scale existing glyphs these three groups should always be sufficient. Note that in Hack the quad block 2597 is too small; we could have scaled it together with the blocks group, but that would raise issues with well behaved fonts that we just scale and not patch in. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
964a0c8eb3
commit
e31bdaa071
1 changed files with 8 additions and 2 deletions
10
font-patcher
10
font-patcher
|
@ -836,7 +836,11 @@ class font_patcher:
|
||||||
'default': {'align': 'c', 'valign': 'c', 'stretch': 'pa', 'params': {'careful': True}}
|
'default': {'align': 'c', 'valign': 'c', 'stretch': 'pa', 'params': {'careful': True}}
|
||||||
}
|
}
|
||||||
SYM_ATTR_BOX = {
|
SYM_ATTR_BOX = {
|
||||||
'default': {'align': 'c', 'valign': 'c', 'stretch': 'xy', 'params': {'overlap': 0.02, 'dont_copy': box_keep}}
|
'default': {'align': 'c', 'valign': 'c', 'stretch': 'xy', 'params': {'overlap': 0.02, 'dont_copy': box_keep}},
|
||||||
|
# No overlap with checkered greys (commented out because that raises problems on rescaling clients)
|
||||||
|
# 0x2591: {'align': 'c', 'valign': 'c', 'stretch': 'xy', 'params': {'dont_copy': box_keep}},
|
||||||
|
# 0x2592: {'align': 'c', 'valign': 'c', 'stretch': 'xy', 'params': {'dont_copy': box_keep}},
|
||||||
|
# 0x2593: {'align': 'c', 'valign': 'c', 'stretch': 'xy', 'params': {'dont_copy': box_keep}},
|
||||||
}
|
}
|
||||||
CUSTOM_ATTR = {
|
CUSTOM_ATTR = {
|
||||||
# 'pa' == preserve aspect ratio
|
# 'pa' == preserve aspect ratio
|
||||||
|
@ -889,7 +893,9 @@ class font_patcher:
|
||||||
BOX_SCALE_LIST = {'ScaleGroups': [
|
BOX_SCALE_LIST = {'ScaleGroups': [
|
||||||
[*range(0x2500, 0x2570 + 1), *range(0x2574, 0x257f + 1)], # box drawing
|
[*range(0x2500, 0x2570 + 1), *range(0x2574, 0x257f + 1)], # box drawing
|
||||||
range(0x2571, 0x2573 + 1), # diagonals
|
range(0x2571, 0x2573 + 1), # diagonals
|
||||||
range(0x2580, 0x259f + 1), # blocks
|
[*range(0x2580, 0x2590 + 1), 0x2594, 0x2595], # blocks
|
||||||
|
range(0x2591, 0x2593 + 1), # greys
|
||||||
|
range(0x2594, 0x259f + 1), # quards (Note: quard 2597 in Hack is wrong, scales like block!)
|
||||||
]}
|
]}
|
||||||
CODI_SCALE_LIST = {'ScaleGroups': [
|
CODI_SCALE_LIST = {'ScaleGroups': [
|
||||||
range(0xea99, 0xeaa1 + 1), # arrows
|
range(0xea99, 0xeaa1 + 1), # arrows
|
||||||
|
|
Loading…
Reference in a new issue