Skip to content

Commit 1f63ee6

Browse files
authored
Update conventies.md
1 parent ad32171 commit 1f63ee6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docs/conventies.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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

226222
body {

0 commit comments

Comments
 (0)