Posted By

JimSangwine on 05/05/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jecofish


Using @font-face


 / Published in: CSS
 

  1. /* This was updated Feburary 10th, 2011 to be the cleanest and most compatible way to embed custom fonts. */
  2.  
  3. @font-face {
  4. font-family: 'MyFontFamily';
  5. src: url('myfont-webfont.eot?') format('eot'),
  6. url('myfont-webfont.woff') format('woff'),
  7. url('myfont-webfont.ttf') format('truetype'),
  8. url('myfont-webfont.svg#svgFontName') format('svg');
  9. }
  10.  
  11. /* Usage */
  12.  
  13. body {
  14. font-family: 'MyFontFamily', Fallback, sans-serif;
  15. }

Report this snippet  

You need to login to post a comment.