NOT ANSWERED: Font size behavior with Linux

Answered

OS:

Linux ... 5.1.15-300.fc30.x86_64 #1 SMP Tue Jun 25 14:07:22 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

IntelliJ

IntelliJ IDEA 2019.1.3 (Ultimate Edition)

Build #IU-191.7479.19, built on May 27, 2019

I also tried with the next EAP version.

VM Options:

-Xms1g
-Xmx16g
-XX:ReservedCodeCacheSize=1g
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-Dhidpi=false
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow

Java:

I tried the following JDKs:

OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)

OpenJDK 64-Bit Server VM 18.9 (build 11.0.3+7, mixed mode, sharing)

OpenJDK 64-Bit Server VM 19.3 (build 12.0.1+12, mixed mode, sharing)

Machine:

It's a ThinkPad P1 1080p screen with an external 1440p screen. I use the IDE on both screens.

Expected Behavior:

The IDE never changes the font size or scaling of the IDE unless I explicitly tell it to. Every time it opens it is in regular DPI mode at 12 font size by default.

Actual Behavior:

When I start the IDE on the external screen, it seems to think it needs to scale up everything. I disabled hidpi mode using the VM parameter which fixed the splash screen being 1.5x size. However, the IDE insists on setting the font size to 18. I fix this by using a custom font size, but occasionally it will swing the other way and reduce the font size to 8. Every few days I have to manually reset the font size. Additionally some UI components like the find results window or the refactor window continue to be in the wrong font size, either 18 or 8 instead of always 12.

My Guess:

The IDE seems to be assuming that because I just changed monitors to a monitor with 1.5x or .75x the resolution (1080p -> 1440p or 1440p -> 1080p), it should scale the font size automatically from 12 -> 8 or 12 -> 18.

 

Can I disable this behavior entirely? My best case would be that the IDE "Default" setting is just always 12 and it never tries to guess what I want. I'm also OK with setting the font size override, but the override doesn't seem to apply to every single UI component. Is there some way to force this override to be global without the default guessing the correct font size without help?

 

Thanks!

Nick

0
4 comments

Please try to add

-Dsun.java2d.uiScale.enabled=false

in Help | Edit Custom VM Options and restart IntelliJ IDEA.

See also:

https://youtrack.jetbrains.com/issue/IDEA-141456
https://youtrack.jetbrains.com/issue/IDEA-216988
https://youtrack.jetbrains.com/issue/JBR-312

1
Avatar
Permanently deleted user

This did not fix it. After a reboot of the machine, the font went back to 18 point with these VM options enabled:

-Dhidpi=false
-Dsun.java2d.uiScale.enabled=false

 

One other thing I've noticed is when you go to the Appearance tab, the "Use custom font" will be unchecked, but the default in the Size box will be 18.

 

0

Please sign in to leave a comment.