Erik van Blokland
ab3c6bca2f
This adds a simple test of the MarginPen object. Basically to make sure the update to new style object doesn't cause any problems.
...
git-svn-id: http://svn.robofab.com/branches/ufo3k@568 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-03-07 14:21:38 +00:00
Erik van Blokland
445e45d755
This adds a simple test of the ControlBoundsPen object. Basically to make sure the update to new style object doesn't cause any problems.
...
git-svn-id: http://svn.robofab.com/branches/ufo3k@567 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-03-07 11:28:46 +00:00
Just van Rossum
a12cd22201
removed oboloete adapter pen
...
git-svn-id: http://svn.robofab.com/branches/ufo3k@566 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-03-07 10:34:45 +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
Tal Leming
225677a9ed
I shouldn't have deleted the entire point pen file. It's back and it imports AbstractPointPen from ufoLib.pointPen.
...
git-svn-id: http://svn.robofab.com/branches/ufo3k@516 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-12-07 17:17:00 +00:00
Erik van Blokland
71b16be2a2
Documentation. Add code and result examples to digestPen objects.
...
git-svn-id: http://svn.robofab.com/branches/ufo3k@460 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-20 21:37: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
Erik van Blokland
a9ee5c7434
More documentation. Removes 2 functions that are cute, but unnecessary (moved to contrib.snippets.filters)
...
git-svn-id: http://svn.robofab.com/branches/ufo3k@450 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-20 20:44:23 +00:00
Erik van Blokland
d76191b0b1
Make AbstractPointPen a new style class. This might break code.
...
git-svn-id: http://svn.robofab.com/branches/ufo3k@449 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-20 20:43:33 +00:00
Erik van Blokland
e506232f7a
Documentation and notes in filterPen, pointPen and quartzPen.
...
git-svn-id: http://svn.robofab.com/branches/ufo3k@448 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-20 16:27:06 +00:00
Erik van Blokland
ea843d1e68
This reflects the move to pens/printingPens
...
git-svn-id: http://svn.robofab.com/branches/ufo3k@447 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-20 15:56:22 +00:00
Erik van Blokland
cf434fd941
Restructuring pointPen: PrintingPointPen, PrintingSegmentPen and SegmentPrintingPointPen really have no place in pens/pointPen. This moves them to their own module pens/printingPens.
...
git-svn-id: http://svn.robofab.com/branches/ufo3k@446 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-20 15:54:39 +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
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
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
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
65b2d92a9f
MarginPen now has a isHorizontal flag when initialising. Default set to True, the calculations will be horizontal. When False, the measurements will be vertical.
...
Scripts using MarginPen should continue to work without changes.
git-svn-id: http://svn.robofab.com/trunk@94 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-09-20 09:32:33 +00:00
Erik van Blokland
339ce1c71c
Test for glyph and font in the test.
...
git-svn-id: http://svn.robofab.com/trunk@93 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-07-28 23:23:45 +00:00
Erik van Blokland
04e27a3cca
MarginPen now pays attention to the transformation set for components.
...
git-svn-id: http://svn.robofab.com/trunk@92 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-07-28 23:21:29 +00:00
Erik van Blokland
dc76c06826
Add method getAll() which returns a sorted list of unique slice values.
...
git-svn-id: http://svn.robofab.com/trunk@89 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-30 17:52:38 +00:00
Erik van Blokland
689472553a
Handle components. Handle self overlapping bezier segments with any number of intersections.
...
git-svn-id: http://svn.robofab.com/trunk@88 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-30 09:47:54 +00:00
Erik van Blokland
2093fcbad2
Removed print statements.
...
git-svn-id: http://svn.robofab.com/trunk@87 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-30 08:18:23 +00:00
Erik van Blokland
ac33952df5
Pen to calculate the horizontal margins of a glyph at any given height by intersecting the shape with a horizontal line. Results can be obtained for the whole glyph with pen.getMargins() or for each individual contour with pen.getCounterMargins().
...
git-svn-id: http://svn.robofab.com/trunk@86 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-30 07:49:39 +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
Just van Rossum
feb0046176
Moved Data, Lib and install.py one level down the tree
...
git-svn-id: http://svn.robofab.com/trunk@67 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 09:18:32 +00:00