So I have multiple '.ttf' fonts in a folder buy I'm failing to use them in scene builder using fxml and CSS.
Here's what I've tried with a label called 'serial connection' attached to a CSS file with theses lines:
.serialConn {
-fx-font-family:URL("fonts/capsuula.ttf");
}
That's similar to what I'm using to set backgrounds but obviously doesn't work for fonts.