I was trying to understand what we are trying to accomplish with logical fonts in javafx.
Initially I thought they were the jfx equivalent to generic font families used in CSS.
But it didn't quite match, jfx provides:
"System", "Serif", "SansSerif", "Monospaced"
CSS:
serif, sans-serif, monospace, cursive, fantasy
Besides, I'm not sure how jfx would handle a font family list, for example:
font-family: "Helvetica", "Arial", sans-serif;
My next guess it that jfx logical fonts == AWT logical fonts.
AWT:
Dialog, DialogInput, Monospaced, Serif, SansSerif
I think that is the case (jfx maps Dialog->SanSerif and DialogInput->Monospaced).
As far as I tell, the logical font names are not mention in the javafx API (while AWT does).
My questions are:
-should logical fonts in jfx mapper to CSS names more closely ?
-should (and how) this feature be described in the javadoc ?
Initially I thought they were the jfx equivalent to generic font families used in CSS.
But it didn't quite match, jfx provides:
"System", "Serif", "SansSerif", "Monospaced"
CSS:
serif, sans-serif, monospace, cursive, fantasy
Besides, I'm not sure how jfx would handle a font family list, for example:
font-family: "Helvetica", "Arial", sans-serif;
My next guess it that jfx logical fonts == AWT logical fonts.
AWT:
Dialog, DialogInput, Monospaced, Serif, SansSerif
I think that is the case (jfx maps Dialog->SanSerif and DialogInput->Monospaced).
As far as I tell, the logical font names are not mention in the javafx API (while AWT does).
My questions are:
-should logical fonts in jfx mapper to CSS names more closely ?
-should (and how) this feature be described in the javadoc ?
- relates to
-
JDK-8088675 WebView does not support "cursive" and "fantasy" font families
-
- Open
-