Skip to content

fix(macos): align mixed-face text baselines - #397

Open
ctate wants to merge 5 commits into
mainfrom
ctate/text-runs-fix
Open

fix(macos): align mixed-face text baselines#397
ctate wants to merge 5 commits into
mainfrom
ctate/text-runs-fix

Conversation

@ctate

@ctate ctate commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator
  • Place AppKit text from each resolved font's baseline metrics.
  • Preserve engine baselines in measured-line and wrapping fallback paths.
  • Add a pixel regression using bundled Geist sans and mono faces.

@vercel

vercel Bot commented Aug 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
native-sdk Ready Ready Preview, v0 Aug 23, 2026 12:38am
native-sdk-schema Ready Ready Preview, v0 Aug 23, 2026 12:38am

ctate added 5 commits August 22, 2026 19:26
- Place AppKit text from each resolved font's baseline metrics.
- Preserve engine baselines in measured-line and wrapping fallback paths.
- Add a pixel regression using bundled Geist sans and mono faces.

@vercel vercel Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

canvasFontMeasureInk produces vertical ink metrics with an inverted (y-DOWN) sign, opposite to the y-UP convention shared by the consumer and all other providers, so registered-font ink bounds are vertically flipped on the pure-Zig measurement path.

Fix on Vercel

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