-
Bug
-
Resolution: Fixed
-
P3
-
9, 10, 11, 12, 13, 14
-
b24
-
ppc
-
aix
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8234797 | 11.0.6 | Ichiroh Takiguchi | P3 | Resolved | Fixed | b05 |
Platform: AIX 7.1 Japanese UTF-8 (JA_JP) locale
I tried to execute SwingSet2 demo program with AIX JA_JP locale on minimum software requirements.
Splash screen was displayed, but application window was not displayed with 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')
at java.desktop/sun.font.SunFontManager.getDefaultPhysicalFont(SunFontManager.java:1081)
at java.desktop/sun.font.NativeFont.createStrike(NativeFont.java:259)
=======
For AIX platform, fontconfig.bfc (fontconfig.properties) file was used for font setting.
In case of font setting for Japanese UTF-8, "ucs2.cjk_japan" was used for XLFD charset registry.
Since this charset registry has underscore character, Java cannot detect TrueType font name.
(Underscore character is changed to space character)
"ucs2.cjk_japan-0" should be changed to "iso10646-1"
But family also needs to change.
SED script will be attached for this issue.
Initial post: https://mail.openjdk.java.net/pipermail/2d-dev/2019-September/010292.html
I tried to execute SwingSet2 demo program with AIX JA_JP locale on minimum software requirements.
Splash screen was displayed, but application window was not displayed with 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')
at java.desktop/sun.font.SunFontManager.getDefaultPhysicalFont(SunFontManager.java:1081)
at java.desktop/sun.font.NativeFont.createStrike(NativeFont.java:259)
=======
For AIX platform, fontconfig.bfc (fontconfig.properties) file was used for font setting.
In case of font setting for Japanese UTF-8, "ucs2.cjk_japan" was used for XLFD charset registry.
Since this charset registry has underscore character, Java cannot detect TrueType font name.
(Underscore character is changed to space character)
"ucs2.cjk_japan-0" should be changed to "iso10646-1"
But family also needs to change.
SED script will be attached for this issue.
Initial post: https://mail.openjdk.java.net/pipermail/2d-dev/2019-September/010292.html
- backported by
-
JDK-8234797 [AIX] GUI app does not work with UTF-8 locale on minimum software requirements
- Resolved
- relates to
-
JDK-8221741 ClassCastException can happen when fontconfig.properties is used
- Resolved