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

drawString.transform problem for Italic/Bold 2byte characters

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      rc
    • CPU:
      sparc
    • OS:
      solaris_8
    • Verification:
      Verified

      Description


      ============================================
      jdk version: Hopper rc b16
      tested OS : Solaris8 Sparc
      Locale : ja
      ============================================

      Japanese characters, which are transformed with drawString().transform(), can not be Italic/Bold/BoldItalic for some directions.

      You can see the phenomenon in rc-b16.jpg(attached).
      You can see two circle of the strings for drawString().transform() and draw(createTransformedShape(TextLayout.getOutline())).
      On the drawString().transform() example, you can see the string displayed towards the top, the bottom and the left from the center of the circle can not be BoldItalic.
      No problem on the other example for draw(createTransformedShape(TextLayout.getOutline())).

      This problem is reproducible with Hopper Beta, too.
      This is not reproducible with Merlin FCS.
      You can see the correct behavior in merlin-fcs.jpg(attached).
      This is a regression to Merlin.


      To reproduce,

      1. Extract FontEffectTest.tar
      2. Run FontEffectTest2
      3. Input Japanese characters range, 3040( Hiragana) or 30a0(Katakana) or 4e00(Kanji) in Hex Unicode field.
      4. Select Italic or BoldItalic.
      Select any size so that you can see the characters easily, for example, 16 or 20.

      This is reproducible with any font among Serif, SansSerif, Monospaced, Dialog and DialogInput and any size.
      Whichever Antialias off and on is selcted, the problem is reproducible.

      This problem is seen also on Windows2000 japanese.

        Attachments

          Activity

            People

            Assignee:
            sherman Xueming Shen
            Reporter:
            mmtokunasunw Mtokunaga Mtokunaga (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: