Revision: 3682
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3682&view=rev
Author:   mdboom
Date:     2007-08-07 10:47:30 -0700 (Tue, 07 Aug 2007)

Log Message:
-----------
Fix bug with SVG non-math text

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

Modified: trunk/matplotlib/src/ft2font.cpp
===================================================================
--- trunk/matplotlib/src/ft2font.cpp    2007-08-07 17:39:57 UTC (rev 3681)
+++ trunk/matplotlib/src/ft2font.cpp    2007-08-07 17:47:30 UTC (rev 3682)
@@ -697,7 +697,7 @@
   FT_Vector delta;
 
   if (!FT_Get_Kerning( face, left, right, mode, &delta )) {
-    return Py::Int(delta.x);
+    return Py::Int(delta.x / HORIZ_HINTING);
   }
   else {
     return Py::Int(0);
@@ -775,7 +775,7 @@
       FT_Vector delta;
       FT_Get_Kerning( face, previous, glyph_index,
                      FT_KERNING_DEFAULT, &delta );
-      pen.x += delta.x;
+      pen.x += delta.x / HORIZ_HINTING;
     }
     error = FT_Load_Glyph( face, glyph_index, flags );
     if ( error ) {


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to