Last active
September 22, 2019 15:36
-
-
Save termitkin/124c351b4b68b8d33a7a5febb39a54cf to your computer and use it in GitHub Desktop.
[CSS] @font-face
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
If you need IE11 – use .woff and .woff2 | |
In other cases, you can only use .woff2 | |
*/ | |
@font-face { | |
font-family: 'MyWebFont'; | |
src: url('webfont.eot'); /* IE9 Compat Modes */ | |
src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ | |
url('webfont.woff2') format('woff2'), /* Super Modern Browsers */ | |
url('webfont.woff') format('woff'), /* Pretty Modern Browsers */ | |
url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */ | |
url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */ | |
font-weight: 400; | |
font-style: normal; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment