@font-face | CSS Barcelona (blog)

@font-face

The @font-face at-rule allows you to define custom fonts. It was first defined in the CSS2 specification, but was removed from CSS2.1. Currently, it’s a draft recommendation for CSS3.

Example @font-face

Declares the font family called “MyFont”:
@font-face { font-family: “My Font”; src: url(“http://yoursite/MyFont.otf”);}

Then call it using font-family:
h1 { font-family: “My Font”,sans-serif; }

@font-face Resources

About Juanjo

Chef CSSBarcelona.

12. December 2010 von Juanjo
Categories: CSS3 | Tags: , | Comments Off

Partly powered by CleverPlugins.com