[Integrated] RFR: 8243255: Font size is large in JavaFX app with enabled Monocle on Raspberry Pi

Alexander Scherbatiy alexsch at openjdk.java.net
Wed May 6 17:45:04 UTC 2020


On Tue, 21 Apr 2020 16:47:44 GMT, Alexander Scherbatiy <alexsch at openjdk.org> wrote:

> See the detailed issue description on: http://mail.openjdk.java.net/pipermail/openjfx-dev/2020-April/025975.html
> 
> The fix 8236448 https://github.com/openjdk/jfx/pull/75 changes
> [MonocleApplication.staticScreen_getScreens()](https://github.com/openjdk/jfx/pull/75/files#diff-b66ff7fe72c6c5cd26003572ca901bfdL228)
> method code from
>> ns.getDPI(), ns.getDPI(), ns.getScale(), ns.getScale(), ns.getScale(), ns.getScale()
> 
>  to
>  > ns.getWidth(), ns.getHeight(), 1.f, 1.f, ns.getScale(), ns.getScale()"
> 
> so the font size is not properly calculated based on the given DPI value.
> 
> I left the platformScaleX and platformScaleY as 1.f because I do not know how it affects Android/Dalvik platform. On
> Raspberry Pi where I run JavaFX code with Monocle the DispmanScreen is used which have fixed scale 1.0 value so the app
> works in the same way.

This pull request has now been integrated.

Changeset: 03855639
Author:    Alexander Scherbatiy <alexsch at openjdk.org>
Committer: Kevin Rushforth <kcr at openjdk.org>
URL:       https://git.openjdk.java.net/jfx/commit/03855639
Stats:     3 lines in 2 files changed: 1 ins; 0 del; 2 mod

8243255: Font size is large in JavaFX app with enabled Monocle on Raspberry Pi

Reviewed-by: kcr, jvos

-------------

PR: https://git.openjdk.java.net/jfx/pull/193


More information about the openjfx-dev mailing list