I have applied a custom font named of file "digital-7.ttf", the name inside digital-7. the approches works correctly in scenebuilder, but when I start the application the custom font does not work at all. the font file located at resource's folder /font/digital-7.ttf. I don't know what exactly causes the problem since the css file is applied correctly.
Here the css file:
@font-face {
src: url('/font/digital-7.ttf');
}
.text {
-fx-font-size: 30px;
}
#lblTotal {
-fx-font-family: 'Digital-7';
-fx-font-size: 60px;
-fx-text-fill: greenyellow;
}
#testId {
-fx-font-family: 'Digital-7';
-fx-text-fill: red;
-fx-font-size: 60px;
}
#lblDate,#lblTitle {
-fx-font-family: 'Digital-7';
-fx-font-size: 60px;
}
#blackscreen {
-fx-background-color: black;
-fx-padding: 5px;
}
#comptoirRoot {
-fx-background-color: #ffffff;
}
.table-view:focused .table-row-cell:filled:focused {
-fx-background-color: greenyellow;
}