[fedora-java] Fonts hinting

Omair Majid omajid at redhat.com
Fri Nov 26 15:37:28 UTC 2010


On 11/26/2010 10:20 AM, Mario Torre wrote:
> Il giorno ven, 26/11/2010 alle 09.50 -0500, Omair Majid ha scritto:
>> On 11/26/2010 05:40 AM, Mario Torre wrote:
>>> Is there anything changed in the way OpenJDK handles fonts in the latest
>>> fedora?
>>>
>>> I update the system:
>>>
>>> java-1.6.0-openjdk-1.6.0.0-43.1.8.2.fc13.x86_64
>>>
>>> And now my nice antialiased fonts are gone. I do have freetype with the
>>> patented hinting enabled (and the patent *is* expired), but it looks
>>> like the setting is not picked up by OpenJDK.
>>>
>>
>> AFAIK the default freetype packages have subpixel rendering disabled.
>> This is different from the bytecode interpreter (which does hinting).
>> Can you please ensure that supixel rendering is enabled in freetyp?
>> (Note that most other applications work around it, so they wont be
>> affected if subpixel rendering is disabled in freetype). When I build
>> freetype with subpixel rendering enabled, it shows up fine with OpenJDK.
>>
>> Cheers,
>> Omair
>
> Yep, indeed,
>
> It was my fault, the update also updated freetype, but I resumed from
> suspend, that means the freetype library used by the running the other
> applications was not reloaded, but the first time I launched OpenJDK...
> well...
>
> I fixed this by recompiling freetype... Funny that Fedora still has the
> subpixel rendering off by default.
>

Almost nothing (aside from OpenJDK) uses freetype for subpixel 
rendering. Almost every toolkit including Xft, Cairo (gnome) and Qt 
(KDE) performs subpixel anti aliasing itself.

> Thanks for the hints :)
>

You're welcome.

Cheers,
Omair


More information about the java-devel mailing list