<?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>klauskomenda.com &#187; Design</title>
	<atom:link href="http://www.klauskomenda.com/archives/category/web/design-web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.klauskomenda.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 14 Dec 2011 23:58:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Favicons&#8212;demystified</title>
		<link>http://www.klauskomenda.com/archives/2008/10/07/faviconsdemystified/</link>
		<comments>http://www.klauskomenda.com/archives/2008/10/07/faviconsdemystified/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 20:45:34 +0000</pubDate>
		<dc:creator>Klaus</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.klauskomenda.com/?p=622</guid>
		<description><![CDATA[Once for every project you do you stumble upon them: favicons. And every time I struggle to remember what it is I need to pay attention to when creating them. So here is another guide for the next time I come across the to-do item "Create a favicon". ]]></description>
			<content:encoded><![CDATA[<p>One of the few things you only come across once in a while is creating a <a href="http://en.wikipedia.org/wiki/Favicon">favicon</a>. It only needs to be done once, doesn&#8217;t need any ongoing maintenance or debugging. Do it once, done. That&#8217;s the reason, at least in my case, that every time I get to the task &#8220;Create a favicon for the page&#8221;, I try to remember how exactly they need to be created and what to pay attention to. So this is another &#8220;remember for next time&#8221; article. </p>
<p>There are three ways to generate a favicon:</p>
<ul>
<li>Photoshop (or any other graphics editing program)</li>
<li>Online tools</li>
<li>On the fly</li>
</ul>
<h2>Photoshop</h2>
<p>I say Photoshop here, because that is what I am used to, but essentially you could use any graphics editing program out there. Essentially, when you have your graphic ready, you could just simply save it as a PNG or GIF. Well, you can do that, but that won&#8217;t work in Internet Explorer. </p>
<p>To make your favicon display in every browser, you need to create an <a href="http://en.wikipedia.org/wiki/ICO_(icon_image_file_format)">ICO</a> file. To do that with Photoshop, you can install a plugin that helps you do so. </p>
<h3>Installing the plugin</h3>
<p>First you need to download the plugin from <a href="http://www.telegraphics.com.au/sw/">Telegraphics</a> for whichever version of Photoshop you are using. Extract the ZIP file and move the plugin file into the &#8220;File Formats&#8221; folder inside your Photoshop Plugins folder:</p>
<ul>
<li>On Windows, ICOFormat.8bi (the path should be similar to: C:\Program Files\Adobe\Adobe Photoshop CS2\Plug-Ins\File Formats\)</li>
<li>On OS X/Classic, icoformat (CS2/Mac version is ICOFormat_cs2.plugin)</li>
</ul>
<p>After you have done that quit and relaunch Photoshop, if it&#8217;s already running. To check if the plugin is installed correctly, go to Help &gt; About Plug-ins. In this list, the ICO plugin should appear.</p>
<h3>Saving your graphic in ICO format</h2>
<p>There are some constraints as to which images are eligible to be saved in ICO format:</p>
<ul>
<li>The ICO format does not allow images more than 255 pixels high or wide.</li>
<li>Only Bitmap, Grey Scale, Indexed and RGB mode images, no more than 8 bits per channel, can be saved as ICO.</li>
</ul>
<p>If the graphic you created meets those requirements, you can go to &#8220;Save&#8221; or &#8220;Save As&#8230;&#8221; and select &#8220;ICO (Windows Icon) *.ICO&#8221; from the list of available file formats. The size of the final image should either be 16&#215;16 or 32&#215;32 pixels, larger images would just need to be scaled down by the browser.</p>
<h2>Online tools</h2>
<p>Following is a list of tools on the web that make it even easier to create favicons. In principle, you can upload an image file that you already have to the service, which will create a favicon file from that image. </p>
<ul>
<li><a href="http://favicon-generator.org/">Favicon Generator</a></li>
<li><a href="http://favikon.com/">Favikon</a></li>
<li><a href="http://www.favicon.cc/">favicon.ico Generator</a></li>
<li><a href="http://www.chami.com/html-kit/services/favicon/">FavIcon from Pics</a></li>
</ul>
<h2>On the fly</h2>
<p>Using the <a href="http://en.wikipedia.org/wiki/Data:_URI_scheme">data URI scheme</a>, it is possible to include data items, such as an image, inline on a webpage, without actually referencing it as an external resource. The format for that URI scheme is:</p>
<pre><code>data:[&lt;MIME-type&gt;][;base64],&lt;data&gt; </code></pre>
<p>The <a href="http://validator.w3.org/">W3C Validator</a> for example makes use of this. If your markup validation fails, the red square displayed in the address bar is referenced as:</p>
<pre><code>&lt;link rel="icon" href="data:image/png,%89PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%00%10%00%00%00%10%08%02%00%00%00%90%91h6%00%00%00%19IDAT(%91c%BCd%AB%C2%40%0A%60%22I%F5%A8%86Q%0DCJ%03%00%DE%B5%01S%07%88%8FG%00%00%00%00IEND%AEB%60%82" type="image/png" /&gt;</code></pre>
<p>In the example from the W3C Validator, the data for the favicon is represented using <a href="http://en.wikipedia.org/wiki/ASCII">ASCII</a> encoding, but could also be encoded as <a href="http://en.wikipedia.org/wiki/Base64">base64</a>, which would then look like this in the HTML source:</p>
<pre><code>&lt;link rel="icon" href="data:image/png;base64,/9j/4AAQ..." type="image/png" /&gt;</code></pre>
<h2>Referencing it in HTML</h2>
<p>When you have your favicon file, place it somewhere on your webspace of your site (it does not have to be the root directory) and then reference the file in HTML (in the head of the document) like so:</p>
<pre><code>&lt;link rel="Shortcut Icon"
      href=""http://example.com/favicon.ico"
      type="image/x-icon"&gt;</code></pre>
<p>If you now go to your site and refresh the browser, you should see your icon showing up in the address bar.</p>
<p>On a sidenote: if you ever wanted to play <a href="http://en.wikipedia.org/wiki/Defender_(video_game)">Defender</a> displayed in a 16&#215;16 pixels favicon, <a href="http://www.p01.org/releases/DHTML_contests/files/DEFENDER_of_the_favicon/">you can do so now</a>. Not necessarily useful for everyday websites, but a great demo of what can be done with favicons.</p>
<h2>Resources</h2>
<ul>
<li><a href="http://www.w3.org/2005/10/howto-favicon">How to Add a Favicon to your Site &#8211; QA @ W3C</a></li>
<li><a href="http://www.photoshopsupport.com/tutorials/jennifer/favicon.html">Mysteries Of The Favicon.ico — How To Create A Favicon In Photoshop</a></li>
<li><a href="http://www.amenco.com/golivein24//tips/favicon/">Creating favicons with Adobe Photoshop and GoLive</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.klauskomenda.com/archives/2008/10/07/faviconsdemystified/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Font-families a Web Developer can trust</title>
		<link>http://www.klauskomenda.com/archives/2008/03/18/font-families-a-web-developer-can-trust/</link>
		<comments>http://www.klauskomenda.com/archives/2008/03/18/font-families-a-web-developer-can-trust/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 19:07:10 +0000</pubDate>
		<dc:creator>Klaus</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.klauskomenda.com/archives/2008/03/18/font-families-a-web-developer-can-trust/</guid>
		<description><![CDATA[In Web Design, unlike Print design, you have only a limited number of font-families you can use for your body text. But which one are considered safe these days to use? Some people out there conducted surveys and, based on these, you can get an idea which you can assume your users will have installed on their computers.]]></description>
			<content:encoded><![CDATA[<p>I have worked with designers in the past who come from a very print-centric background. When it comes to print, designers can pick from a sheer endless variety of fonts. But when you want to pick a font for your Web site design, well, the collection gets considerably small. But which font-families are regarded as &#8220;safe to use&#8221; these days?</p>
<p>Luckily, with CSS, you have the ability to put in some sort of fallback mechanism that comes into play when the first font-family you mention is not available, the user agent picks the next one in the list, and so on. But especially people coming from a print background, they tend to ask which fonts they can use and be almost hundred percent sure that what they see on their screen will look the same to what their users are going to see. Well, what is a hundred percent certain these days&#8230;</p>
<p>It is always hard to answer such a question, but thanks to some people out there, there is some statistical data out there to back up whatever your answer might be. The guys at <a href="http://www.codestyle.org/">Code Style</a> <a href="http://www.codestyle.org/css/font-family/">conducted a survey</a> (which is still ongoing I think) and came up with the following results, nicely broken up into categories:</p>
<ul>
<li><a href="http://www.codestyle.org/css/font-family/sampler-WindowsResults.shtml">Windows font survey results</a></li>
<li><a href="http://www.codestyle.org/css/font-family/sampler-MacResults.shtml">Mac font survey results</a></li>
<li><a href="http://www.codestyle.org/css/font-family/sampler-UnixResults.shtml">Unix font survey results</a></li>
<li><a href="http://www.codestyle.org/css/font-family/sampler-CombinedResults.shtml">Combined survey results</a></li>
</ul>
<p><a href="http://www.visibone.com/">VisiBone</a> is another provider of a font survey, conducted amongst 800 systems. Their results can be viewed <a href="http://www.visibone.com/font/FontResults.html">on one big page on their site</a>. <a href="http://www.webspaceworks.com/">WebSiteWorks</a> <a href="http://www.webspaceworks.com/resources/fonts-web-typography/41/">combines these two surveys</a> and provides conclusions regarding those findings. In a <a href="http://www.webspaceworks.com/resources/fonts-web-typography/48/">different article</a>, the are talking in more detail about what they consider the 31 of the most commonly encountered fonts from all operating systems. <a href="http://www.inspirationbit.com/">Vivien</a> also provides <a href="http://www.inspirationbit.com/16-best-loved-font-bits-in-web-design/">a nice summary of fonts which are popular with web designers these days</a>.</p>
<h2>Conclusion</h2>
<p>Taking a look at these results, it becomes quite obvious that if you really want to make sure that you are only using web safe fonts, you are down to a handful number of fonts (with a focus on Windows and Mac). </p>
<table class="datatable small" cellspacing="0">
<thead>
<tr>
<th>Font</th>
<th>Windows (in %)</th>
<th>Mac (in %)</th>
</tr>
</thead>
<tbody>
<tr>
<td>Arial</td>
<td>96.5</td>
<td>96.4</td>
</tr>
<tr class="odd">
<td>Arial Black</td>
<td>97.6</td>
<td>96.1</td>
</tr>
<tr>
<td>Comic Sans MS</td>
<td>96.3</td>
<td>92.1</td>
</tr>
<tr class="odd">
<td>Courier New</td>
<td>96.2</td>
<td>92.2</td>
</tr>
<tr>
<td>Georgia</td>
<td>91.3</td>
<td>93.3</td>
</tr>
<tr class="odd">
<td>Trebuchet MS</td>
<td>95.1</td>
<td>92.5</td>
</tr>
<tr>
<td>Verdana</td>
<td>97.0</td>
<td>93.9</td>
</tr>
</tbody>
</table>
<p>If you consider using fonts that are below 90% in the surveys &#8211; which is a number that I came up with and I would consider everything above that figure to be web-safe &#8211; on any system, you need to provide a &#8220;fallback font-family&#8221; in your CSS. </p>
<p>So, for example, you are a designer who works on a Mac and really wants to use Monaco as your font of choice on a web project, you need to mention a fallback font in your CSS. Why? If you have a look at the surveys done by Code Style, you can see that <a href="http://www.codestyle.org/css/font-family/sampler-MacResults.shtml">almost 97% of Mac users have Monaco installed</a>, but the font is not even listed in the font survey for Windows machines. So, lets say, you choose Tahoma as your second font of choice, you could note that in your CSS as follows:</p>
<pre><code>body {
  font-family: Monaco, Tahoma, sans-serif;
  font-size:12px;
}</code></pre>
<p>So, I guess, when you come from a print background and are used to the luxury of being able to choose every font you want for your design&#8230;well, as a Web designer, you need to show a little bit of flexibility when it comes to fonts. That said, of course you can still use your favorite font of choice, if you are inclined to do so, but only if you convert your whole text into a graphic or Flash (which is used for image replacement techniques). Apart from headings (which only get replaced by nicer graphical headings), any part of your body text should never ever be a graphic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klauskomenda.com/archives/2008/03/18/font-families-a-web-developer-can-trust/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

