What typography is made of

  • Typeface: on a website, usually one for headings and one for body text; often a single typeface in several weights is enough.
  • Size: body text on mobile shouldn’t be smaller than 16 pixels.
  • Line spacing: spacing of around 1.5 times the font size is comfortable to read.
  • Line length: ideally 60 to 80 characters. Text running across the full width of a large monitor is hard to read.
  • Contrast: light grey text on a white background looks elegant, but many people can’t read it.

Why fonts matter

Most of a website is text. If it is hard to read, people skip it and leave, even when the content is good. The typeface also carries the brand’s character: a law firm comes across differently from a children’s online shop. Well-chosen typography also helps accessibility, meaning people with weaker eyesight.

Fonts and website speed

Every typeface and every weight is a file that has to be downloaded. A website with four typefaces in six weights keeps visitors waiting for no reason. It helps to:

  • limit yourself to two typefaces and three or four weights,
  • host fonts on your own server instead of loading them from Google,
  • use the modern WOFF2 format and let text display before the font has loaded.

Watch out for accented characters

Not every attractive typeface includes all accented characters. A typical mistake: a heading looks fine until a Slovak letter such as “ľ”, “ť” or “ô” appears and is rendered in a different font. When choosing a typeface, always type a test sentence containing all the special characters of your language, for Slovak for example “Ďalší kôň ťahá ľan”, and check that every character fits.

A real-world example

A café in Košice used a decorative script font on its website, including the menu. On mobile, prices and dish names were hard to read. The decorative font was kept only in the logo and headings, the body text got a simple sans-serif font, and suddenly the menu could be read at a glance.

I handle typography as part of the design when building websites. Use the same fonts in print as well, for example in business card design.