From 35d3cfeff572c91a0e54f9e5d7fe8a02e4b88c51 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Thu, 1 Sep 2022 09:21:22 +0200 Subject: [PATCH] font-patcher: Fix generated font name output [why] After generating the patched font only a shortened name is displayed. [how] Obviously the two output lines were swapped... If the fullname is None, and then output the fullname? :-} Signed-off-by: Fini Jastrow --- font-patcher | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/font-patcher b/font-patcher index e99a7013e..aa644e02b 100755 --- a/font-patcher +++ b/font-patcher @@ -256,11 +256,11 @@ class font_patcher: if self.sourceFont.fullname != None: outfile = self.args.outputdir + "/" + self.sourceFont.fullname + self.extension self.sourceFont.generate(outfile, flags=(str('opentype'), str('PfEd-comments'))) - message = "\nGenerated: {} in '{}'".format(self.sourceFont.fontname, outfile) + message = "\nGenerated: {} in '{}'".format(self.sourceFont.fullname, outfile) else: outfile = self.args.outputdir + "/" + self.sourceFont.cidfontname + self.extension self.sourceFont.generate(outfile, flags=(str('opentype'), str('PfEd-comments'))) - message = "\nGenerated: {} in '{}'".format(self.sourceFont.fullname, outfile) + message = "\nGenerated: {} in '{}'".format(self.sourceFont.fontname, outfile) # Adjust flags that can not be changed via fontforge try: