Uses of Enum Class
Provides the set of classes for fonts and renderable Text Node.
Uses of FontWeight in javafx.scene.textModifier and TypeMethodDescriptionFontWeight.
FontWeightby its name.FontWeight.
(int weight)Returns the closest
FontWeightfor a weight value as defined by the CSS and OpenType specifications.Returns the enum constant of this class with the specified name.
values()Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescription
(String family, FontWeight weight, double size)Searches for an appropriate font based on the font family name and weight style.
(String family, FontWeight weight, FontPosture posture, double size)Searches for an appropriate font based on the font family name and weight and posture style.