Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font/UI sizing issue on HiDPI display #1425

Closed
peterzen opened this issue Mar 6, 2018 · 15 comments
Closed

Font/UI sizing issue on HiDPI display #1425

peterzen opened this issue Mar 6, 2018 · 15 comments
Assignees

Comments

@peterzen
Copy link
Contributor

peterzen commented Mar 6, 2018

When running the application on a HiDPI screen in high resolution, the font size can be too small to the point of being unreadable as the application does not honor the display scaling setting.

image

Is there a way to specify a scale factor via a Java/JavaFX environment variable, similarly to how Qt apps honor $QT_SCALE_FACTOR?

Platform: Dell XPS 13" display, Ubuntu 17.10, default display settings, resolution 3200x1800, scale: 200%

@sqrrm
Copy link
Member

sqrrm commented Mar 6, 2018

Bisq doesn't scale the UI on HiDPI monitors with linux since JavaFX doesn't handle the scaling in Java 8. Once upgraded to Java 9 it will work but there are some issues with switching to Java 9, see #1262

@peterzen
Copy link
Contributor Author

peterzen commented Mar 6, 2018

Thanks @sqrrm, I suspected this was the case but couldn't find this issue - I'll keep an eye on it.

@ManfredKarrer
Copy link
Member

We plan to use Java 9 soon. Hope that will fix it.

@ripcurlx ripcurlx added the in:gui label Mar 7, 2018
@2m
Copy link

2m commented Jun 4, 2018

Java 9 added support for HiDPI in Linux and Windows: http://openjdk.java.net/jeps/263

That is, when using Java 9 the GDK_SCALE environment variable is considered and windows are scaled accrodingly.

Eagerly waiting for the upgrade of bisq to Java 9.

@ripcurlx
Copy link
Member

@2m @peterzen Could you please verify if this issue is solved with our latest release 0.9+ (Java 10)?

@ripcurlx ripcurlx self-assigned this Dec 18, 2018
@ysangkok
Copy link
Contributor

Not fixed in 0.9.1.

screenshot from 2018-12-18 10-54-22

@ripcurlx
Copy link
Member

@ysangkok Thanks - I'll have a look if there is an easy way to resize everything based on the OS scale factor.

@ysangkok
Copy link
Contributor

ysangkok commented Dec 18, 2018

But if I launch with GDK_SCALE=2 ./Bisq, it does scale. Some hacky launcher that can read the Ubuntu scale from Gconf would work, I guess... Really the Java runtime should detect this, so I guess this can still be considered a Java bug, even if you do ship Java.

@ripcurlx
Copy link
Member

Thanks for the input! Maybe we can modify our javapackager setup to do so until it is fixed properly within Java.

@peterzen
Copy link
Contributor Author

On Ubuntu 18.04 with OpenJDK 10.0.2 it honors both GDK_SCALE and the org.gnome.desktop.interface scaling-factor setting, all good.

@stale
Copy link

stale bot commented May 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the was:dropped label May 1, 2019
@stale
Copy link

stale bot commented May 8, 2019

This issue has been automatically closed because of inactivity. Feel free to reopen it if you think it is still relevant.

@blackbookpro
Copy link

Bisq is displayed way too small on Ubuntu 20.04 on a Macbook Pro 15" Display (2880 x 1800). Is there a way to scale the view? Would appreciate any help!
image

@ripcurlx
Copy link
Member

@blackbookpro Did you have already a look at this short guide: #4541 (comment)

@mateMathieu
Copy link

Hi, I did the trick that is documented in the FAQ to adjust the scaling for HiDPI screens, but at the following update the whole thing is wiped out.
Can't we find a better way that would avoid this?

It would also be nice to work with both GTK and QT.

Please! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants