internationalizing an applet

B

Blah Blah

i would like to have an applet which will display Japanese in one
JTextComponent, Korean in another, and Cyrillic in a third (all in the same
frame). i am using UTF8. i can set this up correctly on my local machine
by altering my font.properties file, but i need to make sure that everything
displays correctly for users who see the applet in the web page.

any ideas?

daniel
 
H

Harald Hein

Blah Blah said:
i would like to have an applet which will display Japanese in one
JTextComponent, Korean in another, and Cyrillic in a third (all in
the same frame).

The frame and the text fields are not relevant here. They have no
notation of a locale. In fact, the only thing that is relevant here
is that you have fonts installed that provide the necessary glyphes,
using the char codes as defined by Unicode.
but i need to make sure that everything displays correctly for
users who see the applet in the web page.

Is there any guarantee that your users will have all necessary fonts
available on their local machine? Can you ensure their
font.properties file is correctly set up, so these fonts are
properly maped to their Unicode positions?

If not, it gets ugly. You can provide the fonts as TTF fonts with
your applet. Then you can use Java's build in TTF font renderer to
render the glypes in your applet.

You need to license the fonts, and your applet's download time
increases.

HH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top