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

Java does not find all fonts on Windows NT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.0
    • 1.2.0
    • client-libs
    • 2d
    • 1.2fcs
    • x86
    • windows_nt
    • Not verified



      Name: rm29839 Date: 06/03/98


      My NT machine is configured as follows (font-wise):

      * TTF fonts stored on alternate drive.
      * Bitmap (System) fonts stored in %SystemRoot%\Fonts
      * Symbolic-links to my TTF fonts are also stored in %SystemRoot%\Fonts (this is legal and can also be achieved by installing fonts
      from Control-Panel and unchecking the 'Copy fonts to Fonts folder' checkbox.)

      The VM doesn't seem to recognize this (i.e. the symbolic links) and exits with an error message of the type 'could not find fonts in
      c:\winnt\fonts.'

      After some browsing through %JDKPath%\bin\classic\jvm.dll I stumbled over 'JAVA_FONTS', so I created an environment variable
      JAVA_FONTS with my TTF directory on the alternate drive, and everything worked.

      Warning: I also saw the '\Fonts' string in jvm.dll
      *IF* you are assuming that fonts (even symbolic links to fonts) are stored in %SystemRoot%\Fonts, you might be in for a big
      surprise. There is a particular registry key which holds the Fonts directory location, and you should get that (which,
      indeed, is %SystemRoot%\Fonts by default but can always be changed!) instead of assuming a default location.
      (Review ID: 32742)
      ======================================================================

            gstone Greg Stone
            rmandelsunw Ronan Mandel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: