Hassle-Free Fonts

With this plugin you can download fonts and host them yourself.
The goal is to make the fonts load faster and be independent of others.

Author:Syncment.nl (profile at wordpress.org)
WordPress version required:5.4
WordPress version tested:5.6.4
Plugin version:1.0.0
Added to WordPress repository:23-01-2021
Last updated:23-01-2021
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://syncment.nl/plugins/hassle-free-fonts
Total downloads:100
plugin download
Click to start download

Let’s get this straight: The effort to host Google web fonts on your own server is immense! First of all you need to download all .eot, .woff, .woff2, .ttf and .svg files, then copy them onto your server and finally paste a CSS snippet.

Sounds easy? Well it could be, if Google would actually provide any direct links to download these files and a customized CSS for self-hosting them.
With this plugin you can download fonts and host them yourself.

Thanks to the https://google-webfonts-helper.herokuapp.com/fonts API we can download it right to your webserver.

Okay enough nice talk, how does it work?!?
The plugin uses an external API to download fonts.

With the help of an React javascript interface we will generate the API request and than download its to:
– wordpress\wp-content\uploads\hassle-free-fonts

it’s download as a zip formatted file, so we unpack it into
– wordpress\wp-content\uploads\hassle-free-fonts\fonts

So ones the fonts is downloaded to our server we can generate a css file.
– wordpress\wp-content\uploads\hassle-free-fonts\style.css

By default this file is empty. After generation the css style will be filled with @font-face structure to make the font available.
Simple and easy without any hassle.