Skip to content

[Request] Scale ImGui UI to match OS DPI on HiDPI displays #23

@sjoerdev

Description

@sjoerdev

currently the imgui ui does not scale on hidpi displays, i have a 2k display with windows scaling at 150%, the imgui window however is tiny and has tiny text. imgui recently added great support for hidpi scaling, and i think it will probably be quite simple to implement. i believe the variable is ImGui.GetStyle().FontScaleDpi but im not completely sure. you can ask glfw or sdl for the display scale that windows is set to, for example 150%, and then update the imgui variable. this will make scaling work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions