I'm using a CSS style sheet with a style class like this:
.sublabel {
-fx-font-style: italic;
-fx-font-size: 12;
}
...which has been set as the Label's Style Class in Scene Builder. The font size changes as expected (smaller, since I have -fx-font-size: 14; under the .root class but this is the only font-related setting). Bold style works fine, but it refuses to use an italic font. I'm not using a custom font anywhere, so this should be using the default font JavaFX 8 uses on Win7. I've also tried setting it under Style independently.
What could cause the style request to be ignored?
.sublabel
is a class, is this what you intended? Did you apply the class correctly to the label?