Created
August 8, 2013 07:18
-
-
Save awestmoreland/6182292 to your computer and use it in GitHub Desktop.
Geoff Evason's method of embedding base64-encoded web fonts into CSS file to circumvent CORS in Firefox. http://geoff.evason.name/2010/05/03/cross-domain-workaround-for-font-face-and-firefox
https://github.com/geoffevason
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: 'MyFontFamily'; | |
src: url('myfont-webfont.eot?') format('embedded-opentype'); | |
} | |
@font-face { | |
font-family: 'MyFontFamily'; | |
url(data:font/truetype;charset=utf-8;base64,BASE64_ENCODED_DATA_HERE) format('truetype'), | |
url(data:font/woff;charset=utf-8;base64,BASE64_ENCODED_DATA_HERE) format('woff'), | |
url('myfont-webfont.svg#svgFontName') format('svg'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment