Skip to content

Navigation Menu

Sign in
Sign up

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

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

fix(macos): align mixed-face text baselines #397
ctate wants to merge 5 commits into
main from
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 Bot commented Aug 22, 2026
edited
Loading

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

Reviewers

@vercel vercel[bot] vercel[bot] left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /