Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Font families available in JavaFX 8

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?

like image 202
Guido Avatar asked Sep 07 '15 12:09

Guido


People also ask

What are the five generic font families?

Font Families: Serif, Sans-serif, and others In CSS (and in typography in general) there are five basic types, or families, of fonts: serif, sans serif, cursive, fantasy, and monospace. Serif fonts have small lines or strokes that extend from the ends of characters.

Which font is used in Java programming?

Logical fonts are the five font families defined by the Java platform which must be supported by any Java runtime environment: Serif, SansSerif, Monospaced, Dialog, and DialogInput. These logical fonts are not actual font libraries.

What is the font-family list used for?

The font-family property specifies the font for an element. The font-family property can hold several font names as a "fallback" system. If the browser does not support the first font, it tries the next font.


1 Answers

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

like image 70
Ugurcan Yildirim Avatar answered Sep 18 '22 14:09

Ugurcan Yildirim