101 Commits

Author SHA1 Message Date
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
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
b4d892e896 Typo.
git-svn-id: http://svn.robofab.com/branches/ufo3k@401 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-13 00:43:23 +00:00
Tal Leming
494a13641e Support the recent fsSelection bits.
git-svn-id: http://svn.robofab.com/branches/ufo3k@400 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-13 00:41:58 +00:00
Tal Leming
0155bb7b55 Use a kwarg with the validator.
git-svn-id: http://svn.robofab.com/branches/ufo3k@396 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-11 16:43:35 +00:00
Tal Leming
2d0ded609c Raise errors in UFO 1 and UFO 2.
git-svn-id: http://svn.robofab.com/branches/ufo3k@395 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-11 16:21:58 +00:00
Tal Leming
e4f9b0f78c API for working with images.
git-svn-id: http://svn.robofab.com/branches/ufo3k@394 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-11 16:19:11 +00:00
Tal Leming
b6bed08dfa Don't read GLIF 2 in UFO 1 or UFO 2.
git-svn-id: http://svn.robofab.com/branches/ufo3k@390 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-07 13:54:14 +00:00
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
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
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
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
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
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
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
6aca8b3f71 More places where a UFOLibError should be raised.
git-svn-id: http://svn.robofab.com/branches/ufo3k@313 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 14:47:25 +00:00
Tal Leming
e03368c225 Return the validated data instead of the original data.
git-svn-id: http://svn.robofab.com/branches/ufo3k@312 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 13:59:47 +00:00
Tal Leming
710ad51bf6 More renaming.
git-svn-id: http://svn.robofab.com/branches/ufo3k@311 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 13:51:52 +00:00
Tal Leming
ef436e8ddf Renamed some of the validators that aren't font info specific.
git-svn-id: http://svn.robofab.com/branches/ufo3k@310 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 13:42:09 +00:00
Tal Leming
0b7abcfc96 The names passed to the converter need to be lowercase.
git-svn-id: http://svn.robofab.com/branches/ufo3k@306 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 01:02:21 +00:00
Tal Leming
ea4742cac3 Test cases and fixes.
git-svn-id: http://svn.robofab.com/branches/ufo3k@303 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-27 18:49:50 +00:00
Tal Leming
5eff9f3857 Kerning up conversion.
git-svn-id: http://svn.robofab.com/branches/ufo3k@301 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-27 17:58:45 +00:00
Tal Leming
b4782ab182 public.default is more appropriate than public.foreground.
git-svn-id: http://svn.robofab.com/branches/ufo3k@297 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-27 16:18:42 +00:00
Tal Leming
8ccc875640 Tests and fixes.
git-svn-id: http://svn.robofab.com/branches/ufo3k@296 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-27 15:28:42 +00:00
Tal Leming
5574c2bc18 UFOReader tests and changes as a result of the tests.
git-svn-id: http://svn.robofab.com/branches/ufo3k@294 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-26 22:16:08 +00:00
Tal Leming
e4d321f759 Whitespace.
git-svn-id: http://svn.robofab.com/branches/ufo3k@293 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-26 20:50:31 +00:00
Tal Leming
43a4328e5e Handled bogus calls. Write the layercontents.plist file when needed.
git-svn-id: http://svn.robofab.com/branches/ufo3k@292 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-26 20:12:19 +00:00
Tal Leming
fc99b36184 More work on layers.
git-svn-id: http://svn.robofab.com/branches/ufo3k@291 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-26 19:57:10 +00:00
Tal Leming
91a707b433 Airplane stuff. Lots of work. Very tired. It can write a partial UFO 3 now. Very tired.
git-svn-id: http://svn.robofab.com/branches/ufo3k@290 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-19 01:40:21 +00:00
Tal Leming
b68dfc260d Moved the validators to a more accessible location.
git-svn-id: http://svn.robofab.com/branches/ufo3k@289 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-18 12:24:29 +00:00
Tal Leming
2fd7dbbc17 Imports and test case splitting.
git-svn-id: http://svn.robofab.com/branches/ufo3k@288 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-18 12:16:25 +00:00