Bug 76658 - font.properties actual font file cannot point to a symlink
Summary: font.properties actual font file cannot point to a symlink
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Clive Lin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-25 11:20 UTC by JY
Modified: 2005-08-28 16:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JY 2005-01-25 11:20:23 UTC
	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)
Comment 1 clive 2005-01-25 19:44:26 UTC
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
Comment 2 leafy 2005-01-26 02:22:42 UTC
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
Comment 3 Clive Lin freebsd_committer freebsd_triage 2005-04-03 04:50:15 UTC
Responsible Changed
From-To: freebsd-java->clive

Workaround found, and this now belongs to ports territory. 
I'll take care of this.
Comment 4 Clive Lin freebsd_committer freebsd_triage 2005-08-28 16:44:12 UTC
State Changed
From-To: open->closed

Fixed by fixing zh-ttfm.