so mathtex now works with matplotlib in the mathtex branch. What needs
to be done, so that this branch can be merged with the main matplotlib
branch?
Let's get it done, if you all agree that's the way to go.
Ondrej
On 9 Sep 2009, at 16:03, Michael Droettboom wrote:
> - Hinting is not dealt with -- it should be on for the image backend
> and off for vector backends. Small point, but since I don't know
> the current code layout very well, it might take some time.
Currently the hinting used is the default provided by FreeType. This
should not be too hard to add in, although the Mathtex class has no
way of knowing ahead of time how a specific equation will be rendered
(rendering and box generation are de-coupled). But adding a manual
override shouldn't be difficult.
> - The placement of math is broken in the PDF and SVG backends
Interesting, as I spent quite a while on the PS/PDF/SVG backends
working on the base-line alignment. It is possible a more recent
commit of mine broke this without me noticing.
> - In general, the code duplication between mathtex and matplotlib
> bothers me from a maintenance standpoint (FT2Font, PNG, font_manager
> etc.), but I suppose perfect is the enemy of good here. We still
> have plenty of work for someone who wants to release the font
> functionality as a separate package.
The font manager code is possibly the biggest issue here. Mathtex will
happily use the FT2Font and PNG managers from matplotlib, if
available. The font manager, however, has had quite a bit of work done
to it compared to the matplotlib one. This is because mathtex does not
require as sophisticated handling as matplotlib.
Regards, Freddie.