Hi, For some reason when using the Ubuntu font-family, bold is not working - it chooses the Ubuntu Regular font. It works on Ubuntu 20.04, and does not work on Ubuntu 24.04.
Something probably changed and needs to be updated on JavaFX. public class FontTest extends Application { @Override public void start(final Stage stage) throws Exception { Label label = new Label(); Label label2 = new Label(); label2.setStyle("-fx-font-weight: bold;"); Label label3 = new Label(); label3.setStyle("-fx-font-weight: bolder;"); Label label4 = new Label(); label4.setStyle("-fx-font-style: italic;"); VBox vBox = new VBox(label, label2, label3, label4); vBox.setStyle("-fx-font-family: Ubuntu"); Scene scene = new Scene(vBox, 200, 200); stage.setScene(scene); stage.setOnShown(e -> Platform.runLater(() -> List.of(label, label2, label3, label4).forEach(l -> l.setText(l.getFont().getName())))); stage.show(); } public static void main(String... args) { Application.launch(FontTest.class, args); } }