In regular CSS, the font-family attribute takes a list of family names, and uses the first one it finds that it knows about. Is there a way to accomplish the same thing in JavaFX? In particular, I hate the default monospace font, which is ugly and much fainter than other fonts of the same size. I'd like to be able to say
.foo {
-fx-font-family: "Lucida Console", "Andale Mono", Monospace;
}
but that doesn't seem to be supported. Does anyone know of a good alternative? I could, of course, programmatically figure out which font is available, but that would seem to preclude the use of style sheets, since there isn't a way of doing dynamic substitution in .css resources, or is there?