From owner-freebsd-java@FreeBSD.ORG Wed Feb 25 04:47:24 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A9A5106564A for ; Wed, 25 Feb 2009 04:47:24 +0000 (UTC) (envelope-from daichi@ongs.co.jp) Received: from natial.ongs.co.jp (natial.ongs.co.jp [202.216.246.90]) by mx1.freebsd.org (Postfix) with ESMTP id D94C08FC1D for ; Wed, 25 Feb 2009 04:47:23 +0000 (UTC) (envelope-from daichi@ongs.co.jp) Received: from parancell.ongs.co.jp (dullmdaler.ongs.co.jp [202.216.246.94]) by natial.ongs.co.jp (Postfix) with ESMTPSA id 0A3BD125422; Wed, 25 Feb 2009 13:47:23 +0900 (JST) Message-ID: <49A4CD5A.9060600@ongs.co.jp> Date: Wed, 25 Feb 2009 13:47:22 +0900 From: Daichi GOTO User-Agent: Thunderbird 2.0.0.19 (X11/20090201) MIME-Version: 1.0 To: =?UTF-8?B?6JGJ5L2z5aiBIEppYXdlaSBZZQ==?= References: <49A4B04B.6070908@ongs.co.jp> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-java@freebsd.org Subject: Re: OpenJDK7 and NetBeans: Who can use non-English fonts on NetBeans? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2009 04:47:24 -0000 葉佳威 Jiawei Ye wrote: > On Wed, Feb 25, 2009 at 10:43 AM, Daichi GOTO > wrote: > > Hi Java guys, > > Who can use non-English fonts on NetBeans with OpenJDK6? > I have tried some methods to use Japanese fonts with that, > but I have all faild :-( > > If you have any ideas, please teach me. Thanks > > -- > > > Daichi GOTO, http://people.freebsd.org/~daichi > > > > One evil trick is to go to your ${JAVA_HOME}/jre/lib/fonts and put a > "fallback" directory link to your actual font dir. > > ex. on my system > > lrwxr-xr-x 1 root wheel 34 8 29 11:56 fallback -> > /usr/local/lib/X11/fonts/truetype/ > > This gives me much better Chinese fonts (I put my Mac fonts in there). > > HTH, > > Jiawei Yeah, above method is workable with JDK16 but not OpenJDK6 :-( Did you get Chinese fonts with OpenJDK6 and NetBeans? I can use Japanese fonts with some demo applicatins within OpenJDK6, but cannot get that with NetBeans65. > -- > "If it looks like a duck, walks like a duck, and quacks like a duck, > then to the end user it's a duck, and end users have made it pretty > clear they want a duck; whether the duck drinks hot chocolate or coffee > is irrelevant." -- Daichi GOTO, http://people.freebsd.org/~daichi