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
78ad48eaf3
Move all *_test.py modules and test data to external Tests/ folder
2017-01-16 09:14:12 +00:00
Cosimo Lupo
49bcbb916b
consistently do sys.exit(unittest.main()) in all test modules
...
So that when run as scrips they report test failures with exit code
Follow up on b7bb391033ef3255c90134da3d7aef50d2d5326d
2017-01-11 13:05:35 +00:00
Cosimo Lupo
c4e05b48b3
[t1Lib_test] forgot to add unittest.main()
...
I use py.test ;)
2015-10-26 05:23:59 +00:00
Cosimo Lupo
620db1f9a3
[t1Lib_test] also test parsing LWFN (dumped to data fork)
2015-10-26 04:40:04 +00:00
Cosimo Lupo
4b9087c000
[t1Lib] add TestT1-Regular.lwfn to testdata
2015-10-26 04:40:04 +00: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
8279095b6f
[t1Lib_test] add test cases for parsing and writing PS Type1
2015-10-22 19:55:34 +01:00
Cosimo Lupo
dfce582196
add test PS Type1 fonts in .pfa and .pfb format
2015-10-22 19:55:34 +01: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