Skip to content

Commit d4aa6cc

Browse files
committed
commands.py: use name record’s function to get string
1 parent 4a2f518 commit d4aa6cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/fontline/commands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def get_font_report(fontpath):
4141
# The version string
4242
for needle in namerecord_list:
4343
if needle.langID == 0 and needle.nameID == 5:
44-
report_string = report_string + str(needle.string) + "\n"
44+
report_string += needle.toStr() + "\n"
45+
break
4546
# The SHA1 string
4647
report_string = report_string + "SHA1: " + get_sha1(fontpath) + "\n\n"
4748
# The vertical metrics strings

0 commit comments

Comments
 (0)