From: <md...@us...> - 2007-07-30 18:05:23
|
Revision: 3633 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3633&view=rev Author: mdboom Date: 2007-07-30 11:05:14 -0700 (Mon, 30 Jul 2007) Log Message: ----------- Various minor bugfixes. Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/_mathtext_data.py trunk/matplotlib/lib/matplotlib/mathtext.py Modified: trunk/matplotlib/lib/matplotlib/_mathtext_data.py =================================================================== --- trunk/matplotlib/lib/matplotlib/_mathtext_data.py 2007-07-30 17:41:14 UTC (rev 3632) +++ trunk/matplotlib/lib/matplotlib/_mathtext_data.py 2007-07-30 18:05:14 UTC (rev 3633) @@ -2214,7 +2214,7 @@ 'combiningbreve' : 774, 'combiningoverline' : 772, 'combininggraveaccent' : 768, -'combiningacuteaccent' : 764, +'combiningacuteaccent' : 714, 'combiningdiaeresis' : 776, 'combiningtilde' : 771, 'combiningrightarrowabove' : 8407, Modified: trunk/matplotlib/lib/matplotlib/mathtext.py =================================================================== --- trunk/matplotlib/lib/matplotlib/mathtext.py 2007-07-30 17:41:14 UTC (rev 3632) +++ trunk/matplotlib/lib/matplotlib/mathtext.py 2007-07-30 18:05:14 UTC (rev 3633) @@ -617,7 +617,7 @@ return alternatives return [(fontname, sym)] -class UnicodeFonts(BakomaFonts): +class UnicodeFonts(TruetypeFonts): """An abstract base class for handling Unicode fonts. """ fontmap = { 'cal' : 'cmsy10', @@ -628,7 +628,7 @@ 'sf' : 'DejaVuSans', None : 'DejaVuSerif-Italic' } - + def _get_offset(self, cached_font, glyph, fontsize, dpi): return 0. @@ -637,6 +637,7 @@ try: uniindex = get_unicode_index(sym) + found_symbol = True except ValueError: # This is a total hack, but it works for now if sym.startswith('\\big'): @@ -658,7 +659,7 @@ glyphindex = cached_font.charmap[uniindex] except KeyError: warn("Font '%s' does not have a glyph for '%s'" % - (cached_font.postscript_name, sym), + (cached_font.font.postscript_name, sym), MathTextWarning) found_symbol = False @@ -2228,7 +2229,7 @@ font_output = BakomaFonts(prop, backend) # When we have a decent Unicode font, we should test and # then make this available as an option - # font_output = UnicodeFonts(prop, backend) + #~ font_output = UnicodeFonts(prop, backend) fontsize = prop.get_size_in_points() if self._parser is None: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |