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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners