File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -208,19 +208,15 @@ var initHeader = () => {}
208208
209209#### Robust Font Face
210210
211- Always provide sufficient fallbacks when using ` @font-face ` (web fonts) .
211+ Only use woff2 (and maybe woff for extra compatibility with some older browsers) for custom fonts .
212212
213213** Example:**
214214
215215``` css
216216@font-face {
217217 font-family : ' MyWebFont' ;
218- src : url (' webfont.eot' ); /* IE9 Compat Modes */
219- src : url (' webfont.eot?#iefix' ) format (' embedded-opentype' ), /* IE6-IE8 */
220- url (' webfont.woff2' ) format (' woff2' ), /* Super Modern Browsers */
221- url (' webfont.woff' ) format (' woff' ), /* Pretty Modern Browsers */
222- url (' webfont.ttf' ) format (' truetype' ), /* Safari, Android, iOS */
223- url (' webfont.svg#svgFontName' ) format (' svg' ); /* Legacy iOS */
218+ src : url (' webfont.woff2' ) format (' woff2' ),
219+ url (' webfont.woff' ) format (' woff' );
224220}
225221
226222body {
You can’t perform that action at this time.
0 commit comments