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

[-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] not found

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • CPU:
      generic
    • OS:
      solaris_8

      Description

      Compile the below testcase on Solaris 8 and use the C locale
      throughout. Assume this host is called sol_host. The below
      problem happens on the following java versions:

      skywalker$ ./java -fullversion
      java full version "1.3.1-b24"
      skywalker$
      skywalker$ ./java -fullversion
      java full version "Solaris_JDK_1.2.2_05a"
      skywalker$
      skywalker$ ./java -fullversion
      java full version "1.4.0-beta2-b77"
      skywalker$


      --- Test.java ---
      // Test for Sun Microsystems
      import javax.swing.JOptionPane;

      public class Test {
         public static void main(String args[]) {
            JOptionPane.showMessageDialog(null, "This is a test");
            System.exit(0);
         }
      }


      It works fine on the console. Now login to Linux Redhat 7.0
      (assume it is called lin_host) or any other non-Sun X server (customer is
      using HP-UX 11 as well).

      $ xhost +
      $ rlogin sol_host
      $ export DISPLAY=lin_host:0.0
      $ java Test
      Font specified in font.properties not found
      [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]
      ... lines deleted ...
      Font specified in font.properties not found
      [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific]

      The application comes up for me, but does not come up for the
      customer.

      ---

      I have tried a few things as workarounds:

      (1) Use the attached, modified font.properties file in the proper
      $JAVA_HOME/jre/lib directory. Note that all occurences of the
      above font, zapfdingbats, have been replaced with fixed. Now I am
      getting

      Font specified in font.properties not found
      [fixed]

      repeating lines.

      Starting
      xterm -fn fixed on lin_host caused no problems, it works as expected.

      ---

      (2) since java modifies the fontpath (I know this was fixed in
      Merlin), I used the fontpath it changes the default fontpath and
      put it into /usr/openwin/lib/X11/fontserver.cfg on sol_host.
      Kill fs and xfs.

      Then on lin_host:
       
      xset fp default
      xset +fp tcp/sol_host:7100/all

      I am still getting the above error messages.


      ---
      Customer needs a fix for Solaris 8 on JDK 1.3 and 1.4.
      See also about 200 bugs that come up in Sunsolve.east.sun.com bug search on
      Font specified in font.properties not found

      e.g.: 4488001
      --- modified font.properties ---
      #
      # @(#)font.properties 1.14 00/05/04
      #
      # Copyright 2000 Sun Microsystems, Inc. All rights reserved.
      # Copyright 2000 Sun Microsystems, Inc. Tous droits réservés.
      #
      # This software is the proprietary information of Sun Microsystems, Inc.
      # Use is subject to license terms.
      #

      #
      # AWT Font default Properties for Solaris 2.6 and higher
      #

      # Serif font definition
      #
      serif.0=-monotype-times new roman-regular-r---*-%d-*-*-p-*-iso8859-1
      serif.1=fixed
      serif.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      serif.italic.0=-monotype-times new roman-regular-i---*-%d-*-*-p-*-iso8859-1
      serif.italic.1=fixed
      serif.italic.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      serif.bold.0=-monotype-times new roman-bold-r---*-%d-*-*-p-*-iso8859-1
      serif.bold.1=fixed
      serif.bold.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      serif.bolditalic.0=-monotype-times new roman-bold-i---*-%d-*-*-p-*-iso8859-1
      serif.bolditalic.1=fixed
      serif.bolditalic.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      # SansSerif font definition
      #
      sansserif.0=-monotype-arial-regular-r-normal--*-%d-*-*-p-*-iso8859-1
      sansserif.1=fixed
      sansserif.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      sansserif.italic.0=-monotype-arial-regular-i-normal--*-%d-*-*-p-*-iso8859-1
      sansserif.italic.1=fixed
      sansserif.italic.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      sansserif.bold.0=-monotype-arial-bold-r-normal--*-%d-*-*-p-*-iso8859-1
      sansserif.bold.1=fixed
      sansserif.bold.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      sansserif.bolditalic.0=-monotype-arial-bold-i-normal--*-%d-*-*-p-*-iso8859-1
      sansserif.bolditalic.1=fixed
      sansserif.bolditalic.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      # Monospaced font definition
      #
      monospaced.0=-monotype-courier new-regular-r---*-%d-*-*-m-*-iso8859-1
      monospaced.1=fixed
      monospaced.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      monospaced.italic.0=-monotype-courier new-regular-i---*-%d-*-*-m-*-iso8859-1
      monospaced.italic.1=fixed
      monospaced.italic.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      monospaced.bold.0=-monotype-courier new-bold-r---*-%d-*-*-m-*-iso8859-1
      monospaced.bold.1=fixed
      monospaced.bold.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      monospaced.bolditalic.0=-monotype-courier new-bold-i---*-%d-*-*-m-*-iso8859-1
      monospaced.bolditalic.1=fixed
      monospaced.bolditalic.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      # Dialog font definition
      #
      dialog.0=-monotype-arial-regular-r-normal--*-%d-*-*-p-*-iso8859-1
      dialog.1=fixed
      dialog.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      dialog.italic.0=-monotype-arial-regular-i-normal--*-%d-*-*-p-*-iso8859-1
      dialog.italic.1=fixed
      dialog.italic.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      dialog.bold.0=-monotype-arial-bold-r-normal--*-%d-*-*-p-*-iso8859-1
      dialog.bold.1=fixed
      dialog.bold.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      dialog.bolditalic.0=-monotype-arial-bold-i-normal--*-%d-*-*-p-*-iso8859-1
      dialog.bolditalic.1=fixed
      dialog.bolditalic.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      # DialogInput font definition
      #
      dialoginput.0=-monotype-courier new-regular-r---*-%d-*-*-m-*-iso8859-1
      dialoginput.1=fixed
      dialoginput.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      dialoginput.italic.0=-monotype-courier new-regular-i---*-%d-*-*-m-*-iso8859-1
      dialoginput.italic.1=fixed
      dialoginput.italic.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      dialoginput.bold.0=-monotype-courier new-bold-r---*-%d-*-*-m-*-iso8859-1
      dialoginput.bold.1=fixed
      dialoginput.bold.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      dialoginput.bolditalic.0=-monotype-courier new-bold-i---*-%d-*-*-m-*-iso8859-1
      dialoginput.bolditalic.1=fixed
      dialoginput.bolditalic.2=-*-symbol-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific

      # Default font definition
      #
      default.char=274f

      # name aliases
      #
      # alias.timesroman=serif
      # alias.helvetica=sansserif
      # alias.courier=monospaced

      # for backward compatibility
      timesroman.plain.0=-monotype-times new roman-regular-r---*-%d-*-*-p-*-iso8859-1
      timesroman.italic.0=-monotype-times new roman-regular-i---*-%d-*-*-p-*-iso8859-1
      timesroman.bold.0=-monotype-times new roman-bold-r---*-%d-*-*-p-*-iso8859-1
      timesroman.bolditalic.0=-monotype-times new roman-bold-i---*-%d-*-*-p-*-iso8859-1
      #
      helvetica.plain.0=-monotype-arial-regular-r-normal--*-%d-*-*-p-*-iso8859-1
      helvetica.italic.0=-monotype-arial-regular-i-normal--*-%d-*-*-p-*-iso8859-1
      helvetica.bold.0=-monotype-arial-bold-r-normal--*-%d-*-*-p-*-iso8859-1
      helvetica.bolditalic.0=-monotype-arial-bold-i-normal--*-%d-*-*-p-*-iso8859-1
      #
      courier.plain.0=-monotype-courier new-regular-r---*-%d-*-*-m-*-iso8859-1
      courier.italic.0=-monotype-courier new-regular-i---*-%d-*-*-m-*-iso8859-1
      courier.bold.0=-monotype-courier new-bold-r---*-%d-*-*-m-*-iso8859-1
      courier.bolditalic.0=-monotype-courier new-bold-i---*-%d-*-*-m-*-iso8859-1
      #
      zapfdingbats.0=fixed

      # Static FontCharset info.
      #
      # This information is used by the font which is not indexed by Unicode.
      # Such fonts can use their own subclass of FontCharset.
      #
      # This information can be overriden by describing more specific style.
      # For example
      #
      # fontcharset.serif.plain.3=SpecialSymbols
      # means serif.plain.3 font's index can be retrieved with the convert() method
      # of instance of SpecialSymbols and what kind of characters serif.plain.3 font
      # has can be judged with the isCovered() method of instance of SpecialSymbols.
      #
      fontcharset.serif.0=sun.io.CharToByteISO8859_1
      fontcharset.serif.1=sun.awt.motif.CharToByteX11Dingbats
      fontcharset.serif.2=sun.awt.CharToByteSymbol

      fontcharset.sansserif.0=sun.io.CharToByteISO8859_1
      fontcharset.sansserif.1=sun.awt.motif.CharToByteX11Dingbats
      fontcharset.sansserif.2=sun.awt.CharToByteSymbol

      fontcharset.monospaced.0=sun.io.CharToByteISO8859_1
      fontcharset.monospaced.1=sun.awt.motif.CharToByteX11Dingbats
      fontcharset.monospaced.2=sun.awt.CharToByteSymbol

      fontcharset.dialog.0=sun.io.CharToByteISO8859_1
      fontcharset.dialog.1=sun.awt.motif.CharToByteX11Dingbats
      fontcharset.dialog.2=sun.awt.CharToByteSymbol

      fontcharset.dialoginput.0=sun.io.CharToByteISO8859_1
      fontcharset.dialoginput.1=sun.awt.motif.CharToByteX11Dingbats
      fontcharset.dialoginput.2=sun.awt.CharToByteSymbol

      fontcharset.zapfdingbats.0=sun.io.CharToByteISO8859_1

      # exclusion info.
      #
      # This information describe exclusion ranges for each fonts.
      #
      # 'exclusion.serif.plain.0' overrides 'exclusion.serif.0', and
      # 'exclusion.serif.0' overrides exclusion.0, and so on.
      #

      # XFontSet string
      # X11 only properties
      #

      fontset.serif.plain=-monotype-times new roman-regular-r---*-%d-*-*-p-*-iso8859-1

      fontset.serif.italic=-monotype-times new roman-regular-i---*-%d-*-*-p-*-iso8859-1

      fontset.serif.bold=-monotype-times new roman-bold-r---*-%d-*-*-p-*-iso8859-1

      fontset.serif.bolditalic=-monotype-times new roman-bold-i---*-%d-*-*-p-*-iso8859-1

      fontset.sansserif.italic=-monotype-arial-regular-i-normal--*-%d-*-*-p-*-iso8859-1
       
      fontset.sansserif.bold=-monotype-arial-bold-r-normal--*-%d-*-*-p-*-iso8859-1
       
      fontset.sansserif.bolditalic=-monotype-arial-bold-i-normal--*-%d-*-*-p-*-iso8859-1
       
      fontset.sansserif.plain=-monotype-arial-regular-r-normal--*-%d-*-*-p-*-iso8859-1

      fontset.monospaced.italic=-monotype-courier new-regular-i---*-%d-*-*-m-*-iso8859-1
       
      fontset.monospaced.bold=-monotype-courier new-bold-r---*-%d-*-*-m-*-iso8859-1
       
      fontset.monospaced.bolditalic=-monotype-courier new-bold-i---*-%d-*-*-m-*-iso8859-1
       
      fontset.monospaced.plain=-monotype-courier new-regular-r---*-%d-*-*-m-*-iso8859-1
       
      fontset.dialog.italic=-monotype-arial-regular-i-normal--*-%d-*-*-p-*-iso8859-1
       
      fontset.dialog.bold=-monotype-arial-bold-r-normal--*-%d-*-*-p-*-iso8859-1
       
      fontset.dialog.bolditalic=-monotype-arial-bold-i-normal--*-%d-*-*-p-*-iso8859-1
       
      fontset.dialog.plain=-monotype-arial-regular-r-normal--*-%d-*-*-p-*-iso8859-1
       
      fontset.dialoginput.italic=-monotype-courier new-regular-i---*-%d-*-*-m-*-iso8859-1
       
      fontset.dialoginput.bold=-monotype-courier new-bold-r---*-%d-*-*-m-*-iso8859-1
       
      fontset.dialoginput.bolditalic=-monotype-courier new-bold-i---*-%d-*-*-m-*-iso8859-1
       
      fontset.dialoginput.plain=-monotype-courier new-regular-r---*-%d-*-*-m-*-iso8859-1

      # for backward compatibility
      fontset.timesroman.plain=-monotype-times new roman-regular-r---*-%d-*-*-p-*-iso8859-1

      fontset.timesroman.italic=-monotype-times new roman-regular-i---*-%d-*-*-p-*-iso8859-1

      fontset.timesroman.bold=-monotype-times new roman-bold-r---*-%d-*-*-p-*-iso8859-1

      fontset.timesroman.bolditalic=-monotype-times new roman-bold-i---*-%d-*-*-p-*-iso8859-1

      fontset.helvetica.plain=-monotype-arial-regular-r-normal--*-%d-*-*-p-*-iso8859-1

      fontset.helvetica.italic=-monotype-arial-regular-i-normal--*-%d-*-*-p-*-iso8859-1

      fontset.helvetica.bold=-monotype-arial-bold-r-normal--*-%d-*-*-p-*-iso8859-1

      fontset.helvetica.bolditalic=-monotype-arial-bold-i-normal--*-%d-*-*-p-*-iso8859-1

      fontset.courier.plain=-monotype-courier new-regular-r---*-%d-*-*-m-*-iso8859-1

      fontset.courier.italic=-monotype-courier new-regular-i---*-%d-*-*-m-*-iso8859-1

      fontset.courier.bold=-monotype-courier new-bold-r---*-%d-*-*-m-*-iso8859-1

      fontset.courier.bolditalic=-monotype-courier new-bold-i---*-%d-*-*-m-*-iso8859-1

      #fontset.zapfdingbats=#-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific=fixed

      fontset.zapfdingbats=-monotype-courier new-bold-i---*-%d-*-*-m-*-iso8859-1

      #
      fontset.default=-monotype-arial-regular-r-normal--*-%d-*-*-p-*-iso8859-1
      #

      --- fontserver.cfg ---
      # font server configuration file
      # $XConsortium: config.cpp,v 1.7 91/08/22 11:39:59 rws Exp $

      clone-self = on
      use-syslog = off
      #catalogue =/usr/openwin/lib/X11/fonts/F3bitmaps/,/usr/openwin/lib/X11/fonts/Type1/,/usr/openwin/lib/X11/fonts/Speedo/,/usr/openwin/lib/X11/fonts/misc/,/usr/openwin/lib/X11/fonts/75dpi/,/usr/openwin/lib/X11/fonts/100dpi/

      catalogue = /usr/openwin/lib/X11/fonts/F3bitmaps/,/usr/openwin/lib/X11/fonts/Type1/,/usr/openwin/lib/X11/fonts/Speedo/,/usr/openwin/lib/X11/fonts/misc/,/usr/openwin/lib/X11/fonts/75dpi/,/usr/openwin/lib/X11/fonts/100dpi/ /usr/openwin/lib/X11/fonts/F3/,/usr/openwin/lib/X11/fonts/F3bitmaps/,/usr/openwin/lib/X11/fonts/Type1/,/usr/openwin/lib/X11/fonts/Speedo/,/usr/openwin/lib/X11/fonts/misc/,/usr/openwin/lib/X11/fonts/75dpi/,/usr/openwin/lib/X11/fonts/100dpi/,/usr/openwin/lib/locale/zh_TW/X11/fonts/TrueType/,/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT/,/usr/openwin/lib/locale/zh/X11/fonts/TrueType/,/usr/openwin/lib/locale/zh.GBK/X11/fonts/TrueType/,/usr/openwin/lib/locale/th_TH/X11/fonts/TrueType/,/usr/openwin/lib/locale/sun_eu_greek/X11/fonts/TrueType/,/usr/openwin/lib/locale/ru.ansi-1251/X11/fonts/TrueType/,/usr/openwin/lib/locale/ko/X11/fonts/TrueType/,/usr/openwin/lib/locale/ko.UTF-8/X11/fonts/TrueType/,/usr/openwin/lib/locale/ja/X11/fonts/TT/,/usr/openwin/lib/locale/iso_8859_9/X11/fonts/Type1/,/usr/openwin/lib/locale/iso_8859_9/X11/fonts/TrueType/,/usr/openwin/lib/locale/iso_8859_8/X11/fonts/Type1/,/usr/openwin/lib/locale/iso_8859_8/X11/fonts/TrueType/,/usr/openwin/lib/locale/iso_8859_7/X11/fonts/Type1/,/usr/openwin/lib/locale/iso_8859_7/X11/fonts/TrueType/,/usr/openwin/lib/locale/iso_8859_5/X11/fonts/Type1/,/usr/openwin/lib/locale/iso_8859_5/X11/fonts/TrueType/,/usr/openwin/lib/locale/iso_8859_4/X11/fonts/Type1/,/usr/openwin/lib/locale/iso_8859_2/X11/fonts/Type1/,/usr/openwin/lib/locale/iso_8859_2/X11/fonts/TrueType/,/usr/openwin/lib/locale/iso_8859_15/X11/fonts/TrueType/,/usr/openwin/lib/locale/iso_8859_13/X11/fonts/Type1/,/usr/openwin/lib/locale/iso_8859_13/X11/fonts/TrueType/,/usr/openwin/lib/locale/ar/X11/fonts/TrueType/,/usr/openwin/lib/locale/KOI8-R/X11/fonts/TrueType/,/usr/openwin/lib/X11/fonts/TrueType/,/usr/java1.2/jre/lib/fonts/,/opt2/SUNWns6/java/lib/fonts/,/opt/gnome-1.4/share/nautilus/fonts/urw/,/opt/gnome-1.4/share/ghostscript/fonts/

      # in decipoints
      default-point-size = 120
      default-resolutions = 75,75,100,100

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: