• On TechRepublic: 10 lame phrases to cut from your resume
July 2, 2009 8:56 PM PDT

Firefox 3.5 and the potential of Web typography

by Dave Rosenberg
  • Font size
  • Print
  • 17 comments

In addition to new features such as support for HTML 5, geo-location, and a noticeably faster engine, Firefox 3.5 added a new CSS rule that makes Web typography much more attractive.

@font-face is a CSS rule that allows Web designers to reference fonts not installed on end-user machines. Just as you would have a pointer to a server-based stylesheet or JavaScript file in your Web page code, you can now make reference to a hosted typeface.

You'll note that news sites such as CNET News and NYTimes.com are optimized to make Web type more readable and as stylish as possible, but there are many design possibilities via additional downloadable typefaces. (As with any linked asset, there is some level of security risk if a hacker gets their hands on the font file.)

Mozilla's John Daggett explains: Within a stylesheet, each @font-face rule defines a family name to be used, the font resource to be loaded, and the style characteristics of a given face such as whether it's bold or italic. Firefox 3.5 only downloads the fonts as needed, so a stylesheet can list a whole set of fonts of which only a select few will actually be used.

This function is something I would have expected to be commonplace by now (Safari began supporting it in Version 3.1 and Opera in Version 10) but neither have the market share to drive usage the way Firefox and Internet Explorer do. (Note: this function doesn't work in IE.)

Generally speaking, the Web browser has done a terrible job with type. We've been stuck with old standbys such as Helvetica or Times New Roman, and don't forget the oft-loathed Comic-Sans and other delightful Microsoft fonts that are often easy to read but lack any real style (Verdana, for example.)

As Ian Lynam and Craig Mod write: "Fine typography has always been one of the stumbling points of Web design. Limited at most to a handful of cross-platform specific fonts, Web designers have often found it necessary to hack their way into typographically nuanced territory."

New font possibilities won't necessarily make you more popular or a better designer, but @font-face does open the door to make Web pages much more attractive and readable without being forced in Flash or other plug-in based solutions.

This of course is provided that font developers figure out ways to make their typefaces available freely or in a manner that encourages developers to use them. From a technical perspective, Firefox 3.5 allows fonts only to be loaded for pages served from the same site. This prevents sites from freely using fonts found on other sites and gives a bit of protection, but not much.

Most commercial type foundries aren't prepared for this and generally don't have licenses that are conducive to this type of use. But there is a big opportunity to get stylish new typefaces onto browsers worldwide, provided font designers are ready to embrace an open mindset.

(Note: I recognize the irony that I can't use the @font-face tag to demonstrate. Please take a look here and here for examples.)

Follow me on Twitter @daveofdoom.

Dave Rosenberg dishes up "Software, Interrupted" with nearly 15 years of technology and marketing experience that spans from Bell Labs to multiple start-up IPOs to open-source enterprise software companies. He is co-founder of MuleSource and currently serves as the general manager of Hardy Way. He is a member of the CNET Blog Network and is not an employee of CNET. Disclosure. You can contact Dave via e-mail at softwareinterrupted@gmail.com or follow him on Twitter @daveofdoom.
Recent posts from Software, Interrupted
Security considerations for virtual environments
Preventive medicine for software change management
Open-source Hadoop powers Tennessee smart grid
Microsoft's weak cloud privacy position
IBM helps students put their heads in the cloud
Amazon gets social with Twitter integration
Turning Twitter into an application server
Virtual goods: Duping the masses?
Add a Comment (Log in or register) (17 Comments)
  • prev
  • 1
  • next
by forever4now July 3, 2009 2:24 AM PDT
Cool!

Hopefully an IE-less Windows 7 in the EU will result in a huge uptick in non-IE browsers there. That would surely help to motivate web developers to start implementing new browser capabilities such as HTML5 video, @font-face, etc., in their website designs.

It would be nice, if Windows 7 was IE-free in the US, as well. Then, perhaps a similar effect would result.
Reply to this comment
by iertry July 3, 2009 11:18 AM PDT
Do you know how the EU version works? I you buy a boxed copy and install it how do the EU expect you to download and install another browser without a browser to access the internet and download it?
by forever4now July 3, 2009 11:34 AM PDT
@ iertry

95% of users will get Windows 7, when they purchase a new PC. The PC maker will pre-install the browser of their choice on these new systems.

The remaining 5% will be Windows 7 upgrades on existing machines. I don't know what the final EU resolution will be for this case, but you could argue that anyone capable of doing an OS upgrade is most likely technically savvy enough to figure out the browser part (e.g. downloading it to a disk, before upgrading, using ftp, etc.).
by iertry July 3, 2009 11:37 AM PDT
@forever4now

I guess that's the way it will work. It will be interesting to see what browsers the PC makers choose to install.
by Indyan July 3, 2009 9:59 PM PDT
If Opera doesn't manage to convince EU to include the ballot box dont expect things to change. Since 95% of users get their windows preinstalled (from OEM), they would already have IE installed.
Expect MS to throw in incentives to the computer manufacturers to include IE instead of other browsers. (Monopolies do that all the time, recently it was found that Intel offered incentives to retailers to not stock AMD components.)
by ecotopian--2008 July 3, 2009 11:24 AM PDT
Why is everybody talking like only Firefox does this? I've got news for you. Safari 4 handles @font-face just fine.
Reply to this comment
by joyofsomeone July 3, 2009 1:33 PM PDT
"(Safari began supporting it in Version 3.1 and Opera in Version 10)"
I think you'll find that they're merely mentioning it because it's new in Firefox... The people who talk about this apparently know Safari handles it!
by FF2009 July 3, 2009 3:21 PM PDT
That's because no one is using Safari :)
by marka999 July 5, 2009 2:02 PM PDT
So does IE
by finalfanoffkey July 3, 2009 11:29 AM PDT
This will open the gate to a flood of lawsuits to any website that font-linking non-public domain fonts unless they are willing to pay a significant fee for it. I really doubt how many web site can afford doing so. This feature is really pratically useless comparing to the font embeding technology and won't get support from the font industry.
Reply to this comment
by tikoro July 3, 2009 2:08 PM PDT
While I agree with potential lawsuits, I really think you need to upgrade your game on freeware or open-source stuff in general. Check out www.1001freefonts.com... While sometimes the majority of the fonts on that particular site seem more apt to be used on a myspace-esque design schema (i.e. unreadable) or in fun graphics etc... they are free and as such could be used easily. For example instead of making a huge graphic to say the name of my site in a special font..I could merely use the @font-face declaration and voila...There are free resources out there if you feel like looking.
by pentest July 3, 2009 2:51 PM PDT
This is a security nightmare waiting to happen, especially if there is any flaw in the browsers that support this that have to do with fonts.
Reply to this comment
by daverosenberg July 3, 2009 4:01 PM PDT
Definitely a risk, but just as with CSS and Javascript files there will be some way to secure the fonts. Maybe a digital signature?
by galacticcruiser July 3, 2009 4:32 PM PDT
The other problem with this is that the font files are not small to download (A typography expert recently said at a conference that decent font files could be half a megabyte or more to download, IIRC). This will lead to ugly side effects of some standard fonts showing and then suddenly half way through reading seeing the fonts change... That might be a difficult user experience issue to overcome...
Reply to this comment
by marka999 July 5, 2009 2:01 PM PDT
IE does support @font-face and has since IE5 so saying it doesn't work in IE is incorrect as IE was the first to implement it.
Reply to this comment
by d2r4 July 6, 2009 4:01 PM PDT
Good job pointing that out marka999

Indeed... maybe Dave Rosenberg should read the articles that he links to.

https://developer.mozilla.org/en/CSS/@font-face

Mozilla's site clearly states that there has been support for this feature since IE 4. The feature is more limited than newer implementations, but really... IE4! I'm glad all the non-IE browsers are so innovative, too bad M$ is so stupid. Really people.... whether or not IE sucks, people should at least post accurate (and complete) information.
by jean.luc.picard July 8, 2009 7:36 PM PDT
It absolutely does not work in IE of any version. I have been using free fonts on the web for a few months and the only browser where it does not work is IE. IE requires a proprietary file format that does not exist and the software from M$ to convert fonts is arcane and does not work as far as I can see. I've tried. Any WebKit based browsers supports it. But NOT IE.
Reply to this comment
(17 Comments)
  • prev
  • 1
  • next
advertisement

A CNET Conversation with Eric Schmidt

CNET's Tom Krazit and Molly Wood sit down with Google CEO Eric Schmidt to discuss the future of Android, the Chrome OS, the problem of real-time search indexing, and more.

Verizon tests sending RIAA copyright notices

The No. 2 phone company, known for its reluctance to intervene in antipiracy cases, strikes an agreement to forward copyright notices on behalf of the music industry.

advertisement

About Software, Interrupted

In "Software, Interrupted," Dave Rosenberg discusses disruption in the software market, as well as the products and services that keep business technology norms in perpetual flux.

With nearly 15 years of technology and marketing experience spanning from Bell Labs to multiple start-up IPOs, Dave co-founded open-source software company MuleSource and now serves as general manager of Hardy Way. He also happens to be a U.S. patent holder and a workaholic. Technology is his best friend and mortal enemy.

Add this feed to your online news reader

Software, Interrupted topics

advertisement
Click Here
advertisement

Inside CNET News

Scroll Left Scroll Right