## fonttools-checkins

 [FontTools-checkins] SF.net SVN: fonttools:[596] branches/delft-sprint-2012/Lib/fontTools/misc/ bezierTools.py From: - 2012-03-07 10:20:01 ```Revision: 596 http://fonttools.svn.sourceforge.net/fonttools/?rev=596&view=rev Author: jvr Date: 2012-03-07 10:19:55 +0000 (Wed, 07 Mar 2012) Log Message: ----------- fix 64-bit issue in doctest Modified Paths: -------------- branches/delft-sprint-2012/Lib/fontTools/misc/bezierTools.py Modified: branches/delft-sprint-2012/Lib/fontTools/misc/bezierTools.py =================================================================== --- branches/delft-sprint-2012/Lib/fontTools/misc/bezierTools.py 2012-03-07 09:58:57 UTC (rev 595) +++ branches/delft-sprint-2012/Lib/fontTools/misc/bezierTools.py 2012-03-07 10:19:55 UTC (rev 596) @@ -15,7 +15,7 @@ "solveCubic", ] -from arrayTools import calcBounds +from fontTools.misc.arrayTools import calcBounds epsilon = 1e-12 @@ -49,9 +49,8 @@ (0, 0, 100, 75.0) >>> calcCubicBounds((0, 0), (50, 0), (100, 50), (100, 100)) (0.0, 0.0, 100, 100) - >>> xMin, yMin, xMax, yMax = calcCubicBounds((50, 0), (0, 100), (100, 100), (50, 0)) - >>> round(xMin, 10), yMin, round(xMax, 10), yMax - (35.566243270299999, 0, 64.433756729699994, 75.0) + >>> print "%f %f %f %f" % calcCubicBounds((50, 0), (0, 100), (100, 100), (50, 0)) + 35.566243 0.000000 64.433757 75.000000 """ (ax, ay), (bx, by), (cx, cy), (dx, dy) = calcCubicParameters(pt1, pt2, pt3, pt4) # calc first derivative This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ```
 [FontTools-checkins] SF.net SVN: fonttools:[605] branches/delft-sprint-2012/Lib/fontTools/misc/ bezierTools.py From: - 2012-03-07 18:54:08 ```Revision: 605 http://fonttools.svn.sourceforge.net/fonttools/?rev=605&view=rev Author: jvr Date: 2012-03-07 17:48:02 +0000 (Wed, 07 Mar 2012) Log Message: ----------- cleaning up Modified Paths: -------------- branches/delft-sprint-2012/Lib/fontTools/misc/bezierTools.py Modified: branches/delft-sprint-2012/Lib/fontTools/misc/bezierTools.py =================================================================== --- branches/delft-sprint-2012/Lib/fontTools/misc/bezierTools.py 2012-03-07 17:46:48 UTC (rev 604) +++ branches/delft-sprint-2012/Lib/fontTools/misc/bezierTools.py 2012-03-07 17:48:02 UTC (rev 605) @@ -1,5 +1,4 @@ """fontTools.misc.bezierTools.py -- tools for working with bezier path segments. -Rewritten to elimate the numpy dependency """ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ```