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

Font constructor should throw exception if unsuccessful

XMLWordPrintable

    • 2d
    • generic
    • solaris_2.5.1

      orig synopsis: "jdk 1.0.2, Font constructor should throw exception if unsuccessful"

      At present, the java.awt.Font constructor does not throw an exception if it cannot load the requested logical font name successfully. The logical name of the font must be one of Courier, Dialog, DialogInput, Helvetica, TimesRoman or
      Symbol. If name is not one of these, a default font is chosen.

      This causes problems for developers who are making certain decisions based on Fontmetric sizes, font styles, etc as they are unaware that they are NOT working with the requested font but with the default font in these situations.

            Unassigned Unassigned
            gvanassesunw Gunter Vanasse (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: