O
O
Olzhas Kaliev2015-08-24 09:51:31
css
Olzhas Kaliev, 2015-08-24 09:51:31

What is the correct order for connecting a font of a different format?

Please explain the correct order for connecting a font of different formats (eot, woff, woff2, otf, ttf, svg, local)
basically the order in which I listed above, but on https://developers.google.com/web/fundamentals /per... the order is reversed.
it seems that in the end the browser chooses only one format, but does the order of connecting fonts affect which font it stops at?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
Kjuri, 2018-03-21
@Kjuri

On this occasion, it is clearly written in this Google article that yes the order matters (but not the CSS cascade). The first supported font is taken. From myself I can add, I specifically checked this - it is. Put woff2 first - it will take it, well, or in your case eot for ie and woff the rest.

M
Michael, 2015-08-24
@scherbuk

I always thought it didn't work

V
Vladislav Dragalev, 2015-08-24
@vladqwerty

Perhaps Google knows something) if you specify local first, then when the font is in the system, it will not load again.

D
Dima Pautov, 2015-08-24
@bootd

Cascading Style Sheet! That says it all. Connect 4 images using css in different formats

body {
background-image: url('img/img1.gif');
background-image: url('img/img1.jpg');
background-image: url('img/img1.png');
background-image: url('img/img1.webp');
}

Which of the bottom will eventually be displayed in the browser? Given that the browser understands all specified formats

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question