convert bytes to str

This commit is contained in:
derwind 2022-01-08 23:34:22 +09:00
parent 892322aaff
commit 176bae31ed

View File

@ -365,6 +365,7 @@ def suckfont(data, encoding="ascii"):
m = re.search(br"/FontName\s+/([^ \t\n\r]+)\s+def", data)
if m:
fontName = m.group(1)
fontName = fontName.decode()
else:
fontName = None
interpreter = PSInterpreter(encoding=encoding)