Question ad css' -fx-font-family
Rony G. Flatscher
Rony.Flatscher at wu.ac.at
Thu Apr 21 11:53:55 UTC 2022
Not sure whether these are bugs or working as intended:
* setting in a css "-fx-font-family" to:
-fx-font-family: "IBM Plex Mono","Liberation Mono",Consolas,Monaco,Terminus,Courier,monospace;
If the first listed font is not found then JavaFX uses the "family=System" rather than trying
all listed fonts in sequence and if none is found using "family=Monospaced". Testing on a
Windows system with "Liberation Mono", "Consolas" and "Courier" installed will yield
"family=System" if retrieving the used font from the control.
* It seems that if the first font family in the list is not found in "-fx-font-family" by JavaFX
then all other listed font families get ignored and the fallback seems to be "family=System".
Is this to be expected or is this a bug (have not found anything in the bug database)?
---rony
More information about the openjfx-dev
mailing list