From owner-freebsd-java@FreeBSD.ORG Wed Feb 25 03:05:55 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 CFB44106564A for ; Wed, 25 Feb 2009 03:05:55 +0000 (UTC) (envelope-from leafy7382@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.238]) by mx1.freebsd.org (Postfix) with ESMTP id A1F718FC13 for ; Wed, 25 Feb 2009 03:05:55 +0000 (UTC) (envelope-from leafy7382@gmail.com) Received: by rv-out-0506.google.com with SMTP id f6so2831832rvb.43 for ; Tue, 24 Feb 2009 19:05:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=PHF3WdmpZv+FAC+O1X76hgJqbSSLOrfCzJx1t6rpFl0=; b=h/3qcAy0ID3AOKjvNoGlv37iCNfZuysGWzHPBAkgshNcyJTrcqudu/rXNO25klE3lY Hw/WRHIhVNAEfph7qSVcDl1grNYP+TWlWxNu6q9tSonsQMLx018APwkkeMY5U5o5B9d2 hd7vT0ryaqbgZNuoSvCEl+pzJ0xVpLAXtB8jQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=IrG39Fuxh6WnTYLzwS7+UWn8qA9Y0SB87jH0feJHilkIqnheRlLtFoRhONkckpVIej e54ykdV1m0312lvsYmIpkHqvsk4aQRiTs1AcUk52ukUdTn7JZgSdkxk/3Nm8CKuUXKjR Myk8biHxFTponYNmB0nP5goHPsi+PEWBSbK98= MIME-Version: 1.0 Received: by 10.142.192.1 with SMTP id p1mr2859723wff.316.1235531155241; Tue, 24 Feb 2009 19:05:55 -0800 (PST) In-Reply-To: <49A4B04B.6070908@ongs.co.jp> References: <49A4B04B.6070908@ongs.co.jp> Date: Wed, 25 Feb 2009 11:05:55 +0800 Message-ID: From: =?UTF-8?B?6JGJ5L2z5aiBIEppYXdlaSBZZQ==?= To: Daichi GOTO Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 03:05:56 -0000 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 -- "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."