<?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>digitalRenewal &#187; font embedding</title>
	<atom:link href="http://digitalrenewal.com/tag/font-embedding/feed" rel="self" type="application/rss+xml" />
	<link>http://digitalrenewal.com</link>
	<description>like a breath of fresh air</description>
	<lastBuildDate>Mon, 09 Apr 2012 15:47:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Howd You Get That Font?</title>
		<link>http://digitalrenewal.com/howd-you-get-that-font</link>
		<comments>http://digitalrenewal.com/howd-you-get-that-font#comments</comments>
		<pubDate>Sun, 22 Nov 2009 06:19:30 +0000</pubDate>
		<dc:creator>Trisha</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Web Design Tutorials]]></category>
		<category><![CDATA[@fontface]]></category>
		<category><![CDATA[css fonts]]></category>
		<category><![CDATA[cufon]]></category>
		<category><![CDATA[font embedding]]></category>
		<category><![CDATA[sifr]]></category>
		<category><![CDATA[web fonts]]></category>

		<guid isPermaLink="false">http://digitalrenewal.com/?p=474</guid>
		<description><![CDATA[How'd You Get that Font? Embedding New fonts in Your Website with CSS3's @font-face rules. Until now designers and webmasters only had a handful of default fonts to use on their website. With the implementation of CSS3, we have a larger variety of fonts to design with.]]></description>
			<content:encoded><![CDATA[<p>Using CSS3 to Embed New fonts in Your Website.</p>
<p>If you&#8217;ve been tooling around web design and developer sites lately, you may have noticed a strange phenomenon. Nice fonts. Much nicer than the default web fonts, and no, they&#8217;re not images. I know from the 100 times I&#8217;ve selected the text muttering &#8216;wow thats cool&#8217;. We&#8217;re no longer stuck in what I&#8217;ve heard humorously termed as &#8216;arial hell&#8217;.</p>
<p>Until now, this was about it for web safe font usage:</p>
<div style="background:white; width:70%; margin-bottom:10px; padding:10px;">
<div style="font-family: Arial, Helvetica, sans-serif">Arial, <span style="color:lightblue">(mac: Helvetica)</span></div>
<div style="font-family: 'Arial Black', Gadget, sans-serif">Arial Black, <span style="color:lightblue">(mac: Gadget)</span></div>
<div style="font-family: 'Comic Sans MS', Textile, cursive">Comic Sans MS</div>
<div style="font-family: 'Courier New', Courier, monospace">Courier New</div>
<div style="font-family: Geneva, sans-serif">Geneva</div>
<div style="font-family: Georgia, 'Times New Roman', Times, serif">Georgia</div>
<div style="font-family: Impact, Charcoal, sans-serif">Impact <span style="color:lightblue">(mac:Charcoal)</span></div>
<div style="font-family: 'Lucida Console', Monaco, monospace">Lucida Console, <span style="color:lightblue">(mac:Monaco) </span></div>
<div style="font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif">Lucida Sans Unicode, <span style="color:lightblue">(mac:Lucida Grande) </span></div>
<div style="font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif">Palatino Linotype, Book Antiqua</div>
<div style="font-family: Tahoma, Geneva, sans-serif">Tahoma, <span style="color:lightblue">(mac:Geneva)</span></div>
<div style="font-family: 'Times New Roman', Times, serif">Times New Roman</div>
<div style="font-family: 'Trebuchet MS', Helvetica, sans-serif">Trebuchet MS, <span style="color:lightblue">(mac:helvetica)</span></div>
<div style="font-family: Verdana, Geneva, sans-serif">Verdana</div>
</div>
<h2>Enter @font-face</h2>
<p>@font-face is an actual css rule created years ago to embed fonts on a web page. It wasn&#8217;t supported by browsers until recently. Now Mozilla and IE support font embedding. I&#8217;ve tested in FireFox 3.5 and IE7. It works in both, though I feel IE&#8217;s a tad sluggish.</p>
<p>This is a huge step for online typography. Now when clients ask &#8216;Can we do something about those ugly fonts?&#8221; you can say, YES! yes we CAN! It&#8217;s a bright day in the web design world.  To embed beautiful fonts, all you need is the right font formats and the CSS to get it done.</p>
<p>I&#8217;m all about handy tools to make life easier, so let&#8217;s head over to <a title="@font-face kits woff fonts" href="http://www.fontsquirrel.com/fontface" target="_blank">FontSquirrel</a> where they have prebuilt ALOT of @font-face kits. This way we know the fonts are legal for your site (check the license for other uses) and the code is already written.</p>
<p>A peek at just a few of fontSquirrels font-face kits.<br />
<a title="@font-face kits woff fonts" href="http://www.fontsquirrel.com/fontface" target="_blank"><img class="alignnone size-full wp-image-497 colorbox-474" title="fontsquirrelkitsScreenshot" src="http://digitalrenewal.com/wp-content/uploads/fontsquirrelkitsScreenshot.gif" alt="fontsquirrelkitsScreenshot" width="530" height="483" /></a></p>
<p class="bluesep">
<p>Since they provide little how-to, I&#8217;ll give you a quick walkthrough.<br />
<span style="font-size:70%">(W3 Documentation for <a href="http://dev.w3.org/csswg/css3-fonts/#the-font-face-rule" target="_blank">@font-face</a>)</span></p>
<h2>The files.</h2>
<p>-Your kit comes with all the fonts needed, in the following extensions:</p>
<ul>
<li> .woff  Web Open Font Format (mozilla)</li>
<li> .eot Embedded Open Type (microsoft)</li>
<li> .svg Scalable Vector Graphics (XML web graphics iphone)</li>
<li> .ttf   standard TrueType font</li>
</ul>
<p>-It comes with an external style sheet which defines your fonts for the browser. (stylesheet.css)</p>
<p>-And it comes with on-page example classes to control the size and line height. (in demo.html)</p>
<p class="bluesep">
<h2>Lets plug it in.</h2>
<ol>
<li>Extract the files into a folder and upload them to your server. I called my new folder &#8216;fonts&#8217; and put it inside my wordpress themes folder. I kept it simple and left stylesheet.css in the same directory as the fonts.</li>
<li>Open the file that contains your websites &lt;head&gt;&lt;/head&gt; tags (index.html in most cases&#8230; header.php in your wordpress themes folder)</li>
<li>Include the following code inside the head tag (given in demo.html &#8211; make sure to use the correct path to the file)<br />
<code>&lt;link rel="stylesheet" href="http://yourdomain.com/correct-path-to/stylesheet.css" type="text/css" charset="utf-8"&gt;</code></li>
<li>Style your new font with CSS. (example classes given in demo.html)<br />
its a simple switch.<br />
say my h1 style was written this way&#8230;<br />
<code>h1 {font-family: Arial, sans-serif;}</code><br />
Add the font-family defined in stylesheet.css like this:<br />
<code>h1 {font-family: 'DroidSansRegular', Arial, sans-serif;}</code></li>
</ol>
<p class="bluesep">
<p>Thats all there is to it. Do it once and you&#8217;ll be a pro! And you can download them all, they&#8217;re free!</p>
<p style="font:normal 13px arial">
Other options and some history:<br />
Replacing fonts for the web used to require much code. <a title="sIFR Font Replacement" href="http://www.mikeindustries.com/blog/sifr/" target="_blank">sIFR</a> has been around for a while and I give them serious props for making it work. Looking into the code, I had to pass because frankly, its complicated. It uses javascript to call flash to redraw the fonts. And with all that code, page load time suffers. If the visitor doesnt have javascript or flash? They see the default.</p>
<p style="font:normal 13px arial">
<a title="Cufon Font Replacement" href="http://cufon.shoqolate.com/generate/" target="_blank">Cufon</a> is much easier to understand and implement and does a nice job. Their generator converts fonts to the correct format and there&#8217;s a nifty <a title="Cufon WordPress Plugin" href="http://wordpress.org/extend/plugins/wp-cufon/" target="_blank">wordpress plugin</a>. Less code means faster page loads but be aware of where your fonts are coming from and if you&#8217;re allowed usage on your website. Wouldn&#8217;t want license violations. You might even want to do some of your own comparison testing to see which loads faster, cufon or @font-face</p>
<p>Happy TypeFacing!</p>
]]></content:encoded>
			<wfw:commentRss>http://digitalrenewal.com/howd-you-get-that-font/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

