Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8230873

[AIX] GUI app does not work with UTF-8 locale on minimum software requirements

XMLWordPrintable

    • b24
    • ppc
    • aix

        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

          1. fc.pl
            1 kB
          2. fc.sed
            2 kB
          3. with-fix.log
            16 kB
          4. without-fix.log
            400 kB

              itakiguchi Ichiroh Takiguchi
              itakiguchi Ichiroh Takiguchi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: