<?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>Kenneth D. Nordahl</title>
	<atom:link href="http://articles.nordahl.me/feed" rel="self" type="application/rss+xml" />
	<link>http://articles.nordahl.me</link>
	<description>articles</description>
	<lastBuildDate>Thu, 22 Apr 2010 17:42:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS3</title>
		<link>http://articles.nordahl.me/css3</link>
		<comments>http://articles.nordahl.me/css3#comments</comments>
		<pubDate>Thu, 22 Apr 2010 16:40:43 +0000</pubDate>
		<dc:creator>KDN</dc:creator>
				<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[@font-face]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://articles.nordahl.me/?p=236</guid>
		<description><![CDATA[Introduction
This is the place where I try to collect all the information about CSS3 and try to create some practical examples you can use today.
If you already are here looking at CSS3 you might as well step over and read about HTML5 when you are done with this article.
Resources

HTML5 March 4th, 2010 working draft
Presentation with [...]]]></description>
			<content:encoded><![CDATA[<h1>Introduction</h1>
<p>This is the place where I try to collect all the information about CSS3 and try to create some practical examples you can use today.</p>
<p>If you already are here looking at CSS3 you might as well step over and read about <a href="http://articles.nordahl.me/html5">HTML5</a> when you are done with this article.</p>
<h1>Resources</h1>
<ul>
<li><a href="http://www.w3.org/Style/CSS/current-work">HTML5 March 4th, 2010 working draft</a></li>
<li><a href="http://apirocks.com/html5/html5.html">Presentation with HTML5/CSS3/New JS DOM</a></li>
<li><a href="http://www.findmebyip.com/litmus/">Browser support</a></li>
</ul>
<h1>Custom Fonts</h1>
<p>You can achieve custom fonts embedded into your websites if you have the proper license from the font creator. All you need to do is declare the font in CSS with @font-face. Read all about it in my <a href="http://articles.nordahl.me/font-face">@font-face article</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://articles.nordahl.me/css3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5</title>
		<link>http://articles.nordahl.me/html5</link>
		<comments>http://articles.nordahl.me/html5#comments</comments>
		<pubDate>Sun, 21 Mar 2010 05:39:54 +0000</pubDate>
		<dc:creator>KDN</dc:creator>
				<category><![CDATA[Webdevelopment]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[aside]]></category>
		<category><![CDATA[figcaption]]></category>
		<category><![CDATA[figure]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[section]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[w3c]]></category>

		<guid isPermaLink="false">http://articles.nordahl.me/?p=182</guid>
		<description><![CDATA[Discussion around the standard HTML5 template I currently use when I start on new projects. Is it semantic? Room for improvements? Comments?]]></description>
			<content:encoded><![CDATA[<h1>Introduction</h1>
<p>This is the place where I try to collect all the information about HTML5 and try to create some practical examples you can use today.</p>
<p>If you already are here looking at HTML5 you might as well step over and read about <a href="http://articles.nordahl.me/css3">CSS3</a> when you are done with this article.</p>
<h1>Resources</h1>
<ul>
<li><a href="http://www.w3.org/TR/2010/WD-html5-20100304/">HTML5 March 4th, 2010 working draft</a></li>
<li><a href="http://apirocks.com/html5/html5.html">Presentation with HTML5/CSS3/New JS DOM</a></li>
<li><a href="http://www.findmebyip.com/litmus/">Browser support</a></li>
</ul>
<h1>Examples</h1>
<h2>Blog</h2>
<pre class="brush: xml;">
&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;
	&lt;title&gt;Your Website&lt;/title&gt;
	&lt;link rel=&quot;alternate&quot; href=&quot;/feed/&quot; type=&quot;application/atom+xml&quot;&gt;
	&lt;link rel=&quot;stylesheet&quot; href=&quot;/css/fluidgrid_10.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt; &lt;!-- Grid system that scale the site from iPhone width to 1000px width --&gt;
	&lt;link rel=&quot;stylesheet&quot; href=&quot;/css/screen.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;section&gt;
	&lt;header class=&quot;grid_10 group&quot;&gt;
		&lt;h1&gt;Company name&lt;/h1&gt;
		&lt;h2&gt;A company slogan&lt;/h2&gt;
		&lt;nav&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Blog&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Projects&lt;/a&gt;
					&lt;ul&gt;
						&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;For web&lt;/a&gt;
							&lt;ul&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item1&lt;/a&gt;&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item2&lt;/a&gt;&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item3&lt;/a&gt;&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item4&lt;/a&gt;&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item5&lt;/a&gt;&lt;/li&gt;
							&lt;/ul&gt;
						&lt;/li&gt;
						&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;For Mac&lt;/a&gt;
							&lt;ul&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item1&lt;/a&gt;&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item2&lt;/a&gt;&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item3&lt;/a&gt;&lt;/li&gt;
							&lt;/ul&gt;
						&lt;/li&gt;
						&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;For iPhone&lt;/a&gt;
							&lt;ul&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item1&lt;/a&gt;&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item2&lt;/a&gt;&lt;/li&gt;
							&lt;/ul&gt;
						&lt;/li&gt;
						&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;For iPad&lt;/a&gt;
							&lt;ul&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item1&lt;/a&gt;&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item2&lt;/a&gt;&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item3&lt;/a&gt;&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item4&lt;/a&gt;&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item5&lt;/a&gt;&lt;/li&gt;
							&lt;/ul&gt;
						&lt;/li&gt;
					&lt;/ul&gt;
				&lt;/li&gt;
				&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Portfolio&lt;/a&gt;
					&lt;ul&gt;
						&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Web design&lt;/a&gt;&lt;/li&gt;
						&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Software design&lt;/a&gt;&lt;/li&gt;
						&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Mobile design&lt;/a&gt;&lt;/li&gt;
					&lt;/ul&gt;
				&lt;/li&gt;
				&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;About us&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/nav&gt;
	&lt;/header&gt;
	&lt;section id=&quot;featured&quot; class=&quot;grid_10 group&quot;&gt;
		&lt;figure class=&quot;grid_7 alpha&quot;&gt;
			&lt;img src=&quot;url/to/img.jpg&quot; alt=&quot;Large featured image&quot; /&gt; &lt;!-- swaps with the images in the 2nd figure --&gt;
			&lt;figcaption&gt;About this image&lt;/figcaption&gt;
		&lt;/figure&gt;
		&lt;figure class=&quot;grid_3 omega&quot;&gt; &lt;!-- Constrained with CSS selection to only show 3, swaps with first figure --&gt;
			&lt;img src=&quot;url/to/small-img.jpg&quot; alt=&quot;Large small image&quot; /&gt; &lt;!-- If you want to, write a jQuery script that add a caption from the alt text --&gt;
			&lt;img src=&quot;url/to/small-img.jpg&quot; alt=&quot;Large small image&quot; /&gt;
			&lt;img src=&quot;url/to/small-img.jpg&quot; alt=&quot;Large small image&quot; /&gt;
			&lt;img src=&quot;url/to/small-img.jpg&quot; alt=&quot;Large small image&quot; /&gt;
		&lt;/figure&gt;
	&lt;/section&gt;
	&lt;section class=&quot;grid_7&quot;&gt;
		&lt;article&gt;
			&lt;header&gt;
				&lt;h1&gt;Article title&lt;/h1&gt;
				&lt;p&gt;Posted on &lt;time datetime=&quot;2009-09-04T16:31:24+02:00&quot;&gt;September 4th 2009&lt;/time&gt; by &lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Writer&lt;/a&gt;&lt;/p&gt;
			&lt;/header&gt;
			&lt;p&gt;Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.&lt;/p&gt;
			&lt;figure&gt;
				&lt;video controls&gt;
					&lt;source src=&quot;url/to/video.mp4&quot; type='video/mp4; codecs=&quot;avc1.42E01E, mp4a.40.2&quot;'&gt;
					&lt;source src=&quot;url/to/video.ogg&quot; type='video/ogg; codecs=&quot;theora, vorbis&quot;'&gt;
					If you read this text I recommend you to install a better browser like Safari, Chrome or Firefox.
					&lt;!-- Fallback to flash can be added here with the usage of the H264 .mp4 file as source--&gt;
				&lt;/video&gt;
				&lt;figcaption&gt;Video by XXXX, YYYY and ZZZZ&lt;/figcaption&gt;
			&lt;/figure&gt;
			&lt;footer&gt;
				&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;6 Comments&lt;/a&gt;
			&lt;/footer&gt;
		&lt;/article&gt;
		&lt;article&gt;
			&lt;header&gt;
				&lt;h1&gt;Article title&lt;/h1&gt;
				&lt;p&gt;&lt;p&gt;Posted on &lt;time datetime=&quot;2009-09-04T16:31:24+02:00&quot;&gt;September 4th 2009&lt;/time&gt; by &lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Writer&lt;/a&gt;&lt;/p&gt;
			&lt;/header&gt;
			&lt;p&gt;Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.&lt;/p&gt;
			&lt;figure&gt;
				&lt;img src=&quot;url/to/img.jpg&quot; alt=&quot;landscape picture of some hills&quot; /&gt;
				&lt;figcaption&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;&quot;Beautiful hills landscape&quot;&lt;/a&gt; from Flickr user &lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;EEEEE&lt;/a&gt;, protected by a &lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Creative Commons BY-SA-NC 3.0&lt;/a&gt; license.&lt;/figcaption&gt;
			&lt;/figure&gt;
			&lt;footer&gt;
				&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;8 Comments&lt;/a&gt;
			&lt;/footer&gt;
		&lt;/article&gt;
		&lt;article&gt;
			&lt;header&gt;
				&lt;h1&gt;Article title&lt;/h1&gt;
				&lt;p&gt;&lt;p&gt;Posted on &lt;time datetime=&quot;2009-09-04T16:31:24+02:00&quot;&gt;September 4th 2009&lt;/time&gt; by &lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Writer&lt;/a&gt;&lt;/p&gt;
			&lt;/header&gt;
			&lt;p&gt;Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.&lt;/p&gt;
			&lt;footer&gt;
				&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;11 Comments&lt;/a&gt;
			&lt;/footer&gt;
		&lt;/article&gt;
		&lt;article&gt;
			&lt;header&gt;
				&lt;h1&gt;Article title&lt;/h1&gt;
				&lt;p&gt;&lt;p&gt;Posted on &lt;time datetime=&quot;2009-09-04T16:31:24+02:00&quot;&gt;September 4th 2009&lt;/time&gt; by &lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Writer&lt;/a&gt;&lt;/p&gt;
			&lt;/header&gt;
			&lt;p&gt;Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.&lt;/p&gt;
			&lt;footer&gt;
				&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;2 Comments&lt;/a&gt;
			&lt;/footer&gt;
		&lt;/article&gt;
		&lt;article&gt;
			&lt;header&gt;
				&lt;h1&gt;Article title&lt;/h1&gt;
				&lt;p&gt;&lt;p&gt;Posted on &lt;time datetime=&quot;2009-09-04T16:31:24+02:00&quot;&gt;September 4th 2009&lt;/time&gt; by &lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Writer&lt;/a&gt;&lt;/p&gt;
			&lt;/header&gt;
			&lt;p&gt;Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.&lt;/p&gt;
			&lt;footer&gt;
				&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;4 Comments&lt;/a&gt;
			&lt;/footer&gt;
		&lt;/article&gt;
	&lt;/section&gt;
	&lt;aside class=&quot;grid_3&quot;&gt;
		&lt;h1&gt;About section&lt;/h1&gt;
		&lt;p&gt;Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.&lt;/p&gt;
	&lt;/aside&gt;
	&lt;footer class=&quot;grid_10 group&quot;&gt;
		&lt;section class=&quot;sitemap&quot;&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Sitemap&lt;/a&gt;
					&lt;ul&gt;
						&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
						&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Blog&lt;/a&gt;&lt;/li&gt;
						&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Projects&lt;/a&gt;
							&lt;ul&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;For web&lt;/a&gt;
									&lt;ul&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item1&lt;/a&gt;&lt;/li&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item2&lt;/a&gt;&lt;/li&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item3&lt;/a&gt;&lt;/li&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item4&lt;/a&gt;&lt;/li&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item5&lt;/a&gt;&lt;/li&gt;
									&lt;/ul&gt;
								&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;For Mac&lt;/a&gt;
									&lt;ul&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item1&lt;/a&gt;&lt;/li&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item2&lt;/a&gt;&lt;/li&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item3&lt;/a&gt;&lt;/li&gt;
									&lt;/ul&gt;
								&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;For iPhone&lt;/a&gt;
									&lt;ul&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item1&lt;/a&gt;&lt;/li&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item2&lt;/a&gt;&lt;/li&gt;
									&lt;/ul&gt;
								&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;For iPad&lt;/a&gt;
									&lt;ul&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item1&lt;/a&gt;&lt;/li&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item2&lt;/a&gt;&lt;/li&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item3&lt;/a&gt;&lt;/li&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item4&lt;/a&gt;&lt;/li&gt;
										&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;item5&lt;/a&gt;&lt;/li&gt;
									&lt;/ul&gt;
								&lt;/li&gt;
							&lt;/ul&gt;
						&lt;/li&gt;
						&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Portfolio&lt;/a&gt;
							&lt;ul&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Web design&lt;/a&gt;&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Software design&lt;/a&gt;&lt;/li&gt;
								&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Mobile design&lt;/a&gt;&lt;/li&gt;
							&lt;/ul&gt;
						&lt;/li&gt;
						&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;About us&lt;/a&gt;&lt;/li&gt;
						&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
					&lt;/ul&gt;
				&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/section&gt;
		&lt;section class=&quot;subscription&quot;&gt;
			&lt;h1&gt;Subscription options&lt;/h1&gt;
			&lt;ul&gt;
				&lt;li&gt;RSS&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/section&gt;
		&lt;section class=&quot;copyright&quot;&gt;
			&lt;p&gt;Copyright 2010 || Design by: &lt;a href=&quot;#&quot; title=&quot;#&quot;&gt;Your name&lt;/a&gt;&lt;/p&gt;
		&lt;/section&gt;
	&lt;/footer&gt;
	&lt;/section&gt;
	&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&quot;&gt;&lt;/script&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
		/* Your jQuery scripts goes here */
	&lt;/script&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
		/* Your Google analystic goes here */
	&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Discussion around the standard HTML5 template I currently use when I start on new projects. It is based on the <a href="http://www.w3.org/TR/2010/WD-html5-20100304/">HTML5 March 4th, 2010 working draft</a>. Is it semantic? Room for improvements? <a href="#comments">Comments</a>?</p>
]]></content:encoded>
			<wfw:commentRss>http://articles.nordahl.me/html5/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>San Francisco</title>
		<link>http://articles.nordahl.me/san-francisco</link>
		<comments>http://articles.nordahl.me/san-francisco#comments</comments>
		<pubDate>Wed, 10 Mar 2010 10:35:46 +0000</pubDate>
		<dc:creator>KDN</dc:creator>
				<category><![CDATA[Travel]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[chine town]]></category>
		<category><![CDATA[Electronic Arts]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[iceland air]]></category>
		<category><![CDATA[san francisco]]></category>
		<category><![CDATA[virgin america]]></category>
		<category><![CDATA[virgin australia]]></category>

		<guid isPermaLink="false">http://articles.nordahl.me/?p=166</guid>
		<description><![CDATA[My notes and some pictures after one week in San Francisco.]]></description>
			<content:encoded><![CDATA[<p><img src="http://articles.nordahl.me/wp-content/uploads/2010/03/san_francisco-heart.jpg" alt="&lt;3 San Francisco" title="san_francisco-heart" /><br />
<a href="http://translate.google.no/translate?u=http%3A%2F%2Farticles.nordahl.me%2Fsan-francisco&#038;sl=en&#038;tl=no&#038;hl=&#038;ie=UTF-8">Norwegian translation / Les denne artikkelen på norsk</a></p>
<h1>Monday</h1>
<p>OSL Oslo Gardermoen &rarr; KEF Keflavik International Airport &rarr; SFO San Francisco International Airport</p>
<h2>Quick Facts:</h2>
<ul>
<li>Distance &#8211; 8700 km</li>
<li>Travel Duration &#8211; 1 day and 11 hours</li>
<li>CO2 pollution &#8211; 930 kg</li>
</ul>
<p>Not going to bore you down with the boring flights but I just want to mention that Keflavik is the worst airport I&#8217;ve ever been too. A long way to walk between gates, insane security (sneaky guards touching everyone from top to bottom), terrible and expensive food and not enough staff to handle the boarding.</p>
<p>I arrived pretty jetlagged in the SOMA district in San Francisco after a 30 min cab drive from the airport. I meet up with <a href="http://twitter.com/bearroast">Bjørn Rostad</a> and we went back to his place were I would be staying during my San Francisco visit. The clock was around 5pm local time and Bjørn suggested that we should take a little sightseeing trip even tho it started to get dark outside.
</p>
<p>When we left his appartment there was some light rain. After a quick tour around the downtown area we ended at a bar for a couple of pints of beer.
</p>
<h1>Tuesday</h1>
<p>
Tourist sightseeing day. My first full day in San Francisco. The now experienced tourist guide Bjørn Rostad guided me through some of the must see areas of San Fran. We started out walking by the Yerba Buena Center and Moscone West center, then up through Markers Street to Union Square.
</p>
<p>Next up was China town with all their little quirky stores. &#8220;Would you like that turtle butchered or do you want to do it yourself?&#8221; Everything in that store was more or less alive.
</p>
<p>After a couple of blocks with china town we entered into the Italian district with all their small cafes and pastry shops. On the border between china town and Italian district I found my favorite church so far, Saints Peter and Paul Church.
</p>
<p><img src="http://articles.nordahl.me/wp-content/uploads/2010/04/saints-peter-and-paul-church.jpg" alt="" title="saints-peter-and-paul-church" /><br />
<cite>You find the church on <a href="http://maps.google.com/maps?f=q&#038;source=s_q&#038;hl=en&#038;geocode=&#038;q=666+Filbert+st,+San+Francisco&#038;sll=37.0625,-95.677068&#038;sspn=76.482111,97.998047&#038;ie=UTF8&#038;hq=&#038;hnear=666+Filbert+St,+San+Francisco,+California+94133&#038;t=h&#038;z=17&#038;iwloc=A">666 Filbert st, San Francisco</a>.</cite></p>
<p>Next up on the tour was the Fishers Wharf. This is as far north you can get in San Francisco. We stopped at a well rated (yelp) seafood restaurant to have our lunch/dinner. I ordered some grilled seabass thingy and Bjørn had some shrimp stuff. The food we got was pretty bad and we ended up leaving the restaurant without tipping them one single cent.
</p>
<h1>Wednesday</h1>
<p>This was the Apple event day. We put our alarmclocks on for 10AM to be up and ready when Steve entered the stage only a couple of blocks away at 11AM. It was the announcement of the iPad and me and Bjørn were pretty disappointed at the time about the capabilities of the tablet.
</p>
<p>Later that day me and Bjørn met up with Morten Hauge another fellow student from the HIOF days who have now reached out to the corners of the world to seek knowledge as well.
</p>
<p>Our plans for the day was to take a trip to the hippy area of Haight Ashbury and maybe check out some museums. We ended up skipping what I would call overpriced museums. After a walk around the Ashbury area and checking out the record store we walked over to <a href="http://maps.google.com/maps?f=q&#038;source=s_q&#038;hl=en&#038;geocode=&#038;q=Alamo+Square,+San+Francisco,+CA,+USA&#038;sll=37.786996,-122.418165&#038;sspn=0.038596,0.047851&#038;ie=UTF8&#038;hq=&#038;hnear=Alamo+Square,+San+Francisco,+California&#038;ll=37.778347,-122.434001&#038;spn=0.038601,0.047851&#038;t=h&#038;z=15">Alamo Square</a> to take some panorama pictures.
</p>
<p><img src="http://articles.nordahl.me/wp-content/uploads/2010/04/san-fran-panorama-1.jpg" alt="" title="San Francisco - Alamo Square" /><br />
<cite>Copyright 2010 &#8211; <a href="http://nordahl.me">Kenneth D. Nordahl</a></cite></p>
<h1>Thursday</h1>
<p>Geek sightseeing day. The plan was to visit <a href="http://www.stanford.edu/">Stanford University</a>, <a href="http://ea.com">Electronic Arts HQ</a>, <a href="http://apple.com">Apple HQ</a> and <a href="http://google.com">Google</a>.
</p>
<p>On our way to the train we however walked by the AT&amp;T Park, the home of San Francisco Giants.
</p>
<p>After waiting about 30 minutes we got on the southbound Caltrain. Bjørn was super stoked about the train ride since he got to sit on the second floor. We stopped at a station called San Carlos where a friend of Bjørn picked us up to show us around the Electronic Arts HQ. I don&#8217;t have any pictures since we where not allowed to take any, but that is one great working environment.
</p>
<p>We had our lunch at a cafe place right next to the EA campus. Awesome sandwiches!
</p>
<p>Next up was a stop at one of the best universities in the world, Stanford (16 on the list in 2009). Nothing more to say that thats the place to study for a business/engineering/medicine or science degree if you are loaded with cash.
</p>
<p>We got back on to Caltrain and to our next stop. At this time we knew we would not have time to stop by both the Googleplex and the little campus in Cupertino, so we decided to skip the Googleplex since we probably only would be able to get into the lobby. We got off at the Sunnyvale train station and got on a bus down to <a href="http://maps.google.com/maps?f=q&#038;source=s_q&#038;hl=en&#038;q=1+Infinite+Loop,+Cupertino,+Santa+Clara,+California+95014&#038;sll=37.0625,-95.677068&#038;sspn=76.482111,97.998047&#038;ie=UTF8&#038;cd=1&#038;geocode=FcajOQIdYvO5-A&#038;split=0&#038;hq=&#038;hnear=1+Infinite+Loop,+Cupertino,+Santa+Clara,+California+95014&#038;t=h&#038;z=17">One Infinite Loop</a>.
</p>
<p><img src="http://articles.nordahl.me/wp-content/uploads/2010/04/apple-hq-bjorn-rostad.jpg" alt="" title="apple-hq-bjorn-rostad" /><br />
<img src="http://articles.nordahl.me/wp-content/uploads/2010/04/apple-hq-kenneth-nordahl.jpg" alt="" title="apple-hq-kenneth-nordahl" /><br />
<cite>Bjørn and me at the Infinite Loop sign.</cite><br />
<img src="http://articles.nordahl.me/wp-content/uploads/2010/04/apple-hq-company-store.jpg" alt="" title="apple-hq-company-store" /><br />
<cite>Company Store (spent way to much money here :/ )</cite><br />
<img src="http://articles.nordahl.me/wp-content/uploads/2010/04/apple-hq-star-trek.jpg" alt="" title="apple-hq-star-trek" /><br />
<cite>So thats where the magic comes from?</cite></p>
<p>We ended up in San Jose after a 40 min bus tour from Cupertino and then a 2 hour train ride back to San Francisco. On the train Bjørn spotted a guy playing with some of the Adobe CS5 programs (no picture of that :/)</p>
<p>We had our dinner at a wonderful Pakistanian and Indian restaurant called <a href="http://www.chutneysf.com/">Chutney</a>. If you ever visit San Francisco you have to stop by this restaurant.</p>
<p><img src="http://articles.nordahl.me/wp-content/uploads/2010/03/sf-food-chutney.jpg" alt="" title="sf-food-chutney" /><br />
<cite>Some of the food me and Bjørn ordered.</cite></p>
<h1>Friday</h1>
<p>Golden Gate and photography day. I took a tour bus to the other side of the golden gate bridge to to take some pictures.
</p>
<p><img src="http://articles.nordahl.me/wp-content/uploads/2010/04/sf-golden-gate-bridge.jpg" alt="" title="sf-golden-gate-bridge" /><br />
<img src="http://articles.nordahl.me/wp-content/uploads/2010/04/sf-panorama-downtown.jpg" alt="" title="sf-panorama-downtown" /><br />
<img src="http://articles.nordahl.me/wp-content/uploads/2010/04/sf-panorama-golden-gate-bridge.jpg" alt="" title="sf-panorama-golden-gate-bridge" /></p>
<p>Later that evening Bjørn dragged my to the other side of downtown to eat at this &#8220;amazing burger joint&#8221;, and omg I agree with him after tasting the burger. The place is called <a href="http://www.yelp.com/biz/pearls-deluxe-burgers-san-francisco">Pearl&#8217;s Deluxe Burgers</a> and it is the best burgers I&#8217;ve ever eaten. They are pretty unhealthy if you eat them every day since they are pretty fat, but they are damn tasty.</p>
<p><img src="http://articles.nordahl.me/wp-content/uploads/2010/03/sf-food-pearls-phat-burgers.jpg" alt="" title="sf-food-pearls-phat-burgers" /><br />
<cite>I had a Spicy Sly Burger.</cite></p>
<h1>Saturday</h1>
<p>I was suppose to go to Alcatraz this day but the queue to get a ticket was way to long for me to bother. I tried to find the butcher place in China town to get some pictures of it but stopped searching after like 15 minutes when the rain started pouring down. Chill night before my long flight to the country down under.</p>
<h1>Sunday</h1>
<p>It was time to point my nose towards summer in the southern hemisphere. I left for the <a href="http://www.bart.gov/">BART</a> railway system around 11AM to get to SFO.</p>
<p>I were flying first class for the first time of my life between San Francisco and Los Angeles International airport with <a href="http://www.virginamerica.com">Virgin America</a>. Not exactly a huge experience, yes you can board the flight first and getting stared at by all the other passengers as they walk through first class, yay! You get some extra legroom and a free bag of snacks, exclusive! The price difference between flying regular class + one extra bag or first class was about $10 or so, and that was the only reason for upgrading.</p>
<p>SFO San Francisco International Airport &rarr; LAX Los Angeles International Airport &rarr; SYD Kingsford Smith Airport &rarr; BNE Brisbane Airport
</p>
<h2>Quick Facts:</h2>
<ul>
<li>Distance &#8211; 13370 km</li>
<li>Travel Duration &#8211; 1 day and 6 hours</li>
<li>Pollution &#8211; 1480 kg</li>
</ul>
<p>I were introduced to a wonderful documentary <a href="http://www.imdb.com/title/tt1313104/">The Cove</a> on the flight from LAX to SYD. It is about the dolphin slaughtering in Japan, the movie won a <a href="http://en.wikipedia.org/wiki/Academy_Award">Oscar</a> for the best documentary of 2009.</p>
<h1>Tuesday</h1>
<p>Arrived in Brisbane around 10:00 AM tuesday morning. Not that jetlagged since it was only 5 hour difference + 1 day ahead.</p>
]]></content:encoded>
			<wfw:commentRss>http://articles.nordahl.me/san-francisco/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Custom fonts on the web with @font-face</title>
		<link>http://articles.nordahl.me/font-face</link>
		<comments>http://articles.nordahl.me/font-face#comments</comments>
		<pubDate>Thu, 31 Dec 2009 23:01:51 +0000</pubDate>
		<dc:creator>KDN</dc:creator>
				<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[@font-face]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css2.1]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[face]]></category>
		<category><![CDATA[font]]></category>

		<guid isPermaLink="false">http://articles.nordahl.me/?p=8</guid>
		<description><![CDATA[Say hello to @font-face. It is a css rule that lets users temporary install and display custom fonts when the user visit your website. I am going to go through the different browser implementations and how the browsers display the custom fonts.]]></description>
			<content:encoded><![CDATA[<h2>Table of Contents</h2>
<div id="toc">
<ol>
<li><a href="#licensing">Licensing</a></li>
<li><a href="#fontfileformats">Fontfileformats</a></li>
<li><a href="#browsercompatibility">Browser compatibility</a></li>
<li><a href="#convertyourfont">Convert your font</a></li>
<li><a href="#webkit">Webkit &#8211; Safari and Chrome</a></li>
<li><a href="#internetexplorer">Internet Explorer</a></li>
<li><a href="#firefox">Firefox</a></li>
<li><a href="#opera">Opera</a></li>
<li><a href="#allbrowsers">Declare custom fonts for all browsers</a></li>
<li><a href="#fontsdisplayed">How custom fonts get displayed</a>
<ul>
<li><a href="#windows">Windows</a></li>
<li><a href="#linux">Linux</a></li>
<li><a href="#mac">Mac</a></li>
</ul>
</li>
<li><a href="#loadingfonts">Optimize the loading of fonts</a></li>
<li><a href="#fonts-used">Fonts Used in this article</a></li>
<li><a href="#foundries">Commercial foundries that support @font-face</a></li>
<li><a href="#comments">Comments</a></li>
</ol>
</div>
<h2>Introduction</h2>
<p>Expanding the font repertoire a webdesigner could use on websites has been a dream for a few years now. We have all based our designs upon fonts like Helvetica, Arial, Verdana or (even) Times New Roman. Designers have been using images for logos, tags or even headings for a long time to be able to get custom typography into their design. During the last couple of years Flash and Javascript technics has appeared to solve the custom font problems, but those technics require that the user has flash installed or javascript turned on in their browser. </p>
<p class="fontin-bold">Say hello to @font-face. It is a css rule that lets users temporary install and display custom fonts when the user visit your website. I am going to go through the different browser implementations and how the browsers display the custom fonts.</p>
<h2 id="licensing">Licensing</h2>
<p>By adding custom fonts to your site you might run into truble if you don&#8217;t sort out what you are allowed to do from the font creator. Some font designers have restrictions soo you would have to buy a custome license for the web, some are open source or have CC licences and some arn&#8217;t allowed on the web at all. Allmost every font you download/buy comes with a read me file that declares what license the font have. All the fonts used on this page is ready for the web and you can check them out in the <a href="#font-used">fonts used</a> section below. I&#8217;ve included a link section that points out some web ready font foundries.</p>
<h2 id="fontfileformats">Fontfileformats</h2>
<div class="grid_3 alpha">
<ul>
<li>TrueType(.ttf)</li>
<li>OpenType(.otf)</li>
<li>Embedded OpenType(.eot)</li>
<li>Scalable Vector Graphics(.svg)</li>
<li>TrueDoc(.pfr)</li>
<li>Web Open Font Format(.woff)</li>
</ul>
</div>
<div class="grid_7 omega padding-left left-border">
<p>During 2009 more and more developers started using @font-face to implement custom fonts in their webdesigns. There is however currently no standard on what file format designers should use. Different browsers currently support different file formats. Microsoft has released the .eot file format for approval by the W3C as a web font standard. The open source community with support from the Mozilla foundation has submitted the .woff format for approval by the W3C as the open source alternative to .eot. Both formats are currently processed by the W3C and I would reckon we would see some standardization for a web font format during 2010.</p>
</div>
<h2 id="browsercompatibility">Browser compatibility</h2>
<table class="wikitable" border="1">
<tr>
<th></th>
<th><a href="/wiki/Internet_Explorer" title="Internet Explorer">Internet Explorer</a></th>
<th><a href="/wiki/Mozilla" title="Mozilla">Mozilla</a> family</th>
<th><a href="/wiki/Safari_(web_browser)" title="Safari (web browser)">Safari</a></th>
<th><a href="/wiki/Google_Chrome" title="Google Chrome">Chrome</a></th>
<th><a href="/wiki/Opera_(web_browser)" title="Opera (web browser)">Opera</a></th>
<th><a href="/wiki/Netscape_Communicator" title="Netscape Communicator">Netscape</a></th>
</tr>
<tr>
<th><a href="/wiki/TrueType" title="TrueType">.ttf</a></th>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#90ff90; color:black;" class="table-yes"><a href="/wiki/Mozilla_Firefox_3.5" title="Mozilla Firefox 3.5">3.5</a></td>
<td style="background:#90ff90; color:black;" class="table-yes">3.1</td>
<td style="background:#90ff90; color:black;" class="table-yes">2.0*</td>
<td style="background:#90ff90; color:black;" class="table-yes"><a href="/wiki/Opera_10" title="Opera 10">10.0</a><sup id="cite_ref-Opera_10_and_presto_2.2_a_first_look_13-1" class="reference"><a href="#cite_note-Opera_10_and_presto_2.2_a_first_look-13"></a></sup></td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
</tr>
<tr>
<th><a href="/wiki/OpenType" title="OpenType">.otf</a></th>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#90ff90; color:black;" class="table-yes">3.5</td>
<td style="background:#90ff90; color:black;" class="table-yes">3.1</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#90ff90; color:black;" class="table-yes">10</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
</tr>
<tr>
<th><a href="/wiki/Embedded_OpenType" title="Embedded OpenType">.eot</a></th>
<td style="background:#90ff90; color:black;" class="table-yes"><a href="/wiki/Internet_Explorer_4" title="Internet Explorer 4">4</a></td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
</tr>
<tr>
<th><a href="/wiki/Scalable_Vector_Graphics" title="Scalable Vector Graphics">.svg</a></th>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#90ff90; color:black;" class="table-yes">3.1</td>
<td style="background:#90ff90; color:black;" class="table-yes">0.3</td>
<td style="background:#90ff90; color:black;" class="table-yes">10.0<sup id="cite_ref-Opera_10_and_presto_2.2_a_first_look_13-2" class="reference"><a href="#cite_note-Opera_10_and_presto_2.2_a_first_look-13"></a></sup></td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
</tr>
<tr>
<th><a href="/wiki/TrueDoc" title="TrueDoc">.pfr</a></th>
<td style="background:#90ff90; color:black;" class="table-yes">4 (with plugin)</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#90ff90; color:black;" class="table-yes">4-6</td>
</tr>
<tr>
<th><a href="/wiki/Web_Open_Font_Format" title="Web Open Font Format" class="mw-redirect">.woff</a></th>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#90ff90; color:black;" class="table-yes">3.6</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
<td style="background:#ff9090; color:black;" class="table-no">No</td>
</tr>
</table>
<p>(*) Disabled by default. Can be activated via a command line switch</p>
<p><cite>Table is licensed with <a href="http://creativecommons.org/licenses/by-sa/3.0/">Creatice Commons 3.0 by-sa</a> from author <a href="http://en.wikipedia.org/wiki/@font-face#Browser_support">Wikipedia</a></cite></p>
<h3 id="convertyourfont">Convert your font</h3>
<div class="grid_5 alpha">
<p>There is a couple of onlines services out there that you can use to convert your font. My favorite by far is <a href="http://onlinefontconverter.com">onlinefontconverter.com</a>. You just add your fonts as an attachment to the mail and write in the subject field the kind of format you want it converted into.</p>
<ol>
<li>Open your mail program and add convert@onlinefontconverter.com to the &#8220;To&#8221; field.</li>
<li>Add the format you want it converted to as the subject</li>
<li>Attach the font files you want converted</li>
</ol>
<p>You of course have to own the appropriate license for the fonts you want converted.</p>
</div>
<div class="grid_5 omega padding-left left-border">
<p>The file size of the svg file you get from the onlinefontconverter.com is rather large, so I recommend that use a Java toolkit called <a href="http://xmlgraphics.apache.org/batik/tools/font-converter.html">Batik</a>. If you are on a Mac you already have Java installed and only need to <a href="http://xmlgraphics.apache.org/batik/download.cgi">download</a> Batik. If you are on a windows machine you need to <a href="http://java.com/">download and setup Java</a> first.</p>
<p>The next thing you need to do is open a terminal or command line and run the following:</p>
<pre class="brush: xml;">
java -jar /path-to-where-the-script-is-stored/batik-1.7/batik-ttf2svg.jar FontName.ttf -o FontName.svg -id font
</pre>
<p>The Batik toolkit only support TrueType as input format.</p>
</div>
<h2 id="webkit">Webkit &#8211; Safari and Chrome</h2>
<p>Both Safari and Chrome use the webkit to render webpages. Custom fonts have been supported since Safari 3.1 and Chrome 3.0.</p>
<h3>CSS code</h3>
<pre class="brush: css;">
/*
===========================================
Diavlo is a font by Jos Buivenga (exljbris) -&gt; www.exljbris.nl
===========================================
*/
@font-face { font-family: &quot;DiavloLight&quot;; src: url(diavlo_light.svg#diavlo_light) format(&quot;svg&quot;); }
</pre>
<h2 id="internetexplorer">Internet Explorer</h2>
<p>Custom fonts with @font-face in Internet Explorer have been around since IE4. There is however a twist to get your fonts up and running on the most common webbrowser. IE only support Embedded OpenType(.eot) or DocType(.ptr) file format. The Internet Explorer team has however said that they look into the <a href="http://twitter.com/typekit/status/5266457844">Web Open Font Format(.woff) format for version 9</a> of their browser.</p>
<h3>CSS code</h3>
<pre class="brush: css;">
/*
===========================================
Diavlo is a font by Jos Buivenga (exljbris) -&gt; www.exljbris.nl
===========================================
*/
@font-face { font-family: &quot;DiavloLight&quot;; src: url(diavlo_light.eot);  }
</pre>
<h2 id="firefox">Firefox</h2>
<p>Firefox has had support for @font-face since version 3.5 with the .otf and .ttf formats. Version 3.6 of firefox adds the support of the .woff format.</p>
<h3>CSS code</h3>
<pre class="brush: css;">
@font-face { font-family: &quot;ChunkFive&quot;; src: url('Chunkfive.otf') format('opentype'), url('Chunkfive.woff') format('woff');}
</pre>
<h2 id="opera">Opera</h2>
<p>Opera has supported Scalable Vector Graphic (.svg) fonts since version 9 of their browser. They added support for both Truetype(.ttf) and OpenType(.otf) in version 10 of the Opera browser.</p>
<h3>CSS code</h3>
<pre class="brush: css;">
/*
===========================================
Diavlo is a font by Jos Buivenga (exljbris) -&amp;gt; www.exljbris.nl
===========================================
*/
@font-face { font-family: &quot;DiavloLight&quot;; src: url(diavlo_light.otf) format(&quot;opentype&quot;); }
</pre>
<h2 class="jellyka" id="allbrowsers">How to declare custom fonts for all browsers</h2>
<p class="diavlo-bold">If you want custom fonts displayed in Internet Explorer, Firefox, Chrome, Safari or Opera you would want to declare the css like this.</p>
<pre class="brush: css;">
@font-face {
	font-family: 'ChunkFive';
	src: url('Chunkfive.eot');
	src: local('ChunkFive'), local('ChunkFive'), url('Chunkfive.woff') format('woff'), url('Chunkfive.otf') format('opentype'), url('Chunkfive.svg#ChunkFive') format('svg');
}
</pre>
<p class="diavlo-bold">That is .eot format for Internet Explorer, .woff format for Firefox 3.6 + other browsers when they get support for it and the .otf and .svg format for Safari/Chrome/Safari on iPhone/Android browser.</p>
<h2 id="fontsdisplayed">How custom fonts get displayed in the different browsers</h2>
<p>I have created a <a href="http://prototype.nordahl.me/example/custom-font/index.html">test page</a> with Chunk as the huge header font and Junction as the paragraph font. All the images are 1:1 size ratio with no other post production than labeling them.</p>
<h3 id="windows">Windows</h3>
<p><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-win2k-ie4.png" alt="" title="font-face-browser-screenshots-win2k-ie4" width="780" height="439" class="alignleft size-full wp-image-126" /><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-winxp-ie7.png" alt="" title="font-face-browser-screenshots-winxp-ie7" width="780" height="439" class="alignleft size-full wp-image-128" /><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-winxp-ie8.png" alt="" title="font-face-browser-screenshots-winxp-ie8" width="780" height="439" class="alignleft size-full wp-image-127" /><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-winxp-safari4.png" alt="" title="font-face-browser-screenshots-winxp-safari4" width="780" height="439" class="alignleft size-full wp-image-129" /><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-winxp-firefox3-5.png" alt="" title="font-face-browser-screenshots-winxp-firefox3-5" width="780" height="439" class="alignleft size-full wp-image-130" /><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-winxp-opera10.png" alt="" title="font-face-browser-screenshots-winxp-opera10" width="780" height="439" class="alignleft size-full wp-image-131" /><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-win7-ie8.png" alt="" title="font-face-browser-screenshots-win7-ie8" width="780" height="439" class="alignleft size-full wp-image-117" /><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-win7-chrome3.png" alt="" title="font-face-browser-screenshots-win7-chrome3" width="780" height="439" class="alignleft size-full wp-image-118" /><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-win7-firefox3-5.png" alt="" title="font-face-browser-screenshots-win7-firefox3-5" width="780" height="439" class="alignleft size-full wp-image-119" /></p>
<p>As you can see custom fonts looks choppy in Firefox and Internet explorer. Both Firefox and Internet Explorer use Windows own font rendring system and it does not apply any anti aliasing. The two webkit based browsers, Safari and Chrome looks fine due to webkits own font rendering system. Opera as well has its own font rendering system soo custom fonts looks fine in that browser.</p>
<h3 id="linux">Linux</h3>
<p><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-debian-firefox3-5.png" alt="" title="font-face-browser-screenshots-debian-firefox3-5" width="780" height="439" class="alignleft size-full wp-image-125" /><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-ubuntu8-opera10.png" alt="" title="font-face-browser-screenshots-ubuntu8-opera10" width="780" height="439" class="alignleft size-full wp-image-124" /></p>
<p>I currently have limited access to linux based computers thats why there is only two screenshots. Both screenshots are taken from the <a href="http://browsershots.org">browsershots.org</a> website. The rendering of the large Chunk font under Debian has some huge issues. The custom fonts looks fine in Opera 10 on Ubuntu 8.</p>
<h3 id="mac">Mac</h3>
<p><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-MAC-10-6-safari4.png" alt="" title="font-face-browser-screenshots-MAC-10-6-safari4" width="780" height="439" class="alignleft size-full wp-image-122" /><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-MAC-10-6-chrome4.png" alt="" title="font-face-browser-screenshots-MAC-10-6-chrome4" width="780" height="439" class="alignleft size-full wp-image-120" /><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-MAC-10-6-firefox3-5.png" alt="" title="font-face-browser-screenshots-MAC-10-6-firefox3-5" width="780" height="439" class="alignleft size-full wp-image-121" /><img src="http://articles.nordahl.me/wp-content/uploads/2009/12/font-face-browser-screenshots-MAC-10-6-opera10.png" alt="" title="font-face-browser-screenshots-MAC-10-6-opera10" width="780" height="439" class="alignleft size-full wp-image-123" /></p>
<p>All browsers on the mac render the text fine due to the build in font anti aliasing on Mac.</p>
<h3 id="loadingfonts">Optimize the loading of fonts</h3>
<div class="grid_5 alpha">
<p>As more web browsers get on the Web Open Font Format(.Woff) bandwagon we would be able to scrap out some of the font formats from our markup. For now you could at least scrap out the the Internet Explorer specific font with the IE conditional tag.</p>
<pre class="brush: xml;">
&lt;!--[if IE]&gt;
&lt;style type=&quot;text/css&quot;&gt;
@font-face { font-family: Chunk; src: url(&quot;fonts/Chunkfive.eot&quot;);}
&lt;/style&gt;
&lt;!--[endif]--&gt;
</pre>
</div>
<div class="grid_5 omega padding-left left-border">
<p>Another solution to speed up the site loading is to load a seperate css file with all the font information depending on your browser when the DOM is ready.</p>
<pre class="brush: jscript;">
//jQuery version
$(document).ready(function() {
var fontURL = ”;

if(jQuery.browser.msie)
fontURL = ’style-ie-fonts.css’;
else if(jQuery.browser.safari)
fontURL = ’style-safari-fonts.css’;
else if(jQuery.browser.mozilla)
fontURL = ’style-mozilla-fonts.css’;
else if(jQuery.browser.chrome)
fontURL = ’style-chrome-fonts.css’;

if (document.createStyleSheet) {
document.createStyleSheet(fontURL);
} else {
var cssLink = $(document.createElement(“link”));
cssLink.attr({
rel: “stylesheet”,
type: “text/css”,
href: fontURL
});
$(“head”).append(cssLink);
}
});
</pre>
<p><cite>Improved the jQuery code from <a href="http://www.thingsontop.com/">Vegard Sandvold&#8217;s</a> <a href="http://articles.nordahl.me/font-face#comment-21">comment</a> below.</cite>
</div>
<h2 id="fonts-used">Fonts used in this article</h2>
<div class="grid_2 alpha">
<h3 class="chunk">Chunk</h3>
<p>This is the bold font used in the site headings and on the navigation on this site. The font is found on <a href="http://www.theleagueofmoveabletype.com/fonts/4-chunk">The League of Moveable Type</a>.
</p></div>
<div class="grid_2 padding-left left-border">
<h3 class="junction">Junction</h3>
<p>This font is used for the general paragraphs on this page. Check out and download the font from <a href="http://www.theleagueofmoveabletype.com/fonts/1-junction">The League of Moveable Type</a>.
</p></div>
<div class="grid_2 padding-left left-border">
<h3 class="fontin-bold">Fontin</h3>
<p>This is a font by <a href="www.exljbris.nl<br />
">Jos Buivenga (exljbris)</a>. &#8220;The Fontin is designed to be used at small sizes. The color is darkish, the spacing loose and the x-height tall. &#8220;
</p></div>
<div class="grid_2 padding-left left-border">
<h3 class="diavlo-bold">Diavlo</h3>
<p>This is a font by <a href="www.exljbris.nl<br />
">Jos Buivenga (exljbris)</a>. &#8220;Diavlo is a free font that contains 5 weights&#8221;.
</p></div>
<div class="grid_2 omega padding-left left-border">
<h3 class="jellyka">Jellyka</h3>
<p>Jellyka Estrya&#8217;s Handwriting is a handwritten font that works great for font sizes over 50px. Check it out and download the font on <a href="http://www.dafont.com/jellyka-estrya-s-handwriting.font">dafont.com</a>
</p></div>
<h2 id="foundries">Commercial foundries which allow @font-face embedding</h2>
<h3>Foundries with a general support for @font-face embedding</h3>
<ul>
<li><a href="http://www.theleagueofmoveabletype.com/fonts/4-chunk">The League of Moveable Type</a></li>
<li><a href="http://typekit.com/foundries/fontfont/">FontFont</a> (via <a href="http://typekit.com">Typekit</a>)</li>
<li><a href="http://typotheque.com/webfonts/">Typotheque</a></li>
<li><a href="http://www.motaitalic.com/">Mota Italic</a> (offer special WEB Font packages)</li>
<li><a href="http://www.fonthead.com/">Fonthead Design Inc.</a> (Included in the <a href="http://www.fonthead.com/license">standard EULA</a>)</li>
<li><a href="http://dunwichtype.com/">Dunwich Type Founders</a> (Additional license required)</li>
</ul>
<h3>Foundries with @font-face support for selected fonts</h3>
<ul>
<li><a href="http://www.josbuivenga.demon.nl/">Exljbris Type Foundry</a> (limited to selected freeware fonts)</li>
<li><a href="http://fonts.info">fonts.info</a> – limited to the <a href="http://fonts.info/info/press/free-fonts-for-font-face-embedding.htm">Graublau Sans Web</a> package</li>
<li><a href="http://fontshop.com">fontshop.com</a> – limited to the <a href="http://www.fontshop.com/fonts/downloads/fontshop_ag/axel_family_ot/">Axel Family</a></li>
<li><a href="http://smeltery.net/">SMeltery</a> – limited to freeware fonts, with mention</li>
</ul>
<h3>General support for @font-face announced</h3>
<ul>
<li><a href="http://fontbureau.com/">The Font Bureau</a></li>
<li><a href="http://www.type-together.com/">Type Together</a> (via <a href="http://typekit.com">Typekit</a>)</li>
<li><a href="http://www.fonts.info/">fonts.info</a></li>
</ul>
<p><cite>This list is derivative from <a href="http://webfonts.info/wiki/index.php?title=Commercial_foundries_which_allow_@font-face_embedding">Webfonts.info</a> &#8211; <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons BY 3.0</a> licensed</cite></p>
]]></content:encoded>
			<wfw:commentRss>http://articles.nordahl.me/font-face/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
