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

Inputted with Bold/BItalic ja character in TextField aren't displayed correcltly

XMLWordPrintable

    • Fix Understood
    • x86
    • windows_98

      build : Merlin-rc b89
      OS : Windows japanese 98 2nd, ME
      GlobalTest Suite : GlobalTest suite v1.3 build 05
      Tested case : test/font-render/awt/one/TextFieldRenderTest1.java
                    test/font-render/awt/one/TextFieldRenderTest2.java
                    test/font-render/awt/one/TextFieldRenderTest3.java
                    test/font-render/awt/one/TextFieldRenderTest4.java
                    test/font-render/awt/one/TextFieldRenderTest5.java
                    or
                    test/font-render/awt/two/CharView.java


      When inputting japanese characters with Italic and BoldItalic in TextFiled of awt component, inputted character are not displayed correctly.
      Inputted some characters are overlapped and displayd.

      Steps to reproduce;
      1. launch TextFieldRenderTest1.java that is included in GlobalSuite.
      2. sh ./run_gs.sh test/font-render/awt/one/TextFieldRenderTest1.java
      3. test dialog comes up.
         Japanese characters are displayed correctly with default.
      4. Click the TextFiled on Italic.
      5. Input some japanese character and press Return key.
         ex, aiueo

      Then, you can see the problem that inputted some japanese characters are overlapped and displayed.
      Please see the attached TextFiled.gif.
      ex).
          Looking the inputted 3rd character-"u" on Italic field,
          "u" are overlapped and displayed.

      And if this test dialog is re-drawn, this problem is gone.
      Inputted character are displayed correctly.


      * This problem does not occur on Plain and Bold, occurs only on Italic and
        BoldItalic.

      * This phenomenon is not seen on Windows2000 / NT SP6 / XP FCS japanese.

      * This problem does not occur on swing/JTextField.

      ===========================================================================

      I attached CharView test case to reproducible this problem.

      Steps to reproduce;
      1. compile attached test case. (CharView.java and FontView.java)
      2. launch CharView
         % java CharView
      3. comes up dialog.
      4. Select "TextField" from choice menu on which "Button" is selected by default.
      5. Select size (ex. 12 or 18 or 20...) from choice menu on which "8" is selected by dafault.
      6. Select "Italic" or "Bold Italic" from choice menu on which "Plain" is selected by default.
      7. Click the TextFiled.
      8. Abailable japanese IM.
      9. Input some japanese character and press Redturn key.

      Then, you can see the problem.


      [###@###.### 2001-12-13]
      ===========================================================================

            dav Andrei Dmitriev (Inactive)
            rsuzukisunw Rieko Suzuki (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: