A simple data class representing a font in Java FX.
A simple data class representing a font in Java FX.
This is a simple case class holding the various attributes supported by a
Java FX font as Option values. All of these properties are optional, in
fact the whole object can be fully undefined. The data stored in an instance
is used to update the styles definition of a Java FX node. Therefore, all
properties are of type String - they directly correspond to style sheet
definitions.
family
the font family
size
the font size
style
the font style
weight
the font weight
fontDef
a kind of meta attribute for a font definition in a single
style (this corresponds to the Java FX fx-font attribute)
A simple data class representing a font in Java FX.
This is a simple case class holding the various attributes supported by a Java FX font as Option values. All of these properties are optional, in fact the whole object can be fully undefined. The data stored in an instance is used to update the styles definition of a Java FX node. Therefore, all properties are of type String - they directly correspond to style sheet definitions.
the font family
the font size
the font style
the font weight
a kind of meta attribute for a font definition in a single style (this corresponds to the Java FX
fx-font
attribute)