From owner-freebsd-java@FreeBSD.ORG Fri Nov 6 10:54:16 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 290EA1065692 for ; Fri, 6 Nov 2009 10:54:16 +0000 (UTC) (envelope-from smckay@internode.on.net) Received: from ipmail02.adl6.internode.on.net (ipmail02.adl6.internode.on.net [203.16.214.140]) by mx1.freebsd.org (Postfix) with ESMTP id 8D7EC8FC27 for ; Fri, 6 Nov 2009 10:54:15 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAGOO80p20Atl/2dsb2JhbACBT9swhD0EgWc Received: from ppp118-208-11-101.lns20.bne1.internode.on.net (HELO dungeon.home) ([118.208.11.101]) by ipmail02.adl6.internode.on.net with ESMTP; 06 Nov 2009 21:24:13 +1030 Received: from dungeon.home (localhost [127.0.0.1]) by dungeon.home (8.14.3/8.14.3) with ESMTP id nA6ArJbA005827; Fri, 6 Nov 2009 20:53:19 +1000 (EST) (envelope-from mckay) Message-Id: <200911061053.nA6ArJbA005827@dungeon.home> To: Brian Gardner References: <8315ACEB-EDE9-42C4-B689-0B584FD30968@getsnappy.com> <200911050039.nA50dCA8094090@dungeon.home> <490A45F3-651E-4207-9192-11A53F64C815@getsnappy.com> <83CF5AB1-8162-4B65-8CD3-477D198CA21C@getsnappy.com> <86AD3589-941C-4F92-AF0C-84FD09BC4BD1@getsnappy.com> In-Reply-To: <86AD3589-941C-4F92-AF0C-84FD09BC4BD1@getsnappy.com> from Brian Gardner at "Thu, 05 Nov 2009 22:29:37 -0800" Date: Fri, 06 Nov 2009 20:53:19 +1000 From: Stephen McKay Cc: Stephen McKay , freebsd-java@freebsd.org 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: Fri, 06 Nov 2009 10:54:16 -0000 On Thursday, 5th November 2009, Brian Gardner wrote: >I don't seem to be having any issues Stephen mentioned. It appears >that sun jdks use Lucida Fonts by default, but I believe these are >licensed to sun, and that the DejuVu fonts are the standard >alternative. Anybody else having similar issues to Stephen. Stephen >are you running i386 or amd64? I'm running 7.2-p3 on i386. I guess everyone else has graduated to grownup machines by now. :-) But I don't think this is an issue. I am however running an ancient Font2DTest (from 2002). I don't know quite how I came to have it, but it was first to hand. The version installed in /usr/local/openjdk6/demo/jfc (and the other JDKs) is much more recent. The one I've been using is the same one available here: http://www.codase.com/search/download?file=L2dlbnRvbzIvdmFyL3RtcC9yZXBvcy9jb2Rhc2UuamF2YS9zaW1wbGUvRm9udDJEVGVzdC5qYXZh This old version works the same in diablo, native and linux jdk 1.6.0 but is displayed badly in openjdk6. When run under openjdk6, it must be resized a little before everything at the top is displayed. Whatever out-of-date methods it is using to display stuff should still work today, right? Moving on to the modern Font2DTest, it behaves more sensibly under openjdk6-b17-pr2 (the different font used is dejavu replacing the normal default font). However, there are still rendering issues. First up, all bar openjdk6 can do LCD antialiasing. In openjdk6 it's just black and white antialiasing. Looking again at Utopia (just because I've looked at it a few times), the rendering is sufficiently different to the other JDKs that the E and F look damaged. On closer inspection, it's simply doing poor antialiasing on smaller font sizes (under, say, 16 point). Go small enough and every letter seems poor. When using large point sizes (eg 24) they differ in detail, but look good in openjdk6 and the other JDKs. There's some super-magic hinting being ignored in openjdk6 then? So, summing up, I'm using an old Font2DTest (which may have bugs or may be exposing a genuine bug in openjdk6), some fonts (eg Utopia) are not being rendered as well as expected, and antialiasing is not as featureful as expected. Stephen.