Revision: 5068
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5068&view=rev
Author: mdboom
Date: 2008-04-24 05:31:53 -0700 (Thu, 24 Apr 2008)
Log Message:
-----------
Fix sub/superscript placement when the size of font has been changed.
Modified Paths:
--------------
branches/v0_91_maint/CHANGELOG
branches/v0_91_maint/lib/matplotlib/mathtext.py
Modified: branches/v0_91_maint/CHANGELOG
===================================================================
--- branches/v0_91_maint/CHANGELOG 2008-04-24 12:20:23 UTC (rev 5067)
+++ branches/v0_91_maint/CHANGELOG 2008-04-24 12:31:53 UTC (rev 5068)
@@ -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-11 Fix global font rcParam setting after initialization
Modified: branches/v0_91_maint/lib/matplotlib/mathtext.py
===================================================================
--- branches/v0_91_maint/lib/matplotlib/mathtext.py 2008-04-24 12:20:23 UTC
(rev 5067)
+++ branches/v0_91_maint/lib/matplotlib/mathtext.py 2008-04-24 12:31:53 UTC
(rev 5068)
@@ -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