Skip to content

Commit

Permalink
font-patcher: Fix --xavgcharwidth with --quiet
Browse files Browse the repository at this point in the history
[why]
--xavgcharwidth does not work when --quiet is given.

[how]
Correct indent level ....

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
  • Loading branch information
Finii committed Apr 12, 2023
1 parent c8fdda9 commit 9defc59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions font-patcher
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from __future__ import absolute_import, print_function, unicode_literals

# Change the script version when you edit this script:
script_version = "3.7.0"
script_version = "3.7.1"

version = "2.3.3"
projectName = "Nerd Fonts"
Expand Down Expand Up @@ -440,8 +440,8 @@ class font_patcher:
if d_xwidth != xwidth:
if not self.args.quiet:
print("Changing xAvgCharWidth from {} to {}{}".format(d_xwidth, xwidth, xwidth_s))
dest_font.putshort(xwidth, 'avgWidth')
dest_font.reset_table_checksum()
dest_font.putshort(xwidth, 'avgWidth')
dest_font.reset_table_checksum()
source_font.find_head_table(idx)
dest_font.find_head_table(idx)
if source_font.flags & 0x08 == 0 and dest_font.flags & 0x08 != 0:
Expand Down

0 comments on commit 9defc59

Please sign in to comment.