From: <md...@us...> - 2007-08-07 17:47:31
|
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. |