<?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</title>
	<atom:link href="http://www.thebrightlines.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thebrightlines.com</link>
	<description>HTML, CSS, Javascript and more</description>
	<lastBuildDate>Tue, 09 Mar 2010 21:04:55 +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>FontFont is now selling web fonts</title>
		<link>http://www.thebrightlines.com/2010/03/01/fontfont-is-now-selling-web-fonts/</link>
		<comments>http://www.thebrightlines.com/2010/03/01/fontfont-is-now-selling-web-fonts/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 22:54:09 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[Webfonts]]></category>
		<category><![CDATA[fontfont]]></category>
		<category><![CDATA[fontshop]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=471</guid>
		<description><![CDATA[There's another foundry offering a part of their fonts as web fonts.]]></description>
			<content:encoded><![CDATA[<p>In case it wasn&#8217;t clear in <a href="/2010/02/28/web-fonts-services-list/">my previous article</a>: FontFont is now selling some of their fonts as web fonts, including FF DIN, FF Meta, FF Dax, and FF Kievit. <a href="http://www.fontshop.com/fontlist/n/web_fontfonts/?utm_source=NewsletterFeb2410&amp;utm_medium=web&amp;utm_content=WebFontsFontlist&amp;utm_term=em&amp;utm_campaign=FF52Web">Complete list of FontFont&#8217;s web fonts</a>. FontFont is only selling the font. They won&#8217;t host it for you. And you can only download EOT Lite and WOFF from their website. In order to make web fonts work in Safari and Chrome, you&#8217;ll have to Typekit. That&#8217;s because Safari en Chrome cannot load WOFF, but will accept TTF or OTF. One problem with the web fonts license is that you cannot create a mock-up in Photoshop since you cannot install an EOT or WOFF on your computer.</p>
<p>You can <a href="http://www.fontshop.com/blog/?p=1763">read more about it on their weblog</a>.</p>


<p>Related posts:<ol><li><a href='http://www.thebrightlines.com/2010/02/28/web-fonts-services-list/' rel='bookmark' title='Permanent Link: Web fonts services list'>Web fonts services list</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2010/03/01/fontfont-is-now-selling-web-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web fonts services list</title>
		<link>http://www.thebrightlines.com/2010/02/28/web-fonts-services-list/</link>
		<comments>http://www.thebrightlines.com/2010/02/28/web-fonts-services-list/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 23:04:05 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[Webfonts]]></category>
		<category><![CDATA[ascender]]></category>
		<category><![CDATA[fontfont]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[typekit]]></category>
		<category><![CDATA[typotheque]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=462</guid>
		<description><![CDATA[Here's a list of web font services and places to find web fonts. Do you know other services? Place the link as a comment and I'll add it to the list!]]></description>
			<content:encoded><![CDATA[<h2>Web font services</h2>
<ul>
<li><strong><a href="http://typekit.com">Typekit</a></strong><br />
Started in September 2009 by Jeffrey Veen. Offers both free and paid accounts. You can choose between free fonts as well as fonts from well-known foundries.</li>
<li><strong><a href="http://kernest.com/">Kernest</a></strong><br />
Free web font service. Commercial use permitted.</li>
<li><strong><a href="http://www.ascenderfonts.com/webfonts">Ascender fonts</a></strong><br />
Webshop of the Ascender Corporation which makes and (re)sell fonts. At first the service offered only EOT Lite, but since 2010 they also support TTF and WOFF. They now also have a 30-day trial account.</li>
<li><strong><a href="http://typefront.com">Type Front</a></strong><br />
Does not sell web fonts, but hosts them. Offers a limited free account and a 30-day trial account for other (paid) accounts. It&#8217;s an initiative of the Australian company Small Park.</li>
<li><strong><a href="http://www.typotheque.com/webfonts">Typotheque</a></strong><br />
Dutch type foundry that offer their web fonts with a free 30-day trial account. You can specify how you want to use the font by choosing for example the target language and font styles. That way the font can be compressed to a very small size. Offers TTF and EOT.</li>
</ul>
<h2>Where to download web fonts</h2>
<ul>
<li><strong><a href="http://www.fontsquirrel.com/fontface">Fontsquirrel</a></strong><br />
A large list of free fonts, converted for the web. But watch out. The fact that you can download web fonts does not mean that they are all legible or fit for use.</li>
<li><strong><a href="http://www.fontspring.com/">Fontspring</a></strong><br />
Font reseller that offers many fonts as fit for the web. Their webfont package consists of an EOT and a TTF.</li>
<li><strong><a href="http://kernest.com">Web FontFont</a></strong><br />
Just started selling a few of their fonts as web fonts. Their web fonts packages have a EOT Lite and a WOFF version of the file. You do the hosting of the fonts yourself. As an alternative FontFont advises you to take a free <a href="http://www.fontshop.com/blog/?p=1725">TypeKit account</a> in order to host your files.</li>
</ul>


<p>Related posts:<ol><li><a href='http://www.thebrightlines.com/2010/03/01/fontfont-is-now-selling-web-fonts/' rel='bookmark' title='Permanent Link: FontFont is now selling web fonts'>FontFont is now selling web fonts</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>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2010/02/28/web-fonts-services-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful FileZilla tips</title>
		<link>http://www.thebrightlines.com/2010/02/12/useful-filezilla-tips/</link>
		<comments>http://www.thebrightlines.com/2010/02/12/useful-filezilla-tips/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 22:22:32 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[Filezilla]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=454</guid>
		<description><![CDATA[6 simple useful tips if you use the FileZilla FTP Client.]]></description>
			<content:encoded><![CDATA[<p>The goal of an FTP program is simple: move files back and fro between two places and that&#8217;s that. It&#8217;s always nice to have some advanced features, but just be honest: when do you use those features?</p>
<p>Well, there are a few exceptions to the rule of simplicity if you ask me. So here are  a few options of FileZilla that make life a bit easier:</p>
<ul>
<li><img class="alignnone" title="filter" src="/article-data/images/filezilla1.png" alt="" width="16" height="17" /> <strong>Filter</strong> Every website project has files that have absolutely nothing to do with the actual website itself like Thumbs.db and *.bak-files. One thing that really add up in file size and upload time are all the source control data like SVN that are spreaded throughout the folder tree. With this button you can actually set what not to download or upload. Left-clicking on the button let you configure the filter while right-clicking will toggle the filter on or off. The filter is also ideal for making sure you don&#8217;t accidentally upload important files like web.config or .htaccess.</li>
<li><img title="Compare" src="/article-data/images/filezilla3.png" alt="" width="16" height="17" /> <strong>Synchronization</strong> Do you always click on, say, the images folder on the left <em>and</em> right? Well, you&#8217;re free to do so, but I&#8217;m lazy. So I always toggle this button on if the folder structure is (almost) identical on both sides. It saves me 50% clicking.</li>
<li><img title="Synchronization" src="/article-data/images/filezilla2.png" alt="" width="14" height="17" /> <strong>Compare</strong> I don&#8217;t want to rely on automatic comparison too much, but if you have to update just 5 files and you cannot easily find it between the 500+ other files, this can be a time saver. If you toggle this on, the different files on the server and your local folder will be highlighted. You can compare either by time stamp or by file size. Left and right mouse click either configures or toggles.</li>
<li><strong><img class="alignnone" title="Sitemanager" src="/article-data/images/filezilla4.png" alt="" width="29" height="16" /> Sitemanager</strong> You do use it, right? It&#8217;s easy to just use the Quickconnect option and it has its purpose. But finding the right connection can be a bit hard between all the dead links. That&#8217;s because Filezilla remembers <em>all</em> connection attempts.<br />
Another advantage is the fact that there is a lot you can configure with each FTP connection. I always set the standard local folder and remote folder and sometimes I also check the folder synchronization option. That way I don&#8217;t have to look for the right path after I logged in.</li>
<li><strong>Drag &amp; drop</strong> Something that wasn&#8217;t in it when I first used Filezilla. It&#8217;s handy to sometimes just throw something on your desktop.</li>
<li><strong>Centralized configuration</strong> This is something we are about to try at my work. You can set the path to alternate configuration files of FileZilla. This enables you to set configuration and FTP connections once for everybody. <a href="http://jonathanstegall.com/2008/05/26/sharing-a-filezilla-profile/">Jonathan Stegall has written an article on how to do that</a>.</li>
</ul>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2010/02/12/useful-filezilla-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Bright Lines on Twitter</title>
		<link>http://www.thebrightlines.com/2010/02/10/the-bright-lines-on-twitter/</link>
		<comments>http://www.thebrightlines.com/2010/02/10/the-bright-lines-on-twitter/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 20:55:26 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=450</guid>
		<description><![CDATA[Yes, I do Twitter too ;)]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>In case you didn&#8217;t see that blue bird next to the logo: The Bright Lines is also on Twitter. For me Twitter is a glorified RSS feed most of the time, but if you feel more comfortable with Twitter than following the RSS or visiting the blog: go right ahead: <a href="http://twitter.com/thebrightlines">twitter.com/thebrightlines</a>.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2010/02/10/the-bright-lines-on-twitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack: how to enable :first-child in IE6</title>
		<link>http://www.thebrightlines.com/2010/01/31/hack-how-to-enable-first-child-in-ie6/</link>
		<comments>http://www.thebrightlines.com/2010/01/31/hack-how-to-enable-first-child-in-ie6/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 00:43:14 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[first-child]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=433</guid>
		<description><![CDATA[How to implement the CSS selector :first-child in IE6 with a little help from Javascript.]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE:</strong> The pure Javascript routine is updated. It is now as fast as jQuery.</p>
<p>One of the things I most dearly miss in IE6 is the lack of support for the CSS selector <code>:first-child</code>. Some shortcomings in browsers can be patched with Javascript. And <code>:first-child</code> is one of them for sure. If you use a Javascript library like jQuery or Prototype it&#8217;s just one line of Javascript:</p>
<pre name="code" class="xhtml:nogutter">&lt;!--[if lte IE 6]&gt;
    &lt;script type="text/javascript"&gt;
        jQuery("*:first-child").addClass("firstChild")
    &lt;/script&gt;
&lt;![endif]--&gt;</pre>
<p>If you don&#8217;t like Javascript libraries you can use this pure js-code:</p>
<pre name="code" class="xhtml:nogutter">
var tags = document.getElementsByTagName("*"); var nTags = tags.length;
for (var i=0;i<nTags;i++) {
	if (tags[i].firstChild) {
		var el=tags[i].firstChild; while ((el.nodeType!=1)&#038;&#038;(el.nextSibling)) el=el.nextSibling;
		if (el.nodeType==1) el.className += " firstChild";
	}
}
</pre>
<p>Now every first child has the class <code>firstChild</code> that can be used in CSS selectors. You'll get something like this:</p>
<pre name="code" class="css:nogutter">
ul li:first-child,
ul li.firstChild {
    font-weight: bold;
}
</pre>
<h2>The speed</h2>
<p>Throwing around classes through the whole HTML tree is not without a price. Certainly not if you keep in mind that Javascript in IE6 is much slower than in Firefox or Safari. So I tested what would happen if the Javascript would run in the homepage of amazon.com, a page with almost a 1000 tags. Here are the results:</p>
<ul>
<li><strong>Adding firstChild with jQuery:</strong>
<ul>
<li>Amazon.com homepage (1000 tags): +- <strong>215</strong>milliseconds</li>
<li>Five times the Amazon.com homepage (5000 tags): +- <strong>742</strong> milliseconds</li>
</ul>
</li>
<li>Adding firstChild with plain Javascript:
<ul>
<li>Amazon.com homepage (1000 tags): +- <strong>129</strong> milliseconds</li>
<li>Five times the Amazon.com homepage (5000 tags): +- <strong>798</strong> milliseconds</li>
</ul>
</li>
</ul>
<p>As you can see there is not much performance difference. Especially when you keep in mind that every time I ran my test page I got different results. With a page of 5000 tags it could run as fast as 481 milliseconds or as slow as 931.</p>
<h2>Code crafting</h2>
<p>The first test I did with the pure Javascript code gave different results because of a inefficient routine. It ran about 1/3 slower in the 1000-tag page and 4 times slower in a 5000-tag page. After consulting a colleague I was able to find a more efficient routine that could match with jQuery.</p>
<h2>Conclusion</h2>
<p>I think a lag of about 200 milliseconds during a page load with a 1000 tags can be acceptable. Especially since a web page of 1000 tags is already a large website to my standards. Most websites I develop have about 300 tags a page at best. If you want to use this hack, I guess it's best to test the script in the largest pages of the website. The gain isn't that spectacular: just support for :first-child. But on the other side it could really make your life as a web developer just a bit easier.</p>
<p>You might be tempted to patch other shortcomings of IE6 with Javascript. Don't start coding, but consider the <a href="http://code.google.com/p/ie7-js/">IE7.js-script</a>. But I must say up front that I don't have good experiences with it. The script works good in small pages with small CSS files, but you'll experience serious performance issues with medium or large websites.</p>
<h2>Putting it in perspective</h2>
<p>Chrome 4, by the way needed just 37 milliseconds to run the Javascript in the 5000-tag page. That's 20 times faster then IE6.</p>


<p>Related posts:<ol><li><a href='http://www.thebrightlines.com/2010/01/04/alternative-for-nth-of-type-and-nth-child/' rel='bookmark' title='Permanent Link: Alternative for :nth-of-type() and :nth-child()'>Alternative for :nth-of-type() and :nth-child()</a></li>
<li><a href='http://www.thebrightlines.com/2009/10/28/for-the-sloppy-clickers/' rel='bookmark' title='Permanent Link: For the sloppy clickers'>For the sloppy clickers</a></li>
<li><a href='http://www.thebrightlines.com/2009/11/08/how-to-overcome-the-limits-of-css-in-internet-explorer-6/' rel='bookmark' title='Permanent Link: How to overcome the limits of CSS in Internet Explorer 6'>How to overcome the limits of CSS in Internet Explorer 6</a></li>
<li><a href='http://www.thebrightlines.com/2009/12/24/too-advanced-css-selectors/' rel='bookmark' title='Permanent Link: Too advanced CSS selectors'>Too advanced CSS selectors</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2010/01/31/hack-how-to-enable-first-child-in-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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/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/2010/01/24/test-popular-professional-fonts-as-webfont/feed/</wfw:commentRss>
		<slash:comments>0</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/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/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/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: Web fonts services list'>Web fonts services list</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>jQuery 1.4 performance charts</title>
		<link>http://www.thebrightlines.com/2010/01/15/jquery-1-4-performance-charts/</link>
		<comments>http://www.thebrightlines.com/2010/01/15/jquery-1-4-performance-charts/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 11:04:47 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=373</guid>
		<description><![CDATA[There's a new version of jQuery and once again it has become faster. Here are some performance comparisons between jQuery 1.3.2 and 1.4.]]></description>
			<content:encoded><![CDATA[<p>Yesterday jQuery 1.4 was released. They celebrate it with a special website: <a href="http://jquery14.com">jquery14.com</a>. There are a lot new features, but what I definitely like is the fact that performance improves with every release. Here below are a few performance charts from that website. Since the performance is broken down by browser you can see clearly that IE is lagging behind when it comes to Javascript performance.</p>
<p><img class="alignnone" title="The performance of .css() and .attr()" src="http://farm5.static.flickr.com/4026/4271691147_fd72853fa4.jpg" alt="" width="500" height="375" /></p>
<p><img class="alignnone" title="Performance of .css()" src="http://farm5.static.flickr.com/4055/4271691599_8a2f2e0624.jpg" alt="" width="500" height="375" /></p>
<p><img class="alignnone" title="Performance of DOM insertions" src="http://farm5.static.flickr.com/4029/4271691471_1240afd5af.jpg" alt="" width="500" height="375" /></p>
<p><img class="alignnone" title="Performance of .html()" src="http://farm5.static.flickr.com/4037/4271691747_0cce01a33d.jpg" alt="" width="500" height="375" /></p>
<p><img class="alignnone" title="Performance of .remove() and .empty()" src="http://farm3.static.flickr.com/2693/4271690883_3224979b9b.jpg" alt="" width="500" height="375" /></p>


<p>Related posts:<ol><li><a href='http://www.thebrightlines.com/2010/01/31/hack-how-to-enable-first-child-in-ie6/' rel='bookmark' title='Permanent Link: Hack: how to enable :first-child in IE6'>Hack: how to enable :first-child in IE6</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2010/01/15/jquery-1-4-performance-charts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Implementing font-face cross domain</title>
		<link>http://www.thebrightlines.com/2010/01/12/implementing-font-face-cross-domain/</link>
		<comments>http://www.thebrightlines.com/2010/01/12/implementing-font-face-cross-domain/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 21:13:59 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Webfonts]]></category>
		<category><![CDATA[cross-domain]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[EOT]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=363</guid>
		<description><![CDATA[Firefox is fussy about fonts residing on other domains.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m still in the middle of a redesign of my <a href="http://electricspace.blogspot.com/">personal weblog</a>, but I&#8217;m glad I got the font-face working. It was a hard nut to crack. The source of all the trouble was that Firefox would load font files from other domains. Although the domain restriction isn&#8217;t making things easier, it is sort of sensible.</p>
<p>Internet Explorer is the only browser that supports EOT, a font format that has digital rights management. That way you can make sure that your $200 font isn&#8217;t downloaded and used by everybody on the internet.</p>
<p>But like I said: IE is the only browser that can understand that file type. So Mozilla apparently implemented some sort of protection against font hijackers: It will only accept fonts from domains that specifically allow fonts to be downloaded. In case of Apache you have to add the following code below to the .htaccess file. I found it on <a href="http://openfontlibrary.org/wiki/Web_Font_linking_and_Cross-Origin_Resource_Sharing">Open Font Library</a>.</p>
<p><code>&lt;FilesMatch "\.(ttf|otf|eot)$"&gt;<br />
&lt;IfModule mod_headers.c&gt;<br />
Header set Access-Control-Allow-Origin "*"<br />
&lt;/IfModule&gt;<br />
&lt;/FilesMatch&gt;</code></p>
<p>This does not help you prevent people from stealing your font, but it will protect you from web developers who want to add the URL to the font on your domain in their font-face declaration. It&#8217;s not really a solution if you ask me. It seems more like a <em>gesture</em> to the creators of fonts.</p>
<p>It appears you could replace the asteriks with the domain of your website, but in my case (http://electricspace.blogspot.com/) did not do the job.</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/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/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>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2010/01/12/implementing-font-face-cross-domain/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Do you create your design in Photoshop or Notepad?</title>
		<link>http://www.thebrightlines.com/2010/01/07/do-you-create-your-design-in-photoshop-or-notepad/</link>
		<comments>http://www.thebrightlines.com/2010/01/07/do-you-create-your-design-in-photoshop-or-notepad/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 23:22:14 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=349</guid>
		<description><![CDATA[Do you show your client static pictures of the web design or do you code the mockup in HTML?]]></description>
			<content:encoded><![CDATA[<p>Recently Meagan Fisher published an <a href="http://24ways.org/2009/make-your-mockup-in-markup">article in which she discusses an alternative way to present a web design</a> to a client: Don&#8217;t emulate it in Photoshop, but build it in HTML and CSS. There are some advantages to it. A client can see more than just the design. He/she can also see:</p>
<ul>
<li>Behaviour of the fluid design</li>
<li>Interaction like hovers</li>
<li>How the website looks in different browsers</li>
</ul>
<p>On top of it, she also mentions some disadvantages of using Photoshop:</p>
<ul>
<li>It crashes, leaving you with hours of work lost.</li>
<li>Font rendering sucks</li>
</ul>
<h2>Photoshop is still king</h2>
<p>Although creating a website directly in HTML has it advantages, I think designing in Photoshop is better in most cases.</p>
<h3>Photoshop is faster</h3>
<p>Yes, a simple design could well be created directly in HTML. But not all designs are simple. Changing a background color is easy in CSS, but dragging columns around, changing or altering visuals and all kind of other alterations are quicker in Photoshop. Designs can change dramatically before it is finally approved by the client. Those changes are quicker done in Photoshop.</p>
<h3>Photoshop is static</h3>
<p>Being static isn&#8217;t not just a disadvantage. A static design is in fact helpful because it helps you focus on how a website should look like and not be bogged down by browser incompatibilities. This too gives you extra speed in designing.</p>
<h3>Photoshop is versatile</h3>
<p>Just because CSS can do stuff like round corners and text shadows in some browsers, doesn&#8217;t mean it has become a designing tool. Photoshop can do more than just that.  When designing in HTML I start to think too much in the constraints that both HTML and CSS have. In Photoshop I have much more design choices. Because of that I&#8217;m able to think more out of the box.</p>
<h2>Crashes and font rendering</h2>
<p>I was suprised that Photoshop crashes are mentioned as a major problem. I consider Photoshop as a very reliable product. The only problem is that saving can take a while, so not everyone saves regularly. If you don&#8217;t save regularly you&#8217;re asking for trouble. Even with stable products.</p>
<p>The issue with font rendering is indeed a problem, but that&#8217;s more an issue for designers. Clients don&#8217;t even know it&#8217;s an issue. They&#8217;ll only notice differences when they&#8217;re dramatic like with webfonts. Just compare this weblog between Apple Safari and IE on the PC: it&#8217;s hard <em>not</em> to see the difference.</p>
<h2>My preference</h2>
<p>Since I&#8217;m a web developer I ought to be tempted to skip Photoshop and start coding right away. But that&#8217;s not the case. I designed my blog twice last year. In both cases I chose to do the basic design in Photoshop. Only when I was happy with that basic design, I started developing and added extra elements on the fly. The current design of my blog could just as easy be built in HTML/CSS from the start, but I&#8217;m convinced it&#8217;s better to work in Photoshop first.</p>


<p>Related posts:<ol><li><a href='http://www.thebrightlines.com/2009/12/26/differences-between-photoshop-web-design-and-html-part-1-line-height/' rel='bookmark' title='Permanent Link: Differences between Photoshop web design and HTML. Part 1: line height'>Differences between Photoshop web design and HTML. Part 1: line height</a></li>
<li><a href='http://www.thebrightlines.com/2009/11/05/3-tips-for-making-css-sprites-in-photoshop/' rel='bookmark' title='Permanent Link: 3 Tips for making CSS sprites in Photoshop'>3 Tips for making CSS sprites in Photoshop</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2010/01/07/do-you-create-your-design-in-photoshop-or-notepad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
