How to display Kannada (Indic) Fonts in a Java application

Posted by AJ on Stack Overflow See other posts from Stack Overflow or by AJ
Published on 2010-05-09T07:28:47Z Indexed on 2010/05/09 13:08 UTC
Read the original article Hit count: 210

Filed under:
|
|

I am trying to dislplay a kannda character in a Java app.

String fonts[] = ge.getAvailableFontFamilyNames();

This shows that there is a font family by name "BRH Kannada"

Font f = new Font("BRH Kannada", Font.PLAIN, 20);

and then I do

button.setFont(f);

now when i set the button text, I have to ideally get the text on button to use the BRH kannada font.

However, what and how should I give the string as?

© Stack Overflow or respective owner

Related posts about fonts

Related posts about java