Hi,

I need to render LaTeX math formulas on mobile apps (iOS/Android), with high

quality, and as efficiently as possible.

I'm considering matplotlib as the best candidate at the moment. Maybe it

might be a bit overkill because I don't need plotting, just math formulas

rendering, but it has a "copycenter" license (very welcome when you target

iOS), and it seems to render LaTeX math with high quality. So I think it

beats other options I found (MathGL: copyleft license; and MathJax: setting

a complete Javascript engine just for rendering math does seem overkill to

me).

However, I still have some doubts before choosing matplotlib:

1) Can I redirect the output of math rendering to OpenGL calls, or convert

it into a 2D triangle mesh for example? (if the drawing commands issued by

matplotlib when rendering math are a relatively small set, I can translate

them to OpenGL myself, but I need to know where should I do that translation

(I've zero idea about matplotlib internals, and I'm a Python newbie -I'm

here because I need math rendering, not because I use Python).

(note that I wish to render through OpenGL because I want to be able to

interactively pan and zoom math very efficiently: the best approach would be

to cache the matplotlib output as a -for example- 2D triangle mesh, and then

just send the triangles to OpenGL, without having to call matplotlib on each

screen redraw, which would kill performance)

2) In order to get matplotlib running as efficient as possible on mobile

devices, would you recommend that I translate matplotlib to C/C++ using any

of the translators available? If affirmative, what translator would you

suggest me to use?

Thanks a lot!!

## ···

--

View this message in context: http://matplotlib.1069221.n5.nabble.com/Efficient-matplotlib-use-on-iOS-and-Android-apps-tp45901.html

Sent from the matplotlib - users mailing list archive at Nabble.com.