Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying fonts of different languages!!!!!  RSS feed

 
Jyothsna Sri Y
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,
I need some help regarding the display of fonts of languages other than English. I wish to display Hindi and Telugu fonts on Labels and text fields using Java Swing.
Can some one tell me how to go about it? I have the required ttf files, which work on Windows.
This a bit urgent!!!
Thanks.
Jyothsna.
 
Jason Steele
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jyothsna Sri Y,

I believe you can do the following:
myLabel.setFont(new Font("FONT_NAME", Font.PLAIN, 12));
but I haven't tried it with non-standard fonts.

I hope that helps you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!