<?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>Blink Interactive &#187; Cufón</title>
	<atom:link href="http://www.blinkinteractive.co.nz/tag/cufon/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blinkinteractive.co.nz</link>
	<description>Interactive Solutions; TXT Competition Engine; Web Strategy, Design, Development, Optimization and Support; Auckland New Zealand</description>
	<lastBuildDate>Thu, 08 Apr 2010 20:36:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cufón Font Replacement - Easy to Use, Great Performance</title>
		<link>http://www.blinkinteractive.co.nz/development/cufon-font-replacement-easy-to-use-great-performance</link>
		<comments>http://www.blinkinteractive.co.nz/development/cufon-font-replacement-easy-to-use-great-performance#comments</comments>
		<pubDate>Fri, 29 Jan 2010 00:21:23 +0000</pubDate>
		<dc:creator>Blink Interactive</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Cufón]]></category>
		<category><![CDATA[font replacement]]></category>

		<guid isPermaLink="false">http://www.blinkinteractive.co.nz/?p=79</guid>
		<description><![CDATA[A common hurdle in web design is the limitation of web-safe fonts. To use mockups that include those non-web-safe fonts, techniques like FLIR and sIFR have done us pretty well.  However a no plugins required, widely browsers-compatible, easy to use and fast running solution,  Cufón, has really become a favourable choice for web designers and developers.
Cufón&#8217;s font generator converts fonts to ...]]></description>
			<content:encoded><![CDATA[<p>A common hurdle in web design is the limitation of web-safe fonts. To use mockups that include those non-web-safe fonts, techniques like <a title="Facelift Image Replacement" href="http://www.google.com/search?hl=en&amp;q=Facelift%20Image%20Replacement" target="_blank">FLIR</a> and <a title="Scalable Inman Flash Replacement" href="http://www.google.com/search?hl=en&amp;q=sIFR" target="_blank">sIFR</a> have done us pretty well.  However a no plugins required, widely browsers-compatible, easy to use and fast running solution,  <a href="http://wiki.github.com/sorccu/cufon/about" target="_blank">Cufón</a>, has really become a favourable choice for web designers and developers.<span id="more-79"></span></p>
<p>Cufón&#8217;s <a href="http://cufon.shoqolate.com/generate/" target="_blank">font generator</a> converts fonts to <a href="http://www.w3.org/TR/SVG/" target="_blank">SVG</a> font then to <a href="http://www.w3.org/TR/NOTE-VML.html" target="_blank">VML</a> paths then finally into <a href="http://www.json.org/" target="_blank">JSON</a> with JavaScript functions. Cufón renders VML shapes for IE which natively supports VML, and another render engine use <a href="http://www.whatwg.org/specs/web-apps/current-work/#the-canvas-element" target="_blank">HTML5 &lt;canvas&gt; element</a>. While it might sound very complicated, the font generator is fully automated  and it has been prove that the performance of the renderer is <a href="http://bkwld.com/blog/2009/06/cufon-speed-test/" target="_blank">very fast</a>.</p>
<p>Now let&#8217;s see how you could get it running in just a few minutes.</p>
<h2>Step 1 - Download Cufón</h2>
<p><img class="alignnone size-full wp-image-87" title="Download Cufón" src="http://www.blinkinteractive.co.nz/wp-content/uploads/cufon01download.jpg" alt="" width="570" height="513" /></p>
<h2>Step 2 - Generate a font</h2>
<p><img class="alignnone size-full wp-image-86" title="Choose your font file" src="http://www.blinkinteractive.co.nz/wp-content/uploads/cufon02fontfile.jpg" alt="" width="570" height="513" /></p>
<p>If you want your replaced font displays as bold or italic, you need to upload separate files for them.</p>
<p><img class="alignnone size-full wp-image-84" title="Choose the glyphs" src="http://www.blinkinteractive.co.nz/wp-content/uploads/cufon02glyphs.jpg" alt="" width="570" height="513" /></p>
<p>Choosing all available glyphs is highly unrecommended, we found the combination of Uppercase + Lowercase + Numerals + Punctuation + Wordpress punctuation does most of the jobs. If you are unsure you can always start from the minimal combination and add more glyphs if problem occurs.</p>
<p><img class="alignnone size-full wp-image-85" title="Download generated javascript font file" src="http://www.blinkinteractive.co.nz/wp-content/uploads/cufon02download.jpg" alt="" width="570" height="513" /></p>
<p>The rest options are fine on default. Make sure you agree with the laws and the terms then you&#8217;re good to submit the form and download. Simply repeat step 2 for other fonts that you want to use.</p>
<h2>Step 3 - Prepare your HTML and replace text</h2>
<p>Make sure your cufón-enabled pages are UTF-8 or US-ASCII encoded.</p>
<div class="codecolorer-container html4strict geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:570px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=utf-8&quot;</span>&gt;</span></div></div>
<p>Add the main Cufón and the font JavaScript files into the HTML HEAD section.</p>
<div class="codecolorer-container javascript geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:570px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;cufon-yui.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;ravie_400.font.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></div></div>
<p>Call the magic &#8220;replace&#8221; method. For example, we want to replace all the <code class="codecolorer html4strict geshi"><span class="html4strict"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span></span></code> headings.</p>
<div class="codecolorer-container javascript geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:570px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><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><br />
&nbsp; &nbsp; Cufon.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'h1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></div></div>
<p>If you&#8217;re using some JavaScript frameworks such as jQuery or mootools, make sure you include the framework before Cufón and the elements selectors such as <code class="codecolorer html4strict geshi"><span class="html4strict">#header h1:first-child</span></code> will work in the replace function.</p>
<p>You can use multiple fonts by specifying the <code class="codecolorer javascript geshi"><span class="javascript">fontFamily</span></code> attribute with the font name you entered in Step 2.</p>
<div class="codecolorer-container javascript geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:570px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><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><br />
&nbsp; &nbsp; Cufon.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'h1'</span> <span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span> fontFamily<span style="color: #339933;">:</span> <span style="color: #3366CC;">'ravie'</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; Cufon.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'h2'</span> <span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span> fontFamily<span style="color: #339933;">:</span> <span style="color: #3366CC;">'avenir'</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></div></div>
<p>Now it should work for Chrome, FireFox, Safari and Opera, however there is still one little tweak for Internet Explorer. Call <code class="codecolorer javascript geshi"><span class="javascript">Cufon.<span style="color: #660066;">now</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> right before the closing <code class="codecolorer html4strict geshi"><span class="html4strict"><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span></span></code> tag and Google Analytics or any other external scripts.</p>
<div class="codecolorer-container javascript geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:570px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><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;">now</span><span style="color: #009900;">&#40;</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></div></div>
<h2>Complete</h2>
<p>Yes, that&#8217;s it. Your HTML should look something like below.</p>
<div class="codecolorer-container html4strict geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:570px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00bbdd;">&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;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=utf-8&quot;</span>&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;styles.css&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cufon-yui.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ravie_400.font.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;avenir_400.font.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span><br />
&nbsp; &nbsp; Cufon.replace('h1' , { fontFamily: 'ravie' });<br />
&nbsp; &nbsp; Cufon.replace('h2' , { fontFamily: 'avenir' });<br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>CSS styles are applied automatically.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span><br />
&nbsp; <br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span> Cufon.now(); <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.blinkinteractive.co.nz/development/cufon-font-replacement-easy-to-use-great-performance/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Launch of our blog and new site</title>
		<link>http://www.blinkinteractive.co.nz/general/launch-of-our-blog-and-new-site</link>
		<comments>http://www.blinkinteractive.co.nz/general/launch-of-our-blog-and-new-site#comments</comments>
		<pubDate>Thu, 21 Jan 2010 22:00:21 +0000</pubDate>
		<dc:creator>Blink Interactive</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Cufón]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[new site]]></category>
		<category><![CDATA[redesign]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.blinkinteractive.co.nz/?p=36</guid>
		<description><![CDATA[
Yes, we have redesigned our site, and added a blog. We hope you like it.
Optimistically, by creating this blog, we can have some motivation to share some interesting things with you and gain a better presence on the web.
Not only interesting things we will been blogging, but also everything about the web - business strategy, design experiences, development tricks, code ...]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.blinkinteractive.co.nz/wp-content/uploads/launch-85x190.jpg" alt="" title="Launch" width="85" height="190" class="alignright size-thumbnail wp-image-64" /></p>
<p>Yes, we have redesigned our site, and added a blog. We hope you like it.</p>
<p>Optimistically, by creating this blog, we can have some motivation to share some interesting things with you and gain a better presence on the web.</p>
<p>Not only interesting things we will been blogging, but also everything about the web - business strategy, design experiences, development tricks, code snippets, technology gossip and much much more. If you like these topics, watch this space.  Also feel free to leave your comments, even disagreement. Your feedback is encouraged and appreciated.<span id="more-36"></span></p>
<p>While building the blog, we also facelift the website a little bit, while still keep the simplicity. We hope you like it.  Thank <a href="http://wordpress.org" target="_blank">Wordpress</a> for the easy-to-use blogging platform. We also recommend a cool font replacement <a href="http://wiki.github.com/sorccu/cufon/about" target="_blank">Cufón</a>. Hopefully we will write a step-by-step guide of using cufon later soon.</p>
<p>I invite you to follow us on <a href="http://twitter.com/blinkinteractiv" target="_blank">twitter</a>, subscribe to the <a href="http://feeds.feedburner.com/blinkinteractive" target="_blank">feed</a> or join us on <a href="http://facebook.com/profile.php?id=261332765745&#038;v=feed" target="_blank">facebook</a>.</p>
<p>Thanks for visiting!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blinkinteractive.co.nz/general/launch-of-our-blog-and-new-site/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

