Skip to content

Instantly share code, notes, and snippets.

@rauhryan
Last active August 29, 2015 14:07
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 rauhryan/440343421241cfa98fd3 to your computer and use it in GitHub Desktop.
Save rauhryan/440343421241cfa98fd3 to your computer and use it in GitHub Desktop.
@font-face { //<- @font-face is a special css function that sets up a font-family that you can reference by name
font-family: 'Leitura'; // <- this is the name that you want to call your font
src: url("/fonts/2C3E10_0_0.eot"); // <- this tells the browser to download the eot version first if it supports it
src: url("/fonts/2C3E10_0_0.woff") format("woff"); // <- this tells the browser to fall back to this format if eot doesn't work
}
h1 {
font-family: "Leitura", "Helvetica"; // <- this sets up what font to use, it will first try to use Leitura, if that doesnt work it will use helvetica
}
@font-face {
font-family: 'Leitura';
src: url('/fonts/2C3E10_0_0.eot');
src: url('/fonts/2C3E10_0_0.eot?#iefix') format('embedded-opentype'),
url('/fonts/2C3E10_0_0.woff') format('woff'),
url('/fonts/2C3E10_0_0.ttf') format('truetype');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment