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

The relation of character's size between 1byte and 2byte character isn't correct

XMLWordPrintable


      Tested with kestrel-linux b08 on RedHat6.1, 6.1J and 6.2J/KDE.


      The relation of character's size between 1byte and 2byte character isn't correct
      on TextArea or TextField.
      2byte character looks smaller than 1byte one.

      This is reproducible also with cricket-linux or kestrel-linux-beta(b07).


      To reproduce,
      1. Complie an attached programe TextTest.java
      2. Run TextTest.
      3. A frame appears and it has TextArea(top) and TextField(bottom) on which
      some characters(alphabet, numeric, Knaji, Hiragana, Katakana and half-width Katakana) are displayed.

      You can see the character's size of Knaji, Hiragana and 2byte-Katakana are smaller than alphabetical, numeric and half-width Katakana .

      ------------------

      reproducible with kestrel-linux-rc1-b10

      keiko.nakayama@Eng 2000-07-20


      --------------------------------------------------------------------------------

      I reopened this bug for reasons below;

      1)12 point size is frequently used, therefore this needs to be fixed.

      In printing, same problem occurs.
      To reproduce,
      1. Compile PrintTest.java
      2. Run PrintTest
      It prints japanese 1byte and 1byte KATAKANA characters which are 12point.
      Please check the problem.

      2)Some problems are found about another size.
      For example:
      14point---->ASCII characters seems Bold. The width is wider.
      16point---->ASCII character's size seems to be same as 12 point.
      18point---->ASCII character's width is not equal.

      To reproduce,
      1. Compile an attached program "StyledFont.java"
      2. Run StyledFont specifying point size as an argument
         for example, java StyledFont 12
      3. A Frame which has some AWT components appears.
         Pleae check the problems above on TextField at the bottom of the frame.

      miki.tokunaga@japan 2000-07-28

      --------------------------------------------------------------------------------

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: