mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
font-patcher: Do x-scale powerline glyphs
[why] For the non-Mono variants ('Nerd Font' and 'Nerd Font Propo') the Powerline symbols are scaled in Y but the width is just kept from the symbol font, whatever that might be (and if it makes any sense). If you have for example the triangular thing (`E0B0`) it is bigger than 'one cell' and extrudes into the following cell (on 'Nerd Font'). For the other side (`E0B2`) it is even worse; it is right aligned in the current cell and so (because it is wider than one cell) it protrudes into the previous cell. [how] Just allow not only Y scaling but also X scaling for non-Mono fonts. [note] This is of relevance just for 'xy' scaling, and only the Powerline symbols do that. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
b3c079d6d3
commit
a6a5a38af5
1 changed files with 1 additions and 2 deletions
|
@ -999,8 +999,7 @@ class font_patcher:
|
|||
scale_ratio_y = scale_ratio_x
|
||||
else:
|
||||
# Keep the not-stretched direction
|
||||
if not self.args.single or not 'x' in stretch:
|
||||
# non monospaced fonts scale y, on 'y' scale request (not x)
|
||||
if not 'x' in stretch:
|
||||
scale_ratio_x = 1.0
|
||||
if not 'y' in stretch:
|
||||
scale_ratio_y = 1.0
|
||||
|
|
Loading…
Reference in a new issue