Problem viewing text in canvas
Good day.
I've tried to use Canvas for wiewing long text in midp application.
I'm using drawString() method of class Graphics.
For calculating the substring viewed horizontally a screen I'm using the method stringWidth() of class Font.
The font is:
Font f = Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_PLAIN, Font.SIZE_MEDIUM);
In some phones the rows are clipped.
I've tried using Font.FACE_MONOSPACE and / or Font.SIZE_SMALL but with the same result.
Debuging code I've seen that the value calculate from stringWidth() method id less than the with of the screen, but really is clipped.
Why?
Best regards and good work.
Stefano Errani

