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

using two fonts at time  RSS feed

 
kumar mars
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have to display a text that is a mixure of two languages. so i need to fonts. changing fonts during painting (in paint method and reaccessing graphics object) creating problem of flickering.
is there any way to use two fonts to display the text.
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use html. See the Formatting Label post from June 27. Font can be included in the html string.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have to display a text that is a mixure of two languages
what is your container in which you should display this info?
regds.

- satya
 
kumar mars
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well i am using JPanel to paint
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!