Set Chinese font of a HTML JEditorPane
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Z_Cai
Posted On:   Sunday, October 7, 2001 02:25 PM

Hi:

I have an JEditorPane displaying a
Chinese (gb2312) HTML page (using
setPage ()). But on Linux the Chinese text all show up as squares. I installed
Chinse TrueType font on Linux and used
Dynamic font loading (Font.CreateFont())
to install the font and it works fine
for labels, tree views etc. But not for
JEditorPane. Even JEditorPane.setFont ()
will not work, neither UIManager.put("EditorPane.font", font);

About | Sitemap | Contact