Merge pull request #2496 from derwind/fix-fontName-in-suckfont
Fix type of fontName in suckfont
This commit is contained in:
commit
e778f2c3f4
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user