From: <md...@us...> - 2009-03-04 20:53:34
|
Revision: 6955 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6955&view=rev Author: mdboom Date: 2009-03-04 20:53:29 +0000 (Wed, 04 Mar 2009) Log Message: ----------- Fix wiggly baseline problem (again -- should have truncated rather than rounded) Modified Paths: -------------- trunk/matplotlib/src/ft2font.cpp Modified: trunk/matplotlib/src/ft2font.cpp =================================================================== --- trunk/matplotlib/src/ft2font.cpp 2009-03-04 18:16:50 UTC (rev 6954) +++ trunk/matplotlib/src/ft2font.cpp 2009-03-04 20:53:29 UTC (rev 6955) @@ -1257,8 +1257,8 @@ double xd = Py::Float(args[1]); double yd = Py::Float(args[2]); - long x = (long)mpl_round(xd); - long y = (long)mpl_round(yd); + long x = (long)xd; + long y = (long)yd; FT_Vector sub_offset; sub_offset.x = int((xd - (double)x) * 64.0); sub_offset.y = int((yd - (double)y) * 64.0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |