font-patcher: Fix progressbars

[why]
There were again multiple lines for some glyph sets, where the patching
happens in chunks. I thought I fixed that (having only one line/bar per
glyph set) but obviously that is broken.

[how]
Move the output of the line break - that happens on the start of a new
set - to the correct position.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
Fini Jastrow 2026-08-22 12:15:21 +02:00
parent b894ea7803
commit 50d375afcd

View file

@ -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.27.2"
script_version = "4.27.3"
version = "3.5.1"
projectName = "Nerd Fonts"
@ -1606,6 +1606,8 @@ class font_patcher:
indexoffset = self.copy_glyphs_last['maximum']
else:
indexoffset = 0
if self.args.progressbars and len(self.copy_glyphs_last['header']):
sys.stdout.write("\n")
for index, sym_glyph in enumerate(symbolFontSelection):
@ -1862,8 +1864,6 @@ class font_patcher:
# end for
self.copy_glyphs_last['header'] = progressHeader
self.copy_glyphs_last['maximum'] = glyphSetLength + indexoffset
if self.args.progressbars and len(self.copy_glyphs_last['header']):
sys.stdout.write("\n")
def set_sourcefont_glyph_widths(self):