Skip to content

Instantly share code, notes, and snippets.

@hannic
Created November 19, 2012 16:56
Show Gist options
  • Save hannic/4111853 to your computer and use it in GitHub Desktop.
Save hannic/4111853 to your computer and use it in GitHub Desktop.
Custom @font-face Typography
@font-face{
font-family: 'MyFont';
src: url('myfont.eot');
src: url('myfont.eot?#iefix') format('embedded-opentype'),
url('myfont.woff') format('woff'),
url('myfont.ttf') format('truetype'),
url('myfont.svg#webfont') format('svg');
}
h1 { font-family: 'MyFont', sans-serif; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment