seek-oss / capsize

Flipping how we define typography in CSS.
https://seek-oss.github.io/capsize/
MIT License
1.48k stars 37 forks source link

metrics: Update apple system font metrics #193

Closed michaeltaranto closed 2 months ago

michaeltaranto commented 2 months ago

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

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: 45abbcf3c35ca126ad039a79b9697fa248932267

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