Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Base font size for JavaFX CSS

917979Apr 26 2012 — edited Apr 30 2012
Hello.

I am developing an application that must be correctly displayed both in my local computer screen and in a bigger screen in production. I would like to define the font sizes across the application with CSS, in a relative way (using 'em'), supposing that the base font size is different in each screen. But I don't know how to achieve this.
When developing css for the web, I think that the 'em' is refered to the base font size established in the browser configuration. In JavaFX, how can i set this base font size? Where does JavaFX get this value from?

Thanks ind advance.

Regards.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2012
Added on Apr 26 2012
4 comments
1,815 views