Tal Leming
622b7c9352
ZIPs will contain a single root directory that packages will not. Abstract this.
2016-05-03 09:59:26 -04:00
Tal Leming
45910b6131
Initial work on reading single file UFO.
...
This is a work in progress update of UFOReader and UFOWriter that
supports UFO in its package and zipped forms. Reading works. Writing is
not yet implemented.
I'm building a base file system (that lives on top of fs for now and
maybe in the long term) that the reader and writer then subclass. This
base class implements the file system interaction so that the reader
and writer can be blissfully ignorant about file systems.
Additionally, I ran into a problem with the local plistlib.py creating
an import error, so I've temporarily renamed it plistlibShim.py so that
I can continue working.
Did I mention that this is a work in progress? It's a work in progress.
2016-05-02 23:06:25 -04:00
Tal Leming
185c04220d
The UFO spec has changed with regard to kerning conflicts. Reflect this in ufoLib.
2016-04-22 13:30:28 -04:00
Tal Leming
e193b72ff3
Work through the pairs in a reliable order.
2016-03-28 07:19:21 -04:00
Tal Leming
44474ee8e5
Slight tweak to the reporting of problematic pairs.
2016-03-27 23:14:25 -04:00
Adrien Tétar
338d97c076
Merge pull request #21 from behdad/allow-duplicate-non-conflicting-kerning
...
Allow duplicate non-conflicting kerning pairs
2016-03-27 23:24:03 +02:00
Behdad Esfahbod
f5ddac0e5d
Allow duplicate non-conflicting kerning pairs
...
Fixes https://github.com/unified-font-object/ufoLib/pull/15#issuecomment-193552682
2016-03-27 13:47:15 -07:00
Cosimo Lupo
ace2a4a6bc
[glifLib] use use repr() to stringify floats for py23 compat
...
Closes #19
2016-03-17 16:06:03 +00:00
Cosimo Lupo
6dbca7fa38
[testSupport] use repr() to stringify floats for py23 compat
...
Part of fixing #19
2016-03-17 16:04:11 +00:00
Adrien Tétar
fab99c30e5
plistlib: reimplement as shim
2016-03-01 12:43:04 +01:00
Adrien Tétar
ded0d09cd1
plistlib API dispatch
2016-02-27 17:04:58 +01:00
Adrien Tétar
cb104104b0
glifLib: remove legacy workaround
2016-02-27 14:53:04 +01:00
Adrien Tétar
9e5dbff662
gliflib: use stdlib plistlib
2016-02-27 14:52:35 +01:00
Adrien Tétar
46879af112
validators: export pngSignature
...
To remove duplicate in defcon.
2016-02-21 12:11:41 +01:00
Adrien Tétar
5d89437108
pointPen: add missing GuessSmoothPointPen
2016-01-17 10:46:39 +01:00
Adrien Tétar
c6132fdd35
pointPen: add pt count in assertions
2015-12-25 23:51:26 +01:00
Adrien Tétar
67414f21ff
pointPen: add adapter pens
...
and annihilate remaining robofab dependency
2015-12-13 20:48:01 +01:00
Denis Jacquerye
d05df7eb7e
Python 2/3: replace str by basestring
2015-11-18 13:22:14 +00:00
Adrien Tétar
0d3cdb1ee4
glifLib: open files as binary to avoid line-endings normalization
2015-11-08 15:41:43 +01:00
Adrien Tétar
0b60503f4f
test: fix a test on Windows
2015-11-08 11:49:06 +01:00
Adrien Tétar
ae7ad468c0
stop importing robofab in the test suite
2015-11-08 11:33:29 +01:00
Adrien Tétar
e345fec96f
meta: remove robofab files
2015-11-08 11:11:11 +01:00
Denis Jacquerye
5b43ab5b42
ufoLib.test.test_glifLib: undo some 2to3
2015-11-06 15:11:04 +00:00
Denis Jacquerye
3be6afbf72
ufoLib.test.test_glifLib: remove test for robofab’s glyphNameToShortFileName
2015-11-06 15:06:52 +00:00
Denis Jacquerye
929ed4454c
ufoLib: drop READ_MODE and WRITE_MODE
2015-11-06 15:06:52 +00:00
Denis Jacquerye
92bf29bd70
ufoLib.glifLib: add anchors to list of attributes in description of readGlyph() and writeGlyph()
2015-11-06 15:06:51 +00:00
Denis Jacquerye
31d358af40
test_UFOConversion, test_UFO{1,2,3}: use plistlib load and dump
2015-11-06 15:06:51 +00:00
Denis Jacquerye
3df210b68f
ufoLib.test.test_glifLib: testRoundTrip() anchors don't come in the same order anymore
2015-11-06 15:06:51 +00:00
Denis Jacquerye
c643b67f08
ufoLib.glifLib: glyph.drawPoints(None) should set attr anchors
2015-11-06 15:06:51 +00:00
Denis Jacquerye
e1dd985741
ufoLib.glifLib: undo some 2to3
2015-11-06 15:06:51 +00:00
Denis Jacquerye
7deef57dd0
ufoLib.__init__: add basestring in Python3 and undo 2to3
2015-11-06 15:06:51 +00:00
Denis Jacquerye
07c10687c4
test_gliflib: new file name scheme
2015-11-06 15:06:51 +00:00
Denis Jacquerye
d70348e8a7
test_gliflib: use io.open
2015-11-06 15:06:50 +00:00
Denis Jacquerye
ab842f1e01
ufoLib.test.test_UFOConversion: absolute import
2015-11-06 15:06:50 +00:00
Denis Jacquerye
9c0c7e5177
ufoLib.test.test_UFO1, test_UFO2, test_UFO3: absolute import, unicode_literals, explicit bytes, use io.open
2015-11-06 15:06:50 +00:00
Denis Jacquerye
b6cb3738c8
ufoLib.test.testSupport, test_GLIF1 and test_GLIF2: unicode_literals, use basestring
2015-11-06 15:06:50 +00:00
Denis Jacquerye
72df478a91
ufoLib.plistlib: use basestring
2015-11-06 15:06:50 +00:00
Denis Jacquerye
c74ced8246
ufoLib.plistFromTree: utf-8 is good
2015-11-06 15:06:49 +00:00
Denis Jacquerye
ba7259a99c
ufoLib.plistFromTree: absolute import
2015-11-06 15:06:49 +00:00
Denis Jacquerye
3dabb84be5
ufoLib.xmlTreeBuilder: use io.open and basestring
2015-11-06 15:06:49 +00:00
Denis Jacquerye
77f2e022c7
ufoLib.validators: use io.open, use basestring instead of str
2015-11-06 15:06:49 +00:00
Denis Jacquerye
c6f84bdd9a
ufoLib.glifLib: use basestring instead of str
2015-11-06 15:06:49 +00:00
Denis Jacquerye
dc94aa17a7
ufoLib.glibLib: use io.StringIO, ioBytesIO, io.open
2015-11-06 15:06:49 +00:00
Denis Jacquerye
66e5ae0242
ufoLib __init__.py: use io.StringIO, io.BytesIO, and standard plistlib load and dump
2015-11-06 15:06:49 +00:00
Denis Jacquerye
41cb5a8d4c
validators: use basestring
2015-11-06 15:06:49 +00:00
Denis Jacquerye
f9ff5e5cfe
filenames: use basestring
2015-11-06 14:10:43 +00:00
Denis Jacquerye
90a5af640b
glifLib: add READ_BYTES_MODE and WRITE_BYTES_MODE
2015-11-06 14:10:42 +00:00
Denis Jacquerye
edfee17e5f
glifLib: use basestring and glyphSet maybe None in glyphNameToFileName()
2015-11-06 14:10:42 +00:00
Denis Jacquerye
607cdf9a39
ufoLib __init__: typo 'maetainfo' -> 'metainfo'
2015-11-06 14:10:42 +00:00
Denis Jacquerye
fd8440a223
validators: png signature as bytes
2015-11-06 14:10:42 +00:00