Repository navigation
Conversation
[Medium impact] The PR appears safe to merge, with no new actionable issues found. SummaryCompensates for GTK text scaling when setting and reporting Ghostty’s font size.
Reviews (5) · Last reviewed commit: "Keep Ghostty scaling checks in desktop h..." · Reviewed by Greptile |
chessing234
left a comment
There was a problem hiding this comment.
Reviewed head 493bce1f76f2f3d5d2258b7db4ce660c95c3d584.
Reviewed effective GTK factor read-back, rollback after a failed read, Ghostty size compensation, and reporting of apparent point size. I found no actionable production-code defect in this diff. The focused test reaches a macOS grep -P incompatibility, so I am not claiming it passed or that native GTK/Ghostty behavior was verified.
|
I read this pull request at Nothing is needed from you. omabot will pick this up again on a later pass to classify it, reproduce the Ghostty double scaling on a worker, and run the suite. I will comment again only if that turns up something new. |
# Conflicts: # bin/omarchy-display-text-size
|
Codex High, Opus 5.5 High and muse-wonder via pi, thinking high reviewed the diff at Opus 5.5 High confirmed that |
Fixes #14221.
omarchy display text size 16writes 12pt to every terminal and sets the GTK text multiplier to 1.3636. Ghostty applies that multiplier again, making its text larger than Foot, Kitty and Alacritty.Divide Ghostty's configured font size by the effective GTK multiplier, and include that multiplier when reporting its apparent point size. Read the setting back after updates so failed GTK set/reset operations still use the factor actually in effect. Read the previous GTK factor before making changes, then confirm the effective value after updating it. A failed read returns an error before shell or terminal config updates; a failed readback restores the previous GTK multiplier. An unsuccessful rollback is explicitly reported. Reporting shows
n/awhen the apparent size cannot be determined. Other terminals keep their existing point-size mapping.Known limitation from the final review: GTK rollback restores the effective multiplier; if the key was previously unset, it leaves that value explicitly set instead of restoring the unset state.
Validation
terminal font: 12 pt../test/allrun matches untouched base54e3b53b: the same 14 shell-file failures and CLI VS Code theme failure, with no additional failures. Four files contain skipped checks, including the unavailable native Kitty parser. The runtime smoke test passes; an intermediate run's cleanup race also passed on standalone branch and base reruns.Before and after
Foot is on the left; Ghostty is on the right.
Related open PRs #8880 (selected-terminal reporting), #11487 (machine-local font overlays), #13206 (typography defaults), and #6550/#8825 (separate GTK controls) touch this command but do not compensate for Ghostty's GTK multiplier. This keeps those features outside the fix.