Created
October 28, 2010 13:50
-
-
Save daredude/651384 to your computer and use it in GitHub Desktop.
provide a custom font for your website with css WORKS WITH IE, FIREFOX, OPERA AND SAFARI
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_font; | |
src: url('my_font.eot'); | |
src: local(my_font), url('my_font.ttf') format('opentype'); | |
} | |
p | |
{ | |
font-family: my_font; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
found this gist on
http://symphony-of-dot-net.blogspot.com/2010/03/making-css-custom-font-works-with-ie.html
thx @ccchai
more about EOT and how to convert TTF / OTF to EOT:
http://msdn.microsoft.com/en-us/library/ms533034(VS.85).aspx