316 Commits

Author SHA1 Message Date
Tal Leming
8dc8742959 Add write time kerning group down conversion to UFOWriter.
This allows the UFO 3 up converted kerning group names to be reset to
their original names at the time of writing in UFO <= 2.
2014-02-18 11:49:26 -05:00
Tal Leming
0f6b6d741a Fix some failing tests.
I’m not sure why these were still broken.
2014-02-18 10:29:30 -05:00
Tal Leming
2a026d368f Tie the new prefixed group locating function into the converter. 2014-02-18 10:01:24 -05:00
Tal Leming
96757fc6a1 Added function that scans for known kerning group prefixes. 2014-02-18 09:48:23 -05:00
Tal Leming
837c17c323 Return a report detailing why the kerning is invalid. 2014-02-04 10:05:58 -05:00
Erik
bce5e1bc0d In order to be able to save a note with non-ascii characters to .glif, it seems necessary to change this line. We have to assume this setting has something to do with the limitations of FontLab and Python 2.3. 2013-10-27 09:35:44 +01:00
Tal Leming
ab41436934 Redundant test. Caught by Lasse Fister.
git-svn-id: http://svn.robofab.com/branches/ufo3k@576 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-05-11 18:00:18 +00:00
Tal Leming
da3a12b104 Redundant test. Caught by Lasse Fister.
git-svn-id: http://svn.robofab.com/branches/ufo3k@575 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-05-11 17:57:39 +00:00
Tal Leming
4158e6aea2 Handle the default layer test a bit more efficiently. Caught by Lasse Fister.
git-svn-id: http://svn.robofab.com/branches/ufo3k@574 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-05-11 17:53:17 +00:00
Tal Leming
89daa72612 Checks needed for the dir attribute. Caught by Lasse Fister.
git-svn-id: http://svn.robofab.com/branches/ufo3k@573 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-05-11 17:42:58 +00:00
Tal Leming
a6ae274211 Wrong value being pushed to a function. Caught by Lasse Fister.
git-svn-id: http://svn.robofab.com/branches/ufo3k@572 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-05-11 17:40:33 +00:00
Tal Leming
d001b43ea7 validKeys was not referenced. Caught by Lasse Fister.
git-svn-id: http://svn.robofab.com/branches/ufo3k@571 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-05-11 17:38:27 +00:00
Tal Leming
c96d464472 Bug fix patch from Lasse Fister.
git-svn-id: http://svn.robofab.com/branches/ufo3k@563 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-02-21 12:59:23 +00:00
Tal Leming
e2710f2b7c Extension elements may have an id attribute.
git-svn-id: http://svn.robofab.com/branches/ufo3k@562 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-02-21 12:55:19 +00:00
Tal Leming
f08ef513ee Don't assume that the glyph name is ASCII.
git-svn-id: http://svn.robofab.com/branches/ufo3k@561 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-02-21 01:42:52 +00:00
Tal Leming
e05354fe33 Duplicate records are now allowed.
git-svn-id: http://svn.robofab.com/branches/ufo3k@551 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-02-14 03:38:32 +00:00
Tal Leming
1dcbf6c73e The last table is no longer required to be 0xFFFF.
git-svn-id: http://svn.robofab.com/branches/ufo3k@550 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-02-14 03:34:28 +00:00
Tal Leming
c09c53485c The UFO 3 spec requires ints for many format specific fields now.
git-svn-id: http://svn.robofab.com/branches/ufo3k@549 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-02-14 03:25:21 +00:00
Tal Leming
3fb94d2b65 Make the automatic group rename mapping available.
git-svn-id: http://svn.robofab.com/branches/ufo3k@548 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-01-30 15:19:05 +00:00
Tal Leming
4cf0d74b48 Clarified a requirement in the spec: smooth is allowed in any point type except offcurve.
git-svn-id: http://svn.robofab.com/branches/ufo3k@546 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-01-17 15:13:52 +00:00
Tal Leming
a43e586f8b Moved the adapter pen back to RoboFab.
git-svn-id: http://svn.robofab.com/branches/ufo3k@517 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-12-07 17:17:40 +00:00
Tal Leming
d3bce60a6a Added a method for setting the modification time of the UFO. This addresses ticket #20.
git-svn-id: http://svn.robofab.com/branches/ufo3k@515 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-12-07 15:45:06 +00:00
Tal Leming
d16c3ee928 Set a value properly.
git-svn-id: http://svn.robofab.com/branches/ufo3k@512 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-12-06 20:27:14 +00:00
Tal Leming
87eee9dc29 Added font info conversion functions. These should resolve tickets #10 and #11.
git-svn-id: http://svn.robofab.com/branches/ufo3k@511 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-12-06 20:25:49 +00:00
Tal Leming
429fc95ae6 Deprecate conversion function. It wasn't possible to make a safe in place conversion for FO 3, so I think these should go away.
git-svn-id: http://svn.robofab.com/branches/ufo3k@510 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-12-06 19:17:35 +00:00
Tal Leming
5312ac46d1 Updating the documentation.
git-svn-id: http://svn.robofab.com/branches/ufo3k@509 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-12-06 19:13:57 +00:00
Tal Leming
6f7a70d13f Found an error in a test and a couple of typos in the code.
git-svn-id: http://svn.robofab.com/branches/ufo3k@508 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-12-06 18:47:56 +00:00
Tal Leming
ff01e27763 Added a kerning validator. This must be run by the caller since groups are required. This should resolve ticket #8.
git-svn-id: http://svn.robofab.com/branches/ufo3k@507 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-12-06 18:46:31 +00:00
Tal Leming
b836b3287a Made _validateAndMassagePointStructures run about 0.00003985 seconds faster. This should resolve ticket #22.
git-svn-id: http://svn.robofab.com/branches/ufo3k@506 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-12-06 15:35:44 +00:00
Tal Leming
5571ca07de Typo.
git-svn-id: http://svn.robofab.com/branches/ufo3k@505 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-12-01 14:11:37 +00:00
Tal Leming
98318feb3c Validate the lib when writing a glyph.
git-svn-id: http://svn.robofab.com/branches/ufo3k@504 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-11-21 17:48:55 +00:00
Tal Leming
f7db746770 Added a modification time method.
git-svn-id: http://svn.robofab.com/branches/ufo3k@483 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-28 16:59:16 +00:00
Tal Leming
8def59e71a More verbose method name.
git-svn-id: http://svn.robofab.com/branches/ufo3k@482 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-28 16:54:11 +00:00
Tal Leming
5d3c381e97 Added a path property to the writer.
git-svn-id: http://svn.robofab.com/branches/ufo3k@480 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-27 14:59:01 +00:00
Tal Leming
1cc8ddbe43 Add a mod time request method to the reader.
git-svn-id: http://svn.robofab.com/branches/ufo3k@479 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-27 14:53:54 +00:00
Erik van Blokland
9eb79f866c Fix the imports to reflect the move of robofab.pens.pointPen to ufoLib.pointPen.
git-svn-id: http://svn.robofab.com/branches/ufo3k@454 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-20 20:50:46 +00:00
Erik van Blokland
3620969c4f Move pointPen to ufoLib
git-svn-id: http://svn.robofab.com/branches/ufo3k@453 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-20 20:46:26 +00:00
Tal Leming
a0dd7ae714 Bugs.
git-svn-id: http://svn.robofab.com/branches/ufo3k@432 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-19 16:39:49 +00:00
Tal Leming
2b8c197b89 Don't show "data" in the data directory listing.
git-svn-id: http://svn.robofab.com/branches/ufo3k@431 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-19 16:24:12 +00:00
Tal Leming
ee5c1edfcd Don't try to read a directory.
git-svn-id: http://svn.robofab.com/branches/ufo3k@430 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-19 16:22:08 +00:00
Tal Leming
94f05633f5 Added a convenience for copying images.
git-svn-id: http://svn.robofab.com/branches/ufo3k@429 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-19 14:58:35 +00:00
Tal Leming
b8e639ac31 Added a method for copying a file or directory from a UFOReader. This should (I'll find out tomorrow) be helpful for dealing with /data and /images in save as operations in higher level objects.
git-svn-id: http://svn.robofab.com/branches/ufo3k@426 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-19 02:18:56 +00:00
Tal Leming
182a199c2c Allow a subset of the glyphs to be searched.
git-svn-id: http://svn.robofab.com/branches/ufo3k@417 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-18 19:13:09 +00:00
Tal Leming
cc6c5d2d3d The gasp records can now be an empty list.
git-svn-id: http://svn.robofab.com/branches/ufo3k@415 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-18 13:15:04 +00:00
Tal Leming
69a04a7d7a Remove the filtering of loose offcurves in open contours when writing.
git-svn-id: http://svn.robofab.com/branches/ufo3k@414 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-18 13:03:59 +00:00
Tal Leming
994b7e0ff3 Only let off curves precede a move in GLIF 1.
git-svn-id: http://svn.robofab.com/branches/ufo3k@413 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-18 12:53:29 +00:00
Tal Leming
62bd9d2774 Validate public.markColor.
git-svn-id: http://svn.robofab.com/branches/ufo3k@412 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-17 20:32:20 +00:00
Tal Leming
7f6b0a7d69 Nicer warnings.
git-svn-id: http://svn.robofab.com/branches/ufo3k@411 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-17 20:18:30 +00:00
Tal Leming
64ebada787 Don't let any loose offcurves into slip into an open path.
git-svn-id: http://svn.robofab.com/branches/ufo3k@410 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-17 20:03:14 +00:00
Tal Leming
ba3c6d4f53 THings were getting hard to follow in the bi-format reader. I split it. It results in more code but it should be easier to maintain.
git-svn-id: http://svn.robofab.com/branches/ufo3k@409 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-17 19:31:38 +00:00