Example usage for Java javafx.scene.text Font fields, constructors, methods, implement or subclass
The text is from its open source code.
Font(@NamedArg("size") double size) Constructs a font using the default face "System". | |
Font(@NamedArg("name") String name, @NamedArg("size") double size) Constructs a font using the specified full face name and size |
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. |
List | getFamilies() Gets all the font families installed on the user's system, including any application fonts or SDK fonts. |
String | getFamily() Returns the family of this font. |
double | getSize() The point size for this font. |
Font | loadFont(String urlStr, double size) Loads a font resource from the specified URL. |
Font | loadFont(InputStream in, double size) Loads a font resource from the specified input stream. |