Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metrics: Update apple system font metrics #193

Merged
merged 3 commits into from
Apr 15, 2024
Merged

Conversation

michaeltaranto
Copy link
Contributor

@michaeltaranto michaeltaranto commented Apr 15, 2024

metrics: Update apple system font metrics

Previously the metrics provided for -apple-system and BlinkMacSystemFont were extracted from the SF Pro font, with a custom override to correct the descent metric.

Through work to support metrics for different font weights and styles, it was identified that MacOS uses the SFNS font.
Extracting the metrics from this font means no more custom overrides, and will now enable using this font as a fallback via postscript name soon too.

SF Pro Metrics

SF Pro Metrics Preview

SF Pro Metrics (with descent override)

SF Pro Override Metrics Preview

SFNS Metrics

SFNS Metrics Preview

@michaeltaranto michaeltaranto requested a review from a team as a code owner April 15, 2024 04:45
Copy link

changeset-bot bot commented Apr 15, 2024

🦋 Changeset detected

Latest commit: 45abbcf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@capsizecss/metrics Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@michaeltaranto michaeltaranto merged commit 121eb42 into master Apr 15, 2024
6 checks passed
@michaeltaranto michaeltaranto deleted the update-apple-system branch April 15, 2024 08:23
@seek-oss-ci seek-oss-ci mentioned this pull request Apr 15, 2024
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.

2 participants