Skip to content
easeweb
Search topics

Headings set as pictures of text in a brand font

A pottery studio sets headings as pictures of a script font, which Level AA allows, but readers can't restyle them and on a dark theme they nearly vanish.

WCAG 2.2
SC 1.4.9AAA
Required by
Not required by Section 508 or EN 301 549
Broken <img src="/type/classes.png" alt="Classes">
The accessibility problem illustrated: Low vision:Where did the heading go?
01

The problem

People who read with their own fonts and colours can't apply them to the headings, and on a dark theme the headings almost disappear

02

Try it

Turn on your own fonts and colours, and read the headings

Turn on My fonts and colours. The paragraphs change to a plainer font, larger and light on dark. Do the headings change with them?

Simulate My fonts and colours

Broken Can you fix this?

BrokenEach heading a picture of the brand's script

Wheel and hand-building classes for beginners, every Saturday morning.

The studio is a five-minute walk from the station, open Thursday to Sunday.

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Set headings as real text, in a web font

Before
BrokenEach heading a picture of the brand's script
<h2>  <img src="/type/classes.png" alt="Classes" width="168" height="56"></h2><p>Wheel and hand-building classes for beginners, every Saturday morning.</p>…
What is wrong3 points
  • Nobody can select the heading's words or change how they look. They exist only as pixels in the picture.
  • Screen readers get the words from the alt text, but a reader's own font, colour, size and spacing never reach them.
  • On a dark theme the headings nearly disappear. They stay brown on near-black.
After

Real text in a web font

<h2 class="lettered">Classes</h2><p>Wheel and hand-building classes for beginners, every Saturday morning.</p>…
How it is fixed3 steps
  1. Replace the picture with the heading's words, as text in the h2.
  2. Load the same script as a web font with @font-face. The font file comes either from the type designer, with a web licence added to the studio's print licence, or from a script with a similar character that is licensed for websites.
  3. Set the heading in that font, at the picture's size and colour. The browser draws it in the same script, and the page looks as it did.

This fixes the Before and passes 1.4.9. A visitor's own font replaces the script, their colours recolour it, a contrast theme draws it in the theme's text colour, and text-only zoom enlarges it. The words can be selected, found in page and read aloud by a reading tool.

Why this fix: Keep words as text

04

Design ideas

A heading can have character and stay text

Three more looks for a display heading, all real text, and one that only looks like them. Try selecting the words in each.

In the design file

  • Check that each typeface’s licence covers websites before the design is signed off, and write it beside the type styles.
  • Keep every heading as live text in the design file, never outlined or flattened into a picture.
  • Name a fallback font close in width for each display typeface, for while it loads.
  • Keep pictures of words for the logo, and mark it as the logo.

Passes

  • Classes

    Fired twice a week, glazes mixed in the studio.

    Lettering with a gradient fill A warm gradient clipped to real letters. Its lightest end, #b5562c, is 4.85:1 on white, so every part of the word reads, and a reader’s own font and colours still replace it.

    Rule of thumb: Keep words as text

  • The kiln

    Fired twice a week, glazes mixed in the studio.

    Letters filled with a photo The studio’s photo shows through heavy letters, under a brown tint that keeps its lightest part at 4.90:1 on white. The word is text: it can be selected, found and translated.

    Rule of thumb: Keep words as text

  • Visit us

    Five minutes from the station, open Thursday to Sunday.

    Heading set vertically beside the text The heading runs down the side of its section, set with the writing direction rather than drawn turned. It is text, so it takes the reader’s font and grows with their text size.

    Rule of thumb: Keep words as text

Fails

  • Fired twice a week, glazes mixed in the studio.

    Photo-filled letters exported as one pictureWCAG 1.4.9 It looks like the photo lettering above, but try to select it: the letters are pixels with alt text, so no reader’s font, colour or text size reaches them. Clip the photo to real text instead.

    Rule of thumb: Keep words as text

05

Verify the fix

5 checks, no mouse.

Test with: Forced colors, Zoom

0 of 5 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat whenever the design changes typeface or a template adds a heading.

How screen readers handle aria-pressed

Limits

This is a starting pattern, not a guarantee for every application. Paths, font names, colours and class names are placeholders, and the font licence that applies to your typeface is for you to check. 1.4.9 is Level AAA, and requiring Level AAA as a general policy for a whole site is not recommended;* (source 7) the AA failure for words drawn into a picture is in images of text instead of real HTML text. Whether a remaining picture is a logo or essential lettering is a judgement, so keep it in your design review. Test the complete journey with the settings your users rely on.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

EaseWeb service

Fixed it? Keep it from coming back.

I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.

See the service