From owner-freebsd-java@FreeBSD.ORG Thu Nov 5 21:55:09 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 85C261065693 for ; Thu, 5 Nov 2009 21:55:09 +0000 (UTC) (envelope-from freebsd-java@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 14F248FC21 for ; Thu, 5 Nov 2009 21:55:09 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1N6AIL-0001Zr-2X for freebsd-java@freebsd.org; Thu, 05 Nov 2009 22:55:05 +0100 Received: from static-78-8-147-77.ssp.dialog.net.pl ([78.8.147.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Nov 2009 22:55:05 +0100 Received: from mwisnicki+freebsd by static-78-8-147-77.ssp.dialog.net.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Nov 2009 22:55:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-java@freebsd.org From: Marcin Wisnicki Date: Thu, 5 Nov 2009 21:46:26 +0000 (UTC) Lines: 47 Message-ID: References: <8315ACEB-EDE9-42C4-B689-0B584FD30968@getsnappy.com> <200911050039.nA50dCA8094090@dungeon.home> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: static-78-8-147-77.ssp.dialog.net.pl User-Agent: Pan/0.132 (Waxed in Black) Sender: news Subject: Re: openjdk6-b17 Pre Release 2 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: Thu, 05 Nov 2009 21:55:09 -0000 On Thu, 05 Nov 2009 10:39:12 +1000, Stephen McKay wrote: > On Wednesday, 4th November 2009, Brian Gardner wrote: > >>I've completed work on pre release version 2. You can gain early access >>to this port by downloading it from: >>http://www.getsnappy.com/downloads/openjdk6-b17-pr2.tar.gz > > Cool! > >>Pre Release 2 features these fixes: >>no more ugly fonts! > > It's getting closer, but there's still something amiss. Try running the > old Sun Font2DTest and there are obvious differences between the other > JDKs (diablo, linux, and native freebsd jdk 1.6) vs openjdk6-b17-pr2. > > For a start, the font selected for the buttons, etc, is different and > the general layout is distorted (some of it doesn't show up until you > resize). > > Then if you look at the fonts displayed by the tool, they differ. I've > found that "Utopia" is instructive as the E and F have been nibbled by > mice in the openjdk6-b17-pr2 version. :-) > > I'm running 7.2-p3 with most ports dating from 7.2-R, if that matters. > When I had similar problems with fonts in openjdk16-b16_1 on 8.0-BETA2 I did following: cd /usr/local/openjdk16/jre/lib sed -e 's|/usr/share/|/usr/local/lib/X11/|' fontconfig.properties.src \ > fontconfig.properties then copied DejaVu-LGC fonts to /usr/local/lib/X11/fonts/dejavu-lgc and it's fontconfig files to /usr/local/etc/fonts/conf.d . Also, I had a complete xorg (with all xorg-fonts-*). Since then everything is working perfectly. If this still fixes the problem then I guess openjdk needs some serious overhaul of its font configuration system to really use desktop's settings instead of hardcoding paths in private configuration files but in the meantime fontconfig.properties could be tweaked to something that exists on freebsd (perhaps dejavu, but dejavu-lgc port would be nice too).