developersu / ns-usbloader

Awoo Installer and GoldLeaf uploader of the NSPs (and other files), RCM payload injector, application for split/merge files.
GNU General Public License v3.0
1.82k stars 123 forks source link

Awful anti-aliasing on 125% scale #153

Closed aaronliu0130 closed 9 months ago

aaronliu0130 commented 11 months ago

Describe the bug (mandatory) The text is very thin and perhaps not anti-aliased, making it very hard to read

Information about environment (mandatory):

Steps to reproduce Steps to reproduce the behavior:

  1. Set scaling to 125%
  2. Open app

Expected behavior Normal text

Screenshots and/or information from application log image

Did you see this issue in previous versions? Don't know

Additional context I've also tried changing the executable's high DPI settings.

developersu commented 11 months ago

@aaronliu0130 how did you perform scaling? Some Windows-specific way or via options like -Dsun.java2d.uiScale.enabled=true -Dsun.java2d.uiScale=1.5?

aaronliu0130 commented 11 months ago

Windows. image

developersu commented 11 months ago

Try this or if it still looks weird you can execute jar from cmd.exe with options noted above. E.g. java like -Dsun.java2d.uiScale.enabled=true -Dsun.java2d.uiScale=1.5 -jar ..\Downloads\APPLICATION_NAME.jar where ..\Downloads\APPLICATION_NAME.jar path to jar you downloaded.

I thought in latest openJFX HiDPI supported well.. If it won't help let me know, I'll make build with the most recent libraries. Maybe that's the problem. These fonts are system-default picked by java automatically.

aaronliu0130 commented 11 months ago

The link doesn't work, and I don't have a jar on Windows. After downloading and opening the non-legacy jar (with no options) it tells me that Error. A JNI error has occurred, please check your installation and try again

developersu commented 11 months ago

There is usually exception stack trace following this message. Have you seen any?

aaronliu0130 commented 11 months ago

Nope. After closing that pop up I just got some generic JVM error. I’ll copy down the exact error message when I get home

developersu commented 11 months ago

Try running it via cmd.com or powershell terminal.. there are should be more info

aaronliu0130 commented 11 months ago

Ah, it seems like I had multiple version of JDK installed and Windows automatically launches with the last one updated, which was 8. I've reinstalled the latest JDK and now it launches. The commands don't work though. In cmd it's like nothing changed and I've tried both 1.25 and 1.5 for the UI scale argument (also assuming "like" isn't part of the command). In powershell it didn't even recognize the argument. It also always gave the following warning: WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @7cca494b' I also have Rectify11 installed, which changes DPI behavior for older win32 apps like the control panel. I doubt it applies to Java though.

aaronliu0130 commented 11 months ago

image There seems to be a difference between default and system and system (enhanced) scaling: the latter two are blurry while default is just thin

developersu commented 11 months ago

Ok, try using another font by selecting it in settings. Grab latest builds from here. 'jar' or 'Installer' with "-7.1-" in name (or whatever with latest timestamp).

aaronliu0130 commented 11 months ago

Great, that worked! Some fonts on my computer like San Francisco didn't show up in the selector's list though...

developersu commented 11 months ago

¯\(ツ)