Fix encoding conversion in CFF

Was broken with Python 3 and Salsa-Regular.otf for example.
This commit is contained in:
Behdad Esfahbod 2013-12-10 18:54:26 -05:00
parent 92af6a58b3
commit 617ec41d4c

View File

@ -1610,7 +1610,7 @@ class IndexedStrings(object):
if file is None:
strings = []
else:
strings = [tostr(s) for s in Index(file)]
strings = [tostr(s, encoding="latin1") for s in Index(file)]
self.strings = strings
def getCompiler(self):