Created
November 28, 2018 13:35
-
-
Save JamesKontargyris/45d3e9a0472a6c80f45da21f5d80fa4d to your computer and use it in GitHub Desktop.
CSS @font-face declaration
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
@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 */ | |
} | |
body { | |
font-family: 'MyWebFont', Fallback, sans-serif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment