I want to use a font collection from Google Fonts directory. I selected the styles and include the CSS link
tag in my project's template.
Alternatively, with Google Fonts you can also download the collection, and what you get is a zip file with all the font's styles.
I can create a CSS equivalent of the one Google gives me to include in the HTML, so I want to provide the self hosted font files as fallback, if the visitor can't access the Google Font API.
How do I setup this, and preventing both the Google font file and the self hosted font file from being downloaded? If the user does has access to Google Fonts, it's browser shouldn't download the self hosted version of the font.
url()
path with alocal()
path in thesrc
rule - the browser is supposed to stop looking when it finds one it can load. Haven't tried it, though. – Tieson T.