From 95f29260b06fa359dc2a1c1925336a6a974b557f Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Wed, 11 Jan 2023 18:55:14 +0100 Subject: [PATCH] font-patcher: Prepare for code change No functional change. Signed-off-by: Fini Jastrow --- font-patcher | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/font-patcher b/font-patcher index 1783ed1e0..953a794fe 100755 --- a/font-patcher +++ b/font-patcher @@ -978,7 +978,11 @@ class font_patcher: # For monospaced fonts all chars need to be maximum 'one' space wide # other fonts allows double width glyphs (for 'pa', 'x' scale target is still one space) - target_width = self.font_dim['width'] * (1.0 if self.args.single or stretch != 'pa' else 2.0) + if self.args.single or stretch != 'pa': + relative_width = 1.0 + else: + relative_width = 2.0 + target_width = self.font_dim['width'] * relative_width scale_ratio_x = target_width / sym_dim['width'] # font_dim['height'] represents total line height, keep our symbols sized based upon font's em