Choosing Fonts for Documents That Machines Have to Read

Choosing Fonts for Documents That Machines Have to Read

Somewhere between 10 and 30 percent of scanned document data fails extraction on the first pass, and the typeface is to blame more often than the scanner or the software. Forms and business documents sit in a strange corner of typography. They’re designed for human eyes but increasingly read, parsed, and processed by machines, and a font that looks clean on paper can wreck accuracy three steps downstream where nobody thinks to look.

If you design forms, templates, or anything that gets scanned or shared outside your organisation, the font decisions come with consequences. Here they are.

Documents Are Read Twice

A printed invoice or application form has two audiences. The first is the person filling it in or reviewing it. The second is the OCR engine or extraction pipeline that turns it into database records.

These two audiences want different things. Humans forgive tight kerning, decorative flourishes, and thin hairline strokes. Software doesn’t. An OCR engine works by matching pixel patterns against character models, and anything that muddies those patterns raises the error rate. Confusable glyphs are the classic problem: a lowercase l, an uppercase I, and the digit 1 look nearly identical in many popular sans-serifs. On a field containing a policy number or a bank reference, one misread character means a failed lookup.

That’s why disambiguated typefaces exist. Fonts designed for interfaces and data, like those with a slashed zero or a tailed lowercase l, cut misreads at the source. It’s also why so many official documents default to workhorse fonts. Arial gets mocked in design circles as the beige sedan of typography, but its open apertures, consistent stroke weight, and enormous installed base make it a genuinely sensible choice for form bodies. Boring is a feature here.

What Makes a Typeface Machine-Friendly

Check the l/I/1 and O/0 pairs before anything else. If they’re distinguishable at 8pt on a 200dpi scan, you’re most of the way there, and no other property compensates if they’re not.

After that, look at x-height and counters. The enclosed spaces in letters like e, a, and o fill in when documents are photocopied or scanned at low resolution, and a form often survives three or four generations of reproduction before it reaches an extraction system. Insurance and healthcare still move a startling amount of paper through fax lines, so this isn’t a hypothetical.

Stroke weight and spacing round out the list. High-contrast serifs like Bodoni drop their thin strokes at small sizes, leaving behind what reads as a different character. Tight tracking causes adjacent glyphs to touch after scanning, and touching characters are the single most common cause of OCR segmentation errors.

Set body and field text at 10 to 12pt while you’re at it. Below 9pt, scan accuracy drops noticeably, and the WCAG guidelines push in the same direction for readers with low vision. Accessibility and machine readability mostly reward the same choices, which is convenient.

When Text Has to Disappear

There’s a flip side to designing text that machines can read: sometimes you need to guarantee they can’t. Contracts and medical records routinely get shared with sensitive details removed, and this is where a designer’s mental model of type causes expensive failures.

On paper, a black marker destroys the information underneath. In a PDF, text isn’t ink. It’s a data layer, and drawing a black rectangle over it just adds a shape on top. That exact mistake made headlines in 2019, when journalists copied supposedly redacted passages straight out of a court filing in the Mueller investigation and pasted them, fully readable, into a new document.

The words were still there.

A European Commission vaccine contract leaked its pricing figures the same way two years later, though the leak came through unsanitised bookmarks rather than the visible page. True redaction removes content from the file itself, including metadata most people never open. Regulated teams go a step further and maintain an audit trail for pdf redaction, recording what was removed, by whom, and whether the removal was verified before release. For anyone who thinks about documents as visual objects first, this takes some rewiring: the page you see and the file you ship are different things, and only one of them keeps secrets.

Licensing Catches People Off Guard

Documents travel. They get embedded in PDFs, emailed, archived for seven years, and opened on systems that don’t have your fonts installed. Embedding rights become a day-to-day operational question at that point rather than fine print.

Not every font permits embedding. Some licenses allow print use but restrict embedding in distributed documents; others allow preview-only embedding, which blocks recipients from filling in editable fields using that font. Desktop, web, and app licenses are usually sold separately, and a font you legitimately bought for marketing materials may not cover the interactive PDF your operations team just built. The differences between font licenses are worth understanding before a template ships, because retrofitting a new typeface into hundreds of archived documents is miserable work. Open-license families like Liberation Sans or Noto sidestep the whole question, which is one reason they keep turning up in government and enterprise paperwork.

Practical Guidelines

A workable checklist for document typography:

  • One family, two weights. Regular for content, bold for labels. Every additional style is another variable for reproduction to degrade.
  • Test the failure path. Print the document, photocopy it twice, scan the copy at 200dpi, and run it through your extraction tool. Closer to reality than any on-screen proof.
  • Keep the text layer searchable and tagged. The PDF Association’s assessment of one high-profile government release shows how badly a document serves everyone when it’s just pictures of words.
  • Treat removal as seriously as rendering. If a workflow shares documents externally, verify sensitive content is gone from the file rather than painted over.
  • Check the license before the template ships, not after.

Closing Thought

Typography for working documents is unglamorous, and that’s fine. The best document typeface is the one nobody notices, whether that’s the person filling in the fields or the parser reading them afterwards. Pick something legible, sort the license out early, and make sure the file contains only what you think it contains. Save the interesting fonts for the poster.

An original article about Choosing Fonts for Documents That Machines Have to Read by Kokou Adzo · Published in

Published on — Last update: