United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-5016490 : [1.4.2_x] some AWT components show garbled characters using font.properties for

Details
Type:
Bug
Submit Date:
2004-03-19
Status:
Closed
Updated Date:
2004-11-11
Project Name:
JDK
Resolved Date:
2004-11-11
Component:
client-libs
OS:
linux_sun
Sub-Component:
java.awt:i18n
CPU:
x86
Priority:
P1
Resolution:
Fixed
Affected Versions:
1.4.2_04
Fixed Versions:
1.4.2_05 (05)

Related Reports

Sub Tasks

Description
Running AWT application on Quicksilver in ja_JP.UTF-8 locale, I cannot input
any characters in TextField/TextArea, and ascii characters set to TextField
in advance and the header text in Applet window are garbled.

In font.properties.ja_JP_UTF8.Sun.new, there are some definition for XFontSet
and iso10646 fonts are defined in each fontface.  It seems to be fine with
defining only iso10646 fonts but iso8859-1 fonts also seem to be required.
I think the font.properties for ko and ja since Quicksilver uses UTF-8 locale
by default have the same problem as far as I know.

And also font.properties.ja_JP_UTF8.Sun.new has a typo at line 40 for
monospaced.1.

The diff with the font.properties which works fine:

*** font.properties.ja_JP_UTF8.Sun.new.org	2004-03-01 23:01:25.000000000 +0900
--- font.properties.ja_JP_UTF8.Sun.new	2004-03-18 19:05:37.000000000 +0900
***************
*** 35,45 ****
  sansserif.bolditalic.0=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
  sansserif.bolditalic.1=-ricoh-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
  sansserif.bolditalic.2=-ricoh-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
  
  monospaced.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
! monospaced.1=-ricoh-mincho-medium-r-normal-sans-*-%d-*-*-c-*-jisx0201.1976-0
  monospaced.2=-ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
  
  monospaced.italic.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
  monospaced.italic.1=-ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
  monospaced.italic.2=-ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
--- 35,45 ----
  sansserif.bolditalic.0=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
  sansserif.bolditalic.1=-ricoh-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
  sansserif.bolditalic.2=-ricoh-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
  
  monospaced.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
! monospaced.1=-ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
  monospaced.2=-ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
  
  monospaced.italic.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
  monospaced.italic.1=-ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
  monospaced.italic.2=-ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
***************
*** 114,183 ****
--- 114,204 ----
  #
  
  # XFontSet Information
  #
  fontset.serif.plain=+ -b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1,  -ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.serif.italic=+ -b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1,  -ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.serif.bold=+ -b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1,  -ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.serif.bolditalic=+ -b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1,  -ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.sansserif.plain=+ -b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,  -ricoh-gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.sansserif.italic=+ -b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1,  -ricoh-gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.sansserif.bold=+ -b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1,  -ricoh-gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.sansserif.bolditalic=+ -b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1,  -ricoh-gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.monospaced.plain=+ -b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,  -ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.monospaced.italic=+ -b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,  -ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.monospaced.bold=+ -b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,  -ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.monospaced.bolditalic=+ -b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,  -ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.dialog.italic=+ -b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1,  -ricoh-gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.dialog.bold=+ -b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1,  -ricoh-gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.dialog.bolditalic=+ -b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1,  -ricoh-gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.dialog.plain=+ -b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,  -ricoh-gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.dialoginput.italic=+ -b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1,  -ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.dialoginput.bold=+ -b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,  -ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.dialoginput.bolditalic=+ -b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1,  -ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.dialoginput.plain=+ -b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,  -ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  fontset.default=+ -b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,  -ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1
  
  filename.-ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0=/usr/X11R6/lib/X11/fonts/truetype/hgmlsun.ttf
  filename.-ricoh-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0=/usr/X11R6/lib/X11/fonts/truetype/hgmlsun.ttf
  filename.-ricoh-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0=/usr/X11R6/lib/X11/fonts/truetype/hggbsun.ttf

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
1.4.2_05
generic

FIXED IN:
1.4.2_05

INTEGRATED IN:
1.4.2_05

VERIFIED IN:
1.4.2_05


                                     
2004-06-14
EVALUATION

The "sans" typo is real, but the textfield and textarea work fine here on
qs's b7(8???) with CharView/awt test cases, though the width of ascii 
character is a little wider. Which qs build are you testing on and what
test cases are you using?  I will try to instll the b9 later.

To use iso10646 only in XFontSet is by purpose, do you have problem to
display Japanese character by using serif or other logic fonts with 
different size setting in CharView? pick 12, 14, 16, 18 for example.
###@###.### 2004-03-19



The root cause of this bug is JDS team is changing the XLC_LOCALE def on qs
in b10(?) for all Asia utf8 locales. Java font.properties files also need
to update correspondingly for 1.4.2_05. The files need to udpated are attached
in this bug report, JDS team and Java Studio team should also update their
1.4.2_04 font.properties add-on patch with the new files.
###@###.### 2004-03-26
                                     
2004-03-26



Hardware and Software, Engineered to Work Together