[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-openjfx-dev
Subject: Re: [Rev 01] RFR: 8243255: Font size is large in JavaFX app with enabled Monocle on Raspberry Pi
From: Kevin Rushforth <kcr () openjdk ! java ! net>
Date: 2020-04-28 23:20:29
Message-ID: ca3_-Iv_gqS9KKexy638Y1o3sm-BL29NKme7jd5Hlgw=.02da0b60-5c89-416d-8aeb-9e000622e166 () github ! com
[Download RAW message or body]
On Tue, 28 Apr 2020 23:17:48 GMT, Kevin Rushforth <kcr@openjdk.org> wrote:
> > Alexander Scherbatiy has updated the pull request incrementally with one \
> > additional commit since the last revision:
> > Search javafx.platform.properties in jfx-runtime/lib directory
>
> Marked as reviewed by kcr (Lead).
Pending review by @johanvos
> modules/javafx.base/src/main/java/com/sun/javafx/PlatformUtil.java line 241:
>
> > 240: s.lastIndexOf('/'), s.lastIndexOf('\\'));
> > 241: return new File(new URL(s.substring(0, lastIndexOfSlash + \
> > 1)).getPath());
> > 242: } catch (MalformedURLException e) {
>
> The previous code looks like a hold-over from JDK 8, where jfxrt.jar was in \
> `lib/ext`. It also assumes that the JavaFX runtime is being loaded from a jar URL, \
> which isn't necessarily the case. Probably the only reason it hasn't caused \
> problems before now is that it is only used to locate `javafx.platform.properties`. \
> Worth noting is that we won't get here in the case JavaFX is jlinked into the Java \
> runtime, although in that case, the fallback method of locating it relative to the \
> JDK should be used. I'll take a closer look this specific change, but I think it \
> should be OK. I'll defer the review as a whole to Johan.
I can confirm that this part of the fix is correct. The change to DPI looks correct \
to me, too.
-------------
PR: https://git.openjdk.java.net/jfx/pull/193
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic