Closed sawyerclick closed 6 months ago
Latest commit: d910c8d5fd2210e31764fd8ba21b773d98f0d8b4
The changes in this PR will be included in the next version bump.
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
Closes #109. The Google font detection was faulty and frequently created output with 'undefined' in the url. We weren't properly detecting variant fonts like "Roboto Condensed" vs. "Roboto".
For the nerds, Figma rolls up "Roboto Condensed" into "Roboto" so the style string would look like "Condensed ExtraBold Italic" and the fontName would be "Roboto". This is not ideal for us. I've added a simple detection in the script to uncover if theres a variant and apply it back to the font name.