Skip to content

Instantly share code, notes, and snippets.

@bradvin
Created May 15, 2013 12:21
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 bradvin/5583618 to your computer and use it in GitHub Desktop.
Save bradvin/5583618 to your computer and use it in GitHub Desktop.
Font face hack
@font-face {
font-family: 'myfont';
src: url('fonts/myfont.eot#iefix');
src: url('fonts/myfont.woff') format('woff'),
url('fonts/myfont.ttf') format('truetype'),
url('fonts/myfont.svg#myfont') format('svg');
font-weight: normal;
font-style: normal;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'myfont';
src:url('fonts/myfont.svg#myfont') format('svg');
font-weight: normal;
font-style: normal;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment