<?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>Cre8ive Commando &#187; font embedding</title>
	<atom:link href="http://www.cre8ivecommando.com/tag/font-embedding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cre8ivecommando.com</link>
	<description>Explosive Creativity</description>
	<lastBuildDate>Mon, 06 Sep 2010 01:28:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>The best way to embed a font in your website &#8211; @font-face</title>
		<link>http://www.cre8ivecommando.com/the-best-way-to-embed-a-font-in-your-website-2025/</link>
		<comments>http://www.cre8ivecommando.com/the-best-way-to-embed-a-font-in-your-website-2025/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 13:18:41 +0000</pubDate>
		<dc:creator>Cre8ive Commando</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[@font-face]]></category>
		<category><![CDATA[best way to embed a font]]></category>
		<category><![CDATA[cufon alternative]]></category>
		<category><![CDATA[elegant font embedding]]></category>
		<category><![CDATA[embed font in website]]></category>
		<category><![CDATA[font embedding]]></category>
		<category><![CDATA[sifr alternative]]></category>
		<category><![CDATA[use your own font]]></category>
		<category><![CDATA[use your own font on your website]]></category>

		<guid isPermaLink="false">http://www.cre8ivecommando.com/?p=2025</guid>
		<description><![CDATA[We are all bored of using the same small set of web safe fonts in our websites. Do Arial, Verdana, and Times New Roman sound painfully familiar? Luckily there are quite a few different ways to embed fonts in a website including Cufon, sIFR, FLIR, PIR, Font Jazz and Dynamic Text Replacement. Most of these [...]]]></description>
			<content:encoded><![CDATA[<p>We are all bored of using the same small set of web safe fonts in our websites. Do Arial, Verdana, and Times New Roman sound painfully familiar? Luckily there are quite a few different ways to <a href="http://www.cre8ivecommando.com/two-great-ways-to-embed-a-font-in-your-website-1/">embed fonts in a website</a> including <a rel="nofollow" href="http://wiki.github.com/sorccu/cufon/about" target="_blank">Cufon</a>, <a rel="nofollow" href="http://dev.novemberborn.net/sifr3/nightlies/" target="_blank">sIFR</a>, <a rel="nofollow" href="http://facelift.mawhorter.net/" target="_blank">FLIR</a>, <a href="http://www.xanthir.com/pir/" target="_blank">PIR</a>, <a rel="nofollow" href="http://fontjazz.com/" target="_blank">Font Jazz</a> and <a rel="nofollow" href="http://www.artypapers.com/csshelppile/pcdtr/#download" target="_blank">Dynamic Text Replacement</a>. Most of these methods involve using JavaScript and Flash to display the custom font and some of these font embedding methods can be quite tricky to set up. There is one very simple way to embed a font in your site which doesn&#8217;t require any JavaScript or Flash. It&#8217;s called <strong>@font-face</strong> and it&#8217;s great!</p>
<p><span id="more-2025"></span></p>
<h2>What is @font-face?</h2>
<p>@font-face is basically a CSS rule that allows you to embed a font in your website so that viewers of your site will see that font even if it&#8217;s not installed on their computer. There is no JavaScript, Flash or images needed as this method basically uses a single font file that you upload onto your server.</p>
<p><a rel="nofollow" href="http://www.alistapart.com/articles/cssatten" target="_blank"><img class="alignnone size-full wp-image-2034" title="font-face-examples" src="http://www.cre8ivecommando.com/wp-content/uploads/2010/03/font-face-examples.jpg" alt="" width="515" height="150" /></a></p>
<h2>Why use @font-face?</h2>
<p>@font-face is a simple and elegant way to embed a font in your website and is in most cases superior to all other font embedding methods. It requires only the font you wish to use along with some CSS. Best of all @font-face is fully compatible with all major browsers. It&#8217;s search engine friendly and setting it up is quick and easy. No coding required. Sounds too good to be true doesn&#8217;t it?</p>
<h2>How to use @font-face</h2>
<p>You basically just need to buy/download the font you wish to use (you must have a license to use the font) and then add the following rule to your style sheet to reference your font. As an example let&#8217;s embed the Action Man font into our website.</p>
<pre class="brush: css;">
@font-face {
 font-family: ActionMan;
 src: url(/font/ActionMan.ttf) format(&quot;truetype&quot;);
}
</pre>
<p>Now that your font is embedded in your website you can use it as you would any other font. Lets use our embedded font on our h1 tags like so.</p>
<pre class="brush: css;">
h1 {font-family: ActionMan, Verdana, Helvetica, sans-serif;}
</pre>
<p>In order for your font to be cross browser compatible you will need a few different font file types for different browsers. <a rel="nofollow" href="http://www.fontsquirrel.com/fontface" target="_blank">Font Squirrel</a> is a great resource that has made it very easy to use @font-face on your website by providing @font-face kits. These kits basically contain the original TrueType or OpenType fonts for Firefox, Opera, Safari and Chrome along with the EOT fonts for Internet Explorer. There are lots of great fonts to choose from, many of which are free for commercial use.</p>
<h2>Issues with @font-face</h2>
<p>Surprisingly, there are not really any issues with using @font-face to embed fonts in your website. But there are two things to be aware of. Firstly, your font will need to be downloaded by your website viewers which will usually cost you around 30KB of bandwidth for a typical font (which isn&#8217;t much at all). Secondly, as your font loads your website viewers may sometimes see the default font flash first for a second on the web page. Most people can live with that.</p>
<h3>@font-face is quick to setup, simple to use, light weight, SEO friendly and browser compatible. The best method I have come across to embed a font in a website.</h3>
]]></content:encoded>
			<wfw:commentRss>http://www.cre8ivecommando.com/the-best-way-to-embed-a-font-in-your-website-2025/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Two great ways to embed a font in your website</title>
		<link>http://www.cre8ivecommando.com/two-great-ways-to-embed-a-font-in-your-website-1/</link>
		<comments>http://www.cre8ivecommando.com/two-great-ways-to-embed-a-font-in-your-website-1/#comments</comments>
		<pubDate>Wed, 13 May 2009 12:55:29 +0000</pubDate>
		<dc:creator>Cre8ive Commando</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Cufon]]></category>
		<category><![CDATA[dynamic text replacement]]></category>
		<category><![CDATA[embed font]]></category>
		<category><![CDATA[embed font in website]]></category>
		<category><![CDATA[FLIR]]></category>
		<category><![CDATA[font embedding]]></category>
		<category><![CDATA[Font Jazz]]></category>
		<category><![CDATA[font replacement]]></category>
		<category><![CDATA[PHP Image Replacement]]></category>
		<category><![CDATA[PIR]]></category>
		<category><![CDATA[sifr]]></category>
		<category><![CDATA[sifr3]]></category>

		<guid isPermaLink="false">http://cre8ivecommando.com/?p=1</guid>
		<description><![CDATA[Have you ever wanted to use a nice looking font in your website before? Ever wanted to spice up your headings on your website by using a different font? Simply defining your font in the CSS won&#8217;t do the trick as not everyone would have that font installed on their computer system. So how do [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to use a nice looking font in your website before? Ever wanted to spice up your headings on your website by using a different font? Simply defining your font in the CSS won&#8217;t do the trick as not everyone would have that font installed on their computer system. So how do you embed a font in your website? Well, I have seen it done in a number of ways, including manually creating image files for all the text headings in your website. I would not recommend this method simply because it takes too long and there are much easier and nicer ways of doing it dynamically.</p>
<p><span id="more-1"></span></p>
<div style="border:1px solid #E6DB55;padding:10px 20px;background:#FFFBCC;"><em><strong>Edit 31.03.2010: The font embedding methods below are great but in most cases @font-face is superior. <a href="http://www.cre8ivecommando.com/the-best-way-to-embed-a-font-in-your-website-2025/">Find out more about @font-face and how to use it in your website.</a></strong></em></div>
<p>Here are two of the best options I have come across to embed fonts in your website:</p>
<ol>
<li><strong>Dynamic Text Replacement: </strong>This method involves dynamically creating image files from the text on your website and it is great for creating nice looking headings on your website.</li>
<li><strong>sIFR 3:</strong> This method uses a flash file to dynamically display your font and it can be styled using CSS.</li>
</ol>
<p>I would recommend using either of these methods to embed fonts on your website. SIFR 3 is my favorite though, as it is very flexible and can be easily controlled using CSS. I will outline both of these methods below and help you get started using them on your website.You can also download the files for Dynamic Text Replacement and sIFR 3 below.</p>
<h2>Dynamic Text Replacement</h2>
<p><a rel="nofollow" href="http://www.artypapers.com/csshelppile/pcdtr/#demo"><img class="alignnone size-full wp-image-80" title="dynamic-text-replacement-demo" src="http://www.cre8ivecommando.com/wp-content/uploads/2009/05/dynamic-text-replacement.jpg" alt="dynamic-text-replacement-demo" width="510" height="125" /></a><br />
Dynamic text replacement involves dynamically creating images to replace and enhance page headings using only PHP and CSS. No javascript is required which may be an advantage for web designers trying to decrease the amount of javascript on their webpage. You can see a <a title="demo of dynamic text replacement" rel="nofollow" href="http://www.artypapers.com/csshelppile/pcdtr/#demo" target="_blank">demo here</a>.</p>
<h3>How does it work?</h3>
<p>This Dynamic text replacement method uses PHP&#8217;s <a rel="nofollow" href="http://us3.php.net/manual/en/ref.outcontrol.php" target="_blank">output buffering</a> functions to parse the web page for heading tags, extract the text from the headings and assign an inline style that points to the image generator script.</p>
<p>A CSS file controls the font-colour, background colour and also the size of the font.</p>
<h3>Limitations of this method</h3>
<ul>
<li>This method cannot support very long headings as it can&#8217;t display text over multiple lines. So it&#8217;s only good for single line headings.</li>
<li>You can&#8217;t give your headings any style attributes (id&#8217;s or classes).</li>
<li>You can&#8217;t have different heading styles for different pages on your website. The style information is included in the script itself so it applies to the website as a whole.</li>
</ul>
<h3>Developers of this method</h3>
<p>Original concept by <a rel="nofollow" href="http://giron.us/" target="_blank">Alex Giron</a>, code and execution by <a rel="nofollow" href="http://www.artypapers.com/about/rmcox.php" target="_blank">R. Marie Cox</a>.</p>
<p><a title="download dynamic text replacement" rel="nofollow" href="http://www.artypapers.com/csshelppile/pcdtr/#download" target="_blank"><strong>Download Dynamic Text Replacement</strong></a></p>
<h2>sIFR 3 Font Embedding</h2>
<p><a rel="nofollow" href="http://dev.novemberborn.net/sifr3/svn/test/distribution/demo/"><img class="alignnone size-full wp-image-81" title="sifr3-demo" src="http://www.cre8ivecommando.com/wp-content/uploads/2009/05/sifr3.jpg" alt="sifr3-demo" width="510" height="125" /></a><br />
Sifr 3 uses a combination of Flash, CSS and javascript to dynamically display fonts on your website. An swf file with a font embedded in it is used to replace certain CSS divs on your website. This is quite a clever and versatile method of font embedding as it can be controlled via CSS. It is also quite light as it only requires a small swf file along with a small snippet of javascript. Another great thing about sIFR 3 is that it is great for SEO, as it maintains the original HTML structure. A demo of sIFR 3 can be seen <a title="sifr3 demo" rel="nofollow" href="http://dev.novemberborn.net/sifr3/svn/test/distribution/demo/" target="_blank">here</a>.</p>
<h3>How does it work?</h3>
<p>sIFR 3 is made up from four parts:</p>
<ol>
<li>An SWF file that contains the font you wish to embed in your website. To use your specific font simply open the FLA file (included in the download below) and change the font of the dynamic text field then export the SWF.</li>
<li>A javascript file called &#8220;sifr.js&#8221; which contains the script that makes sifr work. This file should just be included in the header of your website e.g.
<pre class="brush: xml;">&lt;script src=&quot;js/sifr.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</pre>
</li>
<li>Another javascript file called &#8220;sifr-config.js&#8221;. This file points to the SWF file you created. You also define the CSS styles of the div you are going to replace with the swf file.</li>
<li>A CSS file which basically tells your browser to hide your original text as it is now being replaced with the nice looking font embedded in your SWF file. This CSS file needs to be included in your header e.g. <strong><em><br />
</em></strong>
<pre class="brush: xml;">&lt;link rel=&quot;stylesheet&quot; href=&quot;../css/sifr.css&quot; type=&quot;text/css&quot;&gt;</pre>
</li>
</ol>
<h3>Limitations of this method</h3>
<ul>
<li>It is sometimes difficult to <a href="http://www.cre8ivecommando.com/how-to-create-clickable-links-in-sifr3-288/">create a link</a> from text that uses sIFR 3.</li>
<li>sIFR 3 relies on flash and javascript so it won&#8217;t display on browsers that don&#8217;t have flash and javascript enabled. This isn&#8217;t really a problem as sIFR 3 will revert back to the normal version of your text if javascript is not enabled and most browsers come with flash player anyway.</li>
</ul>
<h3>Developer of this method</h3>
<p>The developer of sIFR 3 is Mark Wubben. Mark is a European Dutchman and web hacker, based in Copenhagen, Denmark. <a rel="nofollow" href="http://supercollider.dk/" target="_blank">Supercollider</a> is Mark&#8217;s freelance alter-ego.</p>
<p><a title="download sIFR3" rel="nofollow" href="http://dev.novemberborn.net/sifr3/nightlies/" target="_blank"><strong>Download sIFR 3</strong></a></p>
<p style="text-align: right; float: right;"><strong><em>[Update: 27.10.2009]</em></strong></p>
<h2>Other great font embedding methods</h2>
<p><img class="alignnone size-full wp-image-1200" title="great-ways-to-embed-a-font-in-your-website" src="http://www.cre8ivecommando.com/wp-content/uploads/2009/05/great-ways-to-embed-a-font-in-your-website.jpg" alt="great-ways-to-embed-a-font-in-your-website" width="510" height="125" /></p>
<h3>Cufon</h3>
<p><a rel="nofollow" href="http://wiki.github.com/sorccu/cufon/about" target="_blank">Cufon</a> is one of the most popular font embedding solutions due to its simplicity to setup and use. It basically uses javascript and consists of a <a rel="nofollow" href="http://cufon.shoqolate.com/generate/" target="_blank">font generator</a> and a Javascript rendering engine. It doesn&#8217;t use any flash so it loads quite quickly when compared to sIFR 3. <strong></strong></p>
<h3>FLIR</h3>
<p><a rel="nofollow" href="http://facelift.mawhorter.net/" target="_blank">Facelift Image Replacement</a> is another clever way to embed fonts in your website. It uses PHP and the GD library to render text as an image behind the scenes. So you will need PHP and GD on your server to use this method.</p>
<h3>PIR</h3>
<p><a rel="nofollow" href="http://www.xanthir.com/pir/" target="_blank">PHP Image Replacement</a> uses PHP and jQuery to dynamically generate images for your text. It  basically requires you to upload a standard font file to your web server and it uses this along with your CSS to display your font accordingly.</p>
<h3>Font Jazz</h3>
<p><a rel="nofollow" href="http://fontjazz.com/" target="_blank">Font Jazz</a> implements a simple Javascript type rendering engine which actually converts each character of your text into an image with the specified font.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cre8ivecommando.com/two-great-ways-to-embed-a-font-in-your-website-1/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
