Just van Rossum
327b05d8c0
[designspaceLib] [t1Lib] [misc.macRes] fix some cases where pathlib.Path objects were not accepted ( #1421 )
...
* fix two cases where pathlib.Path objects were not accepted
* make macRes reader accept os.PathLike objects
* use __fspath__ explicitly to support os.PathLike paths
* use __fspath__ explicitly to support os.PathLike paths
* convert tmpdir to str
* only test pathlib.Path on Python 3.6 and up
2018-12-30 12:07:05 +01:00
Cosimo Lupo
e4ab85e90a
macRes: fix OverflowError while reading resource on 32-bit Python
...
Fixes https://github.com/behdad/fonttools/issues/436
2015-12-15 11:01:26 +00:00
Cosimo Lupo
f8e8ea6e7f
[macRes] use tostr(s, encoding='mac-roman') for resource types and names
2015-10-26 14:38:20 +00:00
Cosimo Lupo
2f212ac59a
[macRes] add default value [] to self.get(resType)
...
ops!
2015-10-26 05:16:22 +00:00
Cosimo Lupo
db70dee031
[macRes] new module and ResourceReader to read Mac resource/data forks
...
inspired by Sascha Brawer's GNU Classpath Java implementation
https://gcc.gnu.org/viewvc/gcc/trunk/libjava/classpath/gnu/java/awt/font/opentype/MacResourceFork.java?view=co&content-type=text%2Fplain
2015-10-26 04:40:00 +00:00