72 Commits

Author SHA1 Message Date
Tal Leming
5387798b66 Missed two test cases.
git-svn-id: http://svn.robofab.com/branches/ufo3k@274 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-14 21:23:53 +00:00
Tal Leming
fea0cc1983 Building support for UFO 3 font info.
git-svn-id: http://svn.robofab.com/branches/ufo3k@273 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-14 21:13:27 +00:00
Tal Leming
8055303e7f Initial work on the UFO 3 font info. Primarily focused on the small changes right now.
git-svn-id: http://svn.robofab.com/branches/ufo3k@272 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-12 22:15:15 +00:00
Tal Leming
19faa35b66 Renaming attributes that are not version 2 only. I'm going to set this up so that version 1 is the outlier, not the other way around.
git-svn-id: http://svn.robofab.com/branches/ufo3k@271 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-12 20:56:12 +00:00
Tal Leming
6b6bb74534 Filter out the .svn directories so that the test passes.
git-svn-id: http://svn.robofab.com/branches/ufo3k@270 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-12 20:36:40 +00:00
Tal Leming
7302683af3 Significant work on /data.
git-svn-id: http://svn.robofab.com/branches/ufo3k@269 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-12 17:49:34 +00:00
Tal Leming
fe18192c47 Down conversion in the writer.
git-svn-id: http://svn.robofab.com/branches/ufo3k@267 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-12 13:25:24 +00:00
Tal Leming
af3d0d2d37 Some documentation.
git-svn-id: http://svn.robofab.com/branches/ufo3k@266 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-12 11:51:24 +00:00
Tal Leming
c7f781233a Add 3 to the list of supported versions.
git-svn-id: http://svn.robofab.com/branches/ufo3k@265 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-12 11:44:22 +00:00
Tal Leming
5ca40a8bda Added initial support for the data directory.
git-svn-id: http://svn.robofab.com/branches/ufo3k@264 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-12 11:35:57 +00:00
Tal Leming
92ecfb2926 Some initial work on reading layers.
git-svn-id: http://svn.robofab.com/branches/ufo3k@263 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-11 23:47:21 +00:00
Tal Leming
f84f2c50ba Merge recent trunk changes.
git-svn-id: http://svn.robofab.com/branches/ufo3k@261 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-09-10 17:30:28 +00:00
Tal Leming
4f5dd7d078 move optimizations from glifLib2 to glifLib.
git-svn-id: http://svn.robofab.com/branches/ufo3k@257 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-06-18 17:08:25 +00:00
Tal Leming
725475a300 Import GLyphs objects from objectsGS.
git-svn-id: http://svn.robofab.com/trunk@252 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-06-14 17:42:58 +00:00
Tal Leming
3df3b4e82c Use the app name without "App".
git-svn-id: http://svn.robofab.com/trunk@251 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-06-14 15:54:41 +00:00
Tal Leming
7ef1a23d9e Removed some nag stuff.
git-svn-id: http://svn.robofab.com/trunk@250 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-06-14 15:54:00 +00:00
Tal Leming
f109ebbcde Rewrote __repr__.
git-svn-id: http://svn.robofab.com/trunk@249 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-06-14 15:53:08 +00:00
Tal Leming
dd85cc4e18 Whitespace.
git-svn-id: http://svn.robofab.com/trunk@248 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-06-14 15:46:01 +00:00
Tal Leming
6d92144955 Remove message printing and W detection.
git-svn-id: http://svn.robofab.com/trunk@247 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-06-14 15:45:18 +00:00
Tal Leming
32e6e0b734 Add support for Glyphs.
git-svn-id: http://svn.robofab.com/trunk@246 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-06-14 15:44:18 +00:00
Erik van Blokland
6bc884b229 One or two tweaks. Plus this detects curves with zero bcps - "false curves", and they are now treated as straights. Finally, endPath closed the path, now it remains open.
git-svn-id: http://svn.robofab.com/trunk@245 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-05-24 09:28:15 +00:00
Erik van Blokland
4b3e2a050e Fix to FlattenPen. Iteration started on 0, rather than the first step. Also in _curveToOne the currentPt was not updated properly.
git-svn-id: http://svn.robofab.com/trunk@244 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-05-24 08:55:37 +00:00
Tal Leming
463121cfa5 Typos that led to values that deviate from the spec.
git-svn-id: http://svn.robofab.com/trunk@243 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-05-17 15:53:58 +00:00
Erik van Blokland
a5e3c3fffb Warn rather than raise when we're running in non-mac, non-windows, non-fontlab.
git-svn-id: http://svn.robofab.com/trunk@242 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-05-07 18:39:13 +00:00
Erik van Blokland
a71feb62f1 Add self.supportsDialogKit.
git-svn-id: http://svn.robofab.com/trunk@241 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-05-07 12:55:44 +00:00
Erik van Blokland
7fe5ef02f3 A series of edits aimed at making dialogs.py behave better in non-mac, non-windows, non-fontlab environments. Tests are added to shed some light on where dialogs.py thinks it is running.
git-svn-id: http://svn.robofab.com/trunk@240 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-05-07 12:52:50 +00:00
Erik van Blokland
532007f86e Postpone the import of robofab.interdace.all.dialogs until we are sure we are in FontLab.
git-svn-id: http://svn.robofab.com/trunk@239 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-05-07 08:07:37 +00:00
Tal Leming
2a57ef7b10 Remove some error handling from the Unicode parser. This makes it more like the rest of glifLib. This kind of wrapping might be useful, but it should be done consistently.
git-svn-id: http://svn.robofab.com/trunk@238 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-04-28 14:22:09 +00:00
Tal Leming
2faf5dc355 Renamed the new method and added a doc string.
git-svn-id: http://svn.robofab.com/trunk@237 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-04-28 14:12:28 +00:00
Tal Leming
e9bee3d215 Doc string changes.
git-svn-id: http://svn.robofab.com/trunk@236 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-04-28 13:57:51 +00:00
Tal Leming
266ac18824 Purge glyph data from the cache as needed.
git-svn-id: http://svn.robofab.com/trunk@235 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-04-28 13:37:56 +00:00
Tal Leming
62d81b2b9e Don't assume anything about the structure of GLIF that is not part of the spec.
git-svn-id: http://svn.robofab.com/trunk@234 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-04-28 00:29:06 +00:00
Tal Leming
9ae34cc649 Use loadGLIF in getUnicodes.
git-svn-id: http://svn.robofab.com/trunk@233 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-04-27 18:53:20 +00:00
Tal Leming
5be587fe7d Added a loadGLIF method that abstracts a caching system. The cached data is discarded after a readGlyph call. In the cache, the mod time of the file is also kept. This is referred to in loadGLIF in an attempt to keep the cache fresh.
git-svn-id: http://svn.robofab.com/trunk@232 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-04-27 18:45:38 +00:00
Tal Leming
a2fef57685 Adding a temporary offshoot of glifLib.py for some performance tests and possibly some optimizations.
git-svn-id: http://svn.robofab.com/trunk@231 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-04-27 13:03:46 +00:00
Tal Leming
2d545e8734 Found another minor optimization point.
git-svn-id: http://svn.robofab.com/trunk@230 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-02-16 13:59:21 +00:00
Tal Leming
88e3e8df0f Modified NewGlyph to make the fl.UpdateFont call optional, the newGlyph method of RFont no longer updates automatically and, most importantly, this makes importing UFOs into FontLab faster by a factor of "a lot."
Thanks to Georg Seifert for prompting us to look into this.

git-svn-id: http://svn.robofab.com/trunk@229 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-02-13 23:13:54 +00:00
Erik van Blokland
3c175fbe3b Update a couple of font.info attribute names to the new UFO2 names.
git-svn-id: http://svn.robofab.com/trunk@228 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2010-11-11 22:20:27 +00:00
Erik van Blokland
d607644015 Wrapper for exceptions raised by the UFOLib when converting bogus data to UFO2. Print the exception, move on. This function shouldn't fix it, just warn.
git-svn-id: http://svn.robofab.com/trunk@227 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2010-11-11 22:08:33 +00:00
Tal Leming
d263f2b416 Work around a bug in FL Windows.
git-svn-id: http://svn.robofab.com/trunk@226 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2010-05-05 17:14:56 +00:00
Erik van Blokland
a21efaa4d0 This compileGlyph isn't limited to specific anchor names.
git-svn-id: http://svn.robofab.com/trunk@217 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2010-01-11 20:55:42 +00:00
Tal Leming
052c6ee6f6 git-svn-id: http://svn.robofab.com/trunk@201 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c 2009-12-03 14:44:41 +00:00
Tal Leming
0ccd75cc66 'as' is a reserved keyword in Python 2.6.
git-svn-id: http://svn.robofab.com/trunk@200 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2009-09-03 04:09:29 +00:00
Erik van Blokland
43a4e6b5d4 Make sure there is a glyph to restore when requested. When the background is empty, it will return None rather than a glyph.
git-svn-id: http://svn.robofab.com/trunk@199 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2009-06-26 13:24:44 +00:00
Erik van Blokland
66379b05fd Check the type of the path string before it is passed to the fontlab GenerateFont method. FL doesn't like unicode strings.
git-svn-id: http://svn.robofab.com/trunk@198 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2009-06-25 08:50:25 +00:00
Erik van Blokland
a364526b9c SetMaskToGlyph now uses FLPointContourPen which ignores any components the source glyph might have. In FontLab components do not work in the background and cause the application to suffer from premature and unexpected cessation of activities.
git-svn-id: http://svn.robofab.com/trunk@197 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2009-04-14 13:41:04 +00:00
Erik van Blokland
2ae7c0e8e5 FLPointContourPen as an alternative to FLPointPen. FLPointContourPen ignores the components. In some situations adding a component to a fl glyphs makes FontLab crash.
git-svn-id: http://svn.robofab.com/trunk@196 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2009-04-14 13:38:44 +00:00
Erik van Blokland
8ebdb26039 Unittests for the fixed Default Naming Scheme.
git-svn-id: http://svn.robofab.com/trunk@181 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2009-03-30 19:19:16 +00:00
Erik van Blokland
45908bd94a Fix for ticket #6, T_H and T_h glyphs would get the same glifname.
git-svn-id: http://svn.robofab.com/trunk@180 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2009-03-27 20:30:18 +00:00
Tal Leming
010d853105 defaultWidth was deprecated.
git-svn-id: http://svn.robofab.com/trunk@176 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2009-03-26 13:29:09 +00:00