Skip to main content
gamedev.net
🔒 Locked

Rendering math fonts

Started by Fidde A Dec 18, 2004 at 3:04 AM 3 replies 850+ views
Original Post
Fidde A
Fidde A
Here's a problem I haven't encountered before. Assume you have a database stuffed with mathematical reports, written in LaTeX or some other mathematical notation language. Most of these languages can be converted in to PostScript or PDF. You want to directly evaluate/display this math in your application (be it written in Java, C++ or whatever). Any ideas? Are there any de facto ways of rendering arbitrarily complex mathematical text, or would you have to build a custom font library and notation (laaaarge job)? Big thanks in advance, Fredrik
ApochPiQ
ApochPiQ
Depends on how complicated your math is. Simple arithmetic is obviously easy. If you get into anything like calculus, though, you'll need to write a pretty powerful and complicated rendering system that places all the little bits of notation in the right spots and makes them look nice. It's not a small job, and I'm not personally aware of any "standard" approaches to solving the problem.
igni ferroque
igni ferroque
Since this is hypothetical, I'm going to assume that it's in MathML, in which case you can use a third-party library capable of rendering MathML. WYSIWYG editing might be a bit more tricky.
Free Mac Mini (I know, I'm a tool)
Fidde A
Fidde A
ApochPiQ: It's should be able to interpret arbitrary notation. The content is ranging from high-school to post-graduate mathematics, so it can get very messy, and should be able to.

igni ferroque: I guess a third party license can be considered. I haven't got it all in check concerning using GPL- or LGPL-licensed code in proprietary projects, but the sponsors seem to be generous. Since I'm designing this beast, I have thought primarily of MathML and secondarily LaTeX, and the former seems to be the easiest to incorporate a renderer of. I've also considered rendering from the notation language to a PDF or PostScript, and somehow create an application "widget" capable of displaying the chosen format.

Any ideas or experiences are gladly appreciated!
JimPrice
JimPrice
I have used the R mathematical programming language extensively. It has functionality for math-function representation, similar to LaTeX, and is released under the GNU licence. As it's public domain, it might be worth contacting them and seeing if them have fonts etc that you can use.

Jim.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.