I'm working on a MIDlet which has a custom menu structure rendered on a Canvas. For this I use drawText to draw the menu-items and I use a transparent image to show the current selection.
I use the Font.getHeight and Font.stringWidth methods to get the dimensions of the string that is the menu text, and resize the image accordingly so I have a bounding-box around the text.
On all emulators I have at my disposal (all Nokia phones, the default WTK 2.2 emulators, Sony Ericsson emulators and Samsung) the menu renders just as I intended, on all actual devices I have at my disposal (6230, 6230i, 7710, 6670) the menu renders perfect, but on an N90 it doesn't. It seems the Font.getHeight is a pixel or 2 off (too short) and the Font.stringWidth is returning about half of what I think it should, since I only see half of the text.

Can anyone point me to where I can find some documentation on the matter, or if you have a solution I'm okay with that as well.

A pointer to an N90 emulator would be helpful as well.

Thanks in advance,