Skip to content

Instantly share code, notes, and snippets.

@cythux
Created August 21, 2013 09:54
Show Gist options
  • Save cythux/6292560 to your computer and use it in GitHub Desktop.
Save cythux/6292560 to your computer and use it in GitHub Desktop.
@font-face sample
@font-face {
font-family: 'Font Name';
src: url('../fonts/fontname-webfont.eot');
src: url('../fonts/fontname-webfont.eot?iefix') format('eot'),
url('../fonts/fontname-webfont.woff') format('woff'),
url('../fonts/fontname-webfont.ttf') format('truetype'),
url('../fonts/fontname-webfont.svg#webfontjSpbZQRv') format('svg');
font-weight: normal;
font-style: normal;
}
/* Use the font in your styles */
h1 { font-family: 'MyFontFamily', Arial, Helvetica, san-serif; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment