Skip to content
Discussion options

You must be logged in to vote

Unfortunately, there is no good way to test with different monitor zoom yet. We have also discussed this quite often as we desperately need it to avoid regressions, but it's not that simple.
There is a test utility which does something in the direction you want, but it is Windows-only and requries access to package-protected methods:

public static void changeDPIZoom (Shell shell, int nativeZoom) {
DPIUtil.setDeviceZoom(nativeZoom);
Event event = shell.createZoomChangedEvent(nativeZoom, true);
shell.sendZoomChangedEvent(event, shell

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ptziegler
Comment options

ptziegler Jan 19, 2026
Collaborator Author

Answer selected by ptziegler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants