From owner-freebsd-java@FreeBSD.ORG Thu Jan 27 19:17:14 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA25F16A4CE for ; Thu, 27 Jan 2005 19:17:14 +0000 (GMT) Received: from drop.bsdchat.com (drop.bsdchat.com [209.237.225.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABA6A43D3F for ; Thu, 27 Jan 2005 19:17:14 +0000 (GMT) (envelope-from clive@tongi.org) Received: from CARTIER (drag.bsdchat.com [209.237.225.37]) by drop.bsdchat.com (8.13.1/8.13.1) with SMTP id j0RJFVBo058337; Thu, 27 Jan 2005 19:15:32 GMT (envelope-from clive@tongi.org) Received: (nullmailer pid 4022 invoked by uid 1000); Thu, 27 Jan 2005 19:17:08 -0000 Date: Fri, 28 Jan 2005 03:17:08 +0800 From: Clive Lin To: Jiawei Ye Message-ID: <20050127191708.GA996@tongi.org> References: <200501260230.j0Q2UQQi049436@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200501260230.j0Q2UQQi049436@freefall.freebsd.org> X-PGP-key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xA008C03E User-Agent: Mutt/1.5.6i cc: freebsd-java@freebsd.org Subject: Re: java/76658: font.properties actual font file cannot point to a symlink X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 19:17:15 -0000 On Wed, Jan 26, 2005 at 02:30:26AM +0000, Jiawei Ye wrote: > I don't use ttfm.sh actually, they are for XTT and I use FreeType. I use > ttmkfdir from the ports collection. So did I. In xorg, XTT is deprecated. I'd say that ttmkfdir isn't actually required either. Xorg can just handle it well. At this point, those port still use ttfm.sh during installation should be fixed. > 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) I'm not sure if we're talking about the same root cause, but the result is same.. :p Wrong fonts.dir and symbolic linked font both result in same problem. > 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 The bsmi00.ttf is part of zh-arphicttf port, which doesn't try to create the symbolic link. As to fonts installed via ports and jdk installed via ports, it should work just fine as-is. To my best knowledge we have 2 possible solutions here: 1. fix jvm . 2. get rid of truetype font dependency in font.properties.zh_TW. I can't help with #1. As to #2, it "should" be possible. > 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. Cheers, -- Clive Tong-I Lin | http://tongi.org | PGP KeyID: A008C03E