Skip to content

Respect OS reported DPI scale#203

Draft
WillyJL wants to merge 1 commit into
mainfrom
fix/dpi-scale
Draft

Respect OS reported DPI scale#203
WillyJL wants to merge 1 commit into
mainfrom
fix/dpi-scale

Conversation

@WillyJL

@WillyJL WillyJL commented Dec 14, 2024

Copy link
Copy Markdown
Owner

scaling done in 2 parts now:

  • user chosen scaling in-app
  • dpi scaling reported by glfw

both affect sizing of all elements
fonts are generated using user chosen scaling, then resized using dpi scaling

this should mean that:

  • high dpi monitors (like 4k) should work correctly out of the box without user intervention
  • content scaling chosen in os display settings is respected and reacted to without restart
  • fonts may look a little blurry as they are not generated in the actual resolution theyre drawn at

unfortunately font blurriness is unlikely to be solvable, as opengl has a fixed texture size so generating the fonts at such huge sizes is not possible. this compromise means that everything is atleast sized correctly and working, but will have some slight blurriness when using content scaling

also, this fixes some elements (borders, scroll bar, spacing) not being scaled correctly

@WillyJL WillyJL added the bugfix Something isn't working label Dec 14, 2024
@WillyJL WillyJL self-assigned this Dec 14, 2024
@WillyJL WillyJL mentioned this pull request Dec 14, 2024
@WillyJL WillyJL assigned WillyJL and unassigned WillyJL Jun 8, 2026
@WillyJL WillyJL mentioned this pull request Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Something isn't working

Projects

Status: To Do

Development

Successfully merging this pull request may close these issues.

1 participant