Date: Thu, 26 Feb 2009 21:06:22 +0900 (JST) From: SAITOU Toshihide <toshi@ruby.ocn.ne.jp> To: daichi@ongs.co.jp Cc: leafy7382@gmail.com, freebsd-java@freebsd.org Subject: Re: OpenJDK7 and NetBeans: Who can use non-English fonts on NetBeans? Message-ID: <20090226.210622.41634347.toshi@ruby.ocn.ne.jp> In-Reply-To: <49A4CD5A.9060600@ongs.co.jp> References: <49A4B04B.6070908@ongs.co.jp> <c21e92e20902241905k53377448j4097c6baaf1ed098@mail.gmail.com> <49A4CD5A.9060600@ongs.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <49A4CD5A.9060600@ongs.co.jp>
Daichi GOTO <daichi@ongs.co.jp> writes:
> 葉佳威 Jiawei Ye wrote:
> > On Wed, Feb 25, 2009 at 10:43 AM, Daichi GOTO <daichi@ongs.co.jp <mailto:daichi@ongs.co.jp>> 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
> > <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.
First I change the netbeans_jdkhome in the
/usr/local/netbeans65/etc/netbeans.conf as following:
netbeans_jdkhome="/usr/local/openjdk6"
and also prepare a fontconfig.properties at this place:
/usr/local/openjdk6/jre/lib/fontconfig.properties
then japanese font is fine same as before using the jdk16.
for example (it seems that the dialog.plain.japanese-x0208
was mainly used in my NB settings):
#dialog.plain.japanese-x0208=-kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
dialog.plain.japanese-x0208=-ricoh-hgheiseikakugothictaiw3-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
---
SAITOU
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090226.210622.41634347.toshi>
