Skip to content

fix: pixel-snap UI text glyphs for crisp rendering on HiDPI#1680

Open
cantona wants to merge 2 commits into
raphamorim:mainfrom
cantona:fix/pixel-snap-ui-text
Open

fix: pixel-snap UI text glyphs for crisp rendering on HiDPI#1680
cantona wants to merge 2 commits into
raphamorim:mainfrom
cantona:fix/pixel-snap-ui-text

Conversation

@cantona

@cantona cantona commented Jun 25, 2026

Copy link
Copy Markdown

UI text (tab titles, color picker, rename input) placed each glyph at logical * scale, which is almost always fractional on HiDPI / fractional-scale displays. Placing a rasterized glyph at a sub-pixel position resamples it and makes the text look blurry. Snap each glyph quad to integer physical pixels, matching the crisp cell-aligned grid text.

cantona and others added 2 commits June 25, 2026 13:56
UI text (tab titles, pickers, rename input) placed each glyph quad at
pen_x = logical * scale_factor without rounding. On HiDPI/fractional-
scale displays that origin is almost always fractional, so the
rasterized glyph gets resampled and looks blurry. Snap each quad to
integer physical pixels, matching how the cell-aligned grid text stays
crisp. No effect at integer scale 1.0 (positions already whole).
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.

1 participant