Skip to content

Scale inner-context font rasterizer density by the host's display density - #81

Open
r4stered wants to merge 1 commit into
Fattorino:masterfrom
r4stered:fix/hidpi-font-density
Open

Scale inner-context font rasterizer density by the host's display density#81
r4stered wants to merge 1 commit into
Fattorino:masterfrom
r4stered:fix/hidpi-font-density

Conversation

@r4stered

Copy link
Copy Markdown

Fixes #79

Caches the host density sampled in begin() and multiplies it into setFontDensity(). On a 1x display the computed density is unchanged (1.0 * m_scale), so this is a no-op for existing non-HiDPI users. Guarded by the existing IMGUI_VERSION_NUM >= 19198 check

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.

Inner context font rasterizer density ignores the host's display density (blurry text on HiDPI)

1 participant