-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Improved zoom on windows #31
Comments
Created by: sampottinger Hey @benfry, I saw your comment on #30:
Here's is where things are at:
Note that this is all referring to windows display scaling and not the zoom in Processing preferences. This changed in Java 11 because of automatic sizing introduced by JEP 263 for Windows. I am continuing to work on this here inside this bug. Ideally, we would handle the sizing ourselves but the old WindowsPlatform code to detect DPI no longer works under Java 11. (Update: it looks like sketches are rendering OK but they are not scaled) |
Created by: sampottinger An update on this... It looks like one cannot get to the display scaling via GraphicsConfiguration or the sun.java2d system properties. We might have to use JNA. |
Created by: benfry Bummer; hoped this stuff was gonna get easier with 11+. |
Created by: sampottinger @benfry - same :( Alright, I might have a solution at https://github.com/processing/processing4/tree/jna_windows_scaling. Hoping to do just a little more testing though... |
Created by: sampottinger I actually could use a little help in testing this. @kllsamui (or other Windows members of the community) - would you be willing to give https://github.com/processing/processing4/tree/jna_windows_scaling a shot? If needed, I can make a build available for you. |
Created by: kllsamui yes, happy to test, please link to build and detail test procedure ( ? change windows settings ? processing settings ?) |
Created by: Volts-s Hi all, I would be happy to help out with testing this or anything else. I have a Windows 10 desktop and a MacBook Pro with retina display. I'm not set up to build Processing at the moment. |
Created by: sampottinger Hey there! Very sorry for the delay. Please see https://github.com/sampottinger/processing4/releases/tag/v4.0-alpha-jna-scale. This is provided under the usual license: https://github.com/processing/processing4/blob/master/LICENSE.md. Please follow the following:
Please let me know how that goes and thanks! |
Created by: kllsamui -0- repeat ( old system i call here 4.0 c ) _ download / test 4.0 d scale test after deleted that library -2- win scale 125% OK 030 win scale 100% OK ( i did not play with the processing scaling, only windows, was this correct? ) looks like you solved it |
Created by: kllsamui can you make a version for RPI? i would love to compile and run it on/for the Raspberry Pi ( RPI 3B+ hardware for now ) ++ and also do it for the several video libraries and the newest RPI buster BUT i would need someone to talk me through. |
Created by: github-actions[bot] This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Created by: sampottinger
Right now display scaling on Windows 10 causes poor automatic zooming through Swing. This makes the interface appear pixelated and the custom swing elements (primarily JEditTextArea) do not calculate x positions for the caret correctly. After #30, automatic swing zooming will be disabled. While this improves the experience for windows users that have display scaling enabled, this is a poor accessibility experience. I would like to re-enable automatic zoom on Windows and, ideally, extend zoom into native swing elements like the menu bar as well. However, as described in #30, we will need a new way to detect display scaling.
The text was updated successfully, but these errors were encountered: