Odd Google Fonts Trick?
Permalink
I've been scratching my head over how I can load ANY google font into the browser WITHOUT linking a google font stylesheet.
Checking the sources tab there is nothing coming in from google.
The only thing I'm loading is a list of all google fonts. So by loading the full list of google fonts (which is available through the API), your website somehow has every google font available preloaded?
The file I import is on my server:http://archebian.org/google-fonts.php,... and then magically every google font is preloaded!
Just thought I'd share, maybe someone with brains can explain, or maybe I'm being retarded and all these fonts are just cached from other websites.... but clearing cache they still show up so somethings different.
Perphaps the raw font data is stored in that file somewhere.
EDIT:
Just to confirm this, when I loadhttp://archebian.org/google-fonts.php... onto the site every google font works out the box. Pretty cool eh?
Checking the sources tab there is nothing coming in from google.
The only thing I'm loading is a list of all google fonts. So by loading the full list of google fonts (which is available through the API), your website somehow has every google font available preloaded?
The file I import is on my server:http://archebian.org/google-fonts.php,... and then magically every google font is preloaded!
Just thought I'd share, maybe someone with brains can explain, or maybe I'm being retarded and all these fonts are just cached from other websites.... but clearing cache they still show up so somethings different.
Perphaps the raw font data is stored in that file somewhere.
EDIT:
Just to confirm this, when I loadhttp://archebian.org/google-fonts.php... onto the site every google font works out the box. Pretty cool eh?