It would probably be considerable work to ply mathtext out of matplotlib,
particularly if you consider bringing along the Ps/Pdf/Svg/Cairo backends.
Just bringing the raster backend (which is really in ft2font.cpp) would be
considerably less work.
But I was mainly just sharing a wouldn't it
I should also mention my mathtext_wx.py example reveals a [possible] bug
in wxPython-2.8 and/or the underlying Gtk. When you put a bitmap on a
menu item, the *height* of the menu item is determined by the *width* of
the bitmap.
And placing bitmaps in menu items reportedly doesn't work at all