Revision: 8233
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8233&view=rev
Author:   mdboom
Date:     2010-04-16 13:20:19 +0000 (Fri, 16 Apr 2010)

Log Message:
-----------
Eliminate wiggly baseline compensation.  Seems to work without it now -- have 
no idea why it was needed before.

Modified Paths:
--------------
    trunk/matplotlib/src/ft2font.cpp

Modified: trunk/matplotlib/src/ft2font.cpp
===================================================================
--- trunk/matplotlib/src/ft2font.cpp    2010-04-15 07:30:44 UTC (rev 8232)
+++ trunk/matplotlib/src/ft2font.cpp    2010-04-16 13:20:19 UTC (rev 8233)
@@ -1329,8 +1329,8 @@
   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);
+  sub_offset.x = 0; // int((xd - (double)x) * 64.0);
+  sub_offset.y = 0; // int((yd - (double)y) * 64.0);
 
   if (!Glyph::check(args[3].ptr()))
     throw Py::TypeError("Usage: draw_glyph_to_bitmap(bitmap, x,y,glyph)");
@@ -1853,7 +1853,7 @@
   add_keyword_method("load_char", &FT2Font::load_char,
                      FT2Font::load_char__doc__);
   add_keyword_method("load_glyph", &FT2Font::load_glyph,
-                    FT2Font::load_glyph__doc__);
+                     FT2Font::load_glyph__doc__);
   add_keyword_method("set_text", &FT2Font::set_text,
                      FT2Font::set_text__doc__);
   add_varargs_method("set_size", &FT2Font::set_size,
@@ -1861,7 +1861,7 @@
   add_varargs_method("set_charmap", &FT2Font::set_charmap,
                      FT2Font::set_charmap__doc__);
   add_varargs_method("select_charmap", &FT2Font::select_charmap,
-                    FT2Font::select_charmap__doc__);
+                     FT2Font::select_charmap__doc__);
 
   add_varargs_method("get_width_height", &FT2Font::get_width_height,
                      FT2Font::get_width_height__doc__);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to