<?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>Michael Welford&#187; typography Archives  &#8211; Michael Welford . com</title>
	<atom:link href="http://www.michaelwelford.com/blog/tag/typography/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michaelwelford.com</link>
	<description>Subjective meets the objective</description>
	<lastBuildDate>Tue, 03 Mar 2009 11:16:18 +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>Flash Text Rendering Caveats Part I</title>
		<link>http://www.michaelwelford.com/blog/flash-text-rendering-caveats-part-one/</link>
		<comments>http://www.michaelwelford.com/blog/flash-text-rendering-caveats-part-one/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 00:08:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[antialising]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[workarounds]]></category>

		<guid isPermaLink="false">http://mw001/?p=73</guid>
		<description><![CDATA[Ahh Flash, my old nemesis!
Anyone who has built Flash websites and cares about the details of pixel perfection will have had to jump through hoops just to get something to look just so. On a recent project the hoop was getting a monospaced typeface to look sharp and legible, line up like a monospaced typeface [...]]]></description>
			<content:encoded><![CDATA[<p>Ahh Flash, my old nemesis!</p>
<p>Anyone who has built Flash websites and cares about the details of pixel perfection will have had to jump through hoops just to get something to look <em>just so.</em> On a recent project the hoop was getting a monospaced typeface to look sharp and legible, line up like a monospaced typeface should and do this on dark and light backgrounds with animation.</p>
<p>The first problem, sharp and legible, can nowadays (Flash 8+) be done by just selecting &#8220;Antialias for readability&#8221; on the antialising combobox. Mmm, nice a crisp now. However, that introduces a number of problems:</p>
<h5>1) Bold and regular weights can look very similar</h5>
<h5>2) Strokes in the typeface are snapped to as many whole pixels as possible which may introduce weird kerning and will throw out the fixed spacing of a monotype typeface. This means that if you have multiple lines all the characters will go slightly out of alignment the longer the lines.</h5>
<h5>3) The dynamic range of the typeface color is severely reduced. You won&#8217;t be able to tell the difference between type with a color value of #fff and #ddd - it will be white either way</h5>
<h5>4) The weight of the font will look different on different backgrounds i.e. if you start on one background and change / animate it to another (ARGH!)</h5>
<p>So what to do?</p>
<p>Well 1) can be tweaked around in the custom anti-aliasing settings. 3) is not so bad, and in this project the type is only grey, white and black - we didn&#8217;t need the full dynamic range so we got lucky there. 4) can be handled, by initially (before anyone sees it) setting the text color to a mid gray, say #888, and then by using script to change it to white and black when needed. It seems the Flash text rendering engine compromises on the anti-aliasing and it looks ok. Also we opted to minimise any fading and instead to go for a &#8220;typewriter&#8221; style animation effect.</p>
<p>2) Is the <em>real</em> problem. The only &#8220;solution&#8221; is to create textfields for each single character (including spaces) and positioning them on exact points. The main drawback is that doing this almost completely wipes out the possibility of HTML textfields (which we needed as the site was content managed) unless you want to right your own HTML textfield implementation (cost / benefit time!). In our case we left it unaligned - the soft &#8220;Antialias for animation&#8221; just wasn&#8217;t good enough and we didn&#8217;t think many people would notice it wasn&#8217;t aligned (except for the odd designer) - we may still go back to the soft type yet or we may still have a go at implementing the &#8220;textfield per character&#8221; solution (we only tested it so far).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelwelford.com/blog/flash-text-rendering-caveats-part-one/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
