290 Commits

Author SHA1 Message Date
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
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