<?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>Fearless Flyer Web Design &#187; sifr alternative</title>
	<atom:link href="http://fearlessflyer.com/tag/sifr-alternative/feed/" rel="self" type="application/rss+xml" />
	<link>http://fearlessflyer.com</link>
	<description>Fearless flyer is a blog that focuses on the latest topics of web design. This includes Wordpress, SEO, Photoshop, jQuery, PHP and CSS. Fearless flyer is owned and operated by Michael Soriano, a seasoned web developer living in Southern California.</description>
	<lastBuildDate>Fri, 03 Feb 2012 17:11:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cufonize Your Pages &#8211; How to add Cufon to your Web Design</title>
		<link>http://fearlessflyer.com/2009/10/cufonize-your-pages-how-to-add-cufon-to-your-web-design/</link>
		<comments>http://fearlessflyer.com/2009/10/cufonize-your-pages-how-to-add-cufon-to-your-web-design/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 04:08:40 +0000</pubDate>
		<dc:creator>michael soriano</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[cufon]]></category>
		<category><![CDATA[custom text]]></category>
		<category><![CDATA[sifr alternative]]></category>
		<category><![CDATA[text replacement]]></category>

		<guid isPermaLink="false">http://fearlessflyer.com/?p=781</guid>
		<description><![CDATA[I’m a big fan of Woothemes. It seems that each time they come out with a theme &#8211; they push the boundaries of web design. Take a look at their latest creation: Therapy – I can’t help but fall in love with the fine background gradients, smooth and seamless transparencies and nice rounded edges. But ]]></description>
			<content:encoded><![CDATA[<p>I’m a big fan of <a href="http://woothemes.com">Woothemes</a>. It seems that each time they come out with a theme &#8211; they push the boundaries of web design. Take a look at their latest creation: <a href="http://www.woothemes.com/2009/10/therapy/">Therapy</a> – I can’t help but fall in love with the fine background gradients, smooth and seamless transparencies and nice rounded edges. But what I really like about Therapy is it&#8217;s amazing typography. I said to myself: <strong>“that’s excellent utilization of sIFR”.</strong> So I right clicked on a post title, expecting to see the <strong>“About Macromedia Flash” </strong>entry – but didn’t see it. So I asked my confused self: <strong>“if it’s not sIFR, then what is converting all this dynamic text?&#8221;</strong></p>
<p><a href="http://demo.fearlessflyer.com/html/demo/cufonize.html" style="padding-bottom:15px; border:0px;"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/08/seethedemo.png" style="border:0px;" title="Cufonize Your Pages   How to add Cufon to your Web Design photo" alt="seethedemo Cufonize Your Pages   How to add Cufon to your Web Design" /></a></p>
<p>I inspect element in Firebug – then I see span class “<strong>cufon</strong>” everywhere.</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/cufon-1.jpg" alt="cufon 1 Cufonize Your Pages   How to add Cufon to your Web Design" title="A view of the source code for Therapy - Cufon all over the place" width="576" height="323" class="alignnone size-full wp-image-785" /></p>
<h3>So What in the world is Cufon?</h3>
<p>Cufon is defined as <strong>&#8220;fast text replacement with canvas and VML&#8221;</strong>. It also claims to be a worthy alternative to sIFR – which is, to those who are not familiar – stands for Scalable Inman Flash Replacement. sIFR is the technology used by web designers to replace dynamic text with non-web safe fonts. Although sIFR has done an okay job with text replacement – it has proven to be quite tricky to set up. I’ve used sIFR in a few projects in the past and do admit that it is not the easiest thing to get going. On top of that – sIFR seems a bit buggy, as well as slows down page loads. These are serious consequences to consider for the price of using a unique font for your pages. </p>
<p>So I went ahead and tried Cufon. To my amazement, the following steps is all that it takes to fully &#8220;Cufonize&#8221; your web pages. *Forgive the use of the term &#8220;cufonize&#8221; &#8211; it may sound funny, but after you try these steps, you too will &#8220;cufonize&#8221; your pages. </p>
<h3>Step 1: Get Cufon</h3>
<p>The first thing you need is to download the core javascript file which is responsible for the rendering of your custom font inside your HTML. Head on to <a href="http://cufon.shoqolate.com/generate/">http://cufon.shoqolate.com/generate/</a> and right click the “<strong>Download</strong>” tab – choose “<strong>Save Link As…</strong>” Save <strong>cufon-yui.js</strong> into a local directory in your machine. </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/cufon-2.jpg" alt="cufon 2 Cufonize Your Pages   How to add Cufon to your Web Design" title="Download the core code" width="576" height="323" class="alignnone size-full wp-image-786" /></p>
<h3>Step 2: Generate your Font</h3>
<p>On the same page at <a href="http://cufon.shoqolate.com/generate/">http://cufon.shoqolate.com/generate/</a> &#8211; click on the “<strong>Regular typeface</strong>” field – and browse to your desired font in your local machine. </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/cufon-3.jpg" alt="cufon 3 Cufonize Your Pages   How to add Cufon to your Web Design" title="Create the code for your font" width="576" height="323" class="alignnone size-full wp-image-787" /></p>
<p>The rest of the upload fields are optional. I left all of them default for the sake of making this tutorial short. Just make sure – you are using a font that is legit to use, check off the EULAs and the Terms of Agreement. Click on the <strong>“Let’s Do This</strong>” Button at the very end of that page. </p>
<p>This should generate a custom font javascript code for you – depending on your font choice. In my case, I picked something very un-extraordinary: Gigi.TTF – which produced a file named Gigi_400.font.js.  </p>
<p>Go ahead and save this file in the same directory where you saved the core Cufon-yui.js file and we’re ready to build your page: </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/cufon-4.png" alt="cufon 4 Cufonize Your Pages   How to add Cufon to your Web Design" title="Once created, save the js file locally" width="573" height="178" class="alignnone size-full wp-image-788" style="border:0px;" /></p>
<h3>Step 3: Cufonize your Page</h3>
<p>All you really need to do from this point is to link to these javascript files in the head section of your HTML. Also make sure that cufon-yui.js is called before the font.js file:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;cufon-yui.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span>  src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Gigi_400.font.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>To begin the replacement process – create a custom script like below:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>  
    Cufon.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'h3, p'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>The above script is telling the cufon to replace all H3 and P tags to our custom font. </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/cufon-5.jpg" alt="cufon 5 Cufonize Your Pages   How to add Cufon to your Web Design" title="Refresh your page and Voila!" width="576" height="323" class="alignnone size-full wp-image-789" /></p>
<p>Note that if you want to target specific elements in your page the same way you assign CSS classes and Ids, you have to use a framework such as jQuery that’ll let you do such a thing. To download jQuery, go to <a href="http://docs.jquery.com/Downloading_jQuery">http://docs.jquery.com/Downloading_jQuery</a>. Make sure you link to this file BEFORE the core cufon-yui.js in your header. </p>
<p>With the jQuery library in place, now you can select more specific elements in your page (hashtags for IDs and periods for classes). See example code below:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>  
    Cufon.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'h3#convert-me, p#convert-me-too'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>The above code will Cufonize only the h3 tags with the id of “convert-me”, and p tags with the id of “convert-me-too”.</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/cufon-6.jpg" alt="cufon 6 Cufonize Your Pages   How to add Cufon to your Web Design" title="Use jQuery Selectors to target elements" width="576" height="494" class="alignnone size-full wp-image-784" /></p>
<h3>Conclusion:</h3>
<p>That’s basically it! That’s all it takes for you to use any font you like in your web pages. What I like best about Cufon is that it’s quick and it works. You will also find that general CSS properties such as color, size and positioning still applies on the transformed font.  To find out more about the specifics of Cufon styling &#8211; see <a href="http://wiki.github.com/sorccu/cufon/styling">http://wiki.github.com/sorccu/cufon/styling</a>. </p>
<p>Much respect to the people who created Cufon. I&#8217;m sure this marks a new trend in web typography. To the folks at Woothemes: keep pushing the boundaries &#8211; your work is pure inspiration to web artists everywhere. </p>
<p><a href="http://demo.fearlessflyer.com/html/demo/cufonize.html" style="padding-bottom:15px; border:0px;"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/08/seethedemo.png" style="border:0px;" title="Cufonize Your Pages   How to add Cufon to your Web Design photo" alt="seethedemo Cufonize Your Pages   How to add Cufon to your Web Design" /></a></p>
<h3>Who&#8217;s Using Cufon?</h3>
<p>The following list of websites are already using Cufon text replacement in their pages: </p>
<p><strong>Healthy Valdosta</strong></p>
<p><a href="http://www.healthyvaldosta.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/healthyvaldosta.jpg" alt="healthyvaldosta Cufonize Your Pages   How to add Cufon to your Web Design" title="healthyvaldosta" width="576" height="300" class="alignnone size-full wp-image-797" /></a></p>
<p><strong>Press75</strong></p>
<p><a href="http://www.press75.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/press75.jpg" alt="press75 Cufonize Your Pages   How to add Cufon to your Web Design" title="press75" width="576" height="300" class="alignnone size-full wp-image-798" /></a></p>
<p><strong>International Rugby Academy</strong></p>
<p><a href="http://www.internationalrugbyacademy.com/new-zealand/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/intlrugby.jpg" alt="intlrugby Cufonize Your Pages   How to add Cufon to your Web Design" title="intlrugby" width="576" height="300" class="alignnone size-full wp-image-799" /></a></p>
<p><strong>Zen Desk</strong></p>
<p><a href="http://www.zendesk.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/zenddesk.jpg" alt="zenddesk Cufonize Your Pages   How to add Cufon to your Web Design" title="zenddesk" width="576" height="300" class="alignnone size-full wp-image-800" /></a></p>
<p><strong>Rock Beats Paper</strong></p>
<p><a href="http://rockbeatspaper.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/rockbeatspaper.jpg" alt="rockbeatspaper Cufonize Your Pages   How to add Cufon to your Web Design" title="rockbeatspaper" width="576" height="300" class="alignnone size-full wp-image-802" /></a></p>
<p><strong>Shopify</strong></p>
<p><a href="http://www.shopify.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/shopify.jpg" alt="shopify Cufonize Your Pages   How to add Cufon to your Web Design" title="shopify" width="576" height="300" class="alignnone size-full wp-image-803" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://fearlessflyer.com/2009/10/cufonize-your-pages-how-to-add-cufon-to-your-web-design/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: fearlessflyer.com @ 2012-02-03 18:56:38 by W3 Total Cache -->
