<?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>Nefarious Designs &#187; Typography</title>
	<atom:link href="http://nefariousdesigns.co.uk/tags/typography/feed/" rel="self" type="application/rss+xml" />
	<link>http://nefariousdesigns.co.uk</link>
	<description>Nefarious Designs is the web development agency and blog of Tim Huegdon, a web developer with over 5 years experience in the industry.</description>
	<lastBuildDate>Fri, 06 Jan 2012 21:37:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Yahoo UI &#8211; Fonts</title>
		<link>http://nefariousdesigns.co.uk/archive/2006/05/yahoo-ui-fonts/</link>
		<comments>http://nefariousdesigns.co.uk/archive/2006/05/yahoo-ui-fonts/#comments</comments>
		<pubDate>Thu, 11 May 2006 13:00:58 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Typography]]></category>
		<category><![CDATA[Web Standards]]></category>

		<guid isPermaLink="false">http://nefariousdesigns.co.uk/archive/2006/05/yahoo-ui-fonts/</guid>
		<description><![CDATA[This morning I sat down at my computer, started browsing my feeds to see what had appeared over night and discovered CSS Beauty had placed a link to the Yahoo UI&#8217;s Fonts CSS file. Having already downloaded the UI, I decided to have a closer look at this particular aspect since I&#8217;d missed it in [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I sat down at my computer, started browsing my feeds to see what had appeared over night and discovered <a href="http://www.cssbeauty.com/archives/2006/May/foundational_fonts_css_file_according_to_yahoo/">CSS Beauty</a> had placed a link to the <a href="http://developer.yahoo.com/yui/fonts/">Yahoo UI&#8217;s Fonts CSS</a> file. Having already downloaded the UI, I decided to have a closer look at this particular aspect since I&#8217;d missed it in my first pass.</p>
<p>Oh what a shock <em>I</em> got!</p>
<p><span id="more-97"></span></p>
<p>The Fonts CSS file is billed as offering <q>cross-browser typographical normalization and control</q>. A nice ideal but I&#8217;m not sure I agree with the method adopted.</p>
<p>You see, the first rule in the Fonts CSS file is as follows (I&#8217;ve added some carriage returns and indented to make it a little easier to read):</p>
<pre><code>body
{
  font:13px arial,helvetica,clean,sans-serif;
  *font-size:small;
  *font:x-small;
}</code></pre>
<p>This is nasty, in my opinion, for one major reason; it&#8217;s using hacks to get around IE&#8217;s problem with resizing fonts declared using pixels.</p>
<p>I&#8217;m not going to get up on my soap box about this (neither do I wish to pontificate &#8211; you never know when you might be wrong), but I&#8217;m pretty certain most of us are aware that hacks are a bad method to adopt when trying to solve cross-browser issues. If you&#8217;re interested in reading a little more, there&#8217;s some informative posts at <a href="http://www.thinkvitamin.com/features/css/stop-css-hacking">Vitamin</a>, <a href="http://www.digital-web.com/articles/keep_css_simple/">Digital Web</a> and <a href="http://muffinresearch.co.uk/archives/2005/05/10/a-beginners-guide-to-css-hack-avoidance/">Muffin Research</a>.</p>
<p>It&#8217;s a real shame, in this particular instance, because the Yahoo UI is <em>so</em> good for so many other things.</p>
<h2>Another Method</h2>
<p>Unfortunately, I&#8217;m not sure there is one perfect method for solving this particular problem. In most cases, I personally make a major assumption to solve the issue &#8211; that the user has never changed the size of the default fonts in their browser. This is not a <em>great</em> solution but I certainly think it&#8217;s better than using hacks.</p>
<p>If this is the case, most browser defaults (at least that I&#8217;m aware of) are 16px, which means the following rule sets all font sizes to 10px:</p>
<pre><code>body
{
  font: 62.5%/1.0 "Trebuchet MS", tahoma, verdana, sans-serif;
}</code></pre>
<p>This then means that you can size everything else using percentages and still easily understand what their pixel equivalents would be:</p>
<pre>
100% = 10px
140% = 14px
160% = 16px
200% = 20px
</pre>
<p>This allows you to improve your typography easily &#8211; a good example would be <a href="http://www.markboulton.co.uk/new/index.php/journal/comments/five_simple_steps_to_better_typography_part_4/">Mark Boulton&#8217;s excellent tutorial on weight and size</a>.</p>
<p>It&#8217;s also worth resizing fonts for form elements. This is something the Yahoo Fonts CSS does too. To acheive this, you should use something like this:</p>
<pre><code>
select,
input,
textarea
{
  font-size: 99%;
}
</code></pre>
<p>I&#8217;m using 99% in that rule simply because Safari doesn&#8217;t seem to like 100% for some reason.</p>
<h2>So using Yahoo&#8217;s Fonts CSS is bad?</h2>
<p>Not really, it&#8217;s just that <em>I</em> prefer the above method. You should definately make up your own mind about it.</p>
<p>In summary, it&#8217;s just the Fonts CSS part of the Yahoo UI that I disagree with &#8211; the rest of the interface is awesome and I&#8217;m a particular fan of their javascript event handling functions. They&#8217;ve brought all kinds of new features to the table with the newest release and, if you&#8217;re a web developer, you should definately download it and take a look.</p>
<p>However, when it comes to font-size normalisation (English spelling please), don&#8217;t just trust their method because it&#8217;s <strong>not perfect</strong>.</p>
<p>But then, neither is mine&hellip;</p>
]]></content:encoded>
			<wfw:commentRss>http://nefariousdesigns.co.uk/archive/2006/05/yahoo-ui-fonts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Punct!</title>
		<link>http://nefariousdesigns.co.uk/archive/2006/03/punct/</link>
		<comments>http://nefariousdesigns.co.uk/archive/2006/03/punct/#comments</comments>
		<pubDate>Tue, 21 Mar 2006 06:25:09 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Typography]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.nefariousdesigns.co.uk/blog.php/?p=45</guid>
		<description><![CDATA[Most web developers have, at some point, experienced the pain of browsing through client-written content to change symbols into meaningful HTML entities. Of course, a lot of the time, we&#8217;re even using the wrong entities! Well, now it&#8217;s a little easier with the help of &#8220;Punct!,&#8221; a client-side script I have created for two reasons; [...]]]></description>
			<content:encoded><![CDATA[<p>Most web developers have, at some point, experienced the pain of browsing through client-written content to change symbols into meaningful HTML entities. Of course, <a href="http://www.alistapart.com/articles/emen/">a lot of the time, we&#8217;re even using the wrong entities!</a></p>
<p>Well, now it&#8217;s a little easier with the help of &#8220;Punct!,&#8221; a client-side script I have created for two reasons; as an experiment in <a href="http://www.json.org/">JSON</a> and to save time when cutting and pasting code from Word documents into web sites.</p>
<p><span id="more-45"></span></p>
<p>Punct basically takes any content pasted or typed into it and converts characters such as em-dashes, quotes and horizontal ellipses into their relevant best HTML entities. You can also specify whether to include paragraph tags which helps anyone pasting content into <a href="http://wordpress.org/">WordPress</a> (like this very article).To have a go, click the link below:</p>
<p><a href="http://www.nefariousdesigns.co.uk/projects/punct/">Punct, a web-based content aid&#8230;</a></p>
<p>Incidentally, this is only version 1.3 &#8212; it&#8217;s not perfect, it&#8217;s not my final word on the matter (it&#8217;s the beginning of something far bigger), it jams the content preview into the page using innerHTML (a nasty method) and it&#8217;s only available with Javascript turned on since I wanted to utilise client-side processing power. I&#8217;m only really launching it here since several of my fellow developers at Rentokil seem quite keen on using it. Watch this space for further developments!</p>
]]></content:encoded>
			<wfw:commentRss>http://nefariousdesigns.co.uk/archive/2006/03/punct/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Typography</title>
		<link>http://nefariousdesigns.co.uk/archive/2005/08/typography/</link>
		<comments>http://nefariousdesigns.co.uk/archive/2005/08/typography/#comments</comments>
		<pubDate>Sat, 27 Aug 2005 13:43:05 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Typography]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.nefariousdesigns.co.uk/blog.php/?p=13</guid>
		<description><![CDATA[Typefaces (or Fonts). The intermaweb is full of them; some nice, some not so nice. Faruk Ates has recently posted a blog entry about the differences between serif and sans-serif typefaces and their use on the web. However, the article has brought me to an interesting question: ClearType or no ClearType? Windows XP allows you [...]]]></description>
			<content:encoded><![CDATA[<p>Typefaces (or Fonts). The intermaweb is full of them; some nice, some not so nice. <a href="http://kurafire.net/" title="Kurafire.net">Faruk Ates</a> has recently posted a blog entry about <a href="http://kurafire.net/log/archive/2005/07/23/typography-serif-vs-sans-serif" title="View the entry on Kurafire.net">the differences between <code>serif</code> and <code>sans-serif</code> typefaces and their use on the web</a>. However, the article has brought me to an interesting question:</p>
<p>ClearType or no ClearType?</p>
<p>Windows XP allows you to select a better form of on-screen font rendering called ClearType within it&#8217;s display properties. This basically makes on-screen fonts a lot prettier. However, this feature is <strong>only</strong> available in Windows XP and is therefore limited to a select audience. For this reason, should we, as designers, have it turned on? Surely this could result in illegible fonts on our work for some systems that we&#8217;re just not aware of!</p>
<p>Personally, I keep ClearType turned off &#8211; but only because I spent many years working on a <del datetime="2005-08-27T14:44:45-01:00">horribly archaic</del> <ins datetime="2005-08-27T14:44:45-01:00">Windows 2000</ins> system and couldn&#8217;t get used to ClearType when I upgraded. However this means that, whilst I&#8217;m working, my fonts are rendered in a more common format &#8211; allowing me to better design for a wider audience.</p>
<p>So, what&#8217;s general consensus on this?</p>
]]></content:encoded>
			<wfw:commentRss>http://nefariousdesigns.co.uk/archive/2005/08/typography/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

