Last active
August 29, 2015 14:07
-
-
Save rauhryan/440343421241cfa98fd3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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