-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(www): Update Futura PT with custom "j" (#20946)
* feat(www): Update Futura PT with custom "j Thanks to @lindaleebumblebee and Paratype, we have a custom version of Futura PT that greatly improves the readability of the lowercase "j". We still need to work out some details, like subsetting, and getting Demi and Bold Italic, so I'm putting this up as a draft for now. Will update ASAP. * Custom Futura PT, Latin subset * Resolve file size differences TL;DR: I tried to figure out the reason for the size difference in between our original webfonts provided by [fontspring.com](https://www.fontspring.com/) and the custom (also subset) ones provided by ParaType — the latter being significantly larger. With the help of [fontTool 4](https://github.com/fonttools/fonttools) and its `ttx`, I found out that Fontspring seems to replace the original hinting with hinting by https://www.freetype.org/ttfautohint/ per default — the current fonts had meta information added by it saying so. So I ran `ttfautohint` on the original, subset TTF provided by ParaType, and saw sizes even smaller than the current ones — in between 5-10 KB less. Then I used fontTool's `ttx` and `pyftsubset` to - fix the font family `namespace` metadata for Mac - manually drop some meta data - drop a bit more unneccessary meta information via `pyftsubset *.ttf --glyphs='*' --layout-features='*' --name-IDs='*'`, shoving off another ~1-2 KB Then I discovered that the current version of our fonts have a different line height/LineGap (?) than the custom ones. `gftools fix-vertical-metrics *.ttf --autofix` to the rescue — another thing that Fontspring seems to do out-of-the-box. Back to `pyftsubset` to generate WOFF and WOFF2 versions with `pyftsubset *.subset.ttf '*' --glyphs='*' --layout-features='*' --name-IDs='*' --flavor=woff --with-zopfli` and `pyftsubset *ftn86*.subset.ttf '*' --glyphs='*' --verbose --layout-features='*' --name-IDs='*' --flavor=woff2` … Finally, I created (MTX compressed) EOT versions via `sfntly`'s `sfnttool` and `sfnttool -e -x *.ttf *.eot`. * Retire Futura PT Bold EOT * Revert `url` changes * Ditch EOT Co-authored-by: GatsbyJS Bot <mathews.kyle+gatsbybot@gmail.com>
- Loading branch information
Showing
21 changed files
with
1 addition
and
3 deletions.
There are no files selected for viewing
Binary file removed
BIN
-54.9 KB
www/src/assets/fonts/Webfonts/futurapt_bold_macroman/ftn85-webfont.eot
Binary file not shown.
Binary file modified
BIN
-11.9 KB
(78%)
www/src/assets/fonts/Webfonts/futurapt_bold_macroman/ftn85-webfont.ttf
100755 → 100644
Binary file not shown.
Binary file modified
BIN
-6.15 KB
(78%)
www/src/assets/fonts/Webfonts/futurapt_bold_macroman/ftn85-webfont.woff
100755 → 100644
Binary file not shown.
Binary file modified
BIN
-3.94 KB
(82%)
www/src/assets/fonts/Webfonts/futurapt_bold_macroman/ftn85-webfont.woff2
100755 → 100644
Binary file not shown.
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
Binary file removed
BIN
-21.4 KB
www/src/assets/fonts/Webfonts/futurapt_book_macroman/ftn45-webfont.eot
Binary file not shown.
Binary file modified
BIN
-10.6 KB
(78%)
www/src/assets/fonts/Webfonts/futurapt_book_macroman/ftn45-webfont.ttf
Binary file not shown.
Binary file modified
BIN
-3.76 KB
(84%)
www/src/assets/fonts/Webfonts/futurapt_book_macroman/ftn45-webfont.woff
Binary file not shown.
Binary file modified
BIN
-2.34 KB
(88%)
www/src/assets/fonts/Webfonts/futurapt_book_macroman/ftn45-webfont.woff2
Binary file not shown.
Binary file removed
BIN
-22.7 KB
www/src/assets/fonts/Webfonts/futurapt_bookitalic_macroman/ftn46-webfont.eot
Binary file not shown.
Binary file modified
BIN
-10.8 KB
(79%)
www/src/assets/fonts/Webfonts/futurapt_bookitalic_macroman/ftn46-webfont.ttf
Binary file not shown.
Binary file modified
BIN
-3.11 KB
(88%)
www/src/assets/fonts/Webfonts/futurapt_bookitalic_macroman/ftn46-webfont.woff
Binary file not shown.
Binary file modified
BIN
-1.82 KB
(91%)
www/src/assets/fonts/Webfonts/futurapt_bookitalic_macroman/ftn46-webfont.woff2
Binary file not shown.
Binary file removed
BIN
-22.5 KB
www/src/assets/fonts/Webfonts/futurapt_demi_macroman/ftn65-webfont.eot
Binary file not shown.
Binary file modified
BIN
-9 KB
(82%)
www/src/assets/fonts/Webfonts/futurapt_demi_macroman/ftn65-webfont.ttf
Binary file not shown.
Binary file modified
BIN
-3.5 KB
(86%)
www/src/assets/fonts/Webfonts/futurapt_demi_macroman/ftn65-webfont.woff
Binary file not shown.
Binary file modified
BIN
-2.11 KB
(89%)
www/src/assets/fonts/Webfonts/futurapt_demi_macroman/ftn65-webfont.woff2
Binary file not shown.
Binary file removed
BIN
-23.5 KB
www/src/assets/fonts/Webfonts/futurapt_demiitalic_macroman/ftn66-webfont.eot
Binary file not shown.
Binary file modified
BIN
-9.55 KB
(82%)
www/src/assets/fonts/Webfonts/futurapt_demiitalic_macroman/ftn66-webfont.ttf
Binary file not shown.
Binary file modified
BIN
-2.93 KB
(89%)
www/src/assets/fonts/Webfonts/futurapt_demiitalic_macroman/ftn66-webfont.woff
Binary file not shown.
Binary file modified
BIN
-1.8 KB
(91%)
www/src/assets/fonts/Webfonts/futurapt_demiitalic_macroman/ftn66-webfont.woff2
Binary file not shown.