10170 Commits

Author SHA1 Message Date
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
pabs3
b8ce5bfe27 Remove shebang from ttyx.py since it is not executed directly
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@589 4cde692c-a291-49d1-8350-778aa11640f8
2011-03-28 10:41:39 +00:00
pabs3
85fe10da62 Remove executable permissions from files that do not need them
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@588 4cde692c-a291-49d1-8350-778aa11640f8
2011-03-28 10:18:27 +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
pabs3
3de0e58f29 Fix bug in last commit
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@587 4cde692c-a291-49d1-8350-778aa11640f8
2011-02-13 07:28:42 +00:00
pabs3
d3d7250fc3 Be more thorough when working around font bugs in the hmtx table
https://bugs.launchpad.net/ubuntu/+source/fonttools/+bug/223884

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@586 4cde692c-a291-49d1-8350-778aa11640f8
2011-02-13 07:01:11 +00:00
pabs3
d5721376f2 Be more thorough when working around font bugs in the loca/glyf tables
https://bugs.launchpad.net/ubuntu/+source/fonttools/+bug/223884

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@585 4cde692c-a291-49d1-8350-778aa11640f8
2011-02-13 06:27:09 +00:00
pabs3
df16db5bb8 Be more thorough when working around font bugs in the OS/2 table
https://bugs.launchpad.net/ubuntu/+source/fonttools/+bug/223884

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@584 4cde692c-a291-49d1-8350-778aa11640f8
2011-02-13 06:25:21 +00:00
pabs3
98caac29f3 Long-format loca tables are unsigned not signed.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@583 4cde692c-a291-49d1-8350-778aa11640f8
2011-02-13 06:24:19 +00:00
pabs3
86cee05817 Fix the instructions for building a Windows installer.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@582 4cde692c-a291-49d1-8350-778aa11640f8
2010-12-29 10:43:44 +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
77353dbc30 Tweak to export script.
git-svn-id: http://svn.robofab.com/trunk@218 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2010-01-15 09:12:23 +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
pabs3
1344bc9b62 Fix typos: 'neccesary' should be 'necessary'.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@581 4cde692c-a291-49d1-8350-778aa11640f8
2010-01-09 09:12:11 +00:00
Erik van Blokland
2dcd36633c moving changes from robofab trunk rev 202 into the ufo3 branch
git-svn-id: http://svn.robofab.com/trunk@203 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2010-01-05 12:40:15 +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
pabs3
e7689a4856 Release fonttools version 2.3
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@579 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:58:24 +00:00
pabs3
0682316b8c Fix loading the fontTools.misc.eexecOp module that speeds up fontTools.misc.eexec.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@578 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:57:07 +00:00
pabs3
17012aabbb Fix some broken assertions in the cmap format 1 code.
Shame on Gentoo for not forwarding the patch upstream.

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@577 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:55:53 +00:00
pabs3
406cb2f7ba Install the manual page to the correct location.
Shame on MacPorts and Gentoo for not forwarding this change.

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@576 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:54:25 +00:00
pabs3
0a6dea0ac2 Fix typo in help output.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@575 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:53:24 +00:00
pabs3
711afe95fc Add brief entries to Doc/changes.txt for the past two releases.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@574 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:52:26 +00:00
pabs3
b86bf2286a Drop version number from Doc/install.txt
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@573 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:51:41 +00:00
pabs3
f15d0b7896 Include the Doc/ChangeLog file in source tarballs
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@572 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:50:43 +00:00
pabs3
6f22ca45ba Document the new -y option to choose which font in a TTC to decompile.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@571 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 11:19:51 +00:00
pabs3
bc7b74803d updated unicode module to unicode 5.2.0
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@570 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 11:00:00 +00:00
pabs3
86368e7ac0 Raising strings is deprecated in Python 2.5, raise an exception instead.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@569 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 06:39:37 +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