Custom Fonts in User Agent Stylesheets

Dirk Lemmermann dlemmermann at
Fri Oct 4 09:59:17 UTC 2019

I noticed today that the custom fonts I defined in a user agent stylesheet of a custom control are not being used. It only started working when I “manually” added the stylesheet to the control via getStylesheets().add() instead of overriding getUserAgentStylesheet(). 

Does anyone know if this is intentional or a bug? Are there certain things that JavaFX does not support depending on the “type” of stylesheet?


More information about the openjfx-dev mailing list