520 Commits

Author SHA1 Message Date
Tal Leming
87af17931c Pass the UFO format version to the glyph set.
git-svn-id: http://svn.robofab.com/branches/ufo3k@389 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-07 02:13:17 +00:00
Tal Leming
4579b92abc Bug fixes.
git-svn-id: http://svn.robofab.com/branches/ufo3k@388 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-06 19:53:38 +00:00
Tal Leming
2cddcd6e3e Be a bit more lenient with dict-like objects at the top level.
git-svn-id: http://svn.robofab.com/branches/ufo3k@387 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-06 19:23:48 +00:00
Tal Leming
91b7ba0e72 Make it possible to rename the default layer.
git-svn-id: http://svn.robofab.com/branches/ufo3k@386 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-06 17:50:53 +00:00
Tal Leming
145902c57a Allow renaming to the default directory.
git-svn-id: http://svn.robofab.com/branches/ufo3k@385 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-06 16:09:40 +00:00
Tal Leming
2d17dfc09e Don't support in-place down conversion. It's too lossy. The way to do it is to write a UFO with the lower format to a temporary location, use shutil to remove the old UFO, then use shutil to move the new UFO. This will remove any unknown data (ie .svn directories) but this would likely happen in an in-place down conversion anyway.
git-svn-id: http://svn.robofab.com/branches/ufo3k@384 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-06 13:30:11 +00:00
Tal Leming
aaab0ed06d Test cases for an edge case.
git-svn-id: http://svn.robofab.com/branches/ufo3k@383 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-05 20:48:36 +00:00
Tal Leming
d3325920cc Reworked the getGlyphSet method.
git-svn-id: http://svn.robofab.com/branches/ufo3k@382 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-05 19:53:22 +00:00
Tal Leming
0f15096209 Bit of doc was no longer true.
git-svn-id: http://svn.robofab.com/branches/ufo3k@381 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-05 17:44:30 +00:00
Tal Leming
f535a151c1 Use the correct validator name.
git-svn-id: http://svn.robofab.com/branches/ufo3k@374 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-04 19:09:29 +00:00
Tal Leming
85d719a3e8 Default name check.
git-svn-id: http://svn.robofab.com/branches/ufo3k@373 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-04 17:37:37 +00:00
Tal Leming
a893cb584e Misnamed variable.
git-svn-id: http://svn.robofab.com/branches/ufo3k@372 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-04 17:14:27 +00:00
Tal Leming
1f8032900c Don't write the advance attributes if they are the defaults.
git-svn-id: http://svn.robofab.com/branches/ufo3k@371 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-04 01:42:57 +00:00
Tal Leming
3a6306bc9b Add a set of all UFO 3 info attribute names.
git-svn-id: http://svn.robofab.com/branches/ufo3k@370 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-04 01:07:22 +00:00
Tal Leming
bed4f7e109 Simple PNG validator.
git-svn-id: http://svn.robofab.com/branches/ufo3k@369 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-03 19:17:39 +00:00
Tal Leming
b579bdaeae qcurve special case.
git-svn-id: http://svn.robofab.com/branches/ufo3k@368 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-03 16:36:29 +00:00
Tal Leming
adbaed7e92 Doc changes.
git-svn-id: http://svn.robofab.com/branches/ufo3k@367 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-03 16:24:24 +00:00
Tal Leming
0c40dfacc2 Layer contents validation tweaks.
git-svn-id: http://svn.robofab.com/branches/ufo3k@366 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-03 16:20:45 +00:00
Tal Leming
e54ede1593 Unreferenced variables.
git-svn-id: http://svn.robofab.com/branches/ufo3k@365 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-03 15:59:13 +00:00
Tal Leming
c8cad30c69 Lightly validate the lib.
git-svn-id: http://svn.robofab.com/branches/ufo3k@364 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-03 15:56:08 +00:00
Tal Leming
6c9707f49d Only strictly test known public.* names.
git-svn-id: http://svn.robofab.com/branches/ufo3k@363 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-03 15:46:19 +00:00
Tal Leming
a829b0dc72 Validate the groups.
git-svn-id: http://svn.robofab.com/branches/ufo3k@362 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-03 15:17:31 +00:00
Tal Leming
1ef1e295c9 Kerning prefixes are no longer part of fontnfo.plist.
git-svn-id: http://svn.robofab.com/branches/ufo3k@361 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-03 14:43:17 +00:00
Tal Leming
0f29e91393 Layer level guides are gone.
git-svn-id: http://svn.robofab.com/branches/ufo3k@360 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-03 14:12:52 +00:00
Tal Leming
e0e56d0318 Layer name checks.
git-svn-id: http://svn.robofab.com/branches/ufo3k@359 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-03 14:09:47 +00:00
Erik van Blokland
215e39c6ae Extra quote at beginning of file.
git-svn-id: http://svn.robofab.com/branches/ufo3k@358 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-01 07:51:10 +00:00
Tal Leming
d255dbd3ea Note.
git-svn-id: http://svn.robofab.com/branches/ufo3k@357 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 20:51:34 +00:00
Tal Leming
47f460131c Use layerName in the character mapping method.
git-svn-id: http://svn.robofab.com/branches/ufo3k@356 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 20:44:21 +00:00
Tal Leming
2d25bf65dc Make the layer contents writing a caller requirement rather than something that silently happens. This makes it easier for everyone to manage layer order.
git-svn-id: http://svn.robofab.com/branches/ufo3k@355 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 20:41:24 +00:00
Tal Leming
52ebe94634 GLIF 2 tests.
git-svn-id: http://svn.robofab.com/branches/ufo3k@354 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 19:24:43 +00:00
Tal Leming
3c9d93bbe4 Don't write default transformation values.
git-svn-id: http://svn.robofab.com/branches/ufo3k@353 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 19:24:10 +00:00
Tal Leming
2bcdd6b4ba Missed a guideline requirement.
git-svn-id: http://svn.robofab.com/branches/ufo3k@352 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 19:12:05 +00:00
Tal Leming
597177a172 Missed identifiers.
git-svn-id: http://svn.robofab.com/branches/ufo3k@351 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 18:55:15 +00:00
Tal Leming
8bf6bfe974 Move the Glyph object and functions to testSupport so that they can be used for GLIF 2.
git-svn-id: http://svn.robofab.com/branches/ufo3k@350 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 18:31:44 +00:00
Tal Leming
5d433d8de5 GLIF 1 should now be (relatively) throughly tested.
git-svn-id: http://svn.robofab.com/branches/ufo3k@349 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 18:28:15 +00:00
Tal Leming
36e7ef962f Don't let a move sneak in after the a point has been added to the contour.
git-svn-id: http://svn.robofab.com/branches/ufo3k@348 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 17:04:00 +00:00
Tal Leming
dfdbe61945 Various buglets revealed by test cases.
git-svn-id: http://svn.robofab.com/branches/ufo3k@347 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 16:58:04 +00:00
Tal Leming
f5326ae801 Bug fixes.
git-svn-id: http://svn.robofab.com/branches/ufo3k@346 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 16:00:20 +00:00
Tal Leming
3001616877 Starting to test GLIF 1...and I found and fixed some bugs.
git-svn-id: http://svn.robofab.com/branches/ufo3k@345 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 15:25:47 +00:00
Tal Leming
61fc46288f Image and guideline fixes.
git-svn-id: http://svn.robofab.com/branches/ufo3k@344 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 00:39:34 +00:00
Tal Leming
61b2edd50b Broke the writing function into several smaller functions. Fixed some bugs.
git-svn-id: http://svn.robofab.com/branches/ufo3k@343 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-30 00:28:24 +00:00
Tal Leming
a3b8999074 Validate the identifiers.
git-svn-id: http://svn.robofab.com/branches/ufo3k@342 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-29 20:58:26 +00:00
Tal Leming
52e965aca3 Support guidelines.
git-svn-id: http://svn.robofab.com/branches/ufo3k@341 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-29 20:55:20 +00:00
Tal Leming
73fd64e7d1 Support image.
git-svn-id: http://svn.robofab.com/branches/ufo3k@340 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-29 19:38:33 +00:00
Tal Leming
2330e7d2af Don't let elements that are only allowed once show up more than once.
git-svn-id: http://svn.robofab.com/branches/ufo3k@339 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-29 14:21:02 +00:00
Tal Leming
1c2b94ae3b Support height.
git-svn-id: http://svn.robofab.com/branches/ufo3k@338 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-29 14:15:40 +00:00
Tal Leming
9feddc8f8d Beginning GLIF 2 writing work.
git-svn-id: http://svn.robofab.com/branches/ufo3k@337 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-29 14:09:45 +00:00
Tal Leming
ff8428c052 Light validation during write.
git-svn-id: http://svn.robofab.com/branches/ufo3k@336 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-29 13:36:45 +00:00
Tal Leming
4afcd0f113 Lightly validate the contents of the kerning and groups during reading.
git-svn-id: http://svn.robofab.com/branches/ufo3k@335 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-29 13:31:37 +00:00
Tal Leming
ba16039873 Don't toss up an error when contents.plist is missing. Just make the internal contents empty. This is necessary because a new glyph set will not have contents.plist.
git-svn-id: http://svn.robofab.com/branches/ufo3k@334 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-29 13:26:25 +00:00