Uses of Class
javafx.scene.text.Font
Package
Description
Provides API for making properties styleable via CSS and for supporting
pseudo-class state.
Provides various
StyleConverter
classes
that convert CSS parsed values.Provides the set of classes for canvas, an immediate mode style of rendering API.
The JavaFX User Interface provides a set of chart components that
are a very convenient way for data visualization.
The JavaFX User Interface Controls (UI Controls or just Controls) are
specialized Nodes in the JavaFX Scenegraph especially suited for reuse in
many different application contexts.
Provides the set of classes for fonts and renderable Text Node.
-
Uses of Font in javafx.css
Modifier and TypeMethodDescriptionfinal CssMetaData
<S, Font> StyleablePropertyFactory.createFontCssMetaData
(String property, Function<S, StyleableProperty<Font>> function) Create a CssMetaData<S, Font> with initial value ofgetDefault()
, and inherit flag defaulting to true.final CssMetaData
<S, Font> StyleablePropertyFactory.createFontCssMetaData
(String property, Function<S, StyleableProperty<Font>> function, Font initialValue) Create a CssMetaData<S, Font> with initial value, and inherit flag defaulting to true.final CssMetaData
<S, Font> StyleablePropertyFactory.createFontCssMetaData
(String property, Function<S, StyleableProperty<Font>> function, Font initialValue, boolean inherits) Create a CssMetaData<S, Font> with initial value, and inherit flag.final StyleableProperty
<Font> StyleablePropertyFactory.createStyleableFontProperty
(S styleable, String propertyName, String cssProperty) Create a StyleableProperty<Font> using previously created CssMetaData for the givencssProperty
.final StyleableProperty
<Font> StyleablePropertyFactory.createStyleableFontProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Font>> function) Create a StyleableProperty<Font>.final StyleableProperty
<Font> StyleablePropertyFactory.createStyleableFontProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Font>> function, Font initialValue) Create a StyleableProperty<Font> with initial value.final StyleableProperty
<Font> StyleablePropertyFactory.createStyleableFontProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Font>> function, Font initialValue, boolean inherits) Create a StyleableProperty<Font> with initial value and inherit flag.static StyleConverter
<ParsedValue[], Font> StyleConverter.getFontConverter()
Return aStyleConverter
that converts a parsed representation of aFont
to anFont
.Modifier and TypeMethodDescriptionConvenience method for callingconvert
on thisParsedValue
.StyleConverter.convert
(ParsedValue<F, T> value, Font font) Convert from the parsed CSS value to the target property type.final CssMetaData
<S, Font> StyleablePropertyFactory.createFontCssMetaData
(String property, Function<S, StyleableProperty<Font>> function, Font initialValue) Create a CssMetaData<S, Font> with initial value, and inherit flag defaulting to true.final CssMetaData
<S, Font> StyleablePropertyFactory.createFontCssMetaData
(String property, Function<S, StyleableProperty<Font>> function, Font initialValue, boolean inherits) Create a CssMetaData<S, Font> with initial value, and inherit flag.final StyleableProperty
<Font> StyleablePropertyFactory.createStyleableFontProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Font>> function, Font initialValue) Create a StyleableProperty<Font> with initial value.final StyleableProperty
<Font> StyleablePropertyFactory.createStyleableFontProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Font>> function, Font initialValue, boolean inherits) Create a StyleableProperty<Font> with initial value and inherit flag.double
Converts this size into pixels.double
If size is not an absolute size, return the product of font size in pixels and value.abstract double
Calculates pixels for a particularSizeUnits
.abstract double
Calculates points for a particularSizeUnits
.Modifier and TypeMethodDescriptionfinal CssMetaData
<S, Font> StyleablePropertyFactory.createFontCssMetaData
(String property, Function<S, StyleableProperty<Font>> function) Create a CssMetaData<S, Font> with initial value ofgetDefault()
, and inherit flag defaulting to true.final CssMetaData
<S, Font> StyleablePropertyFactory.createFontCssMetaData
(String property, Function<S, StyleableProperty<Font>> function, Font initialValue) Create a CssMetaData<S, Font> with initial value, and inherit flag defaulting to true.final CssMetaData
<S, Font> StyleablePropertyFactory.createFontCssMetaData
(String property, Function<S, StyleableProperty<Font>> function, Font initialValue, boolean inherits) Create a CssMetaData<S, Font> with initial value, and inherit flag.final StyleableProperty
<Font> StyleablePropertyFactory.createStyleableFontProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Font>> function) Create a StyleableProperty<Font>.final StyleableProperty
<Font> StyleablePropertyFactory.createStyleableFontProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Font>> function, Font initialValue) Create a StyleableProperty<Font> with initial value.final StyleableProperty
<Font> StyleablePropertyFactory.createStyleableFontProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Font>> function, Font initialValue, boolean inherits) Create a StyleableProperty<Font> with initial value and inherit flag.ModifierConstructorDescriptionFontCssMetaData
(String property, Font initial) Constructs a FontCSSMetaData object from the specified property and initial Font. -
Uses of Font in javafx.css.converter
Modifier and TypeMethodDescriptionstatic StyleConverter
<ParsedValue[], Font> FontConverter.getInstance()
Gets theFontConverter
instance. -
Uses of Font in javafx.scene.canvas
-
Uses of Font in javafx.scene.chart
Modifier and TypeMethodDescriptionfinal Font
Axis.getTickLabelFont()
Gets the value of thetickLabelFont
property.Modifier and TypeMethodDescriptionfinal ObjectProperty
<Font> Axis.tickLabelFontProperty()
The font for all tick labelsModifier and TypeMethodDescriptionfinal void
Axis.setTickLabelFont
(Font value) Sets the value of thetickLabelFont
property. -
Uses of Font in javafx.scene.control
Modifier and TypeMethodDescriptionfinal Font
Labeled.getFont()
Gets the value of thefont
property.final Font
TextInputControl.getFont()
Gets the value of thefont
property.final Font
Tooltip.getFont()
Gets the value of thefont
property.Modifier and TypeMethodDescriptionfinal ObjectProperty
<Font> Labeled.fontProperty()
The default font to use for text in the Labeled.final ObjectProperty
<Font> TextInputControl.fontProperty()
The default font to use for text in the TextInputControl.final ObjectProperty
<Font> Tooltip.fontProperty()
The default font to use for text in the Tooltip. -
Uses of Font in javafx.scene.text
Modifier and TypeMethodDescriptionstatic Font
Font.font
(double size) Searches for an appropriate font based on the default font family name and given font size.static Font
Searches for an appropriate font based on the given font family name and default font size.static Font
Searches for an appropriate font based on the font family name and size.static Font
Font.font
(String family, FontPosture posture, double size) Searches for an appropriate font based on the font family name and posture style.static Font
Font.font
(String family, FontWeight weight, double size) Searches for an appropriate font based on the font family name and weight style.static Font
Font.font
(String family, FontWeight weight, FontPosture posture, double size) Searches for an appropriate font based on the font family name and weight and posture style.static Font
Font.getDefault()
Gets the default font which will be from the family "System", and typically the style "Regular", and be of a size consistent with the user's desktop environment, to the extent that can be determined.final Font
Text.getFont()
Gets the value of thefont
property.static Font
Font.loadFont
(InputStream in, double size) Loads a font resource from the specified input stream.static Font
Loads a font resource from the specified URL.static Font[]
Font.loadFonts
(InputStream in, double size) Loads font resources from the specified input stream.static Font[]
Loads font resources from the specified URL.Modifier and TypeMethodDescriptionfinal ObjectProperty
<Font> Text.fontProperty()
Defines the font of text.