-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
1.0.2
-
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.
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.