ron
03/01/2017, 10:31 PMron
03/01/2017, 10:32 PMjchildress
03/01/2017, 10:33 PMRuckus
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”;
}
Ruckus
03/01/2017, 11:12 PMron
03/02/2017, 6:33 AMedvin
03/02/2017, 7:19 AM-fx-font-family
label automatically, but I think we're better of by just specifying it. No need to go overboard 🙂 heheedvin
03/02/2017, 7:21 AMFont.createFont(Font.TRUETYPE_FONT, FileInputStream("font.ttf")).name
edvin
03/02/2017, 8:16 AMron
03/02/2017, 8:17 AMron
03/02/2017, 8:17 AMthis@something
edvin
03/02/2017, 8:24 AMron
03/02/2017, 8:25 AMron
03/02/2017, 8:27 AMron
03/02/2017, 8:32 AMron
03/02/2017, 8:46 AMedvin
03/02/2017, 9:55 AMedvin
03/02/2017, 9:57 AMedvin
03/02/2017, 9:57 AMron
03/02/2017, 9:58 AMron
03/02/2017, 9:58 AMron
03/02/2017, 9:58 AMedvin
03/02/2017, 9:58 AMedvin
03/02/2017, 9:59 AMedvin
03/02/2017, 11:39 AMjchildress
03/02/2017, 11:48 AMedvin
03/02/2017, 11:49 AM