Fix encoding conversion in CFF
Was broken with Python 3 and Salsa-Regular.otf for example.
This commit is contained in:
parent
92af6a58b3
commit
617ec41d4c
@ -1610,7 +1610,7 @@ class IndexedStrings(object):
|
|||||||
if file is None:
|
if file is None:
|
||||||
strings = []
|
strings = []
|
||||||
else:
|
else:
|
||||||
strings = [tostr(s) for s in Index(file)]
|
strings = [tostr(s, encoding="latin1") for s in Index(file)]
|
||||||
self.strings = strings
|
self.strings = strings
|
||||||
|
|
||||||
def getCompiler(self):
|
def getCompiler(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user