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
Mickaël Schoentgen
52e855e4a4
Use the 'with' context manager when dealing with files
2018-10-01 08:42:45 +02:00
Cosimo Lupo
c5c161c055
t1Lib: add 'kind' argument to T1Font constructor
...
fixes issue introduced with last commit
b1fd6fbbcd
t1Lib_test.py::test_parse_lwfn was relying on 'path' being None.
2018-04-13 12:55:24 +02:00
Cosimo Lupo
b1fd6fbbcd
t1Lib: make 'path' argument required
2018-04-12 15:21:25 +02:00
justvanrossum
52ea50f4bc
allow an encoding to be specified when parsing a Type 1 font
2018-04-12 14:39:44 +02:00
Cosimo Lupo
fb6efd0f23
[t1Lib] use macRes.ResourceReader to read 'POST' resources from LWFN;
...
add comment about Res.FSpCreateResFile being deprecated since OS X 10.5
(a resource file writer would be nice, by low priority)
2015-10-26 04:40:04 +00:00
Cosimo Lupo
6c51e3de97
[t1Lib] fix TypeError in writeOther func
2015-10-22 19:55:34 +01:00
Cosimo Lupo
aa7753cebf
[t1Lib] add 'dohex' kwarg to saveAs (it only applies to 'OTHER' type (PFA))
2015-10-22 19:55:34 +01:00
Cosimo Lupo
07042e7c88
[t1Lib] fix longToString function
2015-10-22 19:55:33 +01:00
Cosimo Lupo
6523449cc8
[t1Lib] mv t1Lib.py t1Lib/__init__.py
2015-10-22 19:55:33 +01:00