Recently, We shift our project Javafx8 to Javafx17. All css properties seems to be working fine but -fx-font-weight: bold
not working. We are stuck on this since last two days. We have tried every possible solution But, it is not working.
"-fx-font-weight: bold;"
we also tried with numeric values and by code and external css :
"-fx-font-weight: 700;" i.e. label.setFont(Font.font("Helvetica", FontWeight.BOLD, 10));
Seems like there is some change but we couldn't find at documentation.
Any help would be appreciated. thanks.
-fx-font: 'Arial';-fx-font-weight: bold;
doesn't work at all with theText
element but works fine withtext.setFont(Font.font("Arial", FontWeight.BOLD, 36));
– Fovea