<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Chad,<div><br></div><div>I’d like to better understand why you encountered this problem to begin with. In the past we’ve only had difficulties on KDE when the user configured fractional scaling in System Settings. If the global scale in Display Settings is 200% you should be fine. If it’s something like 175% then JavaFX will misbehave. As Christopher pointed out the details are in <a href="https://bugs.openjdk.org/browse/JDK-8326428">https://bugs.openjdk.org/browse/JDK-8326428</a>.</div><div><br></div><div>I would like to reproduce your setup. Which distro and version are you running? And what value are you using for global scale in System Settings > Display Configuration?</div><div><br></div><div>At least in the past this hasn’t been due to Wayland vs. Xorg. When fractional scaling is in effect KDE plays games with some legacy settings which JavaFX responds to (the fix for JDK-8326428 is to reduce their priority). They’re the GDK_SCALE environment variable and an internal Gnome setting:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>gsettings get org.gnome.desktop.interface scaling-factor</div><div><br></div><div>It’s also possible you’re running into some new issue not covered by JDK-8326428. That windows are being misplaced on your system makes me think something more is going on. And we should be able to get that right whether we’re a Wayland client or not.</div><div><br></div><div>Thanks,</div><div>Martin</div><div><br><div><blockquote type="cite"><div>On Nov 22, 2025, at 6:23 AM, Chad Preisler <chad.preisler@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr"><div>Thanks for the suggestions. Both suggestions work and look good. Here are some observations from my testing.</div><div><br></div><div>glass.gtk.uiScale:</div><div>- Looks great.</div><div>- Allows for decimal values. </div><div>- On my 2k monitor 1.25 looked best.</div><div>- If the KDE "Scaled by the system" setting is turned on, then using this setting makes the scene larger than expected.</div><div><br></div><div>export GDK_SCALE=2:</div><div>- Looks great.</div><div>- It appears it only allows whole numbers, and 2.0 was a little too large for my taste.</div><div>- If the KDE "Scaled by the system" setting is turned on, then using this setting makes the scene larger than expected.</div><div><br></div><div>Scaled by the system:</div><div>- Looks great</div><div>- Looks like it scales it about 1.25</div><div>- Netbeans looks pretty good with this setting, but I needed to set --fontsize 14 in the netbeans.conf file. Netbeans looks a little better when it's scaled using uiScale and flatlaf settings.</div><div><br></div><div>Under all settings when the application started up it appeared in the top left corner of the first screen. Pop-ups in the application were not centered and were up and off the upper left corner of the scene.</div><div><br></div><div>I guess until JavaFX can be a pure wayland client I'm personally going to stick with the "Scaled by the system" setting. I guess if I ever bundle and deploy my app I would recommend users to do the same.</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, Nov 21, 2025 at 4:05 PM Christopher Schnick <<a href="mailto:crschnick@xpipe.io">crschnick@xpipe.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I think this was the issue I mentioned: <br>
<a href="https://bugs.openjdk.org/browse/JDK-8326428" rel="noreferrer" target="_blank">https://bugs.openjdk.org/browse/JDK-8326428</a><br>
<br>
On 21/11/2025 23:00, Kevin Rushforth wrote:<br>
> Another workaround is to set the "GDK_SCALE" environment variable, for <br>
> example:<br>
><br>
> export GDK_SCALE=2<br>
><br>
> I found the following enhancement request in our bug backlog <br>
> requesting automatic detection of the screen scale:<br>
><br>
> <a href="https://bugs.openjdk.org/browse/JDK-8238077" rel="noreferrer" target="_blank">https://bugs.openjdk.org/browse/JDK-8238077</a><br>
><br>
> I changed the title to be more reflective of this and reassigned the <br>
> bug. It's something that we could consider implementing if it isn't <br>
> too difficult.<br>
><br>
> -- Kevin<br>
><br>
><br>
> On 11/21/2025 11:33 AM, Christopher Schnick wrote:<br>
>> You are probably looking for glass.gtk.uiScale<br>
>><br>
>> I think I reported a while ago that the automatic scale detection for <br>
>> KDE is not working, but apparently there wasn't an easy API <br>
>> replacement available.<br>
>><br>
>> On 21/11/2025 18:15, Chad Preisler wrote:<br>
>>> Hello,<br>
>>><br>
>>> When I run my JavaFX (using JFX25) application on KDE Plasma using <br>
>>> Wayland the fonts are incredibly small. How can I scale the <br>
>>> application so that things are not so tiny?<br>
>>><br>
>>> FYI: I had a similar issue with Netbeans. I know it's different <br>
>>> because it is Swing. I was able to get Netbeans to look good with <br>
>>> the following settings.<br>
>>><br>
>>> -J-Dsun.java2d.uiScale=2 -J-Dflatlaf.uiScale=0.75<br>
>>><br>
>>> Is there something similar I can do for JavaFX?<br>
>>><br>
>>> Thanks,<br>
>>> Chad<br>
>>><br>
>>><br>
><br>
</blockquote></div>
</div></blockquote></div><br></div></body></html>