From c3e399aca65149334fc12f7db9a62d146e112cfe Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Thu, 16 May 2024 23:35:42 +0100 Subject: [PATCH] Another overdued python 3 string-formatting, in font-info.py --- examples/font-info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/font-info.py b/examples/font-info.py index b823697..7373916 100644 --- a/examples/font-info.py +++ b/examples/font-info.py @@ -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))