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

[macosx] Wrong rendering of diacritics on macOS

XMLWordPrintable

    • 2d
    • b161


        Wrong rendering of diacritics on macOS

        Reproduced on 8u112 on a Mac running Sierra (10.12.1)

        public class LabelWithDiacriticTest {
            public static void main(String[] args) {
                SwingUtilities.invokeLater(() -> {
                    JLabel label = new JLabel("au0300"); // a with grave accent
                    label.setFont(new Font("Menlo", Font.PLAIN, 24));
                    JFrame frame = new JFrame();
                    frame.add(label);
                    frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
                    frame.pack();
                    frame.setLocationRelativeTo(null);
                    frame.setVisible(true);
                });
            }
        }

        To reproduce the issue, run the attached sample program. It's expected to
        show text label with 'a' character, with grave accent applied. Instead it
        shows label with 'a' and grave accent rendered separately.

              dmarkov Dmitry Markov
              shadowbug Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: