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

setFont used with Menu or CheckboxMenuItem doesn't work well on windows

    XMLWordPrintable

Details

    • mantis
    • x86
    • windows_nt, windows_2000, windows_xp
    • Verified

    Description

      =============================================================
      JDK version : Mantis b04
      Reproducible OS : Windows NT ja, 2000 pro ja and XP pro ja
      =============================================================

      When setFont is used with Menu or CheckboxMenuItem on Windows, the characters are not rendered correctly (characters are "mojibake", scribbled or rendered as a dot or a square box).

      This is not reproducible with mantis b03 on Windows 2000 pro, NT and XP.
      This is not reproducible with mantis b04 on Windows98 and ME.
      This is not reproducible on Solaris with mantis b04.

      To reproduce,

      1. Run CheckboxMenuItemRenderTest1(attached)
      Then, a window comes up with a Menu and all the characters are not rendered correctly on it.
      * The Menu item is a series of the mix of some Japanese Katakana and ASCII chacacters.

      2. Click MenuBar.
      Then, you can see four CheckboxMenuItems and the first one and the second one are not rendred correctly.
      * The first one is a series of Japanese Katakana characters - the fourth character is not rendered correctly : \u30f3
        The second one is a series of Japanese Hiragana characters - the last characteris not rendered correctly : \u30fc

      The Menubar item described in 1) has both of the characters which are not rendered correctly here(\u30f3 and \u30fc)

      Trying some other font names, styles and size, this problem is reproducible.


      I made many trials for this test :
       - changing the order of CheckboxMenuItems
       - other ASCII characters, Japanese characters and the characters mixed with Japanese and ASCII characters.
      I saw a series of characters, which were not rendered correctly in a trial, were rendered in another trial with changing the order or adding other CheckboxMenuItem, so I can't specify which characters can be rendered or which characteres are scribbled.

      If setFont is not used in this test case, this problem is not reproducible.

      There is another test case, MenuTest.java(attached).
      This test case two Menu and both of the items are ASCII characters.
      You can see only the first one is not rendered correctly, but rendered with square boxes.

      You can see the difference clearly with trying mantis b03 at the same time you try to reproduce this bug with b04.

      ============================================================================
      There is a Bug4709094 which was integrated/verified in b04 and it is the bug for NT based windows OSes which are the same as the reproducible OSes of this bug, so I suspect that the fix of 4709094 affected this problem.
      ============================================================================






      Attachments

        Issue Links

          Activity

            People

              sherman Xueming Shen
              mtokunagsunw Miki Tokunaga (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: