62 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
Tal Leming
55026fe721 Don't use assert.
git-svn-id: http://svn.robofab.com/branches/ufo3k@333 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-29 01:14:14 +00:00
Tal Leming
1377173e91 contents.plist is required.
git-svn-id: http://svn.robofab.com/branches/ufo3k@332 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-29 00:55:34 +00:00
Tal Leming
8efd24ee72 Notes.
git-svn-id: http://svn.robofab.com/branches/ufo3k@331 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-29 00:43:08 +00:00
Tal Leming
3d5329bf52 Support reading the image element.
git-svn-id: http://svn.robofab.com/branches/ufo3k@329 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-29 00:29:57 +00:00
Tal Leming
2ff9c9d859 Support reading guidelines.
git-svn-id: http://svn.robofab.com/branches/ufo3k@328 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 20:58:42 +00:00
Tal Leming
ee99a36cdb Check unicode value.
git-svn-id: http://svn.robofab.com/branches/ufo3k@327 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 20:39:28 +00:00
Tal Leming
e6fae27c84 Break the mega function into smaller functions.
git-svn-id: http://svn.robofab.com/branches/ufo3k@326 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 20:27:55 +00:00
Tal Leming
74df04ae78 Lightly validate the point data.
git-svn-id: http://svn.robofab.com/branches/ufo3k@325 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 20:17:23 +00:00
Tal Leming
5c2e634bbf A move point is only allowed as the first point.
git-svn-id: http://svn.robofab.com/branches/ufo3k@324 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 19:18:33 +00:00
Tal Leming
dee7ce676d Component identifiers. Some very rough and incomplete identifier writing.
git-svn-id: http://svn.robofab.com/branches/ufo3k@323 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 19:04:22 +00:00
Tal Leming
720e733e72 identifier point pen fixes.
git-svn-id: http://svn.robofab.com/branches/ufo3k@322 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 18:16:03 +00:00
Tal Leming
c6ccaa5f1d Support contour identifiers.
git-svn-id: http://svn.robofab.com/branches/ufo3k@321 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 18:14:13 +00:00
Tal Leming
0731939b99 Be more strict while looking at points.
git-svn-id: http://svn.robofab.com/branches/ufo3k@320 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 18:07:13 +00:00
Tal Leming
8b52327bc3 Support reading point identifiers.
git-svn-id: http://svn.robofab.com/branches/ufo3k@319 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-28 17:50:55 +00:00