Wednesday, 27 August 2008

@font-face CSS Declaration

Web fonts have been around for a while, since 1998, when CSS2 created a way to link to fonts from style sheets. Unfortunately the big browsers back then did not include support for the most widely used format, TrueType.

Web Fonts are back. Thanks to some of CSS3 architecture and a declaration called @font-face.

The @font-face allows you to direct your stylesheet to a particular font via url, once done, simply declare the font use as you would with Arial or Verdana. Let's take a look at the code.

Read more at: http://blog.iantearle.com/learning/css-web-fonts

No comments: