Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 466
Registered: ‎03-04-2009
My Device: 8520
My Carrier: some

problem with displaying specific characters using Graphics.drawText

Hi everyone, Have a problem with displaying specific characters on device and simulator. It seems that problem is in BB Fonts. Instead of "Téléphone" i get "T??l??phone" I'm using such code:

 

protected void paint(Graphics g) {

String str = new String("Téléphone".getBytes(), "UTF-8");

int x = 0; int y = 0;

g.setFont(FontFamily.forName("BBClarity").getFont(Font.BOLD,12)) g.drawText(str, x, y);

}

 

 

Does anybody really now how  to overcome this? Thanks in advance

Got resolved! Press kudo icon!
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: problem with displaying specific characters using Graphics.drawText

It is not about a font, it is about language support in device OS.

 

You need to have multi-language device OS installed.

 

And all non-english symbols will be displayed without problems.

 

Check your wirless carrier's web-site for multi-language device OS installation pack.