Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Nov 2009 20:53:19 +1000
From:      Stephen McKay <smckay@internode.on.net>
To:        Brian Gardner <openjdk@getsnappy.com>
Cc:        Stephen McKay <smckay@internode.on.net>, freebsd-java@freebsd.org
Subject:   Re: openjdk6-b17 Pre Release 2 
Message-ID:  <200911061053.nA6ArJbA005827@dungeon.home>
In-Reply-To: <86AD3589-941C-4F92-AF0C-84FD09BC4BD1@getsnappy.com> from Brian Gardner at "Thu, 05 Nov 2009 22:29:37 -0800"
References:  <8315ACEB-EDE9-42C4-B689-0B584FD30968@getsnappy.com> <200911050039.nA50dCA8094090@dungeon.home> <hcvh3i$ppl$1@ger.gmane.org> <A4E3C62F-F320-483A-B5FC-53DD88A3D552@getsnappy.com> <hcvm4k$d4m$1@ger.gmane.org> <490A45F3-651E-4207-9192-11A53F64C815@getsnappy.com> <hcvnf8$d4m$2@ger.gmane.org> <83CF5AB1-8162-4B65-8CD3-477D198CA21C@getsnappy.com> <86AD3589-941C-4F92-AF0C-84FD09BC4BD1@getsnappy.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911061053.nA6ArJbA005827>