Created
August 4, 2014 03:16
-
-
Save z-------------/bebec90169582dad253a to your computer and use it in GitHub Desktop.
@font-face example
This file contains hidden or 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: "My Cool Font"; | |
| font-weight: 400; | |
| font-style: normal; | |
| src: local("My Cool Font"), url("my-cool-font.ttf") format("truetype"); /* tries to use installed version, if that doesn't work uses the ttf */ | |
| } | |
| /* then just use it as usual */ | |
| something { | |
| font-family: "My Cool Font", sans-serif; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment