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

Font constructor should throw exception if unsuccessful

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • CPU:
      generic
    • OS:
      solaris_2.5.1

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: