-
Bug
-
Resolution: Duplicate
-
P3
-
fx2.1
-
javafx-sdk2.1.0-beta-b09, Windows 7 x64
I load font using: Font font = Font.loadFont("file:///D:/JavaFX/temp/OpenSans-Regular.ttf", 0);
which is: font = Font[name=Open Sans, family=Open Sans, style=Regular, size=12.0]
It is not rendered when set with any of the following methods:
1) set via setFont as following: label.setFont(font);
2) set via css file: scene.getStylesheets().add("Bug.css");
3) set using setStyle: label.setStyle("-fx-font-family: \"Open Sans\";");
It doesn't show any text at all.
which is: font = Font[name=Open Sans, family=Open Sans, style=Regular, size=12.0]
It is not rendered when set with any of the following methods:
1) set via setFont as following: label.setFont(font);
2) set via css file: scene.getStylesheets().add("Bug.css");
3) set using setStyle: label.setStyle("-fx-font-family: \"Open Sans\";");
It doesn't show any text at all.
- duplicates
-
JDK-8127821 Crash on use of loaded font
- Closed