<?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; fonts</title>
	<atom:link href="http://www.thebrightlines.com/tag/fonts/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>
		<item>
		<title>My favorite for converting fonts to EOT</title>
		<link>http://www.thebrightlines.com/2009/12/10/251/</link>
		<comments>http://www.thebrightlines.com/2009/12/10/251/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 06:39:33 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Webfonts]]></category>
		<category><![CDATA[Convert]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[EOT]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[Fontsquirrel]]></category>
		<category><![CDATA[services]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=251</guid>
		<description><![CDATA[Webfonts are fun, but converting fonts to EOT can be a drag. But I found a good conversion service from Fontsquirrel]]></description>
			<content:encoded><![CDATA[<h2>ttf2eot</h2>
<p>In order to use webfonts in your website you have to convert regular fonts to Microsofts EOT format. Normally I would use the online version of ttf2eot, which works reasonably well. As long if you have a TTF. If you have another type of font like a OTF, you have to find another converter first.</p>
<h2>WEFT</h2>
<p>In case ttf2eot fails with a particular font (like in my case) I grudgingly use Microsofts WEFT tool. I dislike WEFT for its instability and weird workflow/interface. But last time I tried it, it didn&#8217;t do a good job at all. Only 3 of the 4 fonts I had to convert to EOT were recognized and none of that 3 fonts worked in IE.</p>
<h2>Fontsquirrel</h2>
<p>Then while looking for a manual on WEFT, I came across the free <a href="http://www.fontsquirrel.com/fontface/generator">@font-face Kit Generator</a> of Fontsquirrel. And man, did <em>that</em> save the day. Uploading and converting the fonts was very easy. On top of it, you get an example web page packed in a zip with the webfonts in it. It looks something like the screenshot below. The service can also convert fonts to <strong>WOFF</strong> (Firefox) and <strong>SVG</strong> (Chrome &amp; iPhone).</p>
<div class="wp-caption alignnone" style="width: 585px"><img title="Fontsquirrel not only converts your fonts to EOT, but also shows an example how it would look like in your browser in various font sizes." src="/article-data/images/Fontsquirrel.png" alt="Fontsquirrel not only converts your fonts to EOT, but also shows an example how it would look like in your browser in various font sizes." width="575" height="167" /><p class="wp-caption-text">Fontsquirrel not only converts your fonts to EOT, but also shows an example how it would look like in your browser in various font sizes.</p></div>
<h2>What to look out for in Fontsquirrel</h2>
<p>The only thing that did go wrong was the hinting. If I chose the default option “Use existing hints” the letter “B” did not render well as you can see in the screenshot below. When I chose to remove the hinting, the conversion was successful.</p>
<div class="wp-caption alignnone" style="width: 213px"><img title="Fontsquirrel too can get it wrong. Always check all the types" src="/article-data/images/Fontsquirrel2.png" alt="Fontsquirrel too can get it wrong. Always check all the types" width="203" height="167" /><p class="wp-caption-text">Fontsquirrel too can get it wrong. Always check all the types</p></div>
<div class="wp-caption alignnone" style="width: 307px"><img title="The problem in the previous piccture was cleard by removing all hints." src="/article-data/images/Fontsquirrel3.png" alt="The problem in the previous piccture was cleard by removing all hints." width="297" height="101" /><p class="wp-caption-text">The problem in the previous piccture was cleard by removing all hints.</p></div>


<p>Related posts:<ol><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/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/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/2010/04/18/interview-with-ethan-dunham-of-fontsquirrel-and-fontspring/' rel='bookmark' title='Permanent Link: Interview with Ethan Dunham of Fontsquirrel and Fontspring'>Interview with Ethan Dunham of Fontsquirrel and Fontspring</a></li>
<li><a href='http://www.thebrightlines.com/2010/01/20/webfont-pitfalls/' rel='bookmark' title='Permanent Link: Webfont pitfalls'>Webfont pitfalls</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2009/12/10/251/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No sign of @font-face in Chrome 4</title>
		<link>http://www.thebrightlines.com/2009/11/07/no-sign-of-font-face-in-chrome-4/</link>
		<comments>http://www.thebrightlines.com/2009/11/07/no-sign-of-font-face-in-chrome-4/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 23:46:39 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Webfonts]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[fonts]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=106</guid>
		<description><![CDATA[Still no sign of Google Chrome supporting @font-face. Even not in version 4.]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="/article-data/images/logo-chrome.png" alt="Google Chrome" /> A few days ago I blogged about <a href="/2009/11/01/the-trouble-with-font-face/">Chrome being the only browser that is not supporting CSS&#8217;s @font-face</a> which enables you to use non-system fonts in your website. It seems that that doesn&#8217;t change with Google Chrome 4 beta that has been out since 2 November.</p>
<p>What did change is the addition of browser synchronization. Now it&#8217;s possible to synchronize your bookmarks between all your Chrome browsers on different computers. Chrome&#8217;s performance is improved as well.</p>


<p>Related posts:<ol><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/01/12/implementing-font-face-cross-domain/' rel='bookmark' title='Permanent Link: Implementing font-face cross domain'>Implementing font-face cross domain</a></li>
<li><a href='http://www.thebrightlines.com/2010/01/03/new-rss-feeds/' rel='bookmark' title='Permanent Link: New RSS feeds'>New RSS feeds</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2009/11/07/no-sign-of-font-face-in-chrome-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The trouble with @font-face</title>
		<link>http://www.thebrightlines.com/2009/11/01/the-trouble-with-font-face/</link>
		<comments>http://www.thebrightlines.com/2009/11/01/the-trouble-with-font-face/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 12:02:01 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Webfonts]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[EOT]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[fonts]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=73</guid>
		<description><![CDATA[All major browsers are able to display fonts that are not installed on the computer, but downloadable from the web through the CSS-technique @font-face. But there are some caveats.]]></description>
			<content:encoded><![CDATA[<p>Finally it seems like we&#8217;re getting rid of the shackles of webfonts. With the implementation of the CSS-technique @font-face in Firefox 3.5, Safari and Opera we&#8217;re not only able to choose between fonts like Arial, Times and Courier, but also between any TTF or OTF on our computers. IE already had an implementation of @font-face for years that only supports a proprietary format called EOT,  but both 2 techniques work together perfectly in one CSS file.</p>
<h2>If custom fonts are so great, Why isn&#8217;t anyone using it?</h2>
<p>In case you&#8217;re already in the process of removing that lame Times New Roman from your computer: look around on the web. There&#8217;s almost no website to be found that shows non-standard fonts through the @font-face technique. They all use images or sIFR. So why is no-one using @font-face? I decided to set up a <a href="http://www.thebrightlines.com/article-data/downloads/font-face2/index.html" target="_blank">@font-face test page</a> and try it in different browsers and found a few shortcomings:</p>
<h3>No Chrome</h3>
<p>Although Chrome is <em>able</em> to show custom fonts it&#8217;s disabled by default as reported on <a href="http://opentype.info/blog/2009/04/16/google-chrome-with-webfonts-support/">opentype.info</a>. It appears that you can enable it by adding the option <code>-enable-remote-fonts.</code> It&#8217;s not clear if remote fonts are going to enabled by default soon, but I guess the Chrome team first have to address security issues that come with the use of webfonts.</p>
<h3>Text flashing in Firefox</h3>
<p>When loading the page, Firefox first shows the text in a default font. Only after the TTF or OTF is loaded, it will change the text accordingly. Even when I reload the page, the texts in the web page flashes from web font to TrueType font. Although it&#8217;s not a a nice effect, it&#8217;s no disaster either.</p>
<h3>IE7+ in high security level</h3>
<p>IE7 and IE8 in the highest security level will not show custom fonts, but will show a webfont. I&#8217;ve never ever had IE in the highest security level, but I reckon some will. And I guess many large organizations will have IE set to the highest security level. So be prepared that some people won&#8217;t see your carefully crafted website like you intended.</p>
<h3>Deal breaker: IE6 in high security level</h3>
<p>Well, until now the worst that could happen is that a browser won&#8217;t show a custom font but will default to a system font installed on your computer. But using custom fonts in IE6 is close to impossible. IE supports @font-face since IE4, but after the release of IE6 Microsoft decided to crank up the security. This resulted in a dialogue box that nicely asks if you&#8217;d like to download the custom font that might be a security breach. No problem. Until you click a link. Or even refresh the page. You&#8217;ll get that dialogue box once again. Huh? Didn&#8217;t I just answer that question? I&#8217;m still on the website, so why do I have to decide once again if I want to download a font that&#8217;s most likely still in my cache?</p>
<p><img class="alignright" title="The dreaded IE6 popup that just wont go away" src="http://www.thebrightlines.com/article-data/images/IE6-fontface.png" alt="" />There goes your usable website down the drain. Like I said: I don&#8217;t think that many people will have their security set that high, but it still is a real deal breaker. I suggest that it&#8217;s best to show no custom fonts at all in IE6. You can do that by loading an alternate CSS file with <a href="http://www.quirksmode.org/css/condcom.html">conditional comments</a> (tip of a colleague of mine). No fancy fonts is still better than the risk of scaring away visitors.</p>
<h3>Last but not least: Converting fonts to EOT</h3>
<p>Like I said earlier: Microsoft does not support TTF or OTF. That&#8217;s because if you link your CSS to a font file it has to be downloadable for anyone. That&#8217;s sour if you just paid a few hundred bucks for some premium font. Not to mention for the persons or companies who made that font. So Microsoft came up with a font format that&#8217;s not usable as a regular font and that&#8217;s restricted to some specific list of domains. Perfect.</p>
<p>But WEFT, the program to create EOT font files that Microsoft publicized, is awkward in use (if you ask me) and just doesn&#8217;t work on my Vista PC. It crashes before I&#8217;m able to convert a single font. There is an open source program called <a href="http://code.google.com/p/ttf2eot/">ttf2eot</a> and there are even websites that convert fonts with that program like the one on <a href="http://www.kirsle.net/wizards/ttf2eot.cgi">www.kirsle.net</a>. But ttf2eot is still version 0.0.2-2, so that sounds very alpha to me although it seems to do a good job. So be sure to check first if you are able to convert a font before you promise something to the costumer.</p>
<p>An other way to protect the authors of fonts (and yourself as a user that paid a lot of money) is the use of <a href="http://opentype.info/blog/2009/07/29/why-webfont-services-are-the-future-of-fonts-on-the-web/">webfont services</a> that supply the raw font. That way you can use a specific font without having to worry that you become an unintentionally illegal provider of premium fonts.</p>
<h2>But it will still change the web</h2>
<p>So there are still some hurdles to overcome. But it&#8217;s clear that it won&#8217;t take long before the web will be significantly different from what we know now because the use of custom fonts. Although I&#8217;m convinced that with the plethora of available fonts, system fonts like Arial will stay an all-time favorite for a long time.</p>
<h2><em>Update</em></h2>
<p>I had some good feedback (see comments) with some great links:</p>
<ul>
<li><a href="http://www.fontsquirrel.com/fontface/generator">ttf2eot tutorial</a></li>
<li><a href="http://www.fontsquirrel.com/fontface/generator">Font squirrels font font-face generator</a></li>
<li><a href="http://nicewebtype.com/notes/2009/10/30/how-to-use-css-font-face/">How to use CSS font-face</a></li>
<li><a href="http://www.alistapart.com/articles/dynatext/">PHP font replacement</a></li>
</ul>


<p>Related posts:<ol><li><a href='http://www.thebrightlines.com/2010/01/12/implementing-font-face-cross-domain/' rel='bookmark' title='Permanent Link: Implementing font-face cross domain'>Implementing font-face cross domain</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>
<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/01/20/webfont-pitfalls/' rel='bookmark' title='Permanent Link: Webfont pitfalls'>Webfont pitfalls</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2009/11/01/the-trouble-with-font-face/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
