@font-face {

Most of the new features of CSS3 I thought CSS would do already. This one, however, addresses a long held problem with web site design, and I couldn’t be happier about it. It is @font-face.

This lovely piece of code allows the designer to use fonts that aren’t stored locally on the users machine. The font file itself is stored on the server, and as long as the user has a CSS3 compatible browser it should display correctly.

@font-face {
font-family:'Chunk';
src: url('Chunkfive.ttf') format('truetype');
}

#blog-title {
font-family:Chunk, "Times New Roman", Times, serif;
}

With this I can now think about designing without having to rely on images to display non-web standard fonts.

Share

Leave a Reply

Your email address will not be published. Required fields are marked *