Ruckus
03/01/2017, 11:11 PMAs I learned today the shown code isn’t working in Java versions >= 1.8u60. Starting with this version the attribute “font-family” is ignored and you have to use the real name of the TTF.
By example: to use the font “Birds of Paradis” contained on the file demo.ttf. I have to use this CSS file :
@font-face {
src: url(“/ui/font/demo.ttf”);
}
.label {
-fx-font-family: “Birds of Paradise”;
}