Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Customized font for JTextPane html tags

 
parsa porahmad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there anyway to force(override) JTextPane ask for the font it needs to render the related tag?
For instance, considering the following tag:



Now I would JTextPane asks me to give him the "courier" font for rendering data with this tag. something like the following method



Thanks in advance.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!