Revision: 5069
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5069&view=rev
Author:   mdboom
Date:     2008-04-24 05:34:47 -0700 (Thu, 24 Apr 2008)

Log Message:
-----------
Merged revisions 5061-5068 via svnmerge from 
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_91_maint

........
  r5068 | mdboom | 2008-04-24 08:31:53 -0400 (Thu, 24 Apr 2008) | 2 lines
  
  Fix sub/superscript placement when the size of font has been changed.
........

Modified Paths:
--------------
    trunk/matplotlib/CHANGELOG
    trunk/matplotlib/lib/matplotlib/mathtext.py

Property Changed:
----------------
    trunk/matplotlib/


Property changes on: trunk/matplotlib
___________________________________________________________________
Name: svnmerge-integrated
   - /branches/v0_91_maint:1-5060
   + /branches/v0_91_maint:1-5068

Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG  2008-04-24 12:31:53 UTC (rev 5068)
+++ trunk/matplotlib/CHANGELOG  2008-04-24 12:34:47 UTC (rev 5069)
@@ -1,3 +1,6 @@
+2008-04-24 Fix sub/superscripts when the size of the font has been
+           changed - MGD
+
 2008-04-22 Use "svg.embed_char_paths" consistently everywhere - MGD
 
 2008-04-20 Add support to MaxNLocator for symmetric axis autoscaling. - EF

Modified: trunk/matplotlib/lib/matplotlib/mathtext.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/mathtext.py 2008-04-24 12:31:53 UTC (rev 
5068)
+++ trunk/matplotlib/lib/matplotlib/mathtext.py 2008-04-24 12:34:47 UTC (rev 
5069)
@@ -651,7 +651,7 @@
             # Some fonts don't store the xHeight, so we do a poor man's xHeight
             metrics = self.get_metrics(font, 'it', 'x', fontsize, dpi)
             return metrics.iceberg
-        xHeight = pclt['xHeight'] / 64.0
+        xHeight = (pclt['xHeight'] / 64.0) * (fontsize / 12.0)
         return xHeight
 
     def get_underline_thickness(self, font, fontsize, dpi):


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 the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to