• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scaling font in JEditorPane HTML rendering

 
Carey Brown
Bartender
Posts: 1685
22
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem that I'm running into is that an HTML file that I'm trying to show in a JEditorPane appears with a smaller font size than when I view the file in Internet Explorer or Firefox. I created a JEditorPaneZoom class (see below) which does scale the text correctly, however, the centering of the text is off and the text doesn't wrap correctly. Anybody out there that's had success?



Thanks,
Carey
 
Stanislav Lapitsky
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://java-sl.com/Scale_In_JEditorPane.html
Hope this helps

Regards,
Stas
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic