JavaScript developer, technology passionate, Ubuntu evangelist, ex mountain guide, active football player, inactive surfer, professional backpacker and hitchhiker.
I use fontsource.org and the associated npm package. It allows you to install specific fonts as dependencies and import them into your project as you would any other library.
If you're using webpack there's a plugin that downloads the library on buildtime, that way you can still easily use google fonts without this privacy issue
JavaScript developer, technology passionate, Ubuntu evangelist, ex mountain guide, active football player, inactive surfer, professional backpacker and hitchhiker.
JavaScript developer, technology passionate, Ubuntu evangelist, ex mountain guide, active football player, inactive surfer, professional backpacker and hitchhiker.
Good stuff! One thing that I noticed as a privacy enthusiast:
Don’t use Google fonts, especially not as dynamic imports. This basically unwittingly injects Google trackers into your users web browser.
Thanks again, Mat.
I was not aware of that at all. Thanks for the hint. I am at his exact moment researching more about the topic. 🕶️ 📚
Thanks Mat! What could be the alternative to this?
I use fontsource.org and the associated npm package. It allows you to install specific fonts as dependencies and import them into your project as you would any other library.
My personal favorite is fontlibrary.org
If you're using webpack there's a plugin that downloads the library on buildtime, that way you can still easily use google fonts without this privacy issue
Thanks, Christian.
I am going to definitively check it out too. ✍️
What the name of this plugin?
I was also unaware of this! I suppose it will be time to download the fonts and put them on my server. You can no longer trust anyone!
Check out the fontsource npm package
I feel the same, Jacob. Looks like Google and similars are literally everywhere. 😨