I am in strife.
I am using a Bahnschrift Variable Font as a font for all of the text & labels of my JavaFX program. However, when I am going to use a variant of the font, the font only appears as the regular variant of the font.
More specifically, the title class doesn't show the Bold Bahnschrift Variant but only shows the Regular Bahnschrift Variant. I am also considering it to be condensed but the program doesn't seem to recognize it; so I am also asking how to make this possible.
For reference, here are the CSS files:
HelpPane.css
@import "standard.css";
.scroll-pane > .viewport, .scroll-pane {
-fx-background-color: #ffffff22;
-fx-border-color: #00000000;
}
.title {
-fx-font-size : 30px;
-fx-font-weight : bold;
}
.heading1 {
-fx-font-size : 24px;
}
sample.css
@font-face {
src: url('file:src/assets/font/Bahnschrift.ttf');
}
.label, .text {
-fx-font-family: "Bahnschrift";
-fx-text-fill: #000000;
}