how to get font and size of a tet in javafx code example
Example: javafx change text size
text.setFont(Font.font ("arial", 24));
or
text.setStyle("-fx-font: 24 arial;");
text.setFont(Font.font ("arial", 24));
or
text.setStyle("-fx-font: 24 arial;");