← Back to blogYouTube Video

November 14, 2026 • By

Headline font vs body font: x-height and letter spacing

Can't play the video or having issues? Here's the direct link.

The short version

  • Pick body fonts with a tall x-height and loose built-in letter spacing, because body text is small. Headline fonts can have a shorter x-height and tighter spacing.
  • The x-height is the height of a lowercase x. At 48px it measures 22.5px in Jost and 25.5px in Montserrat, even though both fonts have the same cap height.
  • Every font has letter spacing built in. At 48px, "Some text" is 196px wide in Jost and 244px in Montserrat, from wider letters and about 41% more space around each one.
  • You can measure any loaded font in the browser console: canvas measureText() gives the x-height from a lowercase x and the built-in spacing from each letter's advance width minus its ink.
  • Keep display fonts on large headlines. With a serif display font like Playfair Display the thin strokes give it away: about a third of a pixel thick at 16px.

A body font should have a tall x-height and loose built-in letter spacing, because body text is small and both of those make small letters easier to read. A headline font can get away with a shorter x-height and tighter spacing, since text at 48px is easy to read in almost anything.

Below I measure both properties on Jost (a headline font) and Montserrat (a body font), the pair I compare in the video above, then give the same numbers for a few popular Google Fonts, a snippet that measures any font for you, and where display fonts fit in.

Why headline fonts don't work as body text

Headline fonts are designed to look great on large text, and the things that make them look good at 48px make them harder to read at 16px. Body text is small and headlines are large. If you take a font that was drawn for headlines and set your paragraphs in it, you lose readability, and paragraphs are the part people actually have to read.

So the rule is simple: pick the right font for the job. When I'm choosing between a headline font and a body font, I only look at two things: the x-height and the letter spacing.

X-height: how tall the lowercase letters are

The x-height is the height of a lowercase x, measured from the baseline to its top. Most lowercase letters (a, c, e, m, n, o and so on) are about that tall, so it decides how big your lowercase text looks at any font size.

Set Jost and Montserrat side by side at 48px and weight 400 and the x in Montserrat is clearly bigger. I measured it in Chromium: the x is 22.5px tall in Jost and 25.5px in Montserrat, about 13% taller. Both fonts have the same cap height (0.704 of the font size, about 33.8px at 48px), so their capitals are the same height. All of the difference is in the lowercase, and body text is almost all lowercase.

At 16px that's 7.5px for Jost against 8.5px for Montserrat. One pixel doesn't sound like much, but at that size it's about 13% of the letter.

That's why body fonts get a taller x-height: small text needs all the help it can get. Headlines are already big, so readability isn't the problem there, and a font with a shorter x-height like Jost looks better at that size.

Inter's own description on Google Fonts says the same thing: it "features a tall x-height to aid in readability of mixed-case and lower-case text".

Letter spacing: the spacing built into the font

You can change letter spacing yourself with the letter-spacing property in CSS, or the same setting in Figma. But every font also has its own spacing baked in: each letter is drawn with a bit of empty space on either side of it, and that space is part of the font file.

Line up the two fonts again and the Jost text is a lot tighter, with the letters packed closer together, while the same words in Montserrat take up much more room. At 48px, "Some text" is 196px wide in Jost and 244px wide in Montserrat, 24% wider.

When I measured where that extra width comes from, it was both. The empty space around each lowercase letter averages 0.063em in Jost and 0.089em in Montserrat (41% more), and the letters themselves are about 20% wider in Montserrat too.

Wider spacing helps small text, because the letters don't run into each other and each word is easier to make out. Large headlines don't need that, and tighter spacing usually looks better on them, with the letters pulled closer together.

Jost vs Montserrat

Here's all of it in one place. Everything is measured in Chromium at weight 400.

JostMontserrat
Use it forHeadlinesBody text
X-height0.469em0.532em
X-height at 48px22.5px25.5px
X-height at 16px7.5px8.5px
Space around each letter0.063em0.089em
"Some text" at 48px196px wide244px wide

So for headlines you want a shorter x-height and tighter letter spacing. For body text you want a taller x-height and wider letter spacing.

I ran the same measurements on a few fonts you've probably used, all at weight 400:

FontX-heightX-height at 16pxSpace around each letter"Some text" at 48px
Jost0.469em7.5px0.063em196px
Lato0.516em8.3px0.064em210px
Montserrat0.532em8.5px0.089em244px
Roboto0.532em8.5px0.075em216px
Open Sans0.547em8.8px0.079em225px
Inter0.547em8.8px0.086em228px

Jost is the only one under 0.5em. The other five all sit between 0.516em and 0.547em. Lato's spacing is almost as tight as Jost's, but its x-height is clearly taller, so it still reads fine small. It's the short x-height and the tight spacing together that make Jost a headline font.

Measure any font yourself

You don't have to eyeball this. Paste the code below into the DevTools console on a page that already loads the fonts you want to compare, and change the names in the last loop:

async function fontMetrics(family, weight = 400) {
  const size = 1000; // measure big, because Chrome rounds the ink box to whole pixels
  const font = `${weight} ${size}px "${family}"`;
  const faces = await document.fonts.load(font);
  if (faces.length === 0) throw new Error(`${family} isn't loaded on this page`);

  const ctx = document.createElement("canvas").getContext("2d");
  ctx.font = font;

  // x-height: from the baseline to the top of a lowercase x
  const xHeight = ctx.measureText("x").actualBoundingBoxAscent / size;

  // Built-in spacing: each letter's advance width minus its ink, averaged over a-z
  let space = 0;
  for (const letter of "abcdefghijklmnopqrstuvwxyz") {
    const m = ctx.measureText(letter);
    space += m.width - m.actualBoundingBoxLeft - m.actualBoundingBoxRight;
  }

  return {
    family,
    xHeight: +xHeight.toFixed(3),
    spacing: +(space / 26 / size).toFixed(3),
  };
}

for (const family of ["Jost", "Montserrat"]) {
  const { xHeight, spacing } = await fontMetrics(family);
  console.log(`${family}: x-height ${xHeight} em, spacing ${spacing} em`);
}

It draws text on a canvas and reads two numbers from measureText(). actualBoundingBoxAscent for the letter x is the x-height. For the spacing, width is how far the letter moves the next one along, and the two bounding box values are where the ink actually is, so the difference is the empty space the font puts around the letter. Both are divided by the font size, so the results are in em and you can compare fonts at any size.

The measuring happens at 1000px because Chrome rounds the ink box to whole pixels. When I measured at 48px, Jost's x came out as 23px instead of 22.5px, and that kind of error swamps the gap in spacing, which is only a pixel or two per letter at that size. If the font isn't loaded on the page, document.fonts.load() finds nothing and the function throws instead of quietly measuring a fallback font.

On a page that loads Jost and Montserrat, it prints:

Jost: x-height 0.469 em, spacing 0.063 em
Montserrat: x-height 0.532 em, spacing 0.089 em

Display fonts: headlines only

This wouldn't be complete without display fonts. They're headline fonts taken further: they have striking, unusual shapes that look great on a big headline and make small text unreadable. Filter Google Fonts by the Display category and you'll see what I mean. At 120px most of them are fine. At 16px a lot of them are close to impossible to read.

So use a display font if you want your headlines to look like someone paid attention to the details, but keep it off your body text. A playful display font can look great on the headlines of a kids' website and still ruin the paragraphs underneath.

With serif fonts, x-height and spacing don't always give it away. Playfair Display is a display design (its Google Fonts description says so, and suggests Gelasio or Georgia for body text). When I measured it against Gelasio, Playfair's x-height was actually taller, 0.516em to 0.500em. The thin strokes give it away. I measured the top of the lowercase o: it's 0.020em thick in Playfair Display and 0.047em in Gelasio. At 16px that's a third of a pixel against three quarters of one, and a screen can only draw a third of a pixel as a faint grey line. So for serifs, look at how thin the thinnest strokes get as well.

A headline and body pairing in CSS

Here's Jost for headings and Montserrat for everything else, loaded from Google Fonts. Put this in your <head>:

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Jost:wght@600&family=Montserrat:ital,wght@0,400;0,700;1,400&display=swap">

And this in your CSS:

body {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  line-height: 1.1;
}

I load Montserrat's bold and italic styles too, so <strong> and <em> use real font files instead of the browser faking them. I go into why that matters in how I pick good fonts. I checked the result in Chromium at 1280px and 375px. The headings render in Jost SemiBold and the paragraphs in Montserrat, at both widths.

I don't add any letter-spacing here. These two fonts already have the spacing I want for each job, which is the whole point of picking them this way. Line height is the other setting that changes between headlines and body text, and I cover it in how to make your text readable for the web. For sizes and the rest of a type scale, see how to systemize your typography.

Don't overcomplicate it

These are basic rules, and that's fine. Body text gets a tall x-height and wider spacing, headlines get a shorter x-height and tighter spacing. Display fonts stay on headlines. If you just do that, you're already ahead of most designers.

If you want more of this, my book Designing Websites is everything I've learned building websites, and it's free.

Video transcript

Show
Okay, so today's gonna be a really quick video. I just want to talk about fonts again. I know I talk about fonts a lot, but I want to specifically talk about how to choose between headline fonts and body fonts. Now, both of these are completely different things. Not completely, but like, there are certain fonts that look great for headlines and there are certain fonts that look great for small body text. And if you choose the right font for the right job in the right place, then it ends up looking a lot better than if you just, I don't know, use the same font everywhere in every use case. So, that's what we're going to talk about. We're going to talk about how to pick the right fonts for the right job so that our design looks a lot better than it normally would. the main thing here is to not use headline fonts for body text because that will just kill your readability the the thing with headline fonts is that they are literally designed to look great on large text now this design does give them some distinctive properties that makes them a bit harder to read on small body text you know that body text is really small we know that headlines are really large so we need to pick the right fonts for the right job if you for instance pick a font that is meant for headlines and if you try to use that in your small body text it's going to be a lot more difficult to read that font because it's not designed to be used on small body text right so yeah stuff like that that's what we're going to talk about in today's video now when you're trying to pick between um when you're trying to pick a body font versus a headline font there are basically two properties that you need to look at two properties in typography in different fonts that you need to look at. That's the X height, that's number one, and the letter spacing, that's number two. And I'll show you what both of these mean and how we can use them to pick between different fonts. So first of all, the X height. Now I'm going to pick a font here called Jost. This is a headline font, which means it's meant to be used on headlines and not in body text. The X height, let's talk about the X height. The X height is basically the height of the lowercase x so if i have some i don't know some text here like this is some text if i have this over here and i go down to the regular 400 font weight the height sorry about that the height of this x character is what's the x height all right the lowercase x Now, why is this important, especially in choosing fonts? Because when it comes to small body text, we want to have a taller X height, as that makes it a lot easier to read that text But when it comes to large headlines right Headlines are already very large We don need to worry about readability when it comes to really large headlines So what we can do is we can use a font with a smaller x height something like Jost right here Now this is meant for headlines, right? So it has a smaller x height. If I showed you a different font, let me open up another page here and let's look at something like Montserrat. So this is a body font and you'll notice that it has a lot higher a lot taller x height if I have the the same text here let's say it says some text and I go I go down to the regular 400 you'll see that the x height is a lot bigger over here and I'll just show you both of these side by side as well so you can so you can compare these as such there we go let me also make sure that the text is the same yep 48 pixels here 48 pixels here so it's the same text same font weight everything but you'll notice that the x over here is just larger than the x over here right and the reason for that is just this font is meant for headlines which is why it has a smaller x height whereas Montserrat over here this has a taller x height and that's because it's meant for body text so again just to recap if you want to pick a if you want to pick a font for body text you want to pick something that has a taller x height as that's going to improve the readability of your text which is very important when you're using it for small body text right and if you're trying to pick a font for headlines you want to pick something that has a smaller x height something like just something like anything else really that has a smaller x height and you need to do this because it's just going to look a lot better because headline text is really large so we need to have a smaller x height there and that just looks a bit better, right? So that's how we can use x height to pick better fonts. Now let's talk about letter spacing. So letter spacing, as you probably already know, is the space between each letter in a font, right? Now if you've done some sort of coding or designing in CSS or Figma or anything like you'll know that we can actually tweak the letter spacing of each character on our own right so CSS has a property letter spacing that we can use to differentiate between sorry to deliberately change the value of the letter spacing in our font right but every font also has its own intrinsic letter spacing that's literally baked into the font right so if I show you these fonts again, you'll see that the, let me line this up as well. You see that the text over here in JOST which is meant for headlines is a lot tighter Whereas here in Montserrat which is a body font the text is a lot wider Like there is a lot more letter spacing between each font, right? You can see that it actually takes up much more space as well, right? Like see this Montserrat text, it takes up a lot more space, which means that characters are a lot wider. There's a lot more letter spacing in them. And that is why it's good for body text. Whereas the same thing over here in JOST it's a lot tighter like a lot the characters a lot more tight together right so it has a lot less letter spacing than Montserrat which is great for headline text now why is this the case well this is because when it comes to small body text we want to have a wider letter spacing and this just makes it easier to read that text right it's small text we want to keep the readability really good and the way you can do that is to have wider letter spacing it just makes the the words a lot easier to read now when it comes to large headlines again they're really large very easy to read we don't need to worry about the letter spacing there we can actually use a tighter letter spacing there and that just makes it look a bit better right so that's how we use letter spacing to pick fonts between headlines and body text tighter letter spacing the words are or the letters are a lot more mushed together that looks much better on headlines on large headline text wider letter spacing and that's just great for body text because body text is really small we want to improve the readability of that small body text as much as we can and wider letter spacing is going to help us do that so that's basically how you can pick between headline fonts and body fonts the x height you need that and also the letter spacing so just a quick summary of everything we talked about so when we're trying to pick a font for headlines we want to have a short x height and we want to have tighter letter spacing but when it comes to body text when we want to pick a font for body text then we want to have wider letter spacing and a taller x height and that's just some basic readability rules that's going to help improve the readability of our text and just make it look a lot better right so that's how you pick fonts between headlines and body text now this video wouldn't be complete if i also didn't talk about display fonts. So display fonts are basically just headline fonts. They are literally only meant for headline fonts and they have some really striking visual characteristics right and these characteristics look really great on large headline text but when it comes to small body text it just makes the text completely unreadable. So display fonts are meant only for headlines Now I show you some examples of what I mean here I can go to the filters and I can use any of these really all of these are display fonts in some way maybe something like this and I close this other tab you can see that these fonts are really like weird in a sense right like they're meant only for large headlines why because they're hard to read right look at this it's really hard to read unless it's some really large text right this is really hard to read because it's small text this is 120 pixels this is easier to read so display fonts are only meant for large headlines if you want to make your headlines look a bit like just more well-designed like if you want to make it look like you really pay attention to the details then you can try using a display font but just be careful not to use it on body text because it's just going to destroy the readability of the text just imagine using some font like this on small body text which is literally 16 pixels right something like even less than this right it's just gonna be impossible to read and you show you a couple other fonts that are meant for displays as well but yeah something like this as well this could look great on headlines if you're building some sort of a playful kind of kids website or something but it's not going to look great on body text. I can shorten the text again. It's just really hard to read, right? So just be careful with that. Do not use display fonts, which are only meant for headlines. Do not use them on body text. It's just going to destroy the readability of your text. Only use them for headline text, large headlines where the text is just going to be so large that these fonts aren't going to hinder the readability right but yeah that's about it so just a couple basic rules for picking better fonts especially for headlines and body text don't over complicate it it's just really basic rules follow the x height follow the letter spacing and just pick great fonts you don't need to over complicate it if you just follow everything that we talked about in this video you're already ahead of most designers just like that so yeah don't over complicated follow the simple process and that's about it like subscribe and if you want to work with me or something then check out my website the link will be in the description if you want to improve your design skills or something I have a free book on design which is just all of my experience building websites and I just shoved all of the knowledge I have into that book if you can check that out as well it's completely free yeah that's about it

Share this article

Hassan Aziz pointing up

Dude, you’re at the bottom of my landing page.

Just book a call already if you’re that interested.

You scrolled all the way here.

Book a free call on Calendly