When it comes to using custom fonts on websites, the de-facto way to do currently is to use the https://fonts.google.com/. Now, most people would add direct URLs to the fonts provided by Google Fonts instead of self-hosting them like so.

Let’s say you want to use a custom font only for certain characters.

For the scenario I just described, you can append an additional query parameter text to the font request URL.

Doing this can effectively reduce the size of the font file by up to 90% and in turn optimize the overall font request!
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners