356 Commits

Author SHA1 Message Date
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
Tal Leming
cde4ada2f7 Old anchor format fixes.
git-svn-id: http://svn.robofab.com/branches/ufo3k@408 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-17 16:39:25 +00:00
Tal Leming
105f895277 Set the collected anchors.
git-svn-id: http://svn.robofab.com/branches/ufo3k@407 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-17 16:27:33 +00:00
Tal Leming
08732962b4 Special handling of anchors in GLIF 1. This was never part of the spec, but all glifLib uses that I know of did things this way.
git-svn-id: http://svn.robofab.com/branches/ufo3k@406 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-17 13:29:07 +00:00
Tal Leming
a2895df22f Break the read function into smaller chunks.
git-svn-id: http://svn.robofab.com/branches/ufo3k@405 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-16 13:32:03 +00:00
Tal Leming
9042825ed5 Remove old print.
git-svn-id: http://svn.robofab.com/branches/ufo3k@404 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-15 17:45:06 +00:00
Tal Leming
d16091c27e Support new anchor element.
git-svn-id: http://svn.robofab.com/branches/ufo3k@403 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-15 17:43:57 +00:00
Tal Leming
3bc6561e49 Allow an empty list for the gasp records.
git-svn-id: http://svn.robofab.com/branches/ufo3k@402 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-13 18:19:04 +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
88cb646590 Incorrect failure.
git-svn-id: http://svn.robofab.com/branches/ufo3k@399 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-11 19:31:52 +00:00
Tal Leming
3721472a50 If a value is None and it is required, don't flag it as invalid.
git-svn-id: http://svn.robofab.com/branches/ufo3k@398 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-11 19:29:16 +00:00
Tal Leming
dcd97ba1ea Fallback to the image transformation defaults if an attribute is not provided.
git-svn-id: http://svn.robofab.com/branches/ufo3k@397 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-11 17:31:27 +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
3e5c4689f5 Stray print.
git-svn-id: http://svn.robofab.com/branches/ufo3k@393 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-11 16:00:06 +00:00
Tal Leming
cac9911f3e Reworked the Unicode value fetching and added new component and image fetching options.
git-svn-id: http://svn.robofab.com/branches/ufo3k@392 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-11 14:08:24 +00:00
Tal Leming
427241c82d Name fetching is no longer needed.
git-svn-id: http://svn.robofab.com/branches/ufo3k@391 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-11 11:39:44 +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
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