Font Weights
Dirk Lemmermann
dlemmermann at gmail.com
Thu May 29 16:23:13 UTC 2025
Hi everyone,
Is there any chance we can get font weight working properly so that I can use a font with medium boldness and use it by declaring: -fx-font-weight: bolder; or by declaring -fx-font-weight: 600;? I know I can work around it by using the font family name, e.g. „Rubik Medium“ but this makes it impossible to replace the font at runtime, which is a requirement I am facing right now in order to support users with dyslexia. I was also considering using a variable but this is not supported for font family names (e,g, „-my-font; „Rubik Medium“).
Any other work arounds I am missing?
Dirk
More information about the openjfx-dev
mailing list