Font families available in JavaFX 8

Guido picture Guido · Sep 7, 2015 · Viewed 44k times · Source

In my JavaFX application, the user will have the possibility to choose the font or font family for displaying the menus, labels, combo boxes, check boxes etc. Where can I find the different font families available for JavaFX 8?

Answer

Ugurcan Yildirim picture Ugurcan Yildirim · Sep 7, 2015

You can get the list of installed font families by calling javafx.scene.text.Font.getFamilies();.