A place to cache linked articles (think custom and personal wayback machine)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.md 5.6KB

4 yıl önce
12345
  1. title: Guidelines for Letterspacing Type
  2. url: http://johndjameson.com/blog/guidelines-for-letterspacing-type/
  3. hash_url: 8fd6f387f6f93c55ff4c8952a767da4a
  4. <p>Blog posts on line height and vertical rhythm are all so boring. Let’s get horizontal, instead.</p> </div> <p>I know very few web designers who ever adjust letterspacing when setting type on the web. Small changes can have an enormous effect on the readabiltity of text. That means it’s hard to make those decisions unless you’re <em>very confident</em> with your knowledge in web typography.</p> <p>Effectively letterspacing text can make the difference between good typography and <em>great</em> typography. With that in mind, I decided to put together some guidelines for letterspacing type on the web.</p> <h2 id="capital-letters">Capital letters</h2> <p>When setting type in all uppercase, it’s almost always a good idea to increase the text’s letterspacing from its default value. The spacing built into most fonts isn’t intended for use with uppercase text, so that means you’ll need to loosen tracking manually via CSS.</p> <p>This usually involves setting a <code>letter-spacing</code> value around 0.2–0.25 ems for headings and a value around 0.05–0.1 ems for acronyms.</p> <p data-height="200" data-theme-id="2137" data-slug-hash="QbRayd" data-default-tab="result" data-user="johndjameson" class="codepen">See the Pen <a href="http://codepen.io/johndjameson/pen/QbRayd/">QbRayd</a> by John D. Jameson (<a href="http://codepen.io/johndjameson">@johndjameson</a>) on <a href="http://codepen.io">CodePen</a>.</p> <p>In this example, “HTML” and “CSS” are set in <em>small caps</em>, but the same advice applies here, too.</p> <h2 id="font-size">Font size</h2> <p>The relationship between font size and letterspacing is pretty straightforward: as size increases, letterspacing decreases, and as size decreases, letterspacing increases.</p> <p>In more practical terms, here’s what that relationship looks like:</p> <ul> <li>Large text (e.g., titles and headings) should have decreased letterspacing.</li> <li>Body text should have default tracking, or stick very close to default letterspacing.</li> <li>Very small text should have increased letterspacing.</li> </ul> <p data-height="435" data-theme-id="2137" data-slug-hash="aa39c703c30de9f1b65a3c738ad344c2" data-default-tab="result" data-user="johndjameson" class="codepen">See the Pen <a href="http://codepen.io/johndjameson/pen/aa39c703c30de9f1b65a3c738ad344c2/">aa39c703c30de9f1b65a3c738ad344c2</a> by John D. Jameson (<a href="http://codepen.io/johndjameson">@johndjameson</a>) on <a href="http://codepen.io">CodePen</a>.</p> <h2 id="font-weight">Font weight</h2> <p>Like with font size, the relationship between font weight and letterspacing follows a simple pattern: as weight increases, letterspacing decreases, and as weight decreases, letterspacing increases.</p> <p>This is because of the way typefaces at look and feel at certain weights. Light typefaces have an airy aesthetic that’s complemented by open letterspacing, while bold typefaces have a dark and heavy aesthetic that’s complemented by pulling the letters <em>closer together</em>.</p> <p data-height="350" data-theme-id="2137" data-slug-hash="ba2516c0e03124d5afe2d7f0eefec5fd" data-default-tab="result" data-user="johndjameson" class="codepen">See the Pen <a href="http://codepen.io/johndjameson/pen/ba2516c0e03124d5afe2d7f0eefec5fd/">ba2516c0e03124d5afe2d7f0eefec5fd</a> by John D. Jameson (<a href="http://codepen.io/johndjameson">@johndjameson</a>) on <a href="http://codepen.io">CodePen</a>.</p> <p>For a more in-depth explanation on how weight affects letterspacing decisions, check out Carolina de Bartolo’s <em>Typography Matters</em> talk over on <a href="https://www.youtube.com/watch?v=VpBslige5Yk&amp;feature=youtu.be&amp;t=1130">YouTube</a>.</p> <h2 id="light-on-dark-text">Light-on-dark text</h2> <p>Light type set on a dark background usually benefits from a small increase in letterspacing.</p> <p>If you look at the following example, you’ll notice that the white-on-black text appears <em>bolder</em> than the black-on-white text. They’re the exact same size and weight, but the white-on-black text still looks a little bit thicker. To compensate for that difference, you’ll need to make a subtle increase in letterspacing.</p> <p data-height="228" data-theme-id="2137" data-slug-hash="qdGyJY" data-default-tab="result" data-user="johndjameson" class="codepen">See the Pen <a href="http://codepen.io/johndjameson/pen/qdGyJY/">Value vs. Letterspacing</a> by John D. Jameson (<a href="http://codepen.io/johndjameson">@johndjameson</a>) on <a href="http://codepen.io">CodePen</a>.</p> <p>CSS supports <code>letter-spacing</code> values in quarter-pixel increments, so I’m able to specify <code>0.5px</code> in this example. When setting type at a small size, you’ll often find comfortable letterspacing somewhere <em>in between</em> whole pixel values.</p> <h2 id="theres-always-more-to-learn">There’s always more to learn</h2> <p>This article just <em>scratches the surface</em> of letterspacing type on the web. Once you start combining different elements of typography, you’ll run into situations where its best to work <em>outside</em> these guidelines. For example, how does type set in italics respond to letterspacing? And in what situations does wordspacing come into play?</p> <p>I’m still figuring out the answers to those questions myself, but if you’d like to start a conversation about web typography, hit me up on <a href="https://twitter.com/johndjameson">Twitter</a>.</p> <p class="article-footer"> <time class="tsi tss">August 18, 2015</time> </p>