<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CSSquirrel &#187; sifr</title>
	<atom:link href="http://www.cssquirrel.com/tag/sifr/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cssquirrel.com</link>
	<description>One nut's look at the world of web design</description>
	<lastBuildDate>Wed, 08 Sep 2010 17:13:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cuddling With Cufón</title>
		<link>http://www.cssquirrel.com/2009/04/15/cuddling-with-cufon/</link>
		<comments>http://www.cssquirrel.com/2009/04/15/cuddling-with-cufon/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 04:19:01 +0000</pubDate>
		<dc:creator>Kyle Weems</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[cufon]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[sifr]]></category>

		<guid isPermaLink="false">http://www.cssquirrel.com/?p=233</guid>
		<description><![CDATA[I&#8217;ve been meaning to mention this for a while now, and have been noticing a few blog posts on the topic recently, so I think I&#8217;ll add in my voice. If you haven&#8217;t check out Cufon yet, go do so. And yes, I know the &#8220;o&#8221; is supposed to have an accent mark over it, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been meaning to mention this for a while now, and have been noticing a few blog posts on the topic recently, so I think I&#8217;ll add in my voice. If you haven&#8217;t check out <a title="Link to Cufon" href="http://cufon.shoqolate.com/generate/" target="_blank">Cufon</a> yet, go do so. And yes, I know the &#8220;o&#8221; is supposed to have an accent mark over it, but I&#8217;m not going to put the effort into that other than this post&#8217;s title.</p>
<p>What is Cufon? Cufon is a plugin-free, Javascript-powered alternative to rich font embedding. In particular, it&#8217;s a great alternative to flash-powered <a title="Link to sIFR" href="http://www.mikeindustries.com/blog/sifr/" target="_blank">sIFR</a>, which prior to Cufon was the best way to get rich font support during our long desert of poor font-embedding support that is the modern web.</p>
<p>By &#8220;great alternative&#8221;, I mean that it &#8220;lights sIFR on fire, kicks it into an open sewer, and laughs maniacally as sIFR rolls around in stinky, burning pain.&#8221;</p>
<p>Yes, it&#8217;s that much better. And if you don&#8217;t agree, I&#8217;ll punch you.</p>
<p>Ok, that&#8217;s not true. I&#8217;m opposed to violence. I also never learned how to throw a punch, and I&#8217;m worried that I&#8217;d break my thumb.</p>
<p>However, it <em>is </em>better. For three major reasons. 1. It doesn&#8217;t require you to own Flash to build the font file you&#8217;ll be using. 2. It doesn&#8217;t require a plugin in your browser to work (aka, it works on iPhones among other things). Lastly, 3. It&#8217;s way, way faster.</p>
<p>It&#8217;s things like Cufon that convince me that in the near future that Javascript will be the new Flash. (<a title="Link to canvas tutorial at the Mozilla Developer Center" href="https://developer.mozilla.org/en/Canvas_tutorial" target="_blank">canvas</a> and <a title="Link to SVG homepage at W3C" href="http://www.w3.org/Graphics/SVG/" target="_blank">SVG</a> make my pants tight in an embarrassing way.)</p>
<p>How does Cufon work? Simple.</p>
<p>1. Visit their <a title="Link to cufon generator" href="http://cufon.shoqolate.com/" target="_blank">site</a>. Download the cufon script. Include that in the head of your page.</p>
<p>2. Get a font, and using their nifty <a title="Link to cufon generator" href="http://cufon.shoqolate.com/generate/" target="_blank">generator</a>, turn it into a .js file. (Supports several standards, including OTF and TTF.) Link that font script in the head of your page after the cufon script.</p>
<p>3. Do an air guitar riff. (Optional.)</p>
<p>4. In a script you add, include a  command to the effect of Cufon.replace(&#8220;elem&#8221;) where elem is the element you want the font to replace. If you&#8217;re only using one font with Cufon, it&#8217;s as easy as that. If you&#8217;re using multiple fonts, you&#8217;ll need to do Cufon.replace(&#8220;elem&#8221;, &#8220;font name&#8221;), where &#8220;font name&#8221; is the name of the font you want that element to use for that element.</p>
<p>5. Look on in awe as the font are replaced so fast, your page will go slightly back in time.</p>
<p>An example of a finished result is <a title="Link to Cufon example at CSSquirrel" href="/testcases/cufon/cufon.html" target="_blank">right here</a>. It&#8217;s simple, but it gets the point across.</p>
<p>Like sIFR, I can&#8217;t recommend using the font replacement on large fields of text. Selecting the text for copy/paste purposes is difficult (although not impossible), and it&#8217;s bound to have an impact on performance if you use it too widely. But selectively used it can open your projects open to a cornucopia of fonts (licenses allowing.)</p>
<p>What are you waiting for? Go get it now!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssquirrel.com/2009/04/15/cuddling-with-cufon/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
