DEV Community

Discussion on: Codecademy - CSS 7: Typography

Collapse
 
alohci profile image
Nicholas Stimpson • Edited

The order that the font files are chosen follows the process: from first to last in the "src" property, try each entry in turn. For each one, skip it if the browser knows it's a format that it can't handle. Otherwise the browser tries to load it. If it loads, and the browser can parse it properly, then the browser is done. Otherwise it tries the next entry from the "src" property.

I have to say that what you've learnt contains a number of inaccuracies. Just little things, like line-height isn't actually taken from baseline to baseline. Nothing to worry about, just don't take it as absolute truth.