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.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins