From bf54ba666bc5640f30427f6224a77d53ba58190c Mon Sep 17 00:00:00 2001 From: MountComb <69704258+MountComb@users.noreply.github.com> Date: Thu, 20 Jun 2024 02:42:22 +0000 Subject: [PATCH] apply glyphs centering patch in #1330 --- font-patcher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/font-patcher b/font-patcher index ac72ece759..085fe13d6d 100755 --- a/font-patcher +++ b/font-patcher @@ -1547,7 +1547,7 @@ class font_patcher: x_align_distance = self.font_dim['xmin'] - sym_dim['xmin'] if sym_attr['align'] == 'c': # Center align - x_align_distance += (self.font_dim['width'] / 2) - (sym_dim['width'] / 2) + x_align_distance += (self.font_dim['width'] * self.get_target_width(stretch) / 2) - (sym_dim['width'] / 2) elif sym_attr['align'] == 'r': # Right align x_align_distance += self.font_dim['width'] * self.get_target_width(stretch) - sym_dim['width']