-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0, 1.4.1
-
mantis
-
x86
-
windows_2000
###@###.### 2002-09-25
J2SE Version (please include all output from java -version flag):
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
Does this problem occur on J2SE 1.3 or 1.4? Yes / No (pick one)
Not on 1.3, but on 1.4
Operating System Configuration Information (be specific):
Win2K & Linux(RedHat 7.3), works fine with Solaris 8 machine
Bug Description:
The problem with MingLiU_HKSCS font is that TextLayout.getBounds() reports
the wrong result for every character in the font, and the red box wont
show with MingLiU_HKSCS font.
Steps to Reproduce (be specific):
1. install the font(hkscsm3u.ttf)
2. compile and run the app(TestTextLayout.java) using JDK 1.4.x
the app basically displays characters for all the available fonts on
your system
the characters for each font are displayed in 256 character "pages", you
can choose which page to display via a combobox at the bottom, and choose
which font to display via a combobox at the top
when the app starts, it should be trying to display the MingLiU_HKSCS font
on page 0x89
3. note on the initial page there should be about 20 characters shown in a
16x16 matrix.
4. select another font; just about any other font is ok, but a Chinese font
would be good. If choose MingLiU font installed from RedHat, notice that
all the MingLiu characters are surrounded by a red box. These red boxes
are drawn from the bounds obtained from TextLayout.getBounds()
If there is no Chinese font, then switching fonts to something like Arial
will display a whole lot of red on black empty boxes. This is expected,
since Arial has no characters in that page, and note that the red boxes
are correct
5. now switch back to MingLiU_HKSCS and notice that there are no red boxes.