Answer the question
In order to leave comments, you need to log in
Why does Google Fonts only use Woff2?
I noticed a long time ago that Google Web Fonts uses only one woff2 font format in their css file:
/* cyrillic-ext */
@font-face {
font-family: 'Comfortaa';
font-style: normal;
font-weight: 400;
src: local('Comfortaa Regular'), local('Comfortaa-Regular'), url(https://fonts.gstatic.com/s/comfortaa/v9/Be0CkOtwwI2n86HMhtablRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
@font-face {
font-family: 'FontAwesome';
src: url('../fonts/fontawesome-webfont.eot?v=4.7.0');
src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),
url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),
url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),
url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
font-weight: normal;
font-style: normal;
}
Answer the question
In order to leave comments, you need to log in
Google Fonts checks the current browser in which the fonts are called and generates the optimal css for loading.
If, for example, the current chrome is used, then the fonts are given in woff2, if something is older then: woff or ttf, etc.
Is it time to switch only to woff2 format?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question