[OpenJDK 2D-Dev] RFR: 8230873 [AIX] GUI app does work with UTF-8 locale on minimum software requirements

Ichiroh Takiguchi takiguc at linux.vnet.ibm.com
Mon Sep 23 17:16:38 UTC 2019


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 2d-dev mailing list