JFXtrasFontRoboto { public static void loadAll() { for (AvailableFonts f : AvailableFonts.values()) { load(f); } }  static void loadAll(); synchronized static void load(AvailableFonts font);  }
@Test public void loadAll() { TestUtil.runThenWaitForPaintPulse( () -> { JFXtrasFontRoboto.loadAll(); Label l = new Label("xxxxx"); l.setStyle("-fx-font-family: 'Roboto Italic'; -fx-font-size:32pt;"); box.getChildren().clear(); box.getChildren().add(l); }); generateXYWH(); new AssertNode(find(".label")).assertXYWH(0.0, 0.0, 102.0, 59.0, 0.01); TestUtil.runThenWaitForPaintPulse( () -> { Label l = new Label("xxxxx"); l.setStyle("-fx-font-family: 'Roboto Medium'; -fx-font-size:32pt;"); box.getChildren().clear(); box.getChildren().add(l); }); generateXYWH(); new AssertNode(find(".label")).assertXYWH(0.0, 0.0, 109.0, 59.0, 0.01); }