On Tue, Sep 1, 2009 at 6:03 PM, Michael Thompson<michae...@gmail.com> wrote: > I see firefox 3.5 (html5) has a method to measure the width of the > text, I'll look at using this in a javascript function to render the > text.
I'm not sure if this helps. *Matplotlib* (not the browser) needs to know the size of the text when it creates plots. And the issue is that matplotlib does not know, in general, what font the browser will pick up for rendering. It seems that people are using @font-face embedding which are supported by newer version of firefox and safari. So, one option would be to use @font-face to specify (and provide) the fonts that are used when the plot is created by matplotlib. The other option is to embed the texts as paths as done in the svg banckend. Of course, there always is a font license issue. -JJ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel