Today I Learned
Tidbits of (hopefully) useful information on technologies and tools related to software development.

Convert TTF Font Into WOFF and WOFF2

November 09, 2020 - Fonts

Got a system font you want to convert into a web font?

cat font.ttf | npx ttf2woff2 >> font.woff2

Need to support older browsers?

npx ttf2woff font.ttf font.woff

Seeing command not found: npx?

You probably need to install Node.js.

Want to improve this post? Feel free to submit a pull request!

Learnings sourced by everyone who has taught me, either directly or indirectly. Thanks!

Visit my main site for more, and sometimes longer, content.