HELLO!
I'm an experienced UI designer & coder living in
San Francisco, CA.
I work as a freelancer and love tweeting. You should follow me on Twitter because I share delicious stuff.
latest tweets
ELSEWHERE
RSS feed
Cufón vs sIFR Which one is better?
March 16, 2009 | Web Technologies
I don’t know if you noticed that there is a new font replacement method called Cufón. Cufón simply does what sIFR does. But Cufón is more exciting because, it doesn’t use any browser plugins. As you know, sIFR needs Adobe Flash plugin to work. Cufón, on the other hand just needs JavaScript to be enabled.
Let’s compare these two powerful font replacement methods.
Cufón
As I said, Cufón is based on JavaScript. It has two individual parts. First, a font generator and second, a rendering engine. This means, if your visitors disable scripts, they will not able to see the font replacement. But, they’ll see all the Cufón based texts without any problem; as normal HTML texts.
Cufón supports all mainstream browsers:
- Internet Explorer 6, 7 and 8
- Mozilla Firefox 1.5+
- Safari 3+
- Opera 9.5+
- Google Chrome
The only problem with its browser support is Safari 2 and Internet Explorer 5.5. But we all know, it is not a big deal. Also Cufón has some minor bugs.
Implementing Cufón is super easy. First you have to download cufon-yui.js. Then you have to convert your font to VML paths by using Cufón’s online generator. And last, you call cufon-yui.js and generated font .js file in your document and call Cufón function (there is a little +1 step that is calling Cufón function in the footer for IE). That’s it.
Styling Cufón is also very easy. You may style Cufón based text by using CSS.
Cufón’s JavaScript’s file size is also exciting. cufon-yui.js is 14Kb. For testing only, I used FF Mt font, free from FontFont. I converted FF Mt to JavaScript via Cufón’s generator and it took only 14Kb. So a very basic setup cost me only 2 JavaScript files: 28Kb. This also means 2 HTTP requests.
However, there is a big usability problem in Cufón. That is, users cannot select and copy the Cufón based texts. That’s a big usability issue but I think creators will do something about it. (Thanks to Hank)
sIFR 3 *
I’ve used sIFR in many projects and it really helped me to make web sites more stylish. It’s like revolutionary.
sIFR also uses JavaScript and plus it stores font files in Adobe Flash. This means you have to have Adobe Flash to create font files. Or there is an online font converter for sIFR called sIFR generator. It helps you to convert .ttf files to .swf files.
Implementing sIFR to a web page is a little bit harder than Cufón. First you need to convert your font to a .swf file. Than you have 3 files to link on your page. These are: sIFR’s CSS file, sIFR’s JavaScript and a config file. The config file is optional, you may want to put config lines to the bottom of every page. And the next step is configuring your sIFR. To style sIFR texts, you can also use CSS. But this time you need to define CSS in the config file.
Let’s check sIFR’s file sizes. Again, I used FF Mt font. It took 10Kb. Compressed sIFR.js took 29Kb. And the CSS file for it took 2Kb. That makes 41Kb. 1.5 times bigger than Cufón. sIFR needs 4 HTTP requests.
* Build r436
Conclusion
Cufón seems to be better. We all know, sIFR is older but it still eats more kilobytes and HTTP requests. Its rendering is also slower then Cufón. sIFR renders texts after the page is loaded. So these factors help Cufón to take the lead.

7 Comments
hank
March 18, 2009 12:12 pm
Cufón is better on a lot of fronts, but there are 2 big drawbacks as far as I can see, that you haven’t mentioned:
1. There seems no way to be able to select (and thus copy, paste) the replaced text other than to select the whole page or at least a large chunk of the page around the selected text. This is quite a usability drawback that sIFR doesn’t share.
2. There are currently a lot of legal limitations to using a font-embedding system like Cufón on a LOT of typefaces. Luckily Adobe’s licenses allow this, but for many others, an extended license is required.
These two issues are very significant (at least for me) and need to be given due consideration.
Enes Kabacaoglu
March 18, 2009 4:53 pm
Cufón seems better than sIFR because of its javascript based being. On the other hand its good to see a serious alternative of sIFR around.
Dan
March 19, 2009 9:26 pm
I never even heard of Cufon - thanks for the introduction!
Cufón - eine Alternative zu sIFR? « Webdevteam’s Blog
March 26, 2009 8:42 am
[…] Einen Vergleich zwischen sIFR (sIFR 2, sIFR3 beta, sIFR Generator) und cufón findet man hier. […]
Onur Oztaskiran
May 13, 2009 11:56 pm
Dude, you just made my day.
I haven’t been aware of a js based solution for typeface replacement other sIFR which I hated afterall.
I love you Eren. I do.
Stacie
May 31, 2009 7:41 pm
What’s the difference between Cufon and Facelift?
Eren Emre Kanal
May 31, 2009 7:46 pm
Stacie, I have no experience with Facelift but it looks like Cufon is still faster than it.