Wednesday, October 21st, 2009

Firefox 3.6 to support Web Open Font Format

Remember when Firefox 3.5 was released, it added support for the downloadable font in Firefox!? It gave the web developers the flexibility to use any font as they wish, with out worrying about the availability of that custom font in user’s system. They just need to mention the URL of the font in their CSS definitions and the browser (FF) will download the font and renders the page. Firefox 3.5 supported the linking of TrueType and OpenType fonts alone.

From Firefox 3.6 onwards, Mozilla adds the ability to link Web Open Font Format (WOFF) from your CSS files. The WOFF is mostly similar to the OpenType/TrueType fonts, except that its in compressed format. So, it reduces the download time.

How to link Web Open Font Format in your pages?

If you want to use Web Open Font Format, the way to link is similar to linking other downloadable font format. You mention it in @font-face tag. Below is the sample code for linking Web Open Font Format:

@font-face {
  font-family: MyFont;
  src: url(my-font.woff) format("woff");
}

body{
  font-family:MyFont,Arial;
}

WOFF is going to be supported from Firefox 3.6 onwards. In the meantime, you can test it in Firefox Nightly builds, if you want to see how it works.

{ 4 comments… read them below or add one }

xeon October 22, 2009 at 11:02 am

opera 10 already supporting web font !!!!

Reply

José October 22, 2009 at 1:22 pm

@XEON Yes, and so does Firefox 3.5, but does Opera support WOFF?

Reply

Ryanoxr November 17, 2009 at 4:19 am

I had no idea that Opera supported WOFF?!

Reply

Veera November 17, 2009 at 7:43 am

I don't think Opera support WOFF.

Reply

Leave a Comment

Previous post:

Next post: