From f530e22e2380a3d1adfdc67575a9c386d1137965 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Wed, 13 Nov 2024 15:48:11 +0100 Subject: [PATCH] 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 --- font-patcher | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/font-patcher b/font-patcher index 967ea4417..acbac12f7 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.7" +script_version = "4.14.9" version = "3.2.1" projectName = "Nerd Fonts" @@ -1568,7 +1568,7 @@ class font_patcher: elif sym_attr['align'] == 'c': if overlap_width > 0: x_align_distance -= overlap_width / 2 - elif sym_attr['align'] == 'r': + elif sym_attr['align'] == 'r' and not self.args.nonmono: # Check and correct overlap; it can go wrong if we have a xy-ratio limit target_xmax = (self.font_dim['xmin'] + self.font_dim['width']) * self.get_target_width(stretch) target_xmax += overlap_width