<?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>The Bright Lines &#187; font-face</title>
	<atom:link href="http://www.thebrightlines.com/tag/font-face/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thebrightlines.com</link>
	<description>HTML, CSS, Javascript and more</description>
	<lastBuildDate>Thu, 29 Jul 2010 22:44:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Test: Popular professional fonts as webfont</title>
		<link>http://www.thebrightlines.com/2010/01/24/test-popular-professional-fonts-as-webfont/</link>
		<comments>http://www.thebrightlines.com/2010/01/24/test-popular-professional-fonts-as-webfont/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 23:04:43 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Webfonts]]></category>
		<category><![CDATA[cross-browser]]></category>
		<category><![CDATA[font-face]]></category>
		<category><![CDATA[fonts]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=390</guid>
		<description><![CDATA[How well do professional fonts render on the web? In this article you'll see a few examples and screenshots where the font rendering goes wrong.]]></description>
			<content:encoded><![CDATA[<h2>Why testing popular paid fonts?</h2>
<p>I wanted to know how fonts that are popular with designers would look like on the web. Can you just convert those fonts to a webfont and put it in your website? I had mixed experiences with free fonts. But hey, they&#8217;re free. Maybe the those fonts you paid a lot of money for <em>can</em> do the job.</p>
<p>When designers realize that web browsers can load any font, they will try to push the limits with trying new fonts and web developers will certainly be pressured to convert a Gill Sans or Garamond into a webfont. License or no license. Especially since they are able to create fonts that contain just a subset of the original characters. That makes it unfit for people who hope to get a professional font for free by just downloading the font file from a website.</p>
<h2>The test procedure</h2>
<p>Please don&#8217;t pin me on not having the right Helvetica or Garamond. I&#8217;m not familiar with the subtleties between different version and foundries. I converted the selected fonts with <a href="http://www.fontsquirrel.com/fontface/generator">Fontsquirrel&#8217;s fontface generator</a>. The result is viewed in the following browsers:</p>
<ul>
<li>Firefox 3.5.7 or 3.6 RC1 on Windows Vista</li>
<li>IE8 on Windows Vista</li>
<li>IE6 on Windows XP</li>
<li>Safari 3.12 on Mac OS X Leopard. Since I don&#8217;t own a Mac I used the service of <a href="http://www.browsrcamp.com/">Browsrcamp.com</a>.</li>
</ul>
<p>Fontsquirrel generates a preview text in different font sizes. I used that list of predefined font sizes as my check list. So I tested these font sizes:</p>
<p><strong>9 10 11 12 13 14 15 16 17 18 21 24 30 36 48 60 72</strong></p>
<p>As you see there are enough other font sizes that might work as webfont. This test is not intended to be absolute and complete. I want to see how professional fonts behave as webfonts and what the typical font render problems are in browsers.</p>
<h2>Helvetica</h2>
<p>Definitely an all-time favorite. Apple computers have a Helvetica installed by default, but Windows does not. The Helvetica that I used for this test renders reasonably. Check out the screenshots for <a href="/article-data/images/webfont-pop-helvetica-Firefox.png" target="_blank">Firefox</a>, <a href="/article-data/images/webfont-pop-helvetica-IE8.png">IE8</a>, <a href="/article-data/images/webfont-pop-helvetica-IE6.png">IE6</a> and <a href="/article-data/images/webfont-pop-helvetica-Safari.png">Safari</a>. I also have the screenshots of the <em>italic</em> fonts for <a href="/article-data/images/webfont-pop-helvetica-Firefox-italic.png" target="_blank">Firefox</a>, <a href="/article-data/images/webfont-pop-helvetica-IE8-italic.png">IE8</a>, <a href="/article-data/images/webfont-pop-helvetica-IE6-italic.png">IE6</a> and <a href="/article-data/images/webfont-pop-helvetica-Safari-italic.png">Safari</a>. There are enough rendering glitches, though:</p>
<div class="wp-caption alignnone" style="width: 412px"><img title="Some letters are combined in Firefox at font size 11px" src="/article-data/images/webfont-pop-helvetica1.png" alt="Some letters are combined in Firefox at font size 11px" width="402" height="52" /><p class="wp-caption-text">Some chracters are combined in Firefox (Windows Vista) at 11px.</p></div>
<div class="wp-caption alignnone" style="width: 376px"><img title="The kerning is of in IE8, Vista at 15px" src="/article-data/images/webfont-pop-helvetica2.png" alt="The kerning is of in IE8, Vista at 15px" width="366" height="52" /><p class="wp-caption-text">The kerning of the &#39;e&#39; is off in IE8, Vista at 15px.</p></div>
<div class="wp-caption alignnone" style="width: 376px"><img title="Some letters seem to have a cap at various font sizes in IE8 Vista" src="/article-data/images/webfont-pop-helvetica3.png" alt="Some letters seem to have a cap at various font sizes in IE8 Vista" width="366" height="52" /><p class="wp-caption-text">Some characters seem to have a cap at font sizes 14, 16 and 18px in IE8 Vista.</p></div>
<div class="wp-caption alignnone" style="width: 376px"><img title="Another kerning problem: the top is cut off in IE8 at smaller font sizes" src="/article-data/images/webfont-pop-helvetica4.png" alt="Another kerning problem: the top is cut off in IE8 at smaller font sizes" width="366" height="52" /><p class="wp-caption-text">Another kerning problem: the top is cut off in IE8 at smaller font sizes.</p></div>
<div class="wp-caption alignnone" style="width: 376px"><img title="IE6 on XP SP3 is doing OK except with vertical lines in smaller font sizes" src="/article-data/images/webfont-pop-helvetica5.png" alt="IE6 on XP SP3 is doing OK except with vertical lines in smaller font sizes" width="366" height="52" /><p class="wp-caption-text">IE6 on XP SP3 is doing better than IE8 Vista, but vertical lines are over-emphesized at smaller font sizes and the text is very grey.</p></div>
<p>Looking in all four browsers, we get this list of usable and unusable font sizes.<br />
<span style="color: #008000;"><span style="color: #ff0000;">9 10 11 12</span> <strong>13</strong> <span style="color: #ff0000;">14 15 16</span> <strong>17</strong> <span style="color: #ff0000;">18 21</span> <span style="color: #008000;"><strong>24 30 36 48 60 72</strong></span></span></p>
<h2>Garamond</h2>
<p>Screenshots of Garamond in <a href="/article-data/images/webfont-pop-garamond-Firefox.png" target="_blank">Firefox</a>, <a href="/article-data/images/webfont-pop-garamond-IE8.png">IE8</a>, <a href="/article-data/images/webfont-pop-garamond-IE6.png">IE6</a> and <a href="/article-data/images/webfont-pop-garamond-Safari.png">Safari</a>.</p>
<p>There were lots of Garamonds to choose from. Don&#8217;t pin me down on not having the right Garamond of the right vendor. The errors that I encountered here are of more importance than the difference between different Garamonds.</p>
<p>With Garamond we can clearly see the strange font rendering that can happen in Firefox It&#8217;s almost as if it tries to add some creative touch to the font and fails. Take a look at the images below. Some characters are very different from the original font design, not? These rendering oddities also occur with the type <a href="http://www.josbuivenga.demon.nl/fontinsans.html">Fontin Sans</a>, that&#8217;s used on this website. It means that I cannot use some font sizes because some characters look weird.</p>
<div class="wp-caption alignnone" style="width: 118px"><img title="Firefox PC: the letter q in different font sizes appear very different from each other" src="/article-data/images/webfont-pop-garamond-1.png" alt="Firefox PC: the letter q in different font sizes appear very different from each other" width="108" height="45" /><p class="wp-caption-text">Firefox PC: the character &#39;q&#39; in different font sizes appear very different from each other.</p></div>
<div class="wp-caption alignnone" style="width: 310px"><img title="Firefox PC at font size 13: note the odd g and the uneven distribution of space in the m" src="/article-data/images/webfont-pop-garamond-2.png" alt="Firefox PC at font size 13: note the odd g and the uneven distribution of space in the m" width="300" height="54" /><p class="wp-caption-text">Firefox PC at font size 13px: note the odd &#39;g&#39; and the uneven distribution of space in the &#39;m&#39;.</p></div>
<p>IE8 is even worse, Mostly because of bad kerning, I&#8217;d only use this font if the size is 48 pixels or larger. Look at the images below to see what IE8 does with text in large font sizes like 36px and 60px.</p>
<div class="wp-caption alignnone" style="width: 223px"><img title="Because of bad aliasing and bad kerning the e even looks bad at a font size of 36px!" src="/article-data/images/webfont-pop-garamond-3.png" alt="Because of bad aliasing and bad kerning the e even looks bad at a font size of 36px!" width="213" height="40" /><p class="wp-caption-text">IE8: Because of bad aliasing and bad kerning the &#39;e&#39; even looks bad at a font size of 36px!</p></div>
<div class="wp-caption alignnone" style="width: 132px"><img title="IE8 again: Although I think its more or less acceptable, the capital definitely needs more anti-aliasing." src="/article-data/images/webfont-pop-garamond-4.png" alt="IE8 again: Although I think its more or less acceptable, the capital definitely needs more anti-aliasing." width="122" height="62" /><p class="wp-caption-text">IE8 again: Although I think it&#39;s more or less acceptable, the capital &#39;T&#39; definitely needs more anti-aliasing at the top.</p></div>
<h3>Garamond file size</h3>
<p>My Garamond font file is very large to be a webfont by the way: 343Kb. That really asks for removing some characters. If I omit support for Greek, Coptic and Cyrillic, I can scale the file size back to 112 Kb. If I choose to only support Basic Latin, Latin-1 Sup, Currency  Symbols and Punctuation, I end up with a file size of 82 Kb. Then you&#8217;ll have just one font style of the font family. If you want to have text in Italic, you have to double the file size.</p>
<h3>Garamond font size</h3>
<p>If you want to use a Garamond, you&#8217;ll have to use a much larger font size. That&#8217;s because the height difference between uppercase and lowercase in a Garamond is larger than the standard Arial. You need a 16px Garamond to get lowercase text that is of equal to that of a 12px Arial. In case of Helvetica it&#8217;s 13px by the way.</p>
<p>So we get this list of usable and unusable font sizes:<strong><span style="color: #339966;"><br />
</span></strong><span style="color: #ff0000;">9 10 11</span><span style="color: #ff0000;"> 12 </span><span style="color: #339966;"><span style="color: #ff0000;">13</span></span><span style="color: #339966;"><span style="color: #ff0000;"> 14</span></span><span style="color: #339966;"><span style="color: #ff0000;"> 15 16 17 18 21 24 30 36 </span></span><strong><span style="color: #339966;">48 60 72</span></strong>:</p>
<h2>Dax</h2>
<p>Screenshots of Dax in <a href="/article-data/images/webfont-pop-dax-Firefox.png" target="_blank">Firefox</a>, <a href="/article-data/images/webfont-pop-dax-IE8.png">IE8</a>, <a href="/article-data/images/webfont-pop-dax-IE6.png">IE6</a> and <a href="/article-data/images/webfont-pop-dax-Safari.png">Safari</a>.</p>
<p>Dax is, to my surprise, doing a pretty job as a webfont. Almost no strange kerning in IE8 and almost no creative font interpretation in Firefox. For some reason are font sizes 21 and 24 bad for all characters, but other font sizes are doing well with the exception of a few characters.</p>
<div class="wp-caption alignnone" style="width: 101px"><img title="Firefox 3.6 PC: FF and IE8 both have trouble with the staircase in the e at various font sizes." src="/article-data/images/webfont-pop-dax-1.png" alt="Firefox 3.6 PC: FF and IE8 both have trouble with the staircase in the e at various font sizes." width="91" height="56" /><p class="wp-caption-text">Firefox 3.6 PC: FF and IE8 both have trouble with the diagonal line in the &#39;e&#39;. At various sizes it looks like a staircase.</p></div>
<div class="wp-caption alignnone" style="width: 122px"><img title="Firefox 3.6 PC: Both IE8 and FF have trouble with all characters at font size 21 and 24" src="/article-data/images/webfont-pop-dax-2.png" alt="Firefox 3.6 PC: Both IE8 and FF have trouble with all characters at font size 21 and 24" width="112" height="26" /><p class="wp-caption-text">Firefox 3.6 PC: Both IE8 and FF have trouble font size 21 and 24. Note that the lines do not always have the same thickness.</p></div>
<p>So we get this list of usable and unusable font sizes:<span style="color: #339966;"><strong><strong><br />
</strong></strong><span style="color: #ff0000;">9 10</span><strong> 11 12 13 14 15 16 17 18 </strong><span style="color: #ff0000;">21 24</span><strong> 30 36 </strong><span style="color: #ff0000;">48</span><strong><strong> 60 72</strong></strong></span></p>
<h2>Gill Sans</h2>
<p>Screenshots of Gill Sans Regular in <a href="/article-data/images/webfont-pop-gillSans-Firefox.png" target="_blank">Firefox</a>, <a href="/article-data/images/webfont-pop-gillSans-IE8.png">IE8</a>, <a href="/article-data/images/webfont-pop-gillSans-IE6.png">IE6</a> and <a href="/article-data/images/webfont-pop-gillSans-Safari.png">Safari</a>.<br />
Screenshots of Gill Sans Bold in <a href="/article-data/images/webfont-pop-gillSansBold-Firefox.png" target="_blank">Firefox</a>, <a href="/article-data/images/webfont-pop-gillSansBold-IE8.png">IE8</a>,  <a href="/article-data/images/webfont-pop-gillSansBold-IE6.png">IE6</a> and <a href="/article-data/images/webfont-pop-gillSansBold-Safari.png">Safari</a>.</p>
<p>Gill Sans Regular looks relatively nice. There are enough font sizes to choose from. Let&#8217;s focus on some rendering issues:</p>
<div class="wp-caption alignnone" style="width: 225px"><img title="Another example of the creativity of Firefox. You see some text in font size 16 and 17. Note the o and e on the top line that look like flat ellipsis." src="/article-data/images/webfont-pop-gillSans-1.png" alt="Another example of the creativity of Firefox. You see some text in font size 16 and 17. Note the o and e on the top line that look like flat ellipsis." width="215" height="52" /><p class="wp-caption-text">Another example of the &#39;creativity&#39; of Firefox. You see some text in font size 16 and 17. Note the &#39;o&#39; and &#39;e&#39; on the top line that look like flat ellipsis instead of perfect circles.</p></div>
<div class="wp-caption alignnone" style="width: 165px"><img title="IE8 Vista: Font size 14 looks nice. Except the captital T" src="/article-data/images/webfont-pop-gillSans-2.png" alt="IE8 Vista: Font size 14 looks nice. Except the captital T" width="155" height="33" /><p class="wp-caption-text">IE8 Vista: Font size 14 looks nice. Except the captital &#39;T&#39;, which is too thick.</p></div>
<div class="wp-caption alignnone" style="width: 312px"><img title="IE6 on XP SP3: IE6 does too much anti-aliasing, so that fonts at small sizes become almost a grey blur. Using a bold type can really make a difference." src="/article-data/images/webfont-pop-gillSans-3.png" alt="IE6 on XP SP3: IE6 does too much anti-aliasing, so that fonts at small sizes become almost a grey blur. Using a bold type can really make a difference." width="302" height="42" /><p class="wp-caption-text">IE6 on XP SP3 does too much anti-aliasing, so that text in small sizes become almost a grey blur. Using a bold style can really make a difference.</p></div>
<p>Usable and unusable font sizes for Gill Sans Regular:<span style="color: #339966;"><strong><strong><br />
</strong></strong><span style="color: #ff0000;">9 </span><span style="color: #339966;"><span style="color: #ff0000;">10 11 12</span></span><strong><span style="color: #339966;"> 13 </span></strong><span style="color: #ff0000;">14</span><strong><span style="color: #339966;"> 15 16 </span></strong><span style="color: #ff0000;">1<span style="color: #ff0000;">7</span></span><span style="color: #ff0000;"> 18 </span><span style="color: #ff0000;"><span style="color: #ff0000;">2</span>1</span><strong><span style="color: #339966;"> 24 </span></strong><span style="color: #ff0000;">30</span><strong><span style="color: #339966;"> </span></strong><span style="color: #339966;"><span style="color: #ff0000;">36</span></span><strong><span style="color: #339966;"> 48</span></strong><strong><strong><span style="color: #339966;"> 60 7</span>2</strong></strong></span></p>
<p>Usable and unusable font sizes for Gill Sans Bold:<span style="color: #339966;"><strong><strong><br />
</strong></strong><span style="color: #339966;"><span style="color: #ff0000;">9 10 11 12 13 14</span></span><strong><span style="color: #339966;"> 15 16 17 </span></strong><span style="color: #ff0000;">18</span><strong><span style="color: #339966;"> 21 24 30 36 48 60 72</span></strong></span></p>
<h2>Bodoni</h2>
<p>Screenshots of Bodoni Book in <a href="/article-data/images/webfont-pop-bodoni-Firefox.png" target="_blank">Firefox</a>, <a href="/article-data/images/webfont-pop-bodoni-IE8.png">IE8</a>, <a href="/article-data/images/webfont-pop-bodoni-IE6.png">IE6</a>.<br />
Screenshots of Bodoni Book Italic in <a href="/article-data/images/webfont-pop-bodoni-Firefox.png" target="_blank">Firefox</a>, <a href="/article-data/images/webfont-pop-bodoni-IE8.png">IE8</a>,   <a href="/article-data/images/webfont-pop-bodoni-IE6.png">IE6</a>.</p>
<div class="wp-caption alignnone" style="width: 214px"><img title="IE8: Even at large sizes the small lines tend to be troublesome. Note the broken lines in the o, e, p and s." src="/article-data/images/webfont-pop-bodoni-1.png" alt="IE8: Even at large sizes the small lines tend to be troublesome. Note the broken lines in the o, e, p and s." width="204" height="52" /><p class="wp-caption-text">IE8: Even at large sizes the small lines tend to be troublesome. Note the broken lines in the &#39;o&#39;, &#39;e&#39;, &#39;p&#39; and &#39;s&#39;.</p></div>
<div class="wp-caption alignnone" style="width: 173px"><img title="The grey blur of IE6" src="/article-data/images/webfont-pop-bodoni-2.png" alt="The grey blur of IE6" width="163" height="35" /><p class="wp-caption-text">The grey blur of IE6</p></div>
<p>Bodoni renders badly. As I expected. The thin lines in serif fonts prove to be troublesome in webfonts. This is mostly due to the anti-aliasing of IE8 that is way too sharp. The italic font style has a even worse legibility.</p>
<p>Usable and unusable font sizes for Bodoni Book:<span style="color: #339966;"><strong><strong><br />
</strong></strong><span style="color: #ff0000;">9 10 11 12</span><span style="color: #339966;"><span style="color: #ff0000;"> 13 14</span><strong> </strong><span style="color: #ff0000;">15 </span><span style="color: #ff0000;">16</span><strong> </strong><span style="color: #ff0000;">17</span><strong> </strong><span style="color: #ff0000;">18</span><span style="color: #ff0000;"> 21 24 30 36</span><strong> 48</strong></span><strong><strong><span style="color: #339966;"> 60 7</span>2</strong></strong></span></p>
<p>Usable and unusable font sizes for Bodoni Book Italic:<span style="color: #339966;"><strong><strong><br />
</strong></strong><span style="color: #ff0000;">9 10 11 12 13 14</span><span style="color: #339966;"><span style="color: #ff0000;"> 15 16 17 18</span><span style="color: #ff0000;"> 21 24</span><span style="color: #ff0000;"> 30  36</span><strong> 48 60 72</strong></span></span></p>
<h2>Conclusion</h2>
<p>Phew! that&#8217;s a lot of data. So what does it all mean? Well, for starters we now know for sure that you have to check your font in different browsers and eliminate the font sizes that render badly before you start to design. This and other tests seem to show that it&#8217;s best to only use simple, sans-serif fonts. That&#8217;s because variation in thickness and diagonal lines prove troublesome in webfonts. Especially in IE8 on Vista because it&#8217;s very sharp anti-alias. It&#8217;s so sharp that the fonts look jagged.</p>
<p>Fonts in Firefox don&#8217;t look jagged and look great in very large sizes. The trouble is the &#8216;creativity&#8217; in the rendering. Characters can be wider, smaller, higher or lower than intended. In some cases it can change the complete look of a font.</p>
<p>The anti-alias in IE6 on Windows XP SP3 is in most cases way to strong. Most black text is printed grey at smaller sizes. But in some cases the vertical lines of characters exactly fit in one pixel, which results in a pure black line in a grey text. Not good.</p>
<p>And Safari? You haven&#8217;t seen me talking about Safari. That&#8217;s because the font rendering in OSX is all you could wish for. That doesn&#8217;t mean I have seen some rendering issues, but they are of a complete other order and are insignificant compared with the troublesome rendering on Windows. Font rendering in the PC version of Safari is by the way just as bad as IE, if not worse.</p>
<p>I recently tried Typekit and seen webfonts on Ascenderfonts. The selected fonts look most of the time way better than you can do yourself. So I guess that webfont services is logical option, from both legally and legibility standpoint.</p>


<p>Related posts:<ol><li><a href='http://www.thebrightlines.com/2010/01/20/webfont-pitfalls/' rel='bookmark' title='Permanent Link: Webfont pitfalls'>Webfont pitfalls</a></li>
<li><a href='http://www.thebrightlines.com/2009/12/10/251/' rel='bookmark' title='Permanent Link: My favorite for converting fonts to EOT'>My favorite for converting fonts to EOT</a></li>
<li><a href='http://www.thebrightlines.com/2010/03/18/font-rendering-in-ie9/' rel='bookmark' title='Permanent Link: Web font rendering in IE9'>Web font rendering in IE9</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2010/01/24/test-popular-professional-fonts-as-webfont/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Webfont pitfalls</title>
		<link>http://www.thebrightlines.com/2010/01/20/webfont-pitfalls/</link>
		<comments>http://www.thebrightlines.com/2010/01/20/webfont-pitfalls/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 22:30:28 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Webfonts]]></category>
		<category><![CDATA[font-face]]></category>
		<category><![CDATA[fonts]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=370</guid>
		<description><![CDATA[After implementing webfonts in two websites it's time to document the errors one can make. This article shouldn't scare you though, it should be a timesaver.]]></description>
			<content:encoded><![CDATA[<h2>Selecting a font</h2>
<p>One of the first pitfalls you can fall into when using webfonts is that you find fonts that seems nice but aren&#8217;t usable. That could be for a number of reasons:</p>
<ul>
<li><strong>Huge line heights:</strong> Some (free) fonts have lots of space above and below the type. You have to give the text something like <code>line-height: 0.8em</code> to make it look good. But users with Chrome or old browsers will not see your website. Instead they will see lines of text in Arial on top of eachother.</li>
<li><strong>Legibility:</strong> Many fonts are only useful as a heading. That&#8217;s because font rendering on Windows is far from perfect. Especially at small font sizes. If your font isn&#8217;t readable at 11px, think twice if you want it for your body text. Please keep in mind that fonts in IE are even less legible.</li>
<li><strong>Don&#8217;t trust Photoshop:</strong> Photoshop cannot emulate the bad aliasing that can occur in browsers, so don&#8217;t comfort yourself when everything looks fine in Photoshop.</li>
<li><strong>Test in browsers:</strong> Pick the fonts you want to use and test it in different browsers. I like the free font-face service of Fontsquirrel because it not only converts the fonts to webfont format, but it also generates an HTML-file with the webfont in different sizes. Just open the page in various browsers and compare. You can check which font sizes have a good legibility. Be sure to check IE and Safari on PC because they are the worst when it comes to font rendering.</li>
<li><strong> Be wary of free fonts:</strong> I use free fonts, but you really have to pick the right ones. Some have for example problems with legibility.</li>
<li><strong>Be wary of commercial fonts as well:</strong> Users can download your fonts. So if  you use a $200 dollar font, you make it freely available. In theory you could make a new font with just a subset of the original. That would make it less desirable to download, but also less usable and it&#8217;s still not legal at all.</li>
</ul>
<h2>Conversion options</h2>
<p>Fontsquirrel has some options when converting fonts to EOT, the only font type that IE supports.</p>
<ul>
<li><strong>Hints:</strong> Hints help the anti-aliasing engine with it&#8217;s work by giving &#8230; well, uhm &#8230; hints on how to do that. Hints tell what pixel should get which color in order to create the effect of smooth lines. If your font has bad hints or none at all, you could auto generate them when converting. It can make a difference. Hinting is done fully automatic though, so you could expect glitches like having an <em>i</em> without a dot. Those errors occur mostly at small font sizes, so if you use the font in headings it should be fine.</li>
<li><strong>Subsetting:</strong> A font can be as small as 20Kb, but also as large as 200Kb. Multiply that number with every font style you want to use like italic and bold. My weblog loads 4 font files of +- 25Kb. For IE the font files are even larger: 4 times 70 Kb. You can limit the file size by removing all the types you won&#8217;t use like Arabic or Chinese.</li>
</ul>
<h2>Setting up the font-face right</h2>
<ul>
<li><strong>The right @font-face syntax:</strong> Writing the font-face code isn&#8217;t hard to do. But what you really need to be sure of is that it works good for all browsers. After I implemented webfonts in this blog, I discovered that Firefox loaded both OTF and EOT files, although it doesn&#8217;t even support EOT! Paul Irish has a <a href="http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/">nice article about the various font-face options</a> and concludes that there is only one good syntax. That&#8217;s the one below:<br />
<code>@font-face {<br />
font-family: 'Graublau Web';<br />
src: url('GraublauWeb.eot');<br />
src: local('Graublau Web Regular'), local('Graublau Web'), url('GraublauWeb.otf') format('opentype');<br />
}</code></li>
<li><strong>Cross domain webfonts:</strong> I discovered that Firefox is <a href="http://www.thebrightlines.com/2010/01/12/implementing-font-face-cross-domain/">pretty fussy when about the location of fonts</a>. This can save you an hour of frustration.</li>
</ul>
<p>Of all the errors I made, the biggest one was the idea that you can grab any font, use it in your website and be sure that it renders like you would expect in Photoshop. It just doesn&#8217;t. There aren&#8217;t much fonts that render well at 11 to 14 pixels.  This blog used the font <a href="http://www.josbuivenga.demon.nl/fontinsans.html">Fontin Sans</a> for all text. Now I scaled it down to just the logo and the major headings. All other text is “just” Tahoma/Geneva.</p>


<p>Related posts:<ol><li><a href='http://www.thebrightlines.com/2010/01/24/test-popular-professional-fonts-as-webfont/' rel='bookmark' title='Permanent Link: Test: Popular professional fonts as webfont'>Test: Popular professional fonts as webfont</a></li>
<li><a href='http://www.thebrightlines.com/2009/12/10/251/' rel='bookmark' title='Permanent Link: My favorite for converting fonts to EOT'>My favorite for converting fonts to EOT</a></li>
<li><a href='http://www.thebrightlines.com/2009/11/01/the-trouble-with-font-face/' rel='bookmark' title='Permanent Link: The trouble with @font-face'>The trouble with @font-face</a></li>
<li><a href='http://www.thebrightlines.com/2010/02/28/web-fonts-services-list/' rel='bookmark' title='Permanent Link: List of web fonts services and resources'>List of web fonts services and resources</a></li>
<li><a href='http://www.thebrightlines.com/2009/11/07/no-sign-of-font-face-in-chrome-4/' rel='bookmark' title='Permanent Link: No sign of @font-face in Chrome 4'>No sign of @font-face in Chrome 4</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2010/01/20/webfont-pitfalls/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
