font manager & mathtext

Hi all,

I have modified mathtext so it can use the fonts based on rcParams.
The new class is defined as follows:

class MyUnicodeFonts(UnicodeFonts):
    prop = FontProperties()
    prop.set_family('serif')
    rmfile = fontManager.findfont(prop)

    prop.set_family('fantasy')
    calfile = fontManager.findfont(prop)

    prop.set_family('monospace')
    ttfile = fontManager.findfont(prop)

    prop.set_family('serif')
    prop.set_style('italic')
    itfile = fontManager.findfont(prop)
    filenamesd = { 'rm' : rmfile,
                'it' : itfile,
                'cal' : calfile,
                'tt' : ttfile,
                }

Is this OK?

Now all the backends can work with the new mathtext, and on all
platforms, and I haven't introduced a single bug. Can this now be
commited to the svn?

I was wondering if it could be added to the matplotlibrc a key-value
pair like "mathtext.usebakoma :True" or something, so someone who
wants to try out the new mathtext can easily do so?

Also John, will I now begin to work on adding new features/TeX
commands to mathtext?

Thanks,
Edin

mathtext.patch (70.4 KB)

_mathtext_data.py (74.1 KB)

backend_ps.py (52.6 KB)

mathtext.py (53.1 KB)