Skip to content Skip to sidebar Skip to footer

When Using Css @font-face, In What Order Do Browsers Use The Different Types?

When using @font-face in CSS is it documented anywhere what font types work in each the major browsers and also the priority they give to different font types if one or more is mis

Solution 1:

The value of the src property is a prioritized list, so each browser will use the first font in the list that is in a format it supports. From CSS Fonts Module Level 3 CR, section 4.3 Font reference: the src descriptor: “Its value is a prioritized, comma-separated list of external references or locally-installed font face names. When a font is needed the user agent iterates over the set of references listed, using the first one it can successfully activate. Fonts containing invalid data or local font faces that are not found are ignored and the user agent loads the next font in the list.”


Post a Comment for "When Using Css @font-face, In What Order Do Browsers Use The Different Types?"