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

[1.4.2_x] some AWT components show garbled characters using font.properties for

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      05
    • CPU:
      x86
    • OS:
      linux_sun
    • Verification:
      Verified

      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

        Attachments

          Activity

            People

            Assignee:
            sherman Xueming Shen
            Reporter:
            kurosaki Kenichi Kurosaki (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: