497 Commits

Author SHA1 Message Date
Ben Kiel
e9df5bec13 fix writing lib with lxml 2018-06-14 09:22:24 -05:00
Tal Leming
5f39650425 Write the note the old way. 2018-06-14 08:43:30 -04:00
Tal Leming
4c52a516f4 Height before width. 2018-06-14 08:39:53 -04:00
Tal Leming
3cfb942441 Trick lxml into not writing self-closing tags for outline and contour elements. 2018-06-14 08:36:52 -04:00
Ben Kiel
3ae4f10092 Make attrs OrderedDicts
Get encoding right for py2 and py3
2018-06-14 00:31:29 -05:00
Tal Leming
213b90a4ba Found some attrib type errors. 2018-06-13 21:34:41 -04:00
Ben Kiel
c8608c2fd7 Need to pass an OrderedDict to get correct order. 2018-06-13 16:42:33 -05:00
Ben Kiel
c54c54b2ce Remove slice from splitlines that isn't needed for lxml 2018-06-13 16:22:40 -05:00
Ben Kiel
f3b0703d03 Need to force text to a string and not bytes for Py3 2018-06-13 15:48:29 -05:00
Tal Leming
739ec8a169 Use lxml for writing. 2018-06-13 14:22:51 -04:00
Tal Leming
382271c706 Typo and fallback. 2018-06-13 12:46:40 -04:00
Tal Leming
5867e9bc8b Don't rebuild the list of existing file names each time a glyph is written. That's expensive. 2018-06-13 12:37:49 -04:00
Tal Leming
efd2575a6a Remove some validation escaping. 2018-06-12 20:40:32 -04:00
Tal Leming
34681b8a38 Remove some validation escaping when it comes to file existence tests. Those should always fail. 2018-06-12 17:40:25 -04:00
Ben Kiel
f81e9b8c6f Fix tests, needed named arg. 2018-06-12 09:15:36 -05:00
Ben Kiel
83303d56a7 Add in more valiator switches 2018-06-11 23:13:00 -05:00
Tal Leming
4c75212ee6 Relax the point data validation. 2018-06-11 21:44:50 -04:00
Ben Kiel
a7aa115fd8 Update glyphLib.
Update tests.
Fix errors.
Add documenation.
2018-06-11 15:03:54 -05:00
Ben Kiel
5f8b600221 Catch additonal calls to GlyphSet that need validation. Inital start of adding validation on/off to GlyphSet 2018-06-11 12:05:36 -05:00
Ben Kiel
42b94f53fa UFOWriter validation turned on by default. 2018-06-11 11:59:16 -05:00
Ben Kiel
b8d4b5562b UFOReader validation turned off by default. Starting on UFOWriter 2018-06-11 11:07:29 -05:00
Miguel Sousa
3e8ca172ab Small fixes 2018-04-03 17:36:41 -07:00
Andy Clymer
d53d12a7cc Fixed tests to match the changes to group names 2018-01-29 12:49:38 -05:00
Andy Clymer
76d0fa276e When converting kerning group names, remove the older '@MMK' prefixes 2018-01-29 12:30:12 -05:00
Frederik Berlaen
4182100744 updating tests 2018-01-26 23:27:31 +01:00
Frederik Berlaen
4549c6a2d4 an anchor is a move point with a name
check if the point has a name

if no name is given its a single move point in a contour
2018-01-26 23:18:25 +01:00
Cosimo Lupo
37c4777fab
Merge pull request #103 from adrientetar/optimize
Some optimizations
2017-11-17 12:39:14 +00:00
Adrien Tétar
8946a5f753 More 2017-11-17 13:18:44 +01:00
Masaya Nakamura
f73202b00c
Fix typo 2017-11-09 00:40:08 +09:00
Adrien Tétar
d8d366de7e More 2017-11-05 15:31:58 +01:00
Adrien Tétar
a2ffce8596 typo 2017-11-04 22:59:01 +01:00
Adrien Tétar
99c5c4fff5 Use dedicated Error 2017-11-04 22:56:12 +01:00
Adrien Tétar
f0d67574ab Some optimizations to glifLib 2017-11-04 22:18:20 +01:00
Cosimo Lupo
3d891631d9 Bump version: 2.1.1 → 2.1.2.dev0 2017-10-25 12:01:13 +01:00
Cosimo Lupo
55c2be52bd Release 2.1.1 2017-10-25 12:00:47 +01:00
Erik van Blokland
f726d88bcb Remove TTVendorCode. Not sure if "NONE" is a valid one, but here it is. 2017-10-25 11:36:23 +02:00
Erik van Blokland
5408815f09 This removes 4 glyphs borrowed from Adobe Sans. These glyphs are not used in any tests.
All licenses, copyright strings, notices, trademarks, removed and pointing to the license of the package.
2017-10-25 11:34:06 +02:00
Cosimo Lupo
9c72e09e18 [validators] fix fontLibValidator doctests; make errors more verbose 2017-10-19 18:29:05 +02:00
Cosimo Lupo
25c84dcb84 Test fontLibValidator with either bytes or unicode
This passes on my local machine with both 2.7 and 3.6.
I can't seem to reproduce this error:

https://github.com/unified-font-object/ufoLib/issues/98
2017-10-19 17:34:34 +02:00
Frederik Berlaen
627f997ddb remove raise errors when the formatVersion < 3
see https://github.com/unified-font-object/ufoLib/issues/91

Im going to ahead on this as no one replied...
2017-09-26 21:58:26 +02:00
Cosimo Lupo
fb1eef601f minor 2017-08-07 18:40:36 +01:00
Chris Simpkins
659299a318 detect incorrect metainfo.plist formatVersion type before version testing (#83) 2017-07-27 22:18:42 -04:00
Cosimo Lupo
ab9985ee3a
Bump version: 2.1.0 → 2.1.1.dev0 2017-05-24 18:39:50 +01:00
Cosimo Lupo
1c5f70c873
Release 2.1.0 2017-05-24 18:38:10 +01:00
Cosimo Lupo
16abd8130c
Add bump_version and release commands to setup.py 2017-05-24 18:37:52 +01:00
Cosimo Lupo
e883885c3a
[pointPen] add ReverseContourPointPen from defcon
https://github.com/typesupply/defcon/issues/106
2017-04-25 10:50:21 +01:00
Cosimo Lupo
d952f9a74f
[pointPen] make PointToSegmentPen.addComponent accept/ignore **kwargs
The beginPath and addPoint methods of PointToSegmentPen already take
extra **kwargs (via BasePointToSegmentPen); only the addComponent method
does not.
This makes it raise TypeError when an unknown keyword argument is passed
(e.g. 'identifier' for UFO3 objects).
For the PointToSegmentPen, which translates between the PointPen and
the SegmentPen API, it is ok if we only use the arguments that have
an equivalent in the SegmentPen API, and silently discard the **kwargs.
2017-04-25 10:23:38 +01:00
Denis Moyogo Jacquerye
6ca25ce193 Merge pull request #64 from benkiel/master
Remove duplicate variable assignment
2017-03-06 13:39:29 +00:00
Ben Kiel
0bc4ab9497 Remove duplicate variable assignment 2017-02-27 10:18:02 -06:00
Cosimo Lupo
869a8f6a45
[pointPen] add **kwargs to AbstractPointPen's beginPath and addCompoment too 2017-02-27 16:04:47 +00:00