mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-25 03:32:02 +02:00
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 <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
300890327a
commit
f530e22e23
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user