Skip to content

Instantly share code, notes, and snippets.

@joe-watkins
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joe-watkins/85e87940847964a507d8 to your computer and use it in GitHub Desktop.
Save joe-watkins/85e87940847964a507d8 to your computer and use it in GitHub Desktop.
Bulletproof Base64 template
@font-face {
font-family: 'MyFontFamily';
src: url('myfont-webfont.eot?') format('embedded-opentype');
}
@font-face {
font-family: 'MyFontFamily'
url(data:font/opentype;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