It would be great to restore to_mask to mathtex as it can be useful for 
GUI frameworks that require both an RGB and A buffer (rather than a 
single RGBA buffer).  Its implementation should be pretty 
straightforward, since you already have image buffer output in mathtex.

There may be a way to re-write menu.py to not depend on mathtex -- such 
as using ft2font directly.  But since mathtex will become a hard 
requirement for matplotlib anyway, it may be easiest to just add to_mask 
and update the example to use the new mathtex APIs.

Cheers,
Mike

Freddie Witherden wrote:
> Hi all,
>
> I was grepping the source code today for any remaining uses of  
> matplotlib.mathtext in matplotlib and stumbled upon menu.py -- a menu  
> demo/example.
>
> Although it does use/import mathtex it seems to only use it for  
> rendering plain (non-math) text using the to_mask function. This is  
> something that mathtex has no equivalent of (and appears to be the  
> only use of it).
>
> Can anyone recommend an alternative way of writing menu.py so that it  
> does not depend on mathtex?
>
> Regards, Freddie.
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge  
> This is your chance to win up to $100,000 in prizes! For a limited time, 
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize  
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


------------------------------------------------------------------------------
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to