The text CSS parser fails with -fx-font-size values that don't have a suffix. The resulting Size is Infinity.
def text = Text {
content: "Hello"
style: "-fx-font-size: 24"
}
scene.stylesheets = "{__DIR__}FontTest.css";
scene.content = text;
fireTestPulse();
assertEquals(Font.font("Amble Cn", null, null, 24), text.font);
(This is from the FontsTest.css file)
def text = Text {
content: "Hello"
style: "-fx-font-size: 24"
}
scene.stylesheets = "{__DIR__}FontTest.css";
scene.content = text;
fireTestPulse();
assertEquals(Font.font("Amble Cn", null, null, 24), text.font);
(This is from the FontsTest.css file)