[OpenJDK 2D-Dev] RFR: 8230873 [AIX] GUI app does not work with UTF-8 locale on minimum software requirements
Ichiroh Takiguchi
takiguc at linux.vnet.ibm.com
Mon Oct 28 17:23:16 UTC 2019
Hello.
I added my comment into JDK-8230873 [1]
I appreciate if you give me your comment and suggestion.
[1] https://bugs.openjdk.java.net/browse/JDK-8230873
Thanks,
Ichiroh Takiguchi
On 2019-10-10 14:59, Ichiroh Takiguchi wrote:
> Thanks Christoph.
>
> I attached console log files for -Dsun.java2d.debugfonts=true option
> into JDK-8230873 [1]
>
> [1] https://bugs.openjdk.java.net/browse/JDK-8230873
>
> Thanks,
> Ichiroh Takiguchi
>
> On 2019-10-08 16:32, Langer, Christoph wrote:
>> Hi Ichiroh,
>>
>> I ran this patch through our test queue and it works fine.
>>
>> I also checked the output of a simple test program that does
>> GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames()
>> which loads the font configuration with -Dsun.java2d.debugfonts=true.
>> I can see that lots of errors/logs like:
>>
>> Oct 04, 2019 9:59:39 AM sun.awt.X11FontManager
>> getFileNameFromPlatformName
>> WARNING: ** Registering all font paths because can't find file for
>> -monotype-sanswt-medium-r-normal--*-%d-75-75-*-*-ucs2.cjk_japan-0
>>
>> are gone now. So it must be good
>>
>> Best regards
>> Christoph
>>
>>> -----Original Message-----
>>> From: 2d-dev <2d-dev-bounces at openjdk.java.net> On Behalf Of Ichiroh
>>> Takiguchi
>>> Sent: Dienstag, 24. September 2019 09:54
>>> To: 2d-dev at openjdk.java.net; ppc-aix-port-dev <ppc-aix-port-
>>> dev at openjdk.java.net>
>>> Subject: Re: [OpenJDK 2D-Dev] RFR: 8230873 [AIX] GUI app does not
>>> work
>>> with UTF-8 locale on minimum software requirements
>>>
>>> Hello.
>>>
>>> I'm sorry, I made a typo in the Subject.
>>>
>>> Could you review the fix ?
>>>
>>> Bug: https://bugs.openjdk.java.net/browse/JDK-8230873
>>> Change: https://cr.openjdk.java.net/~itakiguchi/8230873/webrev.00/
>>>
>>> Thanks,
>>> Ichiroh Takiguchi
>>> IBM Japan, Ltd.
>>>
>>> On 2019-09-24 02:16, Ichiroh Takiguchi wrote:
>>> > Hello.
>>> >
>>> > Could you review the fix ?
>>> >
>>> > Bug: https://bugs.openjdk.java.net/browse/JDK-8230873
>>> > Change: https://cr.openjdk.java.net/~itakiguchi/8230873/webrev.00/
>>> >
>>> > GUI application does not work with AIX's JA_JP UTF-8 locale on minimum
>>> > software requirements and settings because of following exception:
>>> > Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException:
>>> > class sun.font.CompositeFont cannot be cast to class
>>> > sun.font.PhysicalFont
>>> > (sun.font.CompositeFont and sun.font.PhysicalFont are in module
>>> > java.desktop of loader 'bootstrap')
>>> >
>>> > About the reasons for this exception:
>>> > 1. Default physical font is not defined (like Lucida sans)
>>> > 2. XLFD charset name entries for JA_JP locale have Underscore character
>>> > (Underscore character replaces with Space character on
>>> > fontconfig.proeprties
>>> > (fontconfig.bfs) file loading phase.)
>>> >
>>> > About "1", I'd like to handle it by JDK-8221741 [1].
>>> > About "2", OpenJDK for AIX is using fontconfig.properties
>>> > (fontconfig.bfc) file
>>> > to find out TrueType fonts.
>>> > On AIX JCK UTF-8 locales, Java cannot find out TrueType font because
>>> > above XLFD charset name issue.
>>> >
>>> > This fix only changes fontconfig.properties for AIX platform
>>> > * make/data/fontconfig/aix.fontconfig.properties
>>> >
>>> > [1] https://bugs.openjdk.java.net/browse/JDK-8230873
>>> >
>>> > Thanks,
>>> > Ichiroh Takiguchi
>>> > IBM Japan, Ltd.
More information about the ppc-aix-port-dev
mailing list