-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(fonts): use capsize instead of fontaine #13411
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
Conversation
|
| import { fontFamilyToCamelCase } from '@capsizecss/metrics'; | ||
| import { fromBlob } from '@capsizecss/unpack'; | ||
|
|
||
| const withoutQuotes = (str: string) => str.trim().replace(/^["']|["']$/g, ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nit: move the regex into a top-level constant
| const { entireMetricsCollection } = await import('@capsizecss/metrics/entireMetricsCollection'); | ||
| const metrics = entireMetricsCollection[name as keyof typeof entireMetricsCollection]; | ||
|
|
||
| if (!('descent' in metrics)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know why we exit here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope this is copy pasted from fontaine so I don't know
Changes
Testing
Updated
Docs
N/A