Well, there are some Java 10 issues with HiDPI for sure,though it worked fine for a while.

After I installed System76 HiDPI switching stuff, I always get double sized controls even on non HiDPI screens.

Even if I disabled thenremoved the System76 HiDPI stuff, I had to force NB to have -J-Dsun.java2d.uiScale=1.0 in netbeans.conf to make the IDE usable again.


On 05/08/2018 10:27 AM, Peter Steele wrote:
The issue I had with GTK on java 10 on Ubuntu was that it had wierd
behaviour for hidpi screens. If I used the UI Scaling property to match the
os I would get images all scaled correctly but fonts would be twice the
size. If I set the UI Scaling property to 1 the font would now look nice
but the images would be far too small.

I guess GTK takes the font size from the OS which already takes scaling in
to consideration so it is out of sync with java when you ask it to
compensate.

On Tue, 8 May 2018, 16:53 Martin Weißhaupt, <[email protected]>
wrote:

Oops, I didn't notice this.

I hope this works better:
https://imgur.com/a/VrLq4Rx

The problem is not the font rendering but the gui components.

Am 08.05.2018 um 17:28 schrieb Laszlo Kishalmi:
Well, Apache kindly removes the images from mails. So I just suspect
it is more like a font rendering issue.

Somehow Java 10 reintroduced the fontconfig.Ubuntu.properties* under
$JAVA_HOME/lib

That file is really old and comes from the pre-Ubuntu font ages.
Itmakes the IDE really ugly as forcing it to render not available fonts.

Just get rid of that file and Netbeans will look good again on GTK.


On 05/08/2018 05:33 AM, Martin Weißhaupt wrote:
I have noticed something strange when I tried the NetBeans 9 Beta. I
wanted to create a ticket in Jira but noticed that NetBeans 9 was
running with Java 10 which seems to produce rendering issues. So this
is propably not a problem of NetBeans but the GTK look and feel.

The first image shows how it should look like and the second shows
multiple problems that exist with the GTK3 look and feel which seems
to be used by Java 10.

Is there anything that can be done by NetBeans to prevent this?
Forcing Java 8 or using a different look and feel fixes the issue for
me but this is only a workaround. This also happens with my own Swing
apps so should I create a ticket for OpenJDK?

I'm running Ubuntu 18.04 and the GTK Theme used does not seem to matter.

NetBeans 8.2 running on Java 8 with the GTK2 Theme:


NetBeans 9 running on Java 10 with parts of the GTK3 Theme:

​


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists






---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to