How to dislpay 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
7:38 UTC
Read the original article
Hit count: 185
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?
Rgds, AJ
© Stack Overflow or respective owner