Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kkoreilly
Copy link
Member

@kkoreilly kkoreilly commented Dec 12, 2024

This PR makes logical dpi = 160 * dpr * scale, as that is consistent with all other apps and the web. The previous behavior of having the physical size of widgets be the same on all platforms sounded great in theory but resulted in low quality font rendering and inconsistency with all other apps. This new paradigm looks completely correct on all of my monitors and VMs, whereas the old one required manually zooming in on VMs and low-DPI monitors.

This PR also hides wgpu warnings since there are a lot of extraneous ones, and it updates our version of webgpu to include cogentcore/webgpu@ad7475f, which is a key fix for a Cannot perform Construct on a detached ArrayBuffer crash on web. It also fixes GLFWCreateWindow not building on web.

Fixes #1358 (the issue was the incorrect logical DPI computation for low-DPI monitors as discussed above)

…r apps and the web; the previous behavior of having the physical size of widgets be the same on all platforms sounded great in theory but resulted in low quality font rendering and inconsistency with all other apps
…tem that does not guarantee constant physical size
Copy link
Member

@rcoreilly rcoreilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not be merged without an option to use physical size.

Copy link
Member

@rcoreilly rcoreilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After further discussion, we can use the Physical DPI field to accomplish exact print-size rendering of things like print preview as needed in future apps, and the fact that this convention is used in all other apps makes sense for now.

@rcoreilly rcoreilly merged commit 7f69907 into main Dec 13, 2024
1 check passed
@rcoreilly rcoreilly deleted the dpi branch December 13, 2024 22:19
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

Successfully merging this pull request may close these issues.

Apps look too small on some monitors

3 participants