Skip to content

Instantly share code, notes, and snippets.

@brendanjerwin
Created March 3, 2009 02:26
Show Gist options
  • Save brendanjerwin/73141 to your computer and use it in GitHub Desktop.
Save brendanjerwin/73141 to your computer and use it in GitHub Desktop.
CSS for embedding fonts in Internet Explorer and good browsers too.
<!--[if !IE]><!-->
<style type="text/css" media="screen, print">
@font-face {
font-family: "My Custom Font";
src: url("http://brendanjerwin.github.com/VeraMono.ttf");
}
</style>
<!-- <![endif]-->
<!--[if IE]>
<style type="text/css" media="screen">
@font-face{
font-family:'My Custom Font';
src: url('http://brendanjerwin.github.com/BITSTRE0.eot');
}
</style>
<![endif]-->
<style type="text/css">
p.customfont {
font-family: "My Custom Font", Verdana, Tahoma;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment