4 Commits

Author SHA1 Message Date
Erik van Blokland
8c864d3171 This adds a simple test of the MarginPen object. Basically to make sure the update to new style object doesn't cause any problems. Can't tell because AngledMarginPen seems to have other internal problems.
git-svn-id: http://svn.robofab.com/branches/ufo3k@569 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-03-07 15:01:12 +00:00
Erik van Blokland
4875fc675f Tweaks in the documentation.
git-svn-id: http://svn.robofab.com/branches/ufo3k@553 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-02-14 11:59:11 +00:00
Tal Leming
a902d7d61c More or less blindly merge all lib/robofab changes from the trunk. I don't know what they were all about, but they need to be merged so that work can continue here. Only one file had conflicts: interface/all/dialogs_default.py I noted that the ufo3k branch was the one in conflict and to use the changes in the trunk.
git-svn-id: http://svn.robofab.com/branches/ufo3k@525 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-12-27 14:02:11 +00:00
Erik van Blokland
3950975a77 AngledMarginPen calculates the left and right side-bearings of a glyph, relative to slanted margins. The angle is taken from font.info.italicAngle. Curves are approximated. This also contains 5 convenience functions to set and get individual margins and to center the glyph.
The approximation can be improved upon, perhaps taking the size of the bezier into account and so on. Also the italic offset, as it was used in RoboFog is missing, and could perhaps be taken into account.

git-svn-id: http://svn.robofab.com/trunk@85 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-27 09:00:58 +00:00