Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3793aaa

Browse files
committed
Fix wiggly baseline problem (again -- should have truncated rather than rounded)
svn path=/trunk/matplotlib/; revision=6955
1 parent 76a51fb commit 3793aaa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ft2font.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,8 +1257,8 @@ FT2Font::draw_glyph_to_bitmap(const Py::Tuple & args) {
12571257

12581258
double xd = Py::Float(args[1]);
12591259
double yd = Py::Float(args[2]);
1260-
long x = (long)mpl_round(xd);
1261-
long y = (long)mpl_round(yd);
1260+
long x = (long)xd;
1261+
long y = (long)yd;
12621262
FT_Vector sub_offset;
12631263
sub_offset.x = int((xd - (double)x) * 64.0);
12641264
sub_offset.y = int((yd - (double)y) * 64.0);

0 commit comments

Comments
 (0)