openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #05920
Bug#620385: josm: Cannot use fonts outside defoma
On Sat, Apr 23, 2011 at 10:31 AM, Theppitak Karoonboonyanan
<thep@xxxxxxxxxxxxxx> wrote:
> Hi Giovanni,
>
> On Sat, Apr 23, 2011 at 4:29 AM, Giovanni Mascellani <gio@xxxxxxxxxx> wrote:
>
>> I asked on debian-java about this problem and did some more testing. It
>> actually turned out that the problem doesn't arise from defoma hints,
>> rather from the presence of the Lucida font.
>>
>> http://lists.debian.org/debian-java/2011/04/msg00052.html
>>
>> Given that I can reproduce the same behavior described in my last email
>> to that thread with the simple attached program, I consider this to be a
>> bug in OpenJDK. I'll forward this bug to the proper maintainer.
>
> Yes, I confirm that copying the Lucida TTFs from the sun-java6-jre
> package to ~/.fonts, as you described in above thread, does make your
> test program and Josm render Thai on OpenJDK VM again without
> requiring sun-java6-fonts.
>
> Since there is no any font hard-coding in your test program, so the
> difference must be in the VMs. Probably, Swing hard-codes Lucida
> font for Thai, but only Sun VM happens to ship it?
Another implication is that defoma hint is not needed any more for
Java apps. Only symlinks under /usr/share/fonts are required.
So, sun-java6-fonts can be another target to get rid of defoma
dependency. I'll file a bug soon.
Regards,
--
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/
References