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

Skip to content

Commit 857adae

Browse files
committed
Eliminate wiggly baseline compensation. Seems to work without it now -- have no idea why it was needed before.
svn path=/trunk/matplotlib/; revision=8233
1 parent 5a9d580 commit 857adae

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/ft2font.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,8 +1329,8 @@ FT2Font::draw_glyph_to_bitmap(const Py::Tuple & args) {
13291329
long x = (long)xd;
13301330
long y = (long)yd;
13311331
FT_Vector sub_offset;
1332-
sub_offset.x = int(-(xd - (double)x) * 64.0);
1333-
sub_offset.y = int(-(yd - (double)y) * 64.0);
1332+
sub_offset.x = 0; // int((xd - (double)x) * 64.0);
1333+
sub_offset.y = 0; // int((yd - (double)y) * 64.0);
13341334

13351335
if (!Glyph::check(args[3].ptr()))
13361336
throw Py::TypeError("Usage: draw_glyph_to_bitmap(bitmap, x,y,glyph)");
@@ -1853,15 +1853,15 @@ FT2Font::init_type() {
18531853
add_keyword_method("load_char", &FT2Font::load_char,
18541854
FT2Font::load_char__doc__);
18551855
add_keyword_method("load_glyph", &FT2Font::load_glyph,
1856-
FT2Font::load_glyph__doc__);
1856+
FT2Font::load_glyph__doc__);
18571857
add_keyword_method("set_text", &FT2Font::set_text,
18581858
FT2Font::set_text__doc__);
18591859
add_varargs_method("set_size", &FT2Font::set_size,
18601860
FT2Font::set_size__doc__);
18611861
add_varargs_method("set_charmap", &FT2Font::set_charmap,
18621862
FT2Font::set_charmap__doc__);
18631863
add_varargs_method("select_charmap", &FT2Font::select_charmap,
1864-
FT2Font::select_charmap__doc__);
1864+
FT2Font::select_charmap__doc__);
18651865

18661866
add_varargs_method("get_width_height", &FT2Font::get_width_height,
18671867
FT2Font::get_width_height__doc__);

0 commit comments

Comments
 (0)