The full font name. This name includes both the family name and the style variant within that family. For example, for a plain Arial font this would be "Arial Regular" and for a bolded Arial font this would be "Arial Bold". The precise name to use when loading a font is defined within each font file as the full font name. For example, "Proxima Nova ExtraCondensed Bold Italic" would refer to a specific Proxima Nova font. A null or empty name allows the implementation to select any suitable font.
There is a single unified way to load all of application supplied
(via Font.loadFont()
, JavaFX runtime delivered fonts,
and system installed fonts. Simply create the font by specifying
the full name of the font you want to load.
If the specific font cannot be located, then a fallback or default
font will be used. The "name" will be updated to reflect the actual name
of the font being used. A load failure condition can be discovered by
checking the name of the Font with the name you tried to load.
Note that if you wish to locate a font by font family and style
then you can use one of the font
factory methods defined in
this class.
@defaultValue empty string
Diagram: Font