Font size

Damien Dudouit ddudouit at
Thu Apr 16 13:52:34 UTC 2015


I'm experimenting with Java FX on a Windows 7 machine, using Java 1.8.0_40.

The Font javadoc says :

import javafx.scene.control.TextArea;
import javafx.scene.text.Font;
import javafx.scene.text.FontPosture;

TextArea editor = new TextArea();
editor.setFont(Font.font("Consolas", FontPosture.REGULAR, 10));

More information about the openjfx-dev mailing list