<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Pearsonified</title>
	
	<link>http://www.pearsonified.com</link>
	<description>Best Damn Blog on the Planet</description>
	<lastBuildDate>Thu, 25 Oct 2012 23:54:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/pearsonified" /><feedburner:info uri="pearsonified" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>pearsonified</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>How to Tune Typography Based on Characters Per Line</title>
		<link>http://feedproxy.google.com/~r/pearsonified/~3/_ZL8q8p3B-0/characters-per-line.php</link>
		<comments>http://www.pearsonified.com/2012/01/characters-per-line.php#comments</comments>
		<pubDate>Tue, 03 Jan 2012 18:46:47 +0000</pubDate>
		<dc:creator>Chris Pearson</dc:creator>
				<category><![CDATA[Typography]]></category>

		<guid isPermaLink="false">http://www.pearsonified.com/?p=1008</guid>
		<description><![CDATA[In my research into Golden Ratio Typography, I focused primarily on the core geometric properties of text—font size, line height, and line width. But there&#8217;s another facet of text that nearly all of the existing research on typography deals with: It&#8217;s called characters per line (CPL). If you&#8217;ve ever read a study on typography, you&#8217;ve [...]]]></description>
				<content:encoded><![CDATA[<p></p><p>In my research into <a href="http://www.pearsonified.com/2011/12/golden-ratio-typography.php">Golden Ratio Typography</a>, I focused primarily on the core geometric properties of text—font size, line height, and line width.</p>
<p>But there&#8217;s another facet of text that nearly all of the existing research on typography deals with: It&#8217;s called characters per line (CPL).</p>
<p>If you&#8217;ve ever read a study on typography, you&#8217;ve no doubt encountered CPL. Many of these studies recommend &#8220;optimal&#8221; CPL ranges that include anything from 55 to 100 CPL.</p>
<p>With an &#8220;optimal&#8221; range that large, the CPL you use on your site ultimately comes down to personal preference. This raises one huge question:</p>
<p>How can you tune your typography to an exact (or, at least approximate) CPL? <span id="more-1008"></span></p>
<h3>Tuning Text for Characters Per Line</h3>
<p>Before you can tune your text, you have to understand how CPL works and what the consequences of different CPLs are. Here&#8217;s the deal:</p>
<p>For any font size, as the CPL increases, the line width also increases.</p>
<div class="figure full"><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/sample-cpl-width.png" alt="Characters per line vs. line width" title="How line width varies as CPL increases" width="486" height="294" class="alignnone" />
<p><span>Figure 1.</span> For a given font size, line width increases as CPL increases. Designers must consider this behavior when determining how wide a column of text should be.</p>
</div>
<p>This has some significant design implications, and worse, most designers don&#8217;t even consider CPL when choosing a column width for their text. They simply pick a column width, and however many CPL that results in&#8230;well, that&#8217;s what you get.</p>
<p>Frankly, I can&#8217;t stand this imprecise approach. Every decision—especially those involving your design and typography—should have a meaningful rationale behind it.</p>
<p>The bottom line here is that <strong>your typography should dictate how wide your columns of text are</strong>, not vice-versa.</p>
<p>So, how can you tune your typography to a specific CPL and, therefore, a specific width?</p>
<p>There are two potential approaches you can take here. You can:</p>
<ol>
<li>Use the good ol&#8217; trial and error method, whereby you select different widths, count the characters per line, and settle on the width that you prefer.</li>
<li>Figure out a programmatic way to predict CPL, and then choose a width based on this prediction.</li>
</ol>
<p>Choice number one is a laborious pain in the rear, and it gets old <em>really</em> quickly. On top of that, it&#8217;s simply an imprecise approach, and we all know how I feel about that&#8230;</p>
<p>Contrary to number one, choice number two sounds great and makes a ton of sense. Problem is, you don&#8217;t have a programmatic way to predict CPL&#8230;yet.</p>
<h3>Using Math to Predict CPL</h3>
<p>Recently, I became obsessed with the idea of predicting CPL at any font size, so I set out to uncover a mathematical relationship between font size and CPL.</p>
<p>To do this, I examined text samples in the range of 40–100 CPL at font sizes between 5 and 26px for various fonts. You can see one of my samples in Figure 2 below.</p>
<div class="figure full"><a href="http://www.pearsonified.com/wp-content/uploads/2011/12/cpl-research-sample.png"><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/cpl-research-sample.png" alt="Characters per line research sample" title="CPL research sample" width="486" height="169" class="alignnone" /></a>
<p><span>Figure 2.</span> Research sample with Helvetica Neue set to 83 CPL. To determine the average character width at a particular font size, you can divide the resulting width (shown in gray next to each line of text) by the CPL. <a href="http://www.pearsonified.com/wp-content/uploads/2011/12/cpl-research-sample.png" rel="nofollow">Click to enlarge.</a></p>
</div>
<p>As I stated above, my goal was to determine the mathematical relationship between font size and CPL for particular fonts (obviously, this relationship will differ slightly from font to font). Here&#8217;s how I did it:</p>
<p>Using text samples like the one in Figure 2, I first calculated the average character width (<em>c<sub>w</sub></em>) at each font size by dividing the resulting line width by the CPL value.</p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/avg-char-width.gif" alt="Average character width equation" title="Average character width equation" width="266" height="63" class="aligncenter" /></p>
<p>Not surprisingly, as the font size increased, the average character width also increased. The next step, however, is where things started to get interesting.</p>
<p>To relate font size and character width, I simply divided the font size (<em>f</em>) by the newly-calculated average character width:</p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/character-constant.gif" alt="Character constant equation" title="Character constant equation" width="222" height="58" class="aligncenter" /></p>
<p>And this is where I noticed something extraordinary—for any font, the value (<em>&mu;</em>) from the above equation remains constant, even at different font sizes. In other words&#8230;</p>
<p class="alert">Each font has a <strong>character constant</strong>, <em>&mu;</em>, associated with it that relates the font size to the width of each character.</p>
<p>It may not be obvious at first, but this character constant is <em>awesome</em> because it establishes a mathematical relationship between the vertical (font size) and horizontal (character width) dimensions of text.</p>
<p>For instance, if you have a font size of 12px, and the font you&#8217;re using has a character constant of 2.3, then 2.3 characters will fit in every 12px increment of width (on average).</p>
<p>Thanks to this relationship, it&#8217;s possible to predict CPL mathematically. Here&#8217;s how it&#8217;s done:</p>
<p>Start with a desired CPL value, and then divide it by the character constant for the font you&#8217;re using. This results in a <strong>width factor</strong>, <em>x<sub>w</sub></em>, which is specific to the desired CPL and font:</p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/width-factor.gif" alt="Width factor equation for CPL" title="Width factor equation for characters per line (CPL)" width="272" height="61" class="aligncenter" /></p>
<p>The width factor from the equation above tells you how many increments of width are needed to reach the desired CPL. Once you have the width factor, all you need to do is multiply it by the font size to get the predicted line width, <em>w</em>, that will result in the desired CPL.</p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/width-cpl.gif" alt="Predicted width for CPL" title="Predicted width for a desired CPL" width="304" height="58" class="aligncenter" /></p>
<p>The aforementioned equations can be simplified and combined into one <strong>master equation that relates CPL, font size, and line width for any font</strong>:</p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2012/01/width-cpl-font-size-equation.gif" alt="Master equation for width, font size, and CPL" title="Master equation for width, font size, and CPL" width="154" height="58" class="aligncenter" /></p>
<p>Alright—now that you&#8217;ve seen the basic math behind CPL, let&#8217;s bring this together by looking at an example.</p>
<h3>Sample Predicted Width Calculation Based on CPL</h3>
<p>In this example, the goal is to achieve 75 CPL at a font size of 16px for a font that has a character constant of 2.28. You can use the master equation from above to solve this problem:</p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2012/01/sample-width-cpl.gif" alt="Sample predicted width calculation based on CPL" title="Sample predicted width calculation based on CPL" width="278" height="58" class="aligncenter" /></p>
<p>So, for a font with a character constant of 2.28 at a size of 16px, a width of 526px will yield approximately 75 CPL.</p>
<p>But what if you wanted to know how wide your text would have to be for this same font at 18px? This is easy because you can simply substitute a new font size into the master equation, like so:</p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2012/01/sample-width-cpl-2.gif" alt="Sample predicted width calculation based on CPL and a different font size" title="Sample predicted width calculation based on CPL and a different font size" width="278" height="58" class="aligncenter" /></p>
<p>So while you&#8217;d need 526px to achieve 75 CPL at a font size of 16px for this particular font, you&#8217;d need 592px to achieve the same CPL at a font size of 18px. Pretty sweet!</p>
<h3>A Closer Look at Character Constants</h3>
<p>The most important concept in CPL tuning is undoubtedly the character constant, <em>&mu;</em>.</p>
<p>As I stated earlier, the character constant is different for every font. In order to build a CPL prediction algorithm, it&#8217;s necessary to examine each font individually to determine its <em>&mu;</em> value.</p>
<p>This process is more complicated than it first seems, simply because different text samples have different average character widths (depending on the characters that appear in that particular sample).</p>
<div class="figure full"><img src="http://www.pearsonified.com/wp-content/uploads/2012/01/text-samples-68-cpl.png" alt="Text samples set to 68 CPL" title="Different text samples set to 68 CPL" width="486" height="89" class="alignnone" />
<p><span>Figure 3.</span> Both text samples are set to 68 CPL, but the line widths (and thus, the average character widths) are different because the samples contain different characters.</p>
</div>
<p>When researching character constants, it&#8217;s possible to account for these differences by taking a large enough data sample. If you were to test enough different text samples with each font, you&#8217;d eventually nail down a statistically significant value for <em>&mu;</em>.</p>
<p>Ultimately, though, the character constant is only useful for predicting an <strong>approximate CPL value</strong>—actual CPL values will differ from line to line depending on the characters involved.</p>
<p>Here&#8217;s a quick rundown of the character constants I&#8217;ve compiled through my research thus far (note: none of these are statistically significant):</p>
<h4>Serif Fonts</h4>
<ul class="tight_list">
<li>American Typewriter — 2.12</li>
<li>Baskerville — 2.51</li>
<li>Georgia — 2.27</li>
<li>Hoefler Text — 2.44</li>
<li>Palatino — 2.30</li>
<li>Times New Roman — 2.60</li>
</ul>
<h4>Sans-serif Fonts</h4>
<ul class="tight_list">
<li>Arial — 2.31</li>
<li>Gill Sans — 2.51</li>
<li>Gill Sans 300 — 2.58</li>
<li>Helvetica Neue — 2.26</li>
<li>Lucida Grande — 2.07</li>
<li>Tahoma — 2.30</li>
<li>Trebuchet MS — 2.22</li>
<li>Verdana — 1.98</li>
</ul>
<h4>Monospace Fonts</h4>
<ul class="tight_list">
<li>Courier New — 1.60</li>
</ul>
<p>The character constant provides a new, algorithmic way to understand how fat or skinny a font is. Lower character constants are &#8220;fatter,&#8221; and higher constants are &#8220;skinnier.&#8221;</p>
<p class="alert">Simply put, the character constant is an <strong>interesting new way to consider different typefaces</strong></a>.</p>
<p>It will prove handy for designers who are looking for a quick and precise way to select fonts that will exhibit particular aesthetics and spatial properties.</p>
<p>Also—and I really like this—smart programs can use the character constant to work with fonts in a more precise, more predictable way.</p>
<p class="note"><strong>Update:</strong> A commenter pointed out a perfect potential application—building smarter CSS font stacks based on similar character constant values!</p>
<h3>Math, Schmath. Software to the Rescue!</h3>
<p>When I unveiled the <a href="http://www.pearsonified.com/typography/">Golden Ratio Typography Calculator</a>, the point was to make it easy to explore finely-tuned typography without having to do heavy mathematical lifting.</p>
<p>Now, I&#8217;m pleased to announce that I&#8217;ve incorporated this new CPL research into the calculator, too. All that math you saw above? Yeah, you won&#8217;t have to do any of it :D</p>
<p>The upgrades to the typography calculator are powerful. Not only can you optimize your typography based on characters per line, but you can also explore the impact of different fonts on CPL in <em>any</em> setting!</p>
<p>Change fonts by using the font selector that appears on any typographical recommendation, and you can observe how the approximate CPL changes based on the typeface.</p>
<div class="figure full"><img src="http://www.pearsonified.com/wp-content/uploads/2012/01/font-selector.png" alt="Golden Ratio Typography font selector" title="Observe how CPL changes by selecting different fonts" width="486" height="144" class="alignnone" />
<p><span>Figure 4.</span> Use the font selector on any typographical recommendation to see how CPL changes relative to the typeface. Fascinating, I tells ya!</p>
</div>
<h3>The Bottom Line</h3>
<p>Typography is the most important component in all of design. There&#8217;s no doubt about it—design is a language of communication, and words are the most powerful communication tool we have.</p>
<p>It makes sense, then, that we should strive to understand as much as possible about typefaces, their metrics, and how they work.</p>
<p>Using the <a href="http://www.pearsonified.com/typography/">Golden Ratio Typography Calculator</a>, you can explore the finer points of typography like never before.</p>
<p>You&#8217;ll gain insight into line heights, line widths, CPL, and how different fonts behave (grr, baby!). Best of all, you&#8217;ll be able to create beautiful typography on your site thanks to the precise recommendations from the calculator.</p>
<img src="http://feeds.feedburner.com/~r/pearsonified/~4/_ZL8q8p3B-0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pearsonified.com/2012/01/characters-per-line.php/feed</wfw:commentRss>
		<slash:comments>102</slash:comments>
		<feedburner:origLink>http://www.pearsonified.com/2012/01/characters-per-line.php</feedburner:origLink></item>
		<item>
		<title>Secret Symphony: The Ultimate Guide to Readable Web Typography</title>
		<link>http://feedproxy.google.com/~r/pearsonified/~3/hBHie7WNKjU/golden-ratio-typography.php</link>
		<comments>http://www.pearsonified.com/2011/12/golden-ratio-typography.php#comments</comments>
		<pubDate>Thu, 22 Dec 2011 19:04:45 +0000</pubDate>
		<dc:creator>Chris Pearson</dc:creator>
				<category><![CDATA[Typography]]></category>

		<guid isPermaLink="false">http://www.pearsonified.com/?p=900</guid>
		<description><![CDATA[Right now, there&#8217;s a mathematical symphony happening on your website. Every single one of your readers is subconsciously aware of this symphony, and more important, they are all pre-programmed to respond to it in a particular way. The question is this: Is your site&#8217;s symphony pleasing and inviting to your readers, or does it turn [...]]]></description>
				<content:encoded><![CDATA[<p></p><p>Right now, there&#8217;s a mathematical symphony happening on your website.</p>
<p>Every single one of your readers is <strong>subconsciously aware</strong> of this symphony, and more important, they are all pre-programmed to respond to it in a particular way.</p>
<p>The question is this:</p>
<p>Is your site&#8217;s symphony pleasing and inviting to your readers, or does it turn them off and make it harder to communicate with them? <span id="more-900"></span></p>
<h3>The Mathematical Symphony of Typography</h3>
<p>As it turns out, this symphony is not unique to websites. You &#8220;hear&#8221; it every time you read a book, newspaper, magazine, or web site—every place where typography exists.</p>
<p>At first glance, you might think that typography and math have nothing to do with one another. After all, typography consists of letters and words, and math is&#8230;well&#8230;numbers.</p>
<p>But the truth is, typography is a combination of artistic letterforms and mathematical proportions, an exquisite marriage of form and function.</p>
<p>When the mathematical proportions of your typography are harmonious, your site—and your content, specifically—look appealing to readers.</p>
<p>Conversely, when the proportions of your typography are imbalanced, your content isn&#8217;t as attractive to readers, and your site seems cluttered and disorganized.</p>
<p>The bottom line is this:</p>
<p class="alert">The mathematical proportions of your typography are vitally important to how readers perceive both your site and your content.</p>
<p>So how can you tweak the proportions of your typography to create a beautiful mathematical symphony?</p>
<p>Let&#8217;s take a trip down the typographical rabbit hole and find out!</p>
<h3>The 3 Fundamental Dimensions of Typography</h3>
<p>Every paragraph you&#8217;ve ever seen has 3 primary dimensions. The first two, <strong>font size</strong> and <strong>line height</strong>, are vertical in nature.</p>
<div class="figure full"><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/font-size-line-height.png" alt="Font size and line height" title="How font size and line height work on the web" width="486" height="321" class="alignnone" />
<p><span>Figure 1.</span> How font size and line height work in web browsers. Font size is measured from the top of a capital letter (S) to the bottom of descending characters (y). Half the line height extends both up and down from the centerline of the text.</p>
</div>
<p>The third dimension, <strong>line width</strong>, is horizontal.</p>
<div class="figure full"><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/line-height-line-width.png" alt="Line height and line width" title="How line height and line width work on the web" width="486" height="252" class="alignnone" />
<p><span>Figure 2.</span> Line height and line width form the vertical and horizontal dimensions of typography.</p>
</div>
<p>Taken together, these 3 dimensions are responsible for how you perceive typography.</p>
<p>To get a feel for how these dimensions work together, it&#8217;s helpful to look at a few text samples where one dimension is varied and the others are held constant. This way, you&#8217;ll be able to see the effect that each dimension has on the other two.</p>
<p>In Figure 3 below, the line height and line width are fixed, and the font size is varied from 13 to 16px.</p>
<div class="figure full"><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/sample-1-font-size.png" alt="Variable font size with constant line height and line width" title="Variable font size with constant line height and line width" width="486" height="292" class="alignnone" />
<p><span>Figure 3.</span> With the line height and line width held constant, it&#8217;s clear that larger font sizes require larger line heights to maintain both proportion and readability.</p>
</div>
<p>In the first paragraph of Figure 3, the line height is large enough relative to the font size to produce generous whitespace between the lines of text. However, in the second paragraph, the line height is not large enough relative to the font size to yield sufficient whitespace, and it looks cramped as a result.</p>
<p>This leads to an important conclusion: As font sizes increase, line heights must also increase in order to maintain the geometric proportions of a paragraph. In other words:</p>
<p class="alert">Font size and line height are proportionally related.</p>
<p>In the next example, the font size and line height are fixed, and the line width is varied from 233 to 466px.</p>
<div class="figure full"><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/sample-2-line-width.png" alt="Variable line width with constant font size and line height" title="Variable line width with constant font size and line height" width="486" height="288" class="alignnone" />
<p><span>Figure 4.</span> As the line width is increased, the text becomes harder to read because the line height has not been increased to offset the effect of the width.</p>
</div>
<p>Despite the fact that the line heights are the same in the two paragraphs of Figure 4, their readability is quite different because of the differing line widths.</p>
<p>As the line width gets longer, it becomes more difficult to perform a return sweep (the movement of the eyes from the end of one line to the beginning of the next) <em>unless the line height is also increased to account for this effect</em>.</p>
<p>Research confirms this conclusion, too. In a 2004 study from the University of Reading (how ironic), Mary C. Dyson states:</p>
<blockquote><p>Long line lengths are said to need more interlinear spacing to ensure that the eyes locate the next line down accurately when executing a return sweep&#8230;</p></blockquote>
<p>Bottom line? It&#8217;s clear that line heights and line widths are mathematically related in some way. More specifically:</p>
<p class="alert">For any font size, the line height must increase as the line width increases.</p>
<p>But what is the <em>exact</em> mathematical nature of this relationship?</p>
<h3>Harmonious Proportions and the Golden Ratio</h3>
<p>Answering this question might be easier than it first seems because <strong>nature has given us a remarkable blueprint for beautiful and effective proportionality</strong>.</p>
<p>Evident in plants, animals, the shape of galaxies, and <em>even your DNA</em>, this proportionality blueprint is so pervasive that humans have noticed it for thousands of years. We&#8217;ve used it, too—it can be seen in art and architecture throughout history.</p>
<p>So what is this incredible proportion that &#8220;really ties the room together?&#8221;</p>
<p>I&#8217;m talking, of course, about the golden ratio.</p>
<p class="alert">When nature needs a proportion to relate things and to provide order <em>on any scale</em>, it tends to use the golden ratio.</p>
<p>With typography, the goal is to relate font size, line height, and line width in an aesthetically pleasing and orderly way.</p>
<p>Could it be, then, that the golden ratio is applicable to typography as well?</p>
<h3>The Mathematics of Golden Ratio Typography</h3>
<p>As you probably guessed, the answer is an emphatic <strong>yes</strong>! Here&#8217;s how it works:</p>
<p>First, the <strong>font size</strong> (<em>f</em>) <strong>and line height</strong> (<em>l</em>) <strong>are proportionally related</strong> through a ratio (<em>h</em>). Mathematically, this is about as simple as it gets, and the basic equation looks like this:</p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/line-height.gif" alt="Line height equation" title="Basic line height equation" width="66" height="22" class="aligncenter" /></p>
<p>In the equation above, the <strong>optimal line height</strong> is produced when <em>h</em> equals the golden ratio (<em>&phi;</em>). This insight gives us the following equation:</p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/optimal-line-height.gif" alt="Optimal line height equation" title="Optimal line height equation" width="79" height="24" class="aligncenter" /></p>
<p>Unfortunately, just knowing the optimal line height for a given font size is not enough.</p>
<p>Earlier, you saw that all 3 typographical dimensions—font size, line height, and line width—affect one another. Therefore, <strong>you cannot talk about line height or font size without also considering the line width</strong>.</p>
<p>Based on this reasoning, there must also be an <strong>optimal line width</strong> that corresponds to the optimal line height from the equation above.</p>
<p>Problem is, you don&#8217;t know the exact relationship between line width and line height. All you know for sure is that the line width is significantly greater than the line height.</p>
<p>With the help of basic mathematical modeling, you can make an educated guess that <strong>the relationship between the optimal line height and line width is exponential</strong>. Here&#8217;s the simplest equation to express that:</p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/optimal-line-width.gif" alt="Optimal line width equation" title="Optimal line width equation" width="87" height="29" class="aligncenter" /></p>
<p>This is remarkable because now, for the first time, you have a solid mathematical basis for the relationship between font size, line height, and line width.</p>
<p class="note"><strong>Note to designers:</strong> Golden Ratio Typography is intended to serve as a <em>basis</em> for proper typesetting. Factors such as x-height and other typeface metrics also influence typography and should be considered in finalized designs. Golden Ratio Typography provides the most rational starting point for adjustments of this nature.</p>
<p>There&#8217;s one little problem here, though: The web isn&#8217;t nearly as precise as these equations.</p>
<p>You see, web designers are constrained to using <strong>integer values</strong> for things like font size, line height, and line width (this will be the case until sub-pixel rendering becomes a reality).</p>
<p>The above equations all yield highly precise decimal values, and simply rounding the answers to the nearest integer produces significant errors that will cause your resulting typographical proportions to be imprecise.</p>
<p>The bottom line is that <strong>the web is not optimal</strong>, and therefore, the optimal equations presented above are insufficient for fine-tuning your typography in the real world.</p>
<p>Ultimately, if you want precise Golden Ratio Typography on your website, then you&#8217;re going to need some tuning equations.</p>
<h3>Fine-tuning Golden Ratio Typography for the Web</h3>
<p>To understand how typographical tuning works, let&#8217;s look at an example.</p>
<p>For a font size of 16px, the perfect line height is achieved when <em>h</em> equals the golden ratio. This yields a value of 25.88854px for the optimal line height. Using this value, you can then determine that the associated optimal line width is 670.21670px.</p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/optimal-line-height-16.gif" alt="Optimal line height calculation for size 16 font" title="Optimal line height calculation for size 16 font" width="210" height="24" class="aligncenter" /></p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/optimal-line-width-16.gif" alt="Optimal line width calculation for size 16 font" title="Optimal line width calculation for size 16 font" width="258" height="29" class="aligncenter" /></p>
<p>If you tried to use these values in your site&#8217;s <abbr title="Cascading Style Sheet">CSS</abbr>, you&#8217;d encounter problems.</p>
<p>Because it only resolves integer values, the web cannot display a line height of 25.88854px. Instead, the best you could do for the line height is 26px.</p>
<p>But 26px is greater than the optimal line height given by the equations, and as you&#8217;ve seen, you cannot change the line height—not even a little bit!—without also changing the associated line width (otherwise, the resulting proportions would not be precisely &#8220;golden&#8221;).</p>
<p>Therefore, the process of rounding the line height from 25.88854px to 26px requires that the resulting line width be greater than 670.21670px.</p>
<p><strong>This is the essence of typographical tuning:</strong></p>
<p class="alert">If your line width is shorter than the optimal width, then your corresponding line height must be less than the golden ratio. Conversely, if your line width is longer than the optimal width, your corresponding line height must be greater than the golden ratio.</p>
<p>Here&#8217;s a graph to help illustrate this concept for the most commonly-used font sizes:</p>
<div class="figure full"><a href="http://www.pearsonified.com/wp-content/uploads/2011/12/line-height-vs-line-width.png"><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/line-height-vs-line-width.png" alt="Line height vs. line width for common font sizes" title="How line height changes vs. line width for common font sizes. Click to enlarge." width="486" height="329" class="alignnone" /></a>
<p><span>Figure 5.</span> As line widths increase, line heights must also increase to preserve geometric proportions and readability. The horizontal gray line in this graph represents the golden ratio (<em>&phi;</em>), and you can see how line heights behave relative to this value for the most commonly-used font sizes. <a href="http://www.pearsonified.com/wp-content/uploads/2011/12/line-height-vs-line-width.png">Click to enlarge.</a></p>
</div>
<p>Mathematically speaking, the typographical tuning equations are more complicated than the equations you&#8217;ve already seen. Fortunately, I&#8217;ve done the heavy lifting here, so you can focus on the concept and the results.</p>
<p>Ultimately, you need two tuning equations for the different scenarios you will encounter while setting typography. Depending on the situation, you&#8217;ll need to determine:</p>
<ol>
<li>The adjusted line height, given a font size and line width</li>
<li>The adjusted line width, given a font size and line height</li>
</ol>
<p>Here are the equations to do just that:</p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/line-height-ratio.gif" alt="Line height ratio tuning equation" title="Line height ratio tuning equation" width="228" height="58" class="aligncenter" /><br />
<img src="http://www.pearsonified.com/wp-content/uploads/2011/12/line-width.gif" alt="Line width tuning equation" title="Line width tuning equation" width="240" height="29" class="aligncenter" /></p>
<p>Using the second equation above, you can determine the adjusted line width for the aforementioned example situation of a 16px font size with an integer line height of 26px.</p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/line-width-16-26.gif" alt="Adjusted line width for 16px font with a line height of 26px" title="Adjusted line width for 16px font with a line height of 26px" width="455" height="58" class="aligncenter" /></p>
<p>The adjusted width, which will maintain golden typographical proportions for this scenario, is 685.32505px. For use on the web, this must be rounded to 685px.</p>
<p>Let&#8217;s look at another example that will hit closer to home (and this is how you can tune the typography on your own website right now):</p>
<p>What if you wanted to use a 16px font size in a content width of 550px? What should your adjusted line height be in this case?</p>
<p>Here&#8217;s how you&#8217;d solve that problem:</p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/line-height-ratio-16-550.gif" alt="Sample line height ratio calculation" title="Line height ratio equation for size 16 font in a 550px-wide setting" width="378" height="58" class="aligncenter" /></p>
<p><img src="http://www.pearsonified.com/wp-content/uploads/2011/12/line-height-16-550.gif" alt="Sample line height calculation" title="Line height calculation for size 16 font in a 550px-wide setting" width="278" height="24" class="aligncenter" /></p>
<p>The answer here is 25.00169px. Once again, this value must rounded to the nearest integer for use on the web, and this results in an adjusted line height of 25px.</p>
<h3>Golden Ratio Typography Calculator</h3>
<p>Obviously, doing a bunch of math every time you deal with typography will get tiresome very quickly.</p>
<p>To remedy this, I&#8217;ve created the <a href="http://www.pearsonified.com/typography/">Golden Ratio Typography Calculator</a>, which makes it incredibly easy to determine the perfect typography for <em>any</em> situation!</p>
<p>Smart and versatile, the calculator will give you golden typographical recommendations based on the input you provide.</p>
<p>If you enter only a font size, the calculator will show you the optimal line height and line width for that font size.</p>
<p>If you enter only a width, the calculator will show you the best and second-best font size/line height combinations for that width.</p>
<p>If you enter both a font size and a width, you get the whole shebang:</p>
<ul>
<li>Optimized typography for your font size and width</li>
<li>The best typography for the width you&#8217;ve provided</li>
<li>The second-best typography for the width you&#8217;ve provided</li>
<li>The optimal typography for the font size you&#8217;ve provided</li>
</ul>
<p><a href="http://www.pearsonified.com/typography/">Go play around with the Golden Ratio Typography Calculator</a> and explore finely-tuned typography like never before!</p>
<h3>The Incredible Impact of Golden Ratio Typography</h3>
<p>I hinted at this earlier, but I want to make it clear: The stuff I&#8217;ve shared with you today doesn&#8217;t just apply to the web. In fact&#8230;</p>
<p class="alert">Golden Ratio Typography can be used to fine-tune the typography of <em>any</em> medium!</p>
<p>Books, newspapers, magazines, websites, e-readers, you name it—they can all benefit from the improved proportions that Golden Ratio Typography provides.</p>
<p>And now, as you begin to view the world through the lens of Golden Ratio Typography, you&#8217;ll notice countless opportunities for typographical optimization.</p>
<h3>The Bottom Line</h3>
<p>Golden proportions are evident throughout the universe, and they occur in places where form and function combine to produce a beautiful, effective, and useful result.</p>
<p>Remember the mathematical symphony of typography?</p>
<p>By employing <a href="http://www.pearsonified.com/typography/">Golden Ratio Typography</a>, you&#8217;ll ensure that your site has a <strong>golden symphony</strong> that will appeal to everyone.</p>
<img src="http://feeds.feedburner.com/~r/pearsonified/~4/hBHie7WNKjU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pearsonified.com/2011/12/golden-ratio-typography.php/feed</wfw:commentRss>
		<slash:comments>154</slash:comments>
		<feedburner:origLink>http://www.pearsonified.com/2011/12/golden-ratio-typography.php</feedburner:origLink></item>
		<item>
		<title>Supercharge Your WordPress Category Page SEO with This Simple Tip</title>
		<link>http://feedproxy.google.com/~r/pearsonified/~3/x1RLJMQtRs8/wordpress-category-page-seo.php</link>
		<comments>http://www.pearsonified.com/2011/06/wordpress-category-page-seo.php#comments</comments>
		<pubDate>Fri, 03 Jun 2011 19:49:57 +0000</pubDate>
		<dc:creator>Chris Pearson</dc:creator>
				<category><![CDATA[SEO for Everybody]]></category>

		<guid isPermaLink="false">http://www.pearsonified.com/?p=869</guid>
		<description><![CDATA[If you&#8217;ve followed my advice over the last few years, then you already know how to use WordPress categories effectively. But now that you&#8217;re using categories in a meaningful way, do you know how to get your category pages to rank well and dominate in the search engines? Using this tip that I&#8217;m going to [...]]]></description>
				<content:encoded><![CDATA[<p></p><p><span class="drop_cap">If</span> you&#8217;ve followed my advice over the last few years, then you already know <a href="http://www.pearsonified.com/2008/02/what_every_blogger_needs_to_know_about_categories.php">how to use WordPress categories effectively</a>.</p>
<p>But now that you&#8217;re using categories in a meaningful way, do you know how to get your category pages to rank well and dominate in the search engines?</p>
<p>Using this tip that I&#8217;m going to share with you today, you&#8217;ll be able to do just that.</p>
<p>However, before we begin, I need to let you in on a little secret—by default, WordPress does not provide you with the controls necessary to create category pages that have maximum <abbr title="Search Engine Optimization">SEO</abbr> juice.</p>
<p>Fortunately, this is where I come in :D <span id="more-869"></span></p>
<h3>Add a Unique Headline and Content to Your WordPress Category Pages</h3>
<p>Here&#8217;s the trick: All you need to do to get your category pages to <em>slay</em> in the search engines is to <strong>add a unique headline and some unique content</strong>.</p>
<p>Jaw-droppingly simple? Yep.</p>
<p>Possible with a default installation of WordPress? Nope.</p>
<p>But it <em>is</em> possible with the <a href="http://diythemes.com/">Thesis Website Framework</a>, which adds these essential <abbr title="Search Engine Optimization">SEO</abbr> controls to &#8220;edit category&#8221; pages in the WordPress interface:</p>
<p><img class="block" src="http://www.pearsonified.com/wp-content/uploads/2011/06/thesis-category-seo-controls.png" width="510" height="564" alt="Thesis category SEO controls for WordPress" /></p>
<p>See the <strong>Introductory Headline</strong> and <strong>Introductory Content</strong> fields in the image above?</p>
<p>By adding unique content to those fields on each of your category pages, you will <a href="http://diythemes.com/thesis/wordpress-category-seo/">make your WordPress category pages rank better in search engines</a>.</p>
<h3>How Sugarrae Uses Thesis to Build Category Pages that Rank</h3>
<p>Without a doubt, my favorite example of someone who uses Thesis category controls to rank like crazy is Sugarrae.</p>
<p>Check out her <a href="http://www.sugarrae.com/affiliate-marketing/">affiliate marketing</a> category page, which consistently ranks in the top 10 for the hyper-competitive term &#8220;affiliate marketing.&#8221;</p>
<p>See the introductory content before the list of posts? It ain&#8217;t just sexy, folks—it is <em>essential</em> for getting the maximum <abbr title="Search Engine Optimization">SEO</abbr> benefit from your category pages, and Thesis makes it all possible.</p>
<p>With Thesis, you can take your site to new heights by employing the same strategies as professionals like Sugarrae.</p>
<p>If you&#8217;ve never checked it out before, then now is the perfect time to see <a href="http://diythemes.com/">how Thesis will improve your site</a>.</p>
<img src="http://feeds.feedburner.com/~r/pearsonified/~4/x1RLJMQtRs8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pearsonified.com/2011/06/wordpress-category-page-seo.php/feed</wfw:commentRss>
		<slash:comments>172</slash:comments>
		<feedburner:origLink>http://www.pearsonified.com/2011/06/wordpress-category-page-seo.php</feedburner:origLink></item>
		<item>
		<title>How to Add the Google +1 Button to Your Website</title>
		<link>http://feedproxy.google.com/~r/pearsonified/~3/jBhUhvFBKKM/google-plus1-button.php</link>
		<comments>http://www.pearsonified.com/2011/06/google-plus1-button.php#comments</comments>
		<pubDate>Fri, 03 Jun 2011 19:08:23 +0000</pubDate>
		<dc:creator>Chris Pearson</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.pearsonified.com/?p=876</guid>
		<description><![CDATA[Unless you&#8217;ve been living under a rock, you&#8217;ve almost certainly heard the latest news that has the social media universe in a frenzy: This week, Google released its Google +1 (&#8220;plus one&#8221;) button to compete with Twitter&#8217;s Tweet button and Facebook&#8217;s Like button. In order to capitalize on the potential traffic and exposure that this [...]]]></description>
				<content:encoded><![CDATA[<p></p><p>Unless you&#8217;ve been living under a rock, you&#8217;ve almost certainly heard the latest news that has the social media universe in a frenzy:</p>
<p><img class="right" src="http://www.pearsonified.com/wp-content/uploads/2011/06/google-plus1-button.png" alt="Google +1 button" width="64" height="54" />This week, Google released its <strong>Google +1</strong> (&#8220;plus one&#8221;) button to compete with Twitter&#8217;s Tweet button and Facebook&#8217;s Like button.</p>
<p>In order to capitalize on the potential traffic and exposure that this new button can generate, you&#8217;ll need to incorporate it into your site as soon as possible.</p>
<p>There&#8217;s one little problem, though. <span id="more-876"></span></p>
<p><strong>Unless you&#8217;re a ninja, you&#8217;re probably going to get frustrated while trying to add the buttons to your site.</strong></p>
<p>For most people, there are just too many options and too many different ways to integrate and configure the buttons, and this leaves them feeling uncomfortable with the result.</p>
<p>I don&#8217;t know about you, but whenever I implement something on my site, I like to know that I&#8217;ve done it the most efficient and effective way possible.</p>
<p>In keeping with this line of thinking (and also with my company&#8217;s focus on making the web faster and easier), we&#8217;ve gone ahead and published a detailed tutorial that will help you <a href="http://diythemes.com/thesis/rtfm/add-google-plus-1-share-button/">add the Google +1 button to your site</a> with confidence.</p>
<p>Oh, and here&#8217;s a pro tip before you go: Under the &#8220;Step One (the API Call)&#8221; section, be sure to use Option 2—it&#8217;s the one that will yield the best performance!</p>
<img src="http://feeds.feedburner.com/~r/pearsonified/~4/jBhUhvFBKKM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pearsonified.com/2011/06/google-plus1-button.php/feed</wfw:commentRss>
		<slash:comments>68</slash:comments>
		<feedburner:origLink>http://www.pearsonified.com/2011/06/google-plus1-button.php</feedburner:origLink></item>
		<item>
		<title>Interview: With SEO, Less is More (and Where to Eat in Austin, Texas)</title>
		<link>http://feedproxy.google.com/~r/pearsonified/~3/blgZYbGde_w/interview-pubcon-2011.php</link>
		<comments>http://www.pearsonified.com/2011/04/interview-pubcon-2011.php#comments</comments>
		<pubDate>Fri, 29 Apr 2011 00:30:47 +0000</pubDate>
		<dc:creator>Chris Pearson</dc:creator>
				<category><![CDATA[Asides]]></category>

		<guid isPermaLink="false">http://www.pearsonified.com/?p=865</guid>
		<description><![CDATA[What&#8217;s the latest and greatest on SEO, WordPress plugins, web hosting, and—my personal favorite—the best food in Austin? I&#8217;ll keep you up to speed with that and maybe even drop a hint about Thesis 2 in this 9-minute video interview from PubCon South 2011. After you check out the video, be sure to take a [...]]]></description>
				<content:encoded><![CDATA[<p></p><p>What&#8217;s the latest and greatest on <abbr title="Search Engine Optimization">SEO</abbr>, WordPress plugins, web hosting, and—my personal favorite—the best food in Austin?</p>
<p>I&#8217;ll keep you up to speed with that and maybe even drop a hint about Thesis 2 in this 9-minute video <a href="http://www.pubcon.com/videoblog/index.cgi?mode=viewone&#038;blog=1303921080">interview from PubCon South 2011</a>.</p>
<p>After you check out the video, be sure to take a look at the new <a href="http://www.facebook.com/diythemes"><strong>DIY</strong>themes Facebook page</a>, where you can interact with other Thesis users and see hundreds of awesome Thesis customizations!</p>
<img src="http://feeds.feedburner.com/~r/pearsonified/~4/blgZYbGde_w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pearsonified.com/2011/04/interview-pubcon-2011.php/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		<feedburner:origLink>http://www.pearsonified.com/2011/04/interview-pubcon-2011.php</feedburner:origLink></item>
		<item>
		<title>Are You a Former Cutline or PressRow Theme User?</title>
		<link>http://feedproxy.google.com/~r/pearsonified/~3/aPJs9u9X_Bs/former-cutline-pressrow-theme-user.php</link>
		<comments>http://www.pearsonified.com/2010/11/former-cutline-pressrow-theme-user.php#comments</comments>
		<pubDate>Thu, 18 Nov 2010 01:25:20 +0000</pubDate>
		<dc:creator>Chris Pearson</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.pearsonified.com/?p=818</guid>
		<description><![CDATA[Sadly, the crew at WordPress.com have chosen to retire two of my old themes, Cutline and PressRow. If you loved these themes and are sorry to see them go, don&#8217;t sweat it! Soon, I&#8217;ll be re-releasing both of these classic theme designs for free to everyone who uses the Thesis Theme Framework. And thanks to [...]]]></description>
				<content:encoded><![CDATA[<p></p><p><span class="drop_cap">S</span>adly, the crew at WordPress.com have chosen to retire two of my old themes, Cutline and PressRow.</p>
<p>If you loved these themes and are sorry to see them go, don&#8217;t sweat it! Soon, I&#8217;ll be re-releasing both of these <strong>classic theme designs for free</strong> to everyone who uses the <a href="http://diythemes.com/">Thesis Theme Framework</a>.</p>
<p>And thanks to the power of Thesis, these new versions of Cutline and PressRow will be more optimized, more flexible, and faster than their predecessors. <span id="more-818"></span></p>
<h3>What is the Thesis Theme Framework?</h3>
<p>Thesis is the ultimate theme—it&#8217;s a powerful template system that enables you to customize your design, tweak your <abbr title="Search Engine Optimization">SEO</abbr>, and run a world-class website with ease.</p>
<p>While Cutline and PressRow were two separate themes, Thesis is a single framework that does it all. It runs underneath this site, <a href="http://diythemes.com/">my business site</a>, and tens of thousands of others, and it can accommodate <em>any</em> design!</p>
<p>Thanks to this remarkable flexibility, I&#8217;ll be able to offer the Cutline and PressRow designs for <strong>free to Thesis users</strong>.</p>
<p class="alert">For those of you wondering, the Thesis Theme Framework is not available on WordPress.com blogs, as it requires a self-hosted version of WordPress from WordPress.org. If you&#8217;re a WordPress.com blogger who would like help moving to the beneficial world of self-hosting, please give me a shout in the comments!</p>
<h3>How can you get Cutline and PressRow?</h3>
<p>Now that Cutline and PressRow have been removed from the WordPress.com theme directory, I&#8217;ve decided to re-release these classic themes for free as skins for the <a href="http://diythemes.com/">Thesis Theme Framework</a>.</p>
<p>These skins are still in development and will take time to complete, but if you want to be notified the second they&#8217;re done, simply enter your email in the box below, and I&#8217;ll be sure to contact you.</p>
<div class="action">
<p>Please notify me when Cutline and PressRow are available for the Thesis Theme Framework!</p>
<form method="post" action="http://www.aweber.com/scripts/addlead.pl">
		<p class="remove_bottom_margin">
			<input type="hidden" name="meta_web_form_id" value="1314212833" />
			<input type="hidden" name="meta_split_id" value="" />
			<input type="hidden" name="listname" value="pressrow" />
			<input type="hidden" name="redirect" value="http://www.aweber.com/thankyou-coi.htm?m=text" id="redirect_0c9e97c776e56d7aed8d445e70ec9549" />
			<input type="hidden" name="meta_adtracking" value="My_Web_Form" />
			<input type="hidden" name="meta_message" value="1" />
			<input type="hidden" name="meta_required" value="email" />
			<input type="hidden" name="meta_tooltip" value="" />
			<input class="text_input" type="text" name="email" value="Enter your email" onfocus="if (this.value == 'Enter your email') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Enter your email';}" tabindex="500" />
			<input name="submit" class="form_submit" type="submit" value="Notify me!" tabindex="501" />
			<img src="http://forms.aweber.com/form/displays.htm?id=jMyMLEyMTBzMzA==" alt="" />
		</p>
	</form>
</div>
<h3>Thinking about leaving WordPress.com?</h3>
<p>Since you can no longer use Cutline or PressRow on WordPress.com, now may be the perfect time for you to become a WordPress.org user.</p>
<p>Personally, I think running a self-hosted version of WordPress is extremely beneficial because it gives you <strong>total control over your website and your data</strong>.</p>
<p>If you&#8217;re considering moving from WordPress.com to WordPress.org because of Cutline or PressRow and need help getting set up, please let me know in the comments so I can help you out!</p>
<p><strong>Update:</strong> Here&#8217;s an article (including video!) that explains <a href="http://mashable.com/2011/02/09/move-blog-wordpress-com-org/">how to transfer your blog from WordPress.com to WordPress.org</a>.</p>
<img src="http://feeds.feedburner.com/~r/pearsonified/~4/aPJs9u9X_Bs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pearsonified.com/2010/11/former-cutline-pressrow-theme-user.php/feed</wfw:commentRss>
		<slash:comments>67</slash:comments>
		<feedburner:origLink>http://www.pearsonified.com/2010/11/former-cutline-pressrow-theme-user.php</feedburner:origLink></item>
		<item>
		<title>Mid-century Modern, Pearsonified Style</title>
		<link>http://feedproxy.google.com/~r/pearsonified/~3/komPVgphUeY/mid-century-modern.php</link>
		<comments>http://www.pearsonified.com/2010/06/mid-century-modern.php#comments</comments>
		<pubDate>Tue, 15 Jun 2010 01:40:47 +0000</pubDate>
		<dc:creator>Chris Pearson</dc:creator>
				<category><![CDATA[Videos]]></category>

		<guid isPermaLink="false">http://www.pearsonified.com/?p=784</guid>
		<description><![CDATA[Architecture is endlessly appealing to me. Houses, in particular, capture my imagination because they are so primal in their utility: They provide us with a safe place to sleep, eat, store food, and raise young&#8217;uns. For the last 90 years in America, home architecture has been dominated by profiteering companies looking to churn out cheaper [...]]]></description>
				<content:encoded><![CDATA[<p></p><p><span class="drop_cap">A</span>rchitecture is endlessly appealing to me. Houses, in particular, capture my imagination because they are so primal in their utility: They provide us with a safe place to sleep, eat, store food, and raise young&#8217;uns.</p>
<p>For the last 90 years in America, home architecture has been dominated by profiteering companies looking to churn out cheaper products for higher margins. Market demand and time constraints are generally at odds with innovation and creativity, and this is precisely why qualified architects are only responsible for a small fraction of American homes.</p>
<p>On one hand, this sucks because it means that <strong>most houses in America were conceived and built by people who truly don&#8217;t know a damn thing about the art of designing a home.</strong></p>
<p><span id="more-784"></span>On the other hand, this extreme suckage has made it easier to spot the really good stuff—the houses designed by architects who had a purpose and thoughtful motive behind every last structural detail.</p>
<p>A cursory review of the architects and designers who shaped an emerging, twentieth century America will no doubt reveal classic names like Wright, Neutra, Eichler, Eames, Nelson, van der Rohe, and Saarinen. These artisans—real experts, you know?—are all associated with the most inspired period of design in American history: The mid-century modern era.</p>
<p>When I decided to buy a house in 2009, I went on an all-out <em>mission</em> to find the perfect mid-century modern (<acronym title="Mid-century Modern">MCM</acronym>) home in Austin. After an exhausting three-month search, I managed to score a classic <acronym title="Mid-century Modern">MCM</acronym> that does everything right:</p>
<ul>
<li>At first glance, the home appears to be oddly situated on the lot, but closer inspection reveals that it&#8217;s built on the same axis as the four cardinal directions!</li>
<li>Extra-tall windows bring in natural light and also serve to unite the house with the surrounding land.</li>
<li>The flat roof, extended easements, huge windows, and indoor/outdoor feel are all characteristic of my favorite branch of <acronym title="Mid-century Modern">MCM</acronym> architecture that can be traced back to Richard Neutra.</li>
<li><a href="#feature_box">Just <em>look</em> at the place</a>—it&#8217;s sexy as hell :D</li>
</ul>
<p>Finally, I&#8217;d like to shout out a <strong>huge</strong> thank-you to <a href="http://www.nicholasreese.com/casa-del-pearsonified/">Nick Reese</a>, whose badass camera setup and editing skillz made this video possible!</p>
<img src="http://feeds.feedburner.com/~r/pearsonified/~4/komPVgphUeY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pearsonified.com/2010/06/mid-century-modern.php/feed</wfw:commentRss>
		<slash:comments>88</slash:comments>
		<feedburner:origLink>http://www.pearsonified.com/2010/06/mid-century-modern.php</feedburner:origLink></item>
		<item>
		<title>What Do Solutions Have to Do with Ideology? NOTHING!</title>
		<link>http://feedproxy.google.com/~r/pearsonified/~3/b-4SAc0Qe0g/solutions-and-ideology.php</link>
		<comments>http://www.pearsonified.com/2010/05/solutions-and-ideology.php#comments</comments>
		<pubDate>Fri, 28 May 2010 18:34:18 +0000</pubDate>
		<dc:creator>Chris Pearson</dc:creator>
				<category><![CDATA[Videos]]></category>

		<guid isPermaLink="false">http://www.pearsonified.com/?p=777</guid>
		<description><![CDATA[As an important player in the Web software space, WordPress wields a powerful influence in the marketplace. When you&#8217;re in a position of such importance, it is your responsibility to purvey accurate information and to refrain from projecting ideologies and agendas on a market that is likely to take anything you say at face value. [...]]]></description>
				<content:encoded><![CDATA[<p></p><p><span class="drop_cap">A</span>s an important player in the Web software space, WordPress wields a powerful influence in the marketplace. When you&#8217;re in a position of such importance, it is your <em>responsibility</em> to purvey accurate information and to refrain from projecting ideologies and agendas on a market that is likely to take anything you say at face value.</p>
<p>My work with Thesis has placed me in a similar position, and I understand how much you can affect the psyche of your customers/users with just a few choice words. It&#8217;s powerful; it&#8217;s amazing; but most of all, it&#8217;s humbling.</p>
<p><span id="more-777"></span>As far as I&#8217;m concerned, being a figurehead in the market doesn&#8217;t mean that you get to be rich, famous, adored, and influential; instead, it means that you <em>always</em> have to hold yourself to a higher standard than everyone else. In other words, you have to do a better, more responsible job because thousands—perhaps millions—of people are dependent upon the solutions that you claim to provide.</p>
<p>Wielding such an awesome responsibility means that there is no room for ideologies, agendas, or anything else.</p>
<p><strong>Solutions are what matters</strong>. You can check the rest of that crap at the door.</p>
<img src="http://feeds.feedburner.com/~r/pearsonified/~4/b-4SAc0Qe0g" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pearsonified.com/2010/05/solutions-and-ideology.php/feed</wfw:commentRss>
		<slash:comments>94</slash:comments>
		<feedburner:origLink>http://www.pearsonified.com/2010/05/solutions-and-ideology.php</feedburner:origLink></item>
		<item>
		<title>How to Diagnose and Remove the WordPress Pharma Hack</title>
		<link>http://feedproxy.google.com/~r/pearsonified/~3/EMBy8S_v-qY/wordpress-pharma-hack.php</link>
		<comments>http://www.pearsonified.com/2010/04/wordpress-pharma-hack.php#comments</comments>
		<pubDate>Thu, 15 Apr 2010 19:55:00 +0000</pubDate>
		<dc:creator>Chris Pearson</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.pearsonified.com/?p=742</guid>
		<description><![CDATA[A few weeks ago, I started receiving tweets and emails from people who claimed that search results for my site were looking more like a pharmacy than a helpful Web resource. Of course, upon hearing such blasphemy, I immediately opened a new browser tab, looked around to make sure no one was watching, and then [...]]]></description>
				<content:encoded><![CDATA[<p></p><p><span class="drop_cap">A</span> few weeks ago, I started receiving tweets and emails from people who claimed that search results for my site were looking more like a pharmacy than a helpful Web resource.</p>
<p>Of course, upon hearing such blasphemy, I immediately opened a new browser tab, looked around to make sure no one was watching, and then started Googling myself&#8230;and if you think <em>that</em> is some <acronym title="No Children">NC</acronym>-17 material, wait til you see what my search results looked like:</p>
<div class="figure" id="fig1"><img src="http://www.pearsonified.com/images/entries/hacked-search-results.png" alt="Google search results showing the WordPress pharma hack" width="486" height="167" title="The dreaded WordPress pharma hack in action" />
<p><span>Figure 1</span>. The three red arrows highlight <code>&lt;title&gt;</code> tags that were cloaked by the WordPress pharma hack. Helpful Web guy or reckless pill-slinger? You decide :D</p>
</div>
<p>What you <em>don&#8217;t</em> see in the picture above is a hacked <code>&lt;title&gt;</code> tag for my home page, but that&#8217;s only because I fixed it before realizing I was going to write an article about these shenanigans.</p>
<p>Suffice it to say that, before I caught the hack, my site looked more like the best damn antidepressant resource than the best damn blog on the planet.</p>
<p>Enough of that, though—let&#8217;s dig a little deeper into the WordPress pharma hack and see what it&#8217;s all about. <span id="more-742"></span></p>
<h3 id="what-it-does">What Does the WordPress Pharma Hack Do?</h3>
<p>There are three facets of the pharma hack that I find particularly interesting. First, <strong>the results of the hack are only visible to search engines</strong>, and if your site is hacked, the public-facing portion of it will remain visibly unaffected. In other words, you won&#8217;t be able to spot the hack just by viewing the <acronym title="HyperText Markup Language">HTML</acronym> source. The goal of any hack like this is to gain valuable links from high-ranking pages, and these hackers have wisely chosen to disturb the water as little as possible while going about their dirty business.</p>
<p>Second, like other hacks, the pharma hack must place malicious files in your WordPress folders in order to work its evil. However, unlike other hacks that I&#8217;ve encountered, the pharma hack disguises a majority of its code and saves it in the WordPress database, thereby making it <strong>more difficult to find and eliminate</strong>.</p>
<p>The third remarkable aspect of the pharma hack was that it didn&#8217;t affect every page of my site. Further, <strong>it only targeted the pages of my site that receive the most search traffic</strong>. For example, in Figure 1 above, the three hacked titles correspond with the following posts:</p>
<ul>
<li><a href="http://www.pearsonified.com/2008/07/how-to-make-money-online.php">2 Sure-fire Ways to Make Money Online</a></li>
<li><a href="http://www.pearsonified.com/2006/03/deal_or_no_deal_the_real_deal.php">Deal or No Deal: A Statistical Deal</a></li>
<li><a href="http://www.pearsonified.com/2006/06/how_much_should_a_design_cost.php">How Much Should a Web Design Cost?</a></li>
</ul>
<p>Interestingly, these three pages contain the most potent and high-ranking keywords on my site. Also, back when I ran AdSense, two of those three pages were the highest earners on the entire site (as far as <acronym title="Pay Per Click">PPC</acronym> is concerned, anyway<sup id="f1r"><a href="#f1" rel="nofollow">1</a></sup>).</p>
<p>With these key points in mind, let&#8217;s answer the original question here: What does this hack do?</p>
<p class="alert">The WordPress pharma hack quietly exploits your highest-ranking and most valuable pages by overriding the title tag <em>and</em> by inserting spammy links into the page content. Interestingly, the modified title tag and spammy links are only visible to search engines.</p>
<h3 id="how-it-works">How Does the WordPress Pharma Hack Work?</h3>
<p>We know <em>what</em> the pharma hack does, but in order to eliminate it and to prevent attacks like this in the future, we need to know <em>how</em> it does what it does.</p>
<p>Basically, the hack consists of two parts—malicious files in the WordPress plugins folder coupled with encrypted code in the WordPress database. The files in the plugins folder contain code that runs the encrypted code stored in the database. Because of this, <strong>the pharma hack is dependent upon these rogue files in the plugins folder</strong>.</p>
<p>Typically, hack files contain easily-identifiable <acronym title="Recursive acronym for Hypertext Preprocessor">PHP</acronym> functions like <code>eval()</code> and <code>base64_decode()</code>, and although the pharma hack is no exception, there&#8217;s one major difference. With the pharma hack, these functions are stored in the WordPress database as strings, and they&#8217;re encoded <em>backwards!</em> At runtime, a hack file in the plugins folder pulls these strings from the database, flips &#8216;em, and then runs &#8216;em as functions, and that&#8217;s how the deed gets done.</p>
<p>Oh, and remember how I said this hack only targeted my most potent and high-ranking pages? Cleverly, the hack pings Google Blog Search with <a href="http://blogsearch.google.com/blogsearch?hl=en&#038;scoring=d&#038;ie=ISO-8859-1&#038;num=10&#038;q=link:http://www.pearsonified.com/" rel="nofollow">queries like this one</a> to see how many links a particular page has, and then it stores the results in the database. At runtime, the hack uses the number of links to determine which pages to target&#8230;</p>
<p>Sneaky bastards :D</p>
<h3 id="removal">How to Remove the WordPress Pharma Hack</h3>
<p>Even if you don&#8217;t see any symptoms of the pharma hack (like cloaked title tags in search results), your site may still be hacked and therefore completely vulnerable. To know for sure, you&#8217;ll have to dig through the two places where the hack is known to romp—your WordPress plugins folder and your WordPress database.</p>
<p>Oh, and before we go any further, let&#8217;s get one thing straight—you <em>are</em> running the latest version of WordPress, aren&#8217;t you? Good, I knew you were the sensible type :D</p>
<h3>Step 1: Remove Hack Files from Your Plugins Directory</h3>
<p>Let&#8217;s start by examining the WordPress plugins folder for hack files. Using an <acronym title="File Transfer Protocol">FTP</acronym> client, navigate to the <code>/wp-content/plugins</code> directory, and then locate your Akismet folder. I&#8217;ve recommended this particular folder as a starting point because I found malicious files stored here on three different sites; however, based on what I&#8217;ve learned about the pharma hack, these malicious files could be in the directory of <em>any</em> active plugin. Therefore, in order to do a thorough diagnosis, you should check any plugin that was active at the time your site was hacked.</p>
<p>Using your <acronym title="File Transfer Protocol">FTP</acronym> client, <strong>make sure your viewing options are set to show hidden files</strong>, and then check to see if any of the following malicious files are located in your Akismet plugin folder:</p>
<ol>
<li><code>.akismet.cache.php</code></li>
<li><code>.akismet.bak.php</code></li>
<li><code>.akismet.old.php</code></li>
<li><code>class-akismet.php</code></li>
<li><code>db-akismet.php</code></li>
</ol>
<p>Ultimately, the important thing to note here is not the filenames themselves, but rather the <em>patterns</em> these names follow.</p>
<p>Items 1–3 are hidden files, and they all exhibit a characteristic naming structure with <code>.cache</code>, <code>.bak</code>, <code>.old</code>, or a similar pseudo-extension in the middle of the filename. Generally, you&#8217;ll find two out of three of these files together—one will look <a href="http://www.pearsonified.com/rogue/hack-file-1.txt" rel="nofollow">like this</a>, and the other will look <a href="http://www.pearsonified.com/rogue/hack-file-2.txt" rel="nofollow">like this</a>.</p>
<p>Items 4 and 5 share a naming convention, too—they are simply the plugin name (or a truncated version of the full plugin name) prefixed by either <code>class-</code> or <code>db-</code>. If you find a file that matches this convention, its contents should look <a href="http://www.pearsonified.com/rogue/widget-support.txt" rel="nofollow">like this</a>.</p>
<p>Now, when you check other folders, you&#8217;ll know what <strong>naming patterns</strong> to look for when attempting to spot hack files, you sleuth you!</p>
<p>Here&#8217;s what one of my infected Akismet folders looked like; note that an uninfected Akismet folder only contains three files (<code>akismet.gif</code>, <code>akismet.php</code>, and <code>readme.txt</code>) and no hidden files:</p>
<div class="figure" id="fig2"><img src="http://www.pearsonified.com/images/entries/hacked-akismet-folder.png" alt="hacked WordPress Akismet folder containing hidden files" width="377" height="296" title="Hidden hack files inside the WordPress Akismet folder" />
<p><span>Figure 2</span>. Two hidden files inside the Akismet plugin folder that were planted by the WordPress pharma hack.</p>
</div>
<p>If you find infected files, <strong>delete them!</strong> Doing this will effectively end the pharma hack <em>symptoms</em> and restore your search results, but it&#8217;s important to note that your site will still be vulnerable at this point. In order to completely remove all traces of the hack and restore the integrity of your site, you&#8217;ll need to dig into your WordPress database to remove some lingering offensive code.</p>
<h3>Step 2: Remove Malicious Code from Your WordPress Database</h3>
<p class="alert">Because this step involves database interaction, it&#8217;s <em>crucial</em> that you pay close attention to the instructions outlined here. Also, it&#8217;s always a good idea to make a database backup before manually editing anything, so don&#8217;t say I didn&#8217;t warn ya!</p>
<p>To begin, you&#8217;ll need to access phpMyAdmin, which is a program on your server that allows you to view the databases associated with your hosting account. If you&#8217;ve never heard of phpMyAdmin and don&#8217;t know how to access it, don&#8217;t worry—simply contact your Web host, and they&#8217;ll be able to help you out here<sup id="f2r"><a href="#f2" rel="nofollow">2</a></sup>.</p>
<div class="figure figure_right" id="fig3"><img src="http://www.pearsonified.com/images/entries/wp-options.png" alt="Select the wp_options table inside phpMyAdmin" width="220" height="136" title="Select the wp_options table inside phpMyAdmin" />
<p><span>Figure 3</span>. Select the <code>wp_options</code> table in your WordPress database.</p>
</div>
<p>Once you&#8217;re inside phpMyAdmin, select your active WordPress database from the left side of the page. If you&#8217;ve selected the correct database, you&#8217;ll notice a new set of links on the left—a collection of tables that look like those shown in Figure 3. From here, click on the <code>wp_options</code> table, and this will allow you to browse the table contents.</p>
<p>Your goal here is simple—<strong>you need to delete database entries that contain malicious code</strong>. Fortunately, finding the entries you need to delete is a simple job if you use the phpMyAdmin search function, which you can access by clicking the Search tab at the top of the page, as shown in Figure 4:</p>
<div class="figure" id="fig4"><img src="http://www.pearsonified.com/images/entries/phpmyadmin-search-tab.png" alt="phpMyAdmin Search tab" width="486" height="62" title="Click on the phpMyAdmin Search tab" />
<p><span>Figure 4</span>. Click on the Search tab to search the <code>wp_options</code> table inside phpMyAdmin.</p>
</div>
<p>On the search screen, you&#8217;re going to need to search the <code>option_name</code> field (see Figure 5 below) for the following rogue database entries:</p>
<ul>
<li><code>wp_check_hash</code></li>
<li><code>class_generic_support</code></li>
<li><code>widget_generic_support</code></li>
<li><code>ftp_credentials</code></li>
<li><code>fwp</code></li>
<li><code>rss_%</code> — <strong>Attention!</strong> In this case, you should delete all matches <em>except</em> <code>rss_language</code>, <code>rss_use_excerpt</code>, and <code>rss_excerpt_length</code> (these are legit WordPress database entries).</li>
</ul>
<div class="figure" id="fig5"><img src="http://www.pearsonified.com/images/entries/search-option-name.png" alt="Search the option_name field" width="481" height="207" title="Make sure you search in the option_name field!" />
<p><span>Figure 5</span>. Search the <code>option_name</code> field for malicious database entries from the list above. If you find any of these entries, delete them!</p>
</div>
<h3 id="prevention-tips">What Next? (And Some Helpful Prevention Tips!)</h3>
<p>Now that you&#8217;ve successfully removed the WordPress pharma hack, you&#8217;re probably wondering what you can do to prevent stuff like this from happening in the future. On that note, I&#8217;ve got some good news, and I&#8217;ve got some bad news. First up, the bad news&#8230;</p>
<p>At this time, there is still one <em>huge</em> unanswered question about the WordPress pharma hack: How in the hell did the hackers manage to get into your server in the first place? I&#8217;ve received reports of the pharma hack on a variety of different Web hosts and server configurations, so it&#8217;s clear that the main vulnerability extends beyond a single host/server platform. So far, the only common denominator between the sites I&#8217;ve examined is that they&#8217;re all running WordPress, but even this fact doesn&#8217;t mean that WordPress itself is the problem.</p>
<p>Alright, with the bad news out of the way, it&#8217;s time for the good news: <strong>You can prevent hacks like this in the future</strong>. Rather than rehash the information here, I&#8217;m going to point you to a fantastic resource on <a href="http://www.wptavern.com/top-5-wordpress-security-tips-you-most-likely-dont-follow">WordPress security tips</a>. From the perspective of someone whose site just got dropped from Google&#8217;s index because of the pharma hack (that&#8217;s me), you would be wise to follow these simple security suggestions :D</p>
<div class="footnotes">
<p><sup id="f1">1</sup> For the record, I think AdSense and <acronym title="Pay Per Click">PPC</acronym> advertising are terrible ways to make money online for two reasons. First, they sodomize the visual flow of your site by taking up valuable real estate, and second, they simply aren&#8217;t as genuine and helpful to mankind as other methods of monetization. For more, read up on the <a href="http://www.pearsonified.com/2008/07/how-to-make-money-online.php">two methods I recommend for making money online</a>. <a href="#f1r" rel="nofollow" title="Return to this footnote reference in the text">&#8617;</a></p>
<p><sup id="f2">2</sup> If you&#8217;re unhappy with your current host or not getting the answers you need, check out what I have to say on the topic of <a href="http://www.pearsonified.com/web_hosting">Web hosting</a>—my guys will help you out for sure. <a href="#f2r" rel="nofollow" title="Return to this footnote reference in the text">&#8617;</a></p>
</div>
<img src="http://feeds.feedburner.com/~r/pearsonified/~4/EMBy8S_v-qY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pearsonified.com/2010/04/wordpress-pharma-hack.php/feed</wfw:commentRss>
		<slash:comments>319</slash:comments>
		<feedburner:origLink>http://www.pearsonified.com/2010/04/wordpress-pharma-hack.php</feedburner:origLink></item>
		<item>
		<title>Where is Web Publishing Heading in 2010?</title>
		<link>http://feedproxy.google.com/~r/pearsonified/~3/IkFdOa3qE6Q/web-publishing-2010.php</link>
		<comments>http://www.pearsonified.com/2010/01/web-publishing-2010.php#comments</comments>
		<pubDate>Fri, 29 Jan 2010 20:00:52 +0000</pubDate>
		<dc:creator>Chris Pearson</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Videos]]></category>

		<guid isPermaLink="false">http://www.pearsonified.com/?p=659</guid>
		<description><![CDATA[I like to solve problems. At this point in my life, I&#8217;m focused on solving the fundamental problems of Web design and development through my business, DIYthemes, and my software, Thesis. One of the most compelling things I&#8217;ve learned in the past year, however, is that it&#8217;s not good enough to crank out &#8220;sufficient&#8221; solutions [...]]]></description>
				<content:encoded><![CDATA[<p></p><p><strong>I like to solve problems</strong>. At this point in my life, I&#8217;m focused on solving the fundamental problems of Web design and development through my business, <strong>DIY</strong>themes, and my software, <a href="http://diythemes.com/">Thesis</a>.</p>
<p>One of the most compelling things I&#8217;ve learned in the past year, however, is that it&#8217;s not good enough to crank out &#8220;sufficient&#8221; solutions to problems. Truly sustainable answers require a style of thinking that involves patience, perspective, skill, testing, and unbiased criticism. Additionally, it&#8217;s crucial to realize that the best solutions we can generate should be reflective of our own human nature—in other words, we must strive to make them as adaptable as we are.</p>
<p>Through my work on Thesis, I&#8217;ve begun to see all sorts of new connections that reveal the direction the Web is heading, and I know that I can use these insights to figure out better solutions to the problems I&#8217;m already tackling.</p>
<p>Recently, I sat down with Nick Reese from Art of Blog to talk about some of these insights and to share my thoughts heading into 2010. You can check out the <a href="http://www.artofblog.com/chris-pearson-interview-2010/">original interview</a> on Nick&#8217;s site, or you can <a href="http://www.pearsonified.com/2010/01/web-publishing-2010.php">click here to watch the video in HD</a> on Pearsonified :D</p>
<img src="http://feeds.feedburner.com/~r/pearsonified/~4/IkFdOa3qE6Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pearsonified.com/2010/01/web-publishing-2010.php/feed</wfw:commentRss>
		<slash:comments>120</slash:comments>
		<feedburner:origLink>http://www.pearsonified.com/2010/01/web-publishing-2010.php</feedburner:origLink></item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

 Served from: www.pearsonified.com @ 2013-05-02 02:11:10 by W3 Total Cache -->
