Ken Shirriff -> Java -> Fonts -> DrawText Japanese |
This page uses the DrawText applet, which simply reads in a text file and displays it using the specified font. In this case, the text file is part of some information from the Japanese Ministry of Foreign Affairs.
To use this applet, you first need to unzip pcffont.zip into a directory "pcffont". Next, you need to copy the appropriate font into a directory "pcf". (For Japanese, the font is jiskan16.pcf.) Next, get DrawText.class. Next, create your text file (in this case japanese.txt). Finally, add an applet tag to your html file; the following tag generates the above text.
<applet code="DrawText.class" align=middle width=620 height=300> <param name="file" value="japanese.txt"> <param name="font" value="pcf/jiskan16.pcf"> </applet>
Back to my Java PCFFont class page.