commit | 617ec41d4c2db2011e62cadf619e2a8b07aec93e | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Tue Dec 10 18:54:26 2013 -0500 |
committer | Behdad Esfahbod <behdad@behdad.org> | Tue Dec 10 18:54:26 2013 -0500 |
tree | 8cbac619951bbc23950df334e615378fe890cafa | |
parent | 92af6a58b3cdcbe64c7c66f64e3485bc6f118278 [diff] |
Fix encoding conversion in CFF Was broken with Python 3 and Salsa-Regular.otf for example.
diff --git a/Lib/fontTools/cffLib.py b/Lib/fontTools/cffLib.py index e3b00c9..049ff97 100644 --- a/Lib/fontTools/cffLib.py +++ b/Lib/fontTools/cffLib.py
@@ -1610,7 +1610,7 @@ 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):