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

[macosx] can not change the font style to italic when the text is in asian (not ASCII)

XMLWordPrintable

    • 2d
    • x86
    • os_x

      Platform: Mac OS X 10.7.2
      JDK: 7u4 b224

      Download attached zip file fontstyle.zip and unzip it. There are two java source files: JTextPaneRenderTest.java and JEditorPaneRenderTest.java.

      Trying any of the file is OK.

      [jdkhome]/bin/javac JTextPaneRenderTest.java
      [jdkhome]/bin/java JTextPaneRenderTest

      Select some Chinese text on the panel, Click "Style" menu, and try to choose font style "italic". The selected text are still the same as before, not changed to style italic. If we select the English text, and then change its style to italic from the menu, it works. The English text is changed to font style italic.

      Same steps can be performed on JEditorPaneRenderTest and the result is the same.

      On Swing component, if the text is in aisan, the font style of the text can not be changed to italic.

      This problem only happens on Mac OS X. On other platforms, for example windows, the Asian text can be changed to italic font style.

            psadhukhan Prasanta Sadhukhan
            yhuang Yong Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: