Cross platform text

Is there any way to make text look exactly the same on all devices? Nokia, SE, Motorola etc…
I am working on a lightweight class for this but perhaps there already is a simple solution to this?

All the high-level UIs and also the low-level method Graphics.drawString make use of the phone’s built-in fonts, so you can’t make those look the same on different phones.

What you can do is include a ‘font’ image bitmap in your MIDlet JAR file, load it as an image, set the clip rectangle so that only the wanted character is drawn, then draw the image. Repeat for each character in the text you want to display.

Yeah I know that method and Ive been using it. Just working on a better one (?)

Until/unless some future version of MIDP allows you to load a Font definition from your JAR file, there isn’t another solution, as far as I can see.

Im also interested in such a library.
would appreciate if hearing how your progress goes.

Larry

I am already using it in my 2 games and it works very well. Only downside to this library is the speed at which the fonts are rendered. But for menus or RPG/games where you dont need max fps at that moment, it works great.

Any chance I could use your library?

Larry