Posted By


adrianparr on 10/09/12

Tagged


Statistics


Viewed 875 times
Favorited by 0 user(s)

CSS @font-face Example


/ Published in: CSS
Save to your folder(s)

Font Squirrel is a great place to convert your fonts to the different formats required.

http://www.fontsquirrel.com/fontface/generator


Copy this code and paste it in your HTML
  1. @font-face{
  2. font-family: 'MyWebFont';
  3. src: url('WebFont.eot');
  4. src: url('WebFont.eot?#iefix') format('embedded-opentype'),
  5. url('WebFont.woff') format('woff'),
  6. url('WebFont.ttf') format('truetype'),
  7. url('WebFont.svg#webfont') format('svg');
  8. }
  9.  
  10.  
  11. /* <link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8" /> */

URL: http://www.fontspring.com/blog/further-hardening-of-the-bulletproof-syntax

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.