3 ms·
Google fonts download button gives you a TTF file and not a WOFF2 file so you have to read the CSS to get the WOFF2 file.
by Velocifyer 1y ago
Google fonts download button gives you a TTF file and not a WOFF2 file so you have to read the CSS to get the WOFF2 file.
- darrenf 1y agoOr you use Google's own TTF <-> WOFF2 converter tools: https://github.com/google/woff2 https://github.com/google/woff2 [0] I have very recent -- like, 2 weeks ago -- successful experience of using these, since I wanted to distribute a WOFF2 as part of a browser extension. [0] edited to add - you don't have to build it, you can get it from homebrew https://formulae.brew.sh/formula/woff2 https://formulae.brew.sh/formula/woff2 or an Arch package https://archlinux.org/packages/extra/x86_64/woff2/ https://archlinux.org/packages/extra/x86_64/woff2/ and presumably other distros
- cornedor 1y agoAny idea if the woff2 files served by Google are the same? Or that they maybe are more optimized for web?
- darrenf 1y agoI’m afraid I don’t know for sure, I only know that the woff2 file I generated with the CLI worked fine in all the browsers I needed it to. Other posters have said that Google may do some user-agent sniffing or other fingerprinting to maybe serve an even more reliable version, but I can’t comment on that.
- efilife 1y agoWhy do you need the woff file? Fonts work fine with TTF