Skip to content

Stabilize note list text alignment on Windows#770

Closed
MizuCiaossu wants to merge 1 commit into
nuttyartist:masterfrom
MizuCiaossu:codex/notes-windows-alignment-bounty-164
Closed

Stabilize note list text alignment on Windows#770
MizuCiaossu wants to merge 1 commit into
nuttyartist:masterfrom
MizuCiaossu:codex/notes-windows-alignment-bounty-164

Conversation

@MizuCiaossu
Copy link
Copy Markdown

Summary

  • use stable font line metrics for note list title, date, content, and parent rows
  • stop laying out note rows from per-string boundingRect() heights, which vary with the actual glyphs rendered
  • keep NoteListDelegate and NoteListDelegateEditor in sync so the persistent editor matches the normal row renderer

Fixes #164.

Why

The Windows alignment bug appears to come from using text-specific bounding boxes to position stacked note row labels. On some Windows font/DPI combinations, that can make row spacing depend on the glyphs in each note title/date/content, which leads to visually inconsistent alignment.

Testing

  • Not run locally in this environment because the required Qt/CMake Windows toolchain is not installed here.
  • The change is limited to replacing layout height calculations with QFontMetrics::height() in the two note-list paint paths.

@zjeffer
Copy link
Copy Markdown
Collaborator

zjeffer commented May 14, 2026

@nuttyartist another AI account that has the exact same issues as #769. What should we do with these?

Not run locally in this environment because the required Qt/CMake Windows toolchain is not installed here.

like seriously wtf

@zjeffer zjeffer closed this May 14, 2026
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.

Bug - notes are not aligned well on some reported Windows machines [$80]

2 participants