Skip to content

Commit

Permalink
Another overdued python 3 string-formatting, in font-info.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HinTak committed May 16, 2024
1 parent bd91bb4 commit c3e399a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/font-info.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

face = Face(sys.argv[1])

print ('Family name: {}'.format(face.family_name))
print ('Style name: {}'.format(face.style_name))
print ('Family name: {}'.format(face.family_name.decode("ascii", errors='ignore')))
print ('Style name: {}'.format(face.style_name.decode("ascii", errors='ignore')))
print ('Charmaps: {}'.format([charmap.encoding_name for charmap in face.charmaps]))
print ('')
print ('Face number: {}'.format(face.num_faces))
Expand Down

0 comments on commit c3e399a

Please sign in to comment.