Re: JavaFX controls have large size on Raspberry Pi

2020-04-21 Thread thomas.manz+JFX
. Best regards, Thomas Von: Thomas Manz [mailto:thomas.manz+...@gmail.com] Gesendet: Dienstag, 21. April 2020 11:12 An: openjfx-dev@openjdk.java.net Betreff: Re: JavaFX controls have large size on Raspberry Pi -- Forwarded message -- From: Kevin Rushforth To: openjfx-dev

Re: JavaFX controls have large size on Raspberry Pi

2020-04-20 Thread Philip Race
> I would start by looking at what Font.getDefault().getSize() returns since everything should be based off that. I think the code below is the code that decides what the code above should return > Another thing to check is that the reported DPI of the screen is correct. The way I

Re: JavaFX controls have large size on Raspberry Pi

2020-04-20 Thread Kevin Rushforth
Another thing to check is that the reported DPI of the screen is correct. -- Kevin On 4/20/2020 1:25 PM, David Grieve wrote: The sizes of controls are controlled by CSS styles. Things like borders, backgrounds, padding, insets, all of that defaults to the styles in a stylesheet. Most sizes

RE: JavaFX controls have large size on Raspberry Pi

2020-04-20 Thread David Grieve
The sizes of controls are controlled by CSS styles. Things like borders, backgrounds, padding, insets, all of that defaults to the styles in a stylesheet. Most sizes are 'em' units, meaning they are relative to the size of the font. JavaFX CSS will use the Font.getDefault() font size if there