Font
in this GraphicsEnvironment
. A created font is one that was returned from calling {@link Font#createFont}, or derived from a created font by calling {@link Font#deriveFont}. After calling this method for such a font, it is available to be used in constructing new Font
s by name or family name, and is enumerated by {@link #getAvailableFontFamilyNames} and{@link #getAllFonts} within the execution context of thisapplication or applet. This means applets cannot register fonts in a way that they are visible to other applets. Reasons that this method might not register the font and therefore return false
are :
Font
. Font
already in this GraphicsEnvironment
. For example if the name is that of a system font, or a logical font as described in the documentation of the {@link Font} class. It is implementation dependentwhether a font may also conflict if it has the same family name as a system font. The exception for created fonts means that an application can supersede the registration of an earlier created font with a new one. font
is successfullyregistered in this GraphicsEnvironment
.
@since 1.6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|