Menu

#151 Too big fonts on windows with multiple displays and scaling on non-primary monitor

open
nobody
fonts (2)
2026-02-23
2024-11-21
Anonymous
No

Originally created by: jihu

My current setup looks like this:

  • Laptop on the left - 3840x2160, 250% scaling
  • External screen on the right, 2560x1440, 100% scaling, primary screen

When I open jd-gui-duo, most text (but not all) is too big. The window name ("Java Decompiler") as well as the main menu (File, Edit, Navigation, Search, Help) as well as sub menu labels, work fine. But almost everything else has too big text size, especially the labels. For some reason the code "text area" is fine.

If I change the scaling to 100% for both screens, then it works fine. It also works fine if I keep the scaling 250% on the laptop but make it the primary screen.

Note that these changes only seem to effect the GUI when starting the program. If I start the program and then make one of the changes above, then nothing changes until I close the program and then start it again.

Note that neither of these workarounds are acceptable for me. I don't want to use 100% scaling on the laptop, and I don't want the laptop screen to be the primary screen.

Example screenshot:

jd_gui_duo_screen_text_bug

Discussion

  • Anonymous

    Anonymous - 2024-11-21

    Originally posted by: nbauma109

    I guess a setting could control the font size ?

     
  • Anonymous

    Anonymous - 2025-04-24

    Originally posted by: duoduobingbing

    I also have the problem, that jd-gui-duo does not display nicely in a HiDPI environment. I tried the settings advised here but had no luck achiving a consistent scaling.

    Setting

      -Dsun.java2d.uiScale.enabled=true ^
      -Dsun.java2d.uiScale=1.5 ^
      -Djava.awt.headless=false ^
    

    in the *.bat-File

    made the clipping go away but made the font size really small in some areas.

    The only fix was to override the HiDPI settings for jd-gui-duo-VERSION.exe and set it to System (enhanced) now the font is blurry but at least everything is in a readable size and there is no text clipping

     

Log in to post a comment.

MongoDB Logo MongoDB