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

font.properties file should include a unicode font to catch unusual characters

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • client-libs



      Name: rmT116609 Date: 04/01/2004


      A DESCRIPTION OF THE REQUEST :
      It would be really nice to have the font.properties file list a default unicode font at the end of all fonts that is a complete unicode font file, such as "Arial Unicode MS", and remove the exclusion ranges, so that you can display greek, cyrillic, CJK text text etc even if you aren't running against font.properties.ja etc.
      Such a font is readily available on Windows, and might even be installed by default, and makes the I18N support for java much better.

      JUSTIFICATION :
      Allows people who primarily use English or another language to still display any other language they choose.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Always displays characters in SOME font, even if it isn't the language optimized versions.
      ACTUAL -
      Displays square boxes for most I18N chracters.

      CUSTOMER SUBMITTED WORKAROUND :
      Manually modify the font.properties file, for example:
      # @(#)font.properties 1.13 02/03/07
      #
      # Copyright 2002 Sun Microsystems, Inc. All rights reserved.
      #

      # Component Font Mappings
      #
      dialog.0=Arial Unicode MS,ANSI_CHARSET
      dialog.1=WingDings,SYMBOL_CHARSET
      dialog.2=Symbol,SYMBOL_CHARSET
      dialog.3=\uff2d\uff33 \u30b4\u30b7\u30c3\u30af,SHIFTJIS_CHARSET
      dialog.4=\uad74\ub9bc,HANGEUL_CHARSET

      dialog.bold.0=Arial Bold,ANSI_CHARSET
      dialog.bold.1=WingDings,SYMBOL_CHARSET
      dialog.bold.2=Symbol,SYMBOL_CHARSET
      dialog.bold.3=\uff2d\uff33 \u30b4\u30b7\u30c3\u30af,SHIFTJIS_CHARSET
      dialog.bold.4=\uad74\ub9bc,HANGEUL_CHARSET

      dialog.italic.0=Arial Italic,ANSI_CHARSET
      dialog.italic.1=WingDings,SYMBOL_CHARSET
      dialog.italic.2=Symbol,SYMBOL_CHARSET
      dialog.italic.3=\uff2d\uff33 \u30b4\u30b7\u30c3\u30af,SHIFTJIS_CHARSET
      dialog.italic.4=\uad74\ub9bc,HANGEUL_CHARSET

      dialog.bolditalic.0=Arial Bold Italic,ANSI_CHARSET
      dialog.bolditalic.1=WingDings,SYMBOL_CHARSET
      dialog.bolditalic.2=Symbol,SYMBOL_CHARSET
      dialog.bolditalic.3=\uff2d\uff33 \u30b4\u30b7\u30c3\u30af,SHIFTJIS_CHARSET
      dialog.bolditalic.4=\uad74\ub9bc,HANGEUL_CHARSET



      dialoginput.0=Courier New,ANSI_CHARSET
      dialoginput.1=WingDings,SYMBOL_CHARSET
      dialoginput.2=Symbol,SYMBOL_CHARSET

      dialoginput.bold.0=Courier New Bold,ANSI_CHARSET
      dialoginput.bold.1=WingDings,SYMBOL_CHARSET
      dialoginput.bold.2=Symbol,SYMBOL_CHARSET

      dialoginput.italic.0=Courier New Italic,ANSI_CHARSET
      dialoginput.italic.1=WingDings,SYMBOL_CHARSET
      dialoginput.italic.2=Symbol,SYMBOL_CHARSET

      dialoginput.bolditalic.0=Courier New Bold Italic,ANSI_CHARSET
      dialoginput.bolditalic.1=WingDings,SYMBOL_CHARSET
      dialoginput.bolditalic.2=Symbol,SYMBOL_CHARSET

      serif.0=Times New Roman,ANSI_CHARSET
      serif.1=WingDings,SYMBOL_CHARSET
      serif.2=Symbol,SYMBOL_CHARSET
      serif.3=\uff2d\uff33 \u660e\u671d,SHIFTJIS_CHARSET


      serif.bold.0=Times New Roman Bold,ANSI_CHARSET
      serif.bold.1=WingDings,SYMBOL_CHARSET
      serif.bold.2=Symbol,SYMBOL_CHARSET

      serif.italic.0=Times New Roman Italic,ANSI_CHARSET
      serif.italic.1=WingDings,SYMBOL_CHARSET
      serif.italic.2=Symbol,SYMBOL_CHARSET

      serif.bolditalic.0=Times New Roman Bold Italic,ANSI_CHARSET
      serif.bolditalic.1=WingDings,SYMBOL_CHARSET
      serif.bolditalic.2=Symbol,SYMBOL_CHARSET

      sansserif.0=Arial Unicode MS,ANSI_CHARSET
      sansserif.1=WingDings,SYMBOL_CHARSET
      sansserif.2=Symbol,SYMBOL_CHARSET
      sansserif.3=\uff2d\uff33 \u30b4\u30b7\u30c3\u30af,SHIFTJIS_CHARSET
      sansserif.4=\uad74\ub9bc,HANGEUL_CHARSET

      sansserif.bold.0=Arial Bold,ANSI_CHARSET
      sansserif.bold.1=WingDings,SYMBOL_CHARSET
      sansserif.bold.2=Symbol,SYMBOL_CHARSET
      sansserif.bold.3=\uff2d\uff33 \u30b4\u30b7\u30c3\u30af,SHIFTJIS_CHARSET
      sansserif.bold.4=\uad74\ub9bc,HANGEUL_CHARSET

      sansserif.italic.0=Arial Italic,ANSI_CHARSET
      sansserif.italic.1=WingDings,SYMBOL_CHARSET
      sansserif.italic.2=Symbol,SYMBOL_CHARSET
      sansserif.italic.3=\uff2d\uff33 \u30b4\u30b7\u30c3\u30af,SHIFTJIS_CHARSET
      sansserif.italic.4=\uad74\ub9bc,HANGEUL_CHARSET

      sansserif.bolditalic.0=Arial Bold Italic,ANSI_CHARSET
      sansserif.bolditalic.1=WingDings,SYMBOL_CHARSET
      sansserif.bolditalic.2=Symbol,SYMBOL_CHARSET
      sansserif.bolditalic.3=\uff2d\uff33 \u30b4\u30b7\u30c3\u30af,SHIFTJIS_CHARSET
      sansserif.bolditalic.4=\uad74\ub9bc,HANGEUL_CHARSET


      monospaced.0=Courier New,ANSI_CHARSET
      monospaced.1=WingDings,SYMBOL_CHARSET
      monospaced.2=Symbol,SYMBOL_CHARSET
      monospaced.3=\uff2d\uff33 \u30b4\u30b7\u30c3\u30af,SHIFTJIS_CHARSET

      monospaced.bold.0=Courier New Bold,ANSI_CHARSET
      monospaced.bold.1=WingDings,SYMBOL_CHARSET
      monospaced.bold.2=Symbol,SYMBOL_CHARSET

      monospaced.italic.0=Courier New Italic,ANSI_CHARSET
      monospaced.italic.1=WingDings,SYMBOL_CHARSET
      monospaced.italic.2=Symbol,SYMBOL_CHARSET

      monospaced.bolditalic.0=Courier New Bold Italic,ANSI_CHARSET
      monospaced.bolditalic.1=WingDings,SYMBOL_CHARSET
      monospaced.bolditalic.2=Symbol,SYMBOL_CHARSET

      # Font File Names
      #
      filename.\uad74\ub9bc=gulim.TTC
      filename.\ubc14\ud0d5=batang.TTC
      filename.\uad74\ub9bc\uccb4=gulim.TTC

      filename.Arial=ARIAL.TTF
      filename.Arial_Bold=ARIALBD.TTF
      filename.Arial_Italic=ARIALI.TTF
      filename.Arial_Bold_Italic=ARIALBI.TTF

      filename.Courier_New=COUR.TTF
      filename.Courier_New_Bold=COURBD.TTF
      filename.Courier_New_Italic=COURI.TTF
      filename.Courier_New_Bold_Italic=COURBI.TTF

      filename.Times_New_Roman=TIMES.TTF
      filename.Times_New_Roman_Bold=TIMESBD.TTF
      filename.Times_New_Roman_Italic=TIMESI.TTF
      filename.Times_New_Roman_Bold_Italic=TIMESBI.TTF

      filename.WingDings=WINGDING.TTF
      filename.Symbol=SYMBOL.TTF

      filename.\uff2d\uff33_\u660e\u671d=MSMINCHO.TTC
      filename.\uff2d\uff33_\u30b4\u30b7\u30c3\u30af=MSGOTHIC.TTC

      # Missing Glyph Character
      #
      default.char=2751

      # Component Font Character Encodings
      #
      fontcharset.dialog.0=sun.io.CharToByteCp1252
      fontcharset.dialog.1=sun.awt.windows.CharToByteWingDings
      fontcharset.dialog.2=sun.awt.CharToByteSymbol

      fontcharset.dialoginput.0=sun.io.CharToByteCp1252
      fontcharset.dialoginput.1=sun.awt.windows.CharToByteWingDings
      fontcharset.dialoginput.2=sun.awt.CharToByteSymbol

      fontcharset.serif.0=sun.io.CharToByteCp1252
      fontcharset.serif.1=sun.awt.windows.CharToByteWingDings
      fontcharset.serif.2=sun.awt.CharToByteSymbol

      fontcharset.sansserif.0=sun.io.CharToByteCp1252
      fontcharset.sansserif.1=sun.awt.windows.CharToByteWingDings
      fontcharset.sansserif.2=sun.awt.CharToByteSymbol

      fontcharset.monospaced.0=sun.io.CharToByteCp1252
      fontcharset.monospaced.1=sun.awt.windows.CharToByteWingDings
      fontcharset.monospaced.2=sun.awt.CharToByteSymbol

      # Text Input Character Set
      #
      inputtextcharset=ANSI_CHARSET
      (Incident Review ID: 242175)
      ======================================================================

            nlindenbsunw Norbert Lindenberg (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: