Webkit gets @font-face
![]()
A post for the web-designers out there. Rejoice, for the blogosphere bears good news today - Webkit (the engine behind Safari) joins Opera in supporting @font-face rules in nightly builds. This means it includes the necessary functionality to link to downloadable fonts from CSS - or to put it short: typographic freedom (within licensing limits, naturally) at last.
One of the most frustrating things about designing for the web is how limited you are in terms of which fonts you can use. Today you only get a handful of safe fonts on all platforms, but that will change with @font-face finally coming into browsers near you. It will allow the designer to specify external fonts that the browser downloads and uses to render text in the page.
In theory, this gives you limitless possibilities, as long as you have the license to redistribute the fonts you want to use in your designs. The fact that the majority of fonts (and arguably the large majority of good fonts) can not be distributed freely will be a tough problem to solve, but this is undoubtedly a step in the right direction.
@font-face {
font-family: "MyFont";
src: url(http://server.com/font.ttf) format("truetype");
}
h1 { font-family: "MyFont", sans-serif }
Want to know more about how to use @font-face in the future? Refer to this article over at the always awesome A List Apart. There’s also a couple of interesting opinions and discussions over at Simplebits, Hicksdesign and Typographica.

I agree this is fantastic news. I can’t wait for it to be useful.
The problem lies in the fact that it’ll be a couple of years (maybe less) for all the major browsers to support it on all platforms. Then it will be a couple more years until the browsers that support ‘@font-face’ to be used by more than 50% of the population. Then it will be a couple more years for the vast majority of users (> 80%) to be using the browsers with that support and become a reality for mainstream web developers.
Gee… Things move so slowly on the web.
Comment by Marcelo Calbucci — October 5, 2007 @ 9:16 pm