3 ms·
From the google fonts FAQ it says they will use the locally installed font if possible https://developers.google.com/fonts/faq#can_i_download_the_fonts_on_goog
by harrisonjackson 6y ago
From the google fonts FAQ it says they will use the locally installed font if possible
https://developers.google.com/fonts/faq#can_i_download_the_fonts_on_google_fonts_to_my_own_computer https://developers.google.com/fonts/faq#can_i_download_the_f...
> Note that when browsers render websites that use the Google Fonts API, they will check if a font is installed locally on your computer, and prefer to use the local version over web fonts.
- vbezhenar 6y agoHere's snippet from CSS served to my browser: https://fonts.googleapis.com/css2?family=Inconsolata&display=swap https://fonts.googleapis.com/css2?family=Inconsolata&display... @font-face { font-family: 'Inconsolata'; ... src: url(https://fonts.gstatic.com/s/inconsolata/....woff2) format('woff2'); unicode-range: U+0000-00FF, ...;
- harrisonjackson 6y agoWow! That used to not be the case. I can't find anything about the change but it used to include a check for local(font-face) in the sources. Some random references to it w/ the snippets: https://stackoverflow.com/a/52413970 https://stackoverflow.com/a/52413970 https://stackoverflow.com/questions/18303215/how-can-i-prevent-google-fonts-requesting-local-fonts https://stackoverflow.com/questions/18303215/how-can-i-preve... https://github.com/google/fonts/issues/2620 https://github.com/google/fonts/issues/2620
- sergeykish 6y agoThank you, I gave advice and missed this change. I've created issue "Local font name makes web accessible", and I hope it would be fixed. https://github.com/google/fonts/issues/2855 https://github.com/google/fonts/issues/2855