Giter Site home page Giter Site logo

Comments (3)

flandreas avatar flandreas commented on September 26, 2024

@snhirsch Thank you for your feedback.

While the hDPI problem with Java apps on Windows and macOS have been solved since Java 11 or so, the situation on Linux seems to be more complex, as it depends also on the desktop manager.

On my Ubuntu 22 with Gnome, I was able to change the scaling using -Dsun.java2d.uiScale=2.0. See https://stackoverflow.com/questions/58699877/how-to-fix-scaling-of-a-java-based-application-on-a-high-dpi-display-in-linux.

  • Open a terminal and go to the directory where Antares is installed. In my case, this is /opt/antares.
  • Go to ./lib/app
  • Set write permissions on Antares.cfg, e.g. by "sudo chmod a+x Antares.cfg"
  • Edit the file and add -Dsun.java2d.uiScale=2.0
  • Save
  • Restart Antares

In my case, the UI is now scaled by a factor 2.

from antares.

snhirsch avatar snhirsch commented on September 26, 2024

Thanks, Andreas! In the interim I discovered a slightly different workaround that seems to accomplish the correct scaling:
$ GDK_SCALE=2.0 /opt/antares/bin/Antares
Under KDE this can be done by a quick edit to the .desktop file. Might be worth adding some discussion to the FAQ? (If it's there already and I missed it - shame on me...)

from antares.

flandreas avatar flandreas commented on September 26, 2024

@snhirsch Thanks for suggesting to add the workaround to the FAQ. I'll do that with the next release update.

from antares.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.