the-deuce.jpg

How to Tune Typography Based on Characters Per Line

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’s another facet of text that nearly all of the existing research on typography deals with: It’s called characters per line (CPL).

If you’ve ever read a study on typography, you’ve no doubt encountered CPL. Many of these studies recommend “optimal” CPL ranges that include anything from 55 to 100 CPL.

With an “optimal” range that large, the CPL you use on your site ultimately comes down to personal preference. This raises one huge question:

How can you tune your typography to an exact (or, at least approximate) CPL?

Tuning Text for Characters Per Line

Before you can tune your text, you have to understand how CPL works and what the consequences of different CPLs are. Here’s the deal:

For any font size, as the CPL increases, the line width also increases.

Characters per line vs. line width

Figure 1. 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.

This has some significant design implications, and worse, most designers don’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…well, that’s what you get.

Frankly, I can’t stand this imprecise approach. Every decision—especially those involving your design and typography—should have a meaningful rationale behind it.

The bottom line here is that your typography should dictate how wide your columns of text are, not vice-versa.

So, how can you tune your typography to a specific CPL and, therefore, a specific width?

There are two potential approaches you can take here. You can:

  1. Use the good ol’ trial and error method, whereby you select different widths, count the characters per line, and settle on the width that you prefer.
  2. Figure out a programmatic way to predict CPL, and then choose a width based on this prediction.

Choice number one is a laborious pain in the rear, and it gets old really quickly. On top of that, it’s simply an imprecise approach, and we all know how I feel about that…

Contrary to number one, choice number two sounds great and makes a ton of sense. Problem is, you don’t have a programmatic way to predict CPL…yet.

Using Math to Predict CPL

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.

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.

Characters per line research sample

Figure 2. 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. Click to enlarge.

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’s how I did it:

Using text samples like the one in Figure 2, I first calculated the average character width (cw) at each font size by dividing the resulting line width by the CPL value.

Average character width equation

Not surprisingly, as the font size increased, the average character width also increased. The next step, however, is where things started to get interesting.

To relate font size and character width, I simply divided the font size (f) by the newly-calculated average character width:

Character constant equation

And this is where I noticed something extraordinary—for any font, the value (μ) from the above equation remains constant, even at different font sizes. In other words…

Each font has a character constant, μ, associated with it that relates the font size to the width of each character.

It may not be obvious at first, but this character constant is awesome because it establishes a mathematical relationship between the vertical (font size) and horizontal (character width) dimensions of text.

For instance, if you have a font size of 12px, and the font you’re using has a character constant of 2.3, then 2.3 characters will fit in every 12px increment of width (on average).

Thanks to this relationship, it’s possible to predict CPL mathematically. Here’s how it’s done:

Start with a desired CPL value, and then divide it by the character constant for the font you’re using. This results in a width factor, xw, which is specific to the desired CPL and font:

Width factor equation for CPL

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, w, that will result in the desired CPL.

Predicted width for CPL

The aforementioned equations can be simplified and combined into one master equation that relates CPL, font size, and line width for any font:

Master equation for width, font size, and CPL

Alright—now that you’ve seen the basic math behind CPL, let’s bring this together by looking at an example.

Sample Predicted Width Calculation Based on CPL

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:

Sample predicted width calculation based on CPL

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.

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:

Sample predicted width calculation based on CPL and a different font size

So while you’d need 526px to achieve 75 CPL at a font size of 16px for this particular font, you’d need 592px to achieve the same CPL at a font size of 18px. Pretty sweet!

A Closer Look at Character Constants

The most important concept in CPL tuning is undoubtedly the character constant, μ.

As I stated earlier, the character constant is different for every font. In order to build a CPL prediction algorithm, it’s necessary to examine each font individually to determine its μ value.

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).

Text samples set to 68 CPL

Figure 3. 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.

When researching character constants, it’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’d eventually nail down a statistically significant value for μ.

Ultimately, though, the character constant is only useful for predicting an approximate CPL value—actual CPL values will differ from line to line depending on the characters involved.

Here’s a quick rundown of the character constants I’ve compiled through my research thus far (note: none of these are statistically significant):

Serif Fonts

  • American Typewriter — 2.12
  • Baskerville — 2.51
  • Georgia — 2.27
  • Hoefler Text — 2.44
  • Palatino — 2.30
  • Times New Roman — 2.60

Sans-serif Fonts

  • Arial — 2.31
  • Gill Sans — 2.51
  • Gill Sans 300 — 2.58
  • Helvetica Neue — 2.26
  • Lucida Grande — 2.07
  • Tahoma — 2.30
  • Trebuchet MS — 2.22
  • Verdana — 1.98

Monospace Fonts

  • Courier New — 1.60

The character constant provides a new, algorithmic way to understand how fat or skinny a font is. Lower character constants are “fatter,” and higher constants are “skinnier.”

Simply put, the character constant is an interesting new way to consider different typefaces.

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.

Also—and I really like this—smart programs can use the character constant to work with fonts in a more precise, more predictable way.

Update: A commenter pointed out a perfect potential application—building smarter CSS font stacks based on similar character constant values!

Math, Schmath. Software to the Rescue!

When I unveiled the Golden Ratio Typography Calculator, the point was to make it easy to explore finely-tuned typography without having to do heavy mathematical lifting.

Now, I’m pleased to announce that I’ve incorporated this new CPL research into the calculator, too. All that math you saw above? Yeah, you won’t have to do any of it :D

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 any setting!

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.

Golden Ratio Typography font selector

Figure 4. Use the font selector on any typographical recommendation to see how CPL changes relative to the typeface. Fascinating, I tells ya!

The Bottom Line

Typography is the most important component in all of design. There’s no doubt about it—design is a language of communication, and words are the most powerful communication tool we have.

It makes sense, then, that we should strive to understand as much as possible about typefaces, their metrics, and how they work.

Using the Golden Ratio Typography Calculator, you can explore the finer points of typography like never before.

You’ll gain insight into line heights, line widths, CPL, and how different fonts behave (grr, baby!). Best of all, you’ll be able to create beautiful typography on your site thanks to the precise recommendations from the calculator.

Take the Next Step!

  1. Share this on Twitter:
  2. Share this on Facebook:
  3. Submit it to StumbleUpon
  4. Bookmark it on Delicious

32 comments… read them below or add one

Sean Davis January 4, 2012

Okay, I’m loving these write-ups. No one else (within typical blogging circles) is talking about this stuff.

I have a question, though. I’m not sure if anyone has asked it yet.

How can we determine the importance of headline dimensions in relation to our main body of text?

Recently, I grew up a little bit and stopped going crazy with the formatting of my headlines within my posts. Now, I’m depending more on font dimensions, line-height, margins, etc.

I think it’s a much cleaner way of doing things. But does it change based on any of the equations you’ve mentioned here or your last article?

I understand that this may be a question for another article. If so, I’ll be patient and wait for that one :)

Nice work!

Reply

Chris Pearson January 4, 2012

Sean, you’re talking about typographical scales, which, in the simplest terms, determine the heights of headlines, sub-headlines, and other auxiliary text relative to your primary text.

I’ve done some preliminary work with scales based on the golden ratio, and here’s what I’ve found:

  • Primary font size: 16
  • Website title: 16 × (φ2) = 42
  • Post headline: 16 × φ = 26
  • Sub-headline: 16 × sqrt(φ) = 20
  • Auxiliary text: 16 × (1 ÷ sqrt(φ)) = 13

Site Title (42)

Article Headlines (26)

Sub-headlines (20)

Primary Text (16)

Auxiliary Text (13)

A scale like this yields 5 usable font sizes and does not require the arbitrary selection of another “important number” to fill in spatial gaps.

Another interesting note is that, according to this scale, the article headline font size is equal to the line height of the primary text in the article.

Finally, I haven’t tried out a scale like this on any of my sites yet, but if anyone reading this wants to apply it and share the results, I’d love to see them!

Reply

Sean Davis January 4, 2012

Wow! This stuff is right up my alley!

I think I might spend a day concentrating on these last couple of articles, your ratio tool, and SuccessOnMyMind.com.

I’m going to see if I can get every area of the site in accordance with these standards… also taking into consideration what you’re saying here about effective website design.

I’m loving it.

Reply

Avinash D'Souza January 4, 2012

Just curious, Chris…have you also looked at the typographic scale while researching this post?

Reply

Chris Pearson January 4, 2012

I’m not sure I understand your question, Avinash. Typographical scales are a completely separate topic from CPL tuning.

Reply

Odt Ukoge January 4, 2012

The measure (what you’re referring to as CPL), or length of a line of type, should be no more than 65-80 characters per line. 100 is crazy, 55 is fairly narrow.

Read Bringhurst and Tschichold’s work on this. Bringhurst goes into every specific of type setting, Tschichold did a lot of work on ideal measurements for print/book layout.

Reply

Chris Pearson January 4, 2012

Odt, I’ve read both Bringhurst and Tschichold, and neither one cites research studies to back their claims. While both are considered “classic” texts in typography, they are merely a foundation for future research into the topic.

Your statement of “100 is crazy, 55 is fairly narrow” is baseless and should be immediately dismissed by anyone who is paying attention.

Furthermore, I mentioned that studies have shown that people read faster as line lengths get longer (so this was not some bold claim on my part; these are the facts).

I highly recommend that you read some studies on the topic of CPL and line length. Here are 2 that I found particularly informative:

I’m going to cover the psychology of CPL and line lengths in my next article on typography. Until then, it looks as though I’ll be debasing ignorant, clueless comments attacking my research :D

Reply

Arienne Holland January 4, 2012

Keep it up, Chris.

As a former print graphic designer turned newspaper editor turned Internet marketer, I appreciate your thinking and research and the results of both. Your type calculator and your blog posts about the math involved are useful, possibly essential, for any graphic designer today, print or digital.

The closest thing to a type formula I got in college was, “The width in picas of your column should be no less than 1 x the point size in type; no more than 2 x the point size in type; and ideally 1.5 x the point size in type.”

Yes, I said picas. It’s not a bad guideline, but certainly not the Golden Mean.

Most textbooks or guidebooks are out of date as soon as they’re in print—even Strunk & White, which is oft-cited as the Bible of good writing. (For a good read, try Stylized: A Slightly Obsessive History of Strunk & White’s The Elements of Style.)

Now, tell me: is Helvetica your favorite documentary?

Reply

Chris Pearson January 4, 2012

Ha, Arienne, this may come as a shock, but I haven’t even seen Helvetica yet. I may queue that up for tonight.

As far as documentaries go, I’m a much bigger fan of ones that cover the universe, nature, and human behavior (economics, specifically).

And great point about picas and sizing. The line, “ideally 1.5x the point size in type,” perfectly summarizes everything that is wrong with most typographical advice.

1.5x? Based on what? Similar to this, most publishing software sets initial line heights to 120% of the font size. The reasoning? This is considered the minimum acceptable line height at which ascenders and descenders do not collide.

Scientific? Hardly. I know we can do better than that, and that’s what my research is all about.

Reply

Arienne Holland January 4, 2012

If you can’t find it on a queue near you, let me know and I’ll send you my DVD copy. Meanwhile, I’ll be off ordering my Stendig Calendar for the fifth year in a row… I’m not so much a giant fan of Helvetica as I am of giant calendars with Monday week starts that double as above-the-mantel artwork for $40.

Reply

Chris Pearson January 4, 2012

Design nerd alert! :D

Reply

Norcross January 4, 2012

Great stuff, but something I’ve run into a handful of issues when setting a font stack. Is there a good way (or some resource) that has stacks based on CPL?

Reply

Chris Pearson January 4, 2012

Fantastic question, Norcross. I’ve never seen a font stack based on CPL before, but a stack based on the character constant makes a ridiculous amount of sense.

Hopefully, the stuff I’ve set forth in this article will serve as the basis for typographical improvements in the future. Font stacks could very well be the first thing affected.

Reply

Hans Koevoet January 5, 2012

Chris, one of the sources you give (Reading Onscreen: The Effects of Line Length on Performance) says that although a long CPL facilitates faster reading, most readers think a short line does. Now I’d think that poses a dilemma for web designers. Should you strive for a typography that actually facilitates fast reading? Or should you strive for a design that seems best in the eye of a potential reader and hence will perhaps invite more visitors to actually read the texts on your site? Or even something in between?

Reply

Sean Davis January 5, 2012

Take a look at the comments of the article before this one.

Derek Halpern tackled this one in depth. To sum it up, the dilemma is solved when you start your articles off with short lines to get the reader going. Like you said, they think they’re better off.

Then, you slowly ease into longer line lengths. I’ve noticed that Derek does it by having specific width images in the top right corners of his posts. That way it gets the reader going with thier preferred short lines… building momentum.

By the time the picture is no longer in the mix, the line has lengthened and the reader is actually reading faster than they realized. Not to mention, they are now fully engaged with the article.

Reply

Hans Koevoet January 5, 2012

Thanx Sean. Nice summary!

Reply

Ahmad Wali January 7, 2012

Ahh!! Everything is over my head :(

Reply

Enabled January 8, 2012

Dude. Really, I am absolutely AMAZED by this calculator! I develop stock templates, and always had a hard time with typography! Now, everything works so fast! Really! THANKS! You rule mate! You just… rule!

Reply

Justin Mazza January 8, 2012

Hi Chris,
I have never even thought of this before and your math equations blew my mind away.

I have to give you the #1 spot for the most interesting and original post of the year. :)

Reply

Carson January 10, 2012

Wow, I never would have even thought about this, and I would never have taken the time to figure out the formulas.
Thanks for sharing your research with us. I’m off to check to make sure my design all follows the Golden Rule.

Reply

Martin January 12, 2012

Very, very useful writeup & great reminder.

I do typesetting for books (in a semi-professional way) and consider myself an InDesign- and typography nerd of sorts, but like many people I tend to forget about my good font manners when it comes to blog building…

Thanks—the best practices outlined in your article will help many bloggers to make the web a better (=more readable) place!

Cheers.

Reply

Aaron Hung January 12, 2012

very nice!! I love it thanks for sharing this :D I never would’ve figured out.

Reply

Adan Harris January 16, 2012

This is some serious stuff on Typography. I never reviewed this topic so scientifically. Thanks a lot! Loved it.

Reply

Diah January 16, 2012

Typography is the least given attention in design. But typography and also color affect the behavior and attitude of the reader towards the content. Thank you for this post. Very informative!

Reply

Avinash January 19, 2012

Wow awesome post thanks for the article :)

Reply

Daronet January 22, 2012

What a nice post. Got a little confused by the Math presented here, but later, got the potential and the message. Keep up with the good work.

By the way, I wanted to plus one it, but never saw the Google plus 1 button

Reply

Stefan Vorkoetter January 24, 2012

Hi Chris: I’m a registered thesis user (although it’s not live on my site yet), and have tried your optimal type calculator, but my question is, optimal for what? I find that the settings produced by your calculator (and by Thesis) are indeed pleasing, but somehow whenever I read a page set like that, I feel like I’m reading a marketing blog. :)

My personal web site (which I’m switching over to WordPress/Thesis) is a very technical one, not primarily a marketing site, and I’m wondering if this golden ratio typesetting makes sense in that context, or whether something a _little_ denser is called for.

Reply

Rob Thomson February 16, 2012

I knew typography was always an important part of design but never gave it much thought on the internet. This has me thinking now. Thank you as always for such great information. I need to implement this information.

Reply

Campbell February 17, 2012

Awesome article Chris! Not many folks are truly aware of how much of a vital role that the Golden Theory plays in the world as we Know it.
From the Tallest Skyscraper to the credit card in your wallet, eveything that we see around us in the world today is based off of the Golden Rectangle or Golden Section which ever you prefer.

It is nice to see that other folks other than myself have a deeper and more appreciative understanding of the Golden Theory and how it impacts our day to day lives.

I would like to ask you a question if you wouldn’t mind Chris? What is your professional and personal opinion on the use of text-align: justify; on blogs or websites?

I am kind of torn on the use of this myself. Even though I do like it and it would basically boil down to design preference and personal opinion I would be thrilled if you would weigh in on this with your opinion as you have far more experience when it comes to typography than I do.

Thanks Chris

Cam

Reply

Chris Pearson February 17, 2012

Campbell, I consider text-align: justify to be a sin on the internet.

When justifying text, the browser will stretch and contract the whitespace in between words so that each line takes up the same amount of horizontal space.

This creates unnatural syncopations in the text that you simply don’t get if you stick with a ragged right edge.

Justification works with certain typefaces in very narrow columns (the total amount of unnatural whitespace is less if the lines are shorter, thereby diminishing the negative effects of justification), but it is not something that should be done on the medium to large columns of text that you commonly find on the internet.

Reply

Campbell February 17, 2012

Hey thanks Chris! Thank you so much for your reply to my specific question. The Blogging Platform is relatively new to me and I have found one thing that has been consistent the 4 years that I have been web mastering, it’s not about what I like or perceive, it’s what the majority of the public on the internet perceive or like is what really counts.

Thanks a million for your response once again Chris. I shot an email off to Brian Clark through his contact form asking the same question. Although I did get a reply it was not from him Sue it was from someone that works for him. Basically she told me they get thousands of requests such as mine regularly and referred me to sign up for Internet Marketing for Smart People….. Already get that and it has nothing what so ever to do with a CSS property nor does it or has it ever alluded on such to the best of my knowledge either!

Thanks for making the time to answer a basic question that apparently only you out of 4 other different people have made the time to respond to.
Be Shout Out of thanks for keeping it real with the average guy!

Cam

Reply

Bharat February 19, 2012

This is complete stuff related to typography, every single element in thesis theme got a well researched information.that why I like Thesis.

Reply

Hoot and/or Holler

Previous post: