RFE: Support more scripts in JDK logical fonts using new fonts in Windows XP and later.

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 7
    • Affects Version/s: 6
    • Component/s: client-libs
    • b91
    • x86
    • windows_vista

        FULL PRODUCT VERSION :
        java version "1.6.0_06"
        Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
        Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows [Version 6.0.6001]

        A DESCRIPTION OF THE PROBLEM :
        Georgian characters don't render under Java 6u6 (or Java 6u4.)

        I do have a font on my system which can handle these characters, and whereas Windows itself doesn't seem to be rendering them either, another person here can see them fine on his version of Windows.



        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Compile and run the provided test code.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        I expect the characters to display correctly.

        ACTUAL -
        Characters display as empty boxes due to use of a font which does not support them.


        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        import javax.swing.JLabel;
        import javax.swing.JOptionPane;

        public class FontTest {
            public static void main(String[] args) {
                JLabel label = new JLabel("\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8 \u10D4\u10DC\u10D0");
                //label.setFont(new Font("Sylfaen", 0, 14));
                JOptionPane.showMessageDialog(null, label);
            }
        }

        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        Uncomment the commented line in the sample code for one possible workaround. However this is not ideal as it doesn't cope with mixtures of different languages in a single component (something which we unfortunately do encounter.)

        It would be good if font replacement could take care of the magic for this, like what seems to be done for several other languages.

              Assignee:
              Yuka Kamiya (Inactive)
              Reporter:
              Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: