<?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>Daniel Baldwin &#187; web development</title>
	<atom:link href="http://www.danielcbaldwin.com/tag/web-development/feed" rel="self" type="application/rss+xml" />
	<link>http://www.danielcbaldwin.com</link>
	<description>Web Developer and Technology Enthusiast</description>
	<lastBuildDate>Thu, 27 May 2010 00:03:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Replacing fonts? Try replacing sIFR.</title>
		<link>http://www.danielcbaldwin.com/technology/replacing-fonts-try-replacing-sifr</link>
		<comments>http://www.danielcbaldwin.com/technology/replacing-fonts-try-replacing-sifr#comments</comments>
		<pubDate>Fri, 26 Jun 2009 04:58:35 +0000</pubDate>
		<dc:creator>dbald</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[cufon]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sifr]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.stilito.com/?p=79</guid>
		<description><![CDATA[sIFR has always been really impressive with how well it works and how it can make websites look good and unique. However, I constantly dread implementing sIFR on a site as the setup always seems to be such a process that results in some issue that I have to spend extra time working out. For [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mikeindustries.com/blog/sifr/" target="_blank"><img class="size-medium wp-image-98 alignright" title="Cufon Diagram" src="http://www.stilito.com/wp-content/uploads/2009/06/Generation-205x300.png" alt="Generation" width="144" height="210" />sIFR</a> has always been really impressive with how well it works and how it can make websites look good and unique. However, I constantly dread implementing <a href="http://www.mikeindustries.com/blog/sifr/" target="_blank">sIFR</a> on a site as the setup always seems to be such a process that results in some issue that I have to spend extra time working out.  For a long time I just assumed that this was the kind of hardship that I would have to deal with in order to appease all the designers out there since fir me the only other option was image replacement which is not an option for me because of server load and  portability. Now, though, I am looking forward to not going through all the hassle because I have been recently introduced to a new option, <a href="http://cufon.shoqolate.com/generate/" target="_blank">Cufon</a>, that promises to be much easier.  The things right off the bat that I really like about <a href="http://cufon.shoqolate.com/generate/" target="_blank">Cufon</a> are that it doesn&#8217;t require any additional plugins such as flash, it works in all the major browsers, and it seems to render almost immediately. Getting <a href="http://cufon.shoqolate.com/generate/" target="_blank">Cufon</a> running is also really easy and painless, the hardest part is that you have to go to their generator page, http://cufon.shoqolate.com/generate/, to generate some javascript that creates the font for you. Then you set up the page like this: <br class="clear" /></p>
<pre class="brush: xml;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
	&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;

	&lt;title&gt;Cufon Demo&lt;/title&gt;
	&lt;script src=&quot;http://cufon.shoqolate.com/js/cufon-yui.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
	&lt;script src=&quot;Swiss_721_700.font.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
	&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
		Cufon.replace(&quot;h1&quot;);
	&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;h1&gt;Replaced Text&lt;/h1&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p><img class="alignnone size-full wp-image-97" title="Cufon Demo" src="http://www.stilito.com/wp-content/uploads/2009/06/Cufon-Demo.jpg" alt="Cufon Demo" width="286" height="205" />So doing the replacement really takes almost no code and almost no time to setup. There are 2 other parts of <a href="http://cufon.shoqolate.com/generate/" target="_blank">Cufon</a> that have me impressed and happy. The first is that the selectors for the replace are very basic by default but lets you do advanced selectors with the help of a javascript framework like jQuery or Prototype and you dont have to do anything extra other than just have the framework there. I think this is cool because for me most of the time I am using jQuery or Prototype on my projects so they are already there and then I know that Cufon&#8217;s code isnt bloated with repeat functionality.  The second feature that I am excited for is <a href="http://cufon.shoqolate.com/generate/" target="_blank">Cufon&#8217;s</a> ability to reload it&#8217;s replacements on the page. This is helpful when content changes on the page without a page reload like with ajax. In sIFR you would have to re-call your whole replacement statement and it would look something like this:</p>
<pre class="brush: jscript;">sIFR.replace(newsgothicbd, {
	selector: '.demo_top',
	wmode: 'transparent',
	css: '.sIFR-root { background-color: #F9F9F9; color: #417596; text-transform: uppercase;} a { color: #417596; text-decoration: none; } a:hover { color: #417596; text-decoration: none;}'
});</pre>
<p>however with <a href="http://cufon.shoqolate.com/generate/" target="_blank">Cufon</a> you can just do this:</p>
<pre class="brush: jscript;">Cufon.refresh();</pre>
<p>So I think it is pretty obvious that I am excited for this find and I am really excited to integrate the use of <a href="http://cufon.shoqolate.com/generate/" target="_blank">Cufon</a> into my daily web development. I really thing that this will make the sites I work on look better, have a smaller footprint, and load much faster than with <a href="http://www.mikeindustries.com/blog/sifr/" target="_blank">sIFR</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielcbaldwin.com/technology/replacing-fonts-try-replacing-sifr/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
