SES-190 Emoji sit on the row's baseline, not their own font's #24
Loading…
Reference in a new issue
No description provided.
Delete branch "ses-190-emoji-center"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Work package: https://openproject.home.romaine.life/wp/SES-190
Emoji drew about 6 px higher in their row than the letters beside them, so the status row's person icon rose into the bottom of at-claude's input-box avatar. at-terminal draws them on the row's baseline.
Cause.
rio-gridplaced each shaped run by its own font's ascent. A fallback font with a smaller ascent than the primary font (Segoe UI Emoji: 20 px against 26 px at a 28 px cell) had its glyphs drawn higher by the difference.Changed. Every run, including composing (IME) text, now takes the primary font's ascent (
row_ascent_px, through the existingprimary_ascent_px). It falls back to the run's own ascent only when the primary font's can't be read. Glyph sizes, horizontal placement and custom glyphs are unchanged.Test.
fallback_font_runs_share_the_primary_baselineshapesmand 💬 and checks that they share an ascent. Without the fix it fails (20 against 26), and with it it passes. Window captures of both terminals showed the avatars themselves at the same size, three rows by six columns, so at-claude needs no change.