Return to Snippet

Revision: 70246
at December 22, 2015 06:31 by apphp-snippets


Initial Code
<style type="text/css">
@font-face{ 
  font-family: 'MyFont';
  src: url('myfont.eot');
  src: url('myfont.eot?#iefix') format('embedded-opentype'),
    url('myfont.woff') format('woff'),
    url('myfont.ttf') format('truetype'),
    url('myfont.svg#webfont') format('svg');
}
 
h1 { font-family: 'MyFont', sans-serif; }
</style>

Initial URL
http://apphp.com/index.php?snippet=css-my-own-font

Initial Description
It allows you to add your own fonts on the page. To convert to different formats use this service Font2Web.

Initial Title
My own @font-face in CSS

Initial Tags
css

Initial Language
CSS