Hi everybody,
I am developing a j2me application.I am drawing a string on a canvas.
I want the string to be bold.My paint method looks like this :-
Code Snippet :-
protected void paint(Graphics g) {
width = getWidth();
height = getHeight();
g.setColor(0xffffff);
g.fillRect(0, 0, width, height);
g.setColor(0x000000);
String s = "Test this one";
g.setFont(Font.getFont(Font.FACE_SYSTEM, Font.STYLE_BOLD,Font.SIZE_SMALL));
g.drawString(s, 2, 2, 0);
}
The problem i m facing is that when i run the above code in Nokia E65,it does not make the string bold whereas on other handsets it does show the required effect i.e the
string is displayed in bold style.
Please help me to resolve the problem.

Reply With Quote



