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

fonts created with Font.createFont() not listed by getAvailableFontFamilyNames()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 5.0
    • client-libs
    • 2d
    • x86
    • solaris_2.5.1


      Name: gm110360 Date: 08/25/2004


      FULL PRODUCT VERSION :
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
      Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)


      ADDITIONAL OS VERSION INFORMATION :
      Linux infinity 2.6.7-1-386 #1 Thu Jul 8 05:08:04 EDT 2004 i686 GNU/Linux


      A DESCRIPTION OF THE PROBLEM :
      true type fonts created internally in a swing application with Font.createFont() are available and accessable for internal use in swing applications with java.awt.GraphicsEnvironment.getAvailableFontFamilyNames() in JDK 1.4, but in JDK 1.5 only standard Java fonts are available.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      from the url
      http://sourceforge.net/project/showfiles.php?group_id=69142&package_id=68012
      get RabtIM.jar, RabtPad.jar and copy in a directory.

      start application in new directory with java -Djava.ext.dirs=. -jar RabtPad.jar

      in the font list with JDK 1.5 only java standard fonts are availabel, fonts installd internally with
      createFont() are no more listed via getAvailableFontFamilyNames, in JDK 1.4 is was correct.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      font list with java standard fonts and additionally in the list user fonts.
      ACTUAL -
      only standard fonts are available

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      above example to reproduce, or the source is availabel at
      http://prdownloads.sourceforge.net/rabtpad/rabt20040106_source.tgz?download

      or

      http://sourceforge.net/project/showfiles.php?group_id=69142&package_id=68012.

      See the class RabtPad.java and search for method getAvailableFontFamilyNames...
      ---------- END SOURCE ----------

      Release Regression From : 1.4.2
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.

      (Incident Review ID: 300488)
      ======================================================================

            prr Philip Race
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: