In ${JDK_HOME}/lib/font.properties.zh_TW (or any other files in this case), the last line designating the actual path to the font file cannot be a symlink How-To-Repeat: Just change the last line to point to a symlink. (I had a symlinked /usr/local)
On Tue, Jan 25, 2005 at 07:12:10PM +0800, leafy wrote: > >Description: > In ${JDK_HOME}/lib/font.properties.zh_TW (or any other files in this case), the last line designating the actual path to the font file cannot be a symlink > >How-To-Repeat: > Just change the last line to point to a symlink. (I had a symlinked /usr/local) I also have another note here: Fonts installation procedure under ports/chinese typically will call ttfm.sh, which is actually.. bogus now. May you try cd /usr/X11R6/lib/X11/fonts/TrueType rm fonts.dir* fonts.scale mkfontscale ; mkfontdir xset fp rehash cd /usr/local/jdk1.4.2/demo/applets/Fractal appletviewer example1.html Tricks above always work for me. Big5 encoded Chinese fonts, are displayed correctly. Here are my screen shots: http://twn.tongi.org/goodApplet.png http://twn.tongi.org/goodJavaConsole.png You may also try applets below. The "reset" and "start" button in Chinese characters work perfectly here. http://www.phy.ntnu.edu.tw/java/springForce/index.html http://www.phy.ntnu.edu.tw/java/shm/index.html -- Clive Tong-I Lin | http://tongi.org | PGP KeyID: A008C03E
I don't use ttfm.sh actually, they are for XTT and I use FreeType. I use ttmkfdir from the ports collection. 2 worthy notes here: 1. Applets had always worked, it's the standalone JVM that b0rks all the time. http://www.chinatimes.com.tw displayed correct Chinese characters while the SwingSet2 demo displayed blank boxen (JFileChooser demo) 2. Distributied font.properties.zh_TW has the last line pointing to /usr/local/share/fonts/TrueType/bsmi00.ttf. If the path is a symlink, in my case linked to /home/local/share/fonts/TrueType/bsmi00.ttf, the JVM will not find the proper font file and resulted in blank boxen too. So the problem lies in the JVM code either when trying to find the properties file or when trying to locate the actual font file. Regards, Jiawei Ye
Responsible Changed From-To: freebsd-java->clive Workaround found, and this now belongs to ports territory. I'll take care of this.
State Changed From-To: open->closed Fixed by fixing zh-ttfm.