Skip to content

Commit f530e22

Browse files
committed
font-patcher: Correct handling of right aligned proportional icons
[why] The right align check does produce wrong results if a proportional font is generated. [how] Just skip the aspect ratio alignment re-check and leave the work to the proportional font shifting that is done afterwards anyhow. Fixes: #1695 Signed-off-by: Fini Jastrow <[email protected]>
1 parent 3008903 commit f530e22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

font-patcher

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from __future__ import absolute_import, print_function, unicode_literals
77

88
# Change the script version when you edit this script:
9-
script_version = "4.14.7"
9+
script_version = "4.14.9"
1010

1111
version = "3.2.1"
1212
projectName = "Nerd Fonts"
@@ -1568,7 +1568,7 @@ class font_patcher:
15681568
elif sym_attr['align'] == 'c':
15691569
if overlap_width > 0:
15701570
x_align_distance -= overlap_width / 2
1571-
elif sym_attr['align'] == 'r':
1571+
elif sym_attr['align'] == 'r' and not self.args.nonmono:
15721572
# Check and correct overlap; it can go wrong if we have a xy-ratio limit
15731573
target_xmax = (self.font_dim['xmin'] + self.font_dim['width']) * self.get_target_width(stretch)
15741574
target_xmax += overlap_width

0 commit comments

Comments
 (0)