-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add better subsetting for variable fonts, use zeit for static a…
…pi (#641) * feat: add better subsetting for variable fonts, try zeit for static api * fix: unicode ranges * fix: unicode ranges strings * fix: unicode mapping * feat: add font preloading * fix: preload crossorigin * fix: crossorigin attr * fix: move mono to link * chore: add fonts to now deployment * fix: use fallback to prevent fout * fix: use swap * feat: add mono and remove google fonts * fix: preload src * fix: fallback example * fix: nope
- Loading branch information
Showing
25 changed files
with
208 additions
and
15 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
LATIN="U+0020-00FF" | ||
LATINEXT="U+0100-024F" | ||
GREEK="U+0370-03FF" | ||
CYR="U+0400-04FF" | ||
CYREXT="U+0500-052F" | ||
ARROWS="U2191-21c6" | ||
|
||
pyftsubset src/IBMPlexSans-Italic-VF.ttf --unicodes=$LATIN --flavor="woff2" --output-file=IBMPlexSansLatin-Italic-VF.woff2; | ||
pyftsubset src/IBMPlexSans-Italic-VF.ttf --unicodes=$LATINEXT --flavor="woff2" --output-file=IBMPlexSansLatinExt-Italic-VF.woff2; | ||
pyftsubset src/IBMPlexSans-Italic-VF.ttf --unicodes=$VIETNAMESE --flavor="woff2" --output-file=IBMPlexSansVietnamese-Italic-VF.woff2; | ||
pyftsubset src/IBMPlexSans-Italic-VF.ttf --unicodes=$GREEK --flavor="woff2" --output-file=IBMPlexSansGreek-Italic-VF.woff2; | ||
pyftsubset src/IBMPlexSans-Italic-VF.ttf --unicodes=$CYR --flavor="woff2" --output-file=IBMPlexSansCyr-Italic-VF.woff2; | ||
pyftsubset src/IBMPlexSans-Italic-VF.ttf --unicodes=$CYREXT --flavor="woff2" --output-file=IBMPlexSansCyrExt-Italic-VF.woff2; | ||
|
||
pyftsubset src/IBMPlexSans-VF.ttf --unicodes=$LATIN,$ARROWS --flavor="woff2" --output-file=IBMPlexSansLatin-VF.woff2; | ||
pyftsubset src/IBMPlexSans-VF.ttf --unicodes=$LATINEXT --flavor="woff2" --output-file=IBMPlexSansLatinExt-VF.woff2; | ||
pyftsubset src/IBMPlexSans-VF.ttf --unicodes=$VIETNAMESE --flavor="woff2" --output-file=IBMPlexSansVietnamese-VF.woff2; | ||
pyftsubset src/IBMPlexSans-VF.ttf --unicodes=$GREEK --flavor="woff2" --output-file=IBMPlexSansGreek-VF.woff2; | ||
pyftsubset src/IBMPlexSans-VF.ttf --unicodes=$CYR --flavor="woff2" --output-file=IBMPlexSansCyr-VF.woff2; | ||
pyftsubset src/IBMPlexSans-VF.ttf --unicodes=$CYREXT --flavor="woff2" --output-file=IBMPlexSansCyrExt-VF.woff2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
184 changes: 175 additions & 9 deletions
184
packages/gatsby-theme-carbon/src/styles/internal/_plex.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
cfc1399
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.
Successfully deployed to following URLs: