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

TinfourDemo rendering is upscaled for -Dsun.java2d.uiScale=2 #91

Open
zdila opened this issue Oct 14, 2022 · 4 comments
Open

TinfourDemo rendering is upscaled for -Dsun.java2d.uiScale=2 #91

zdila opened this issue Oct 14, 2022 · 4 comments

Comments

@zdila
Copy link

zdila commented Oct 14, 2022

My display is a high resolution one and therefore I must run java with -Dsun.java2d.uiScale=2 to make UI text readable. Unfortunately this parameter also causes the rendering output to be upscaled. Interestingly if I start to zoom out then the upscaling starts to disappear, but after it re-renders it is back.

image

@gwlucastrig
Copy link
Owner

gwlucastrig commented Oct 14, 2022 via email

@zdila
Copy link
Author

zdila commented Oct 14, 2022

I understand. Anyway the problem is not just with the fonts, but all the graphics ind the output view (lines, interpolated raster). If I will find a time I will try to play with it :-).

@zdila
Copy link
Author

zdila commented Oct 14, 2022

This is quick patch, but scaling needs to be probably applied on many more places.

scale.diff.gz

@gwlucastrig
Copy link
Owner

gwlucastrig commented Oct 15, 2022 via email

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

No branches or pull requests

2 participants