Matterhorn 31-026 · PDF/UA-1 UA1:7.21.6-10

Symbolic TrueType font: several cmaps and no (3,0)

BlockerCheckpoint 31: FontsWCAG 1.3.1 (A)

With multiple cmaps present, a (3,0) symbol cmap is required to disambiguate.

The condition, as the protocol states it. “The embedded font program for a symbolic TrueType font contains more than one cmap, but none of the cmap entries is a (3,0) Microsoft Symbol cmap.”

Matterhorn Protocol 1.1, checkpoint 31, index 31-026, section UA1:7.21.6-10. Software can decide this one on its own.

What a screen reader actually does

Character mapping is ambiguous.

What the condition settles

A TrueType program’s cmap table usually holds several subtables, one per platform and encoding. A typical desktop text font carries three: (0,3) Unicode, (1,0) Macintosh Roman and (3,1) Microsoft Unicode. Arial, Times New Roman and Georgia as shipped with macOS all have exactly that set. A symbol font made for Windows carries a (3,0) Microsoft Symbol subtable instead of, or as well as, the others: the copy of Wingdings on the same machine has (1,0) and (3,0).

For a symbolic TrueType font in a PDF — Symbolic flag set, no /Encoding — ISO 32000-1 tells the viewer which subtable to use: (3,0) if present, otherwise (1,0). A (3,1) subtable is not on that list, though it is the one most font software outside PDF reaches for first. When a symbolic font has several subtables and none of them is (3,0), the specification’s answer is (1,0), and a viewer that behaves like general font software might use (3,1). If the two map the same byte to different glyphs, the page depends on the viewer.

PDF/UA-1 clause 7.21.6 removes the choice: a symbolic TrueType program has either exactly one cmap subtable, or, among several, a (3,0). Condition 31-026 is several and no (3,0). Here is the cmap table of the test file we built for this page, printed by fontTools:

<cmap>
  <tableVersion version="0"/>
  <cmap_format_6 platformID="1" platEncID="0" language="0">
    <map code="0x41" name="A"/>
    <map code="0x42" name="B"/>
  </cmap_format_6>
  <cmap_format_4 platformID="3" platEncID="1" language="0">
    <map code="0x41" name="A"/>
    <map code="0x42" name="B"/>
  </cmap_format_4>
</cmap>

How much it matters

Given the same byte, the two subtables answer different questions. The (1,0) subtable reads it as a Mac Roman code and the (3,1) subtable as a Unicode code point. For plain ASCII the answers coincide and nothing visible happens. Above 127 they do not: byte 0xE9 is È in Mac Roman and é in Unicode, so a symbolic font whose producer meant Unicode, shown in a viewer that follows the specification, can draw the wrong letter.

We built a variant of the test file in which the two subtables deliberately disagree. Poppler and PDFium both followed the specification and drew the glyph from the (1,0) subtable. That is reassuring about those two viewers and says nothing about the rest.

What the user hears

Extraction does not touch the cmap. A symbolic TrueType font must carry a ToUnicode CMap (31-027), and a screen reader reads that. So the listener gets what the producer intended, and the page shows what the viewer chose. Where the two differ, a person reading the screen and a person listening are reading different documents, which matters most to a low-vision user doing both at once.

Where it comes from

Embedding a whole font rather than a subset, and marking it symbolic. A text font embedded whole keeps all its subtables, (0,3), (1,0) and (3,1), and a producer that sets the Symbolic flag on any font with glyphs outside the Adobe standard Latin set — which is what the flag means — makes it symbolic. Neither step is wrong by itself; together they fail this condition.

Subsets are less exposed when the subsetting tool rebuilds the cmap with a single subtable. ReportLab does: it writes one (1,0) subtable into every TrueType subset and marks the font symbolic, which satisfies the “exactly one” branch.

How to check it free

  1. Find the font with pdffonts file.pdf and follow its /FontDescriptor to /FontFile2 with qpdf --show-object=.
  2. Write the program out: qpdf --show-object=19 --filtered-stream-data file.pdf > font.ttf (both options are in the qpdf manual).
  3. Run ttx -t cmap font.ttf from fontTools and read the platformID and platEncID of each subtable in font.ttx. More than one, with no platformID="3" platEncID="0", is the condition. Check the descriptor’s /Flags too: this only applies when bit 3 (value 4) is set and bit 6 (value 32) is not.

veraPDF’s PDF/UA-1 profile has a rule for this: a symbolic TrueType program’s cmap must have exactly one subtable or include (3,0).

Acrobat Pro can browse an embedded font’s glyphs through Preflight’s Options → Browse Internal Structure of All Document Fonts, reached from All tools → Use print production → Preflight, as Adobe describes in advanced preflight inspections. Adobe does not document a view of the cmap subtables there, and fonts cannot be edited in it.

How to fix it free

Re-export, embedding a subset. Many applications subset by default, and one that embeds whole fonts usually has a setting for it. If the font is a text font, it should not be symbolic at all, and a re-export that writes it as non-symbolic with a standard encoding, or as a Type 0 font, avoids the condition. Adobe’s general advice for character-encoding problems, in Create and verify PDF accessibility, is to change the font in the source, preferably to OpenType, and re-create the PDF.

Or edit the program with fontTools. Two repairs are possible, and both need you to know which subtable the producer meant:

  • Keep one subtable and delete the others. If the page already draws correctly in viewers that follow the specification, they are using (1,0), and keeping only that one changes nothing for them.
  • Add a (3,0) subtable built from the one that is right, mapping 0xF000 plus each byte to the same glyph. Viewers that follow the specification switch to it.

Then write the program back into its /FontFile2 stream, update /Length1, and compare the page in more than one viewer.

What Taggart does, and doesn’t

No finding, at present. Taggart does not check 31-026: it does not parse embedded font programs, and unlike the neighbouring cmap conditions there is no dictionary-level case it can report instead. We ran it on the test file above, which fails this condition and nothing else, and it produced no finding for any font condition.

So a Taggart report with no 31-026 finding says nothing about this condition. Run veraPDF, or check the cmap with ttx, for any document that embeds symbolic TrueType fonts. There is no repair.

It is one of the conditions Taggart does not check, and those hold the conformance claim: the PDF/UA identifier is not written until a person confirms the list — the checkbox I have checked these conditions by hand, or with another validator in the app. Run the check above before ticking it; the tick covers the whole list.

How Taggart handles it

Software could decide this one, and Taggart does not check it yet. A clean report from Taggart says nothing about it either way. It is on the list of conditions Taggart asks you to confirm before it writes the PDF/UA claim into the file; check it by hand or with another validator, as described above.

Whatever Taggart changes, the page still looks identical. Fixes edit the PDF object model, not the content streams, and every remediation is re-rendered and compared against the original at structural similarity ≥ 0.999 before you get the file back. A tool that quietly reflows your document is worse than no tool.

Frequently asked questions

What is a (3,0) cmap?

The Microsoft Symbol subtable: platform 3, encoding 0. Symbol fonts put their glyphs at codes in a range such as U+F020 to U+F0FF, and a PDF viewer reaches them by putting the range's high byte, usually F0, in front of the byte from the content stream.

My font has exactly one cmap subtable. Am I fine?

For this condition, yes: a single subtable of any kind satisfies it. ReportLab's TrueType subsets, for example, carry exactly one, a (1,0) Macintosh subtable, and pass.

Does Taggart check it?

No. The condition is in Taggart's rule set, but its checker has no test for it and does not open embedded font programs, so a file that fails it gets no finding. Use veraPDF or fontTools.

Where this sits in the standards

Standards this condition maps to
StandardReference
Matterhorn Protocol 1.1Checkpoint 31 (Fonts), index 31-026
PDF/UA-1 (ISO 14289-1)Clause 7.21.6-10
WCAG 2.11.3.1 Info and Relationships — Level A
EN 301 549 / Section 508 / ADA Title IIAll three point at WCAG 2.1 Level AA for non-web documents, so a Level A or AA criterion here is in scope for each of them.

Other conditions in checkpoint 31

Checkpoint 31 covers fonts. These are its other failure conditions; the ones without a link are in the rule set but do not have a written page yet.

Check your own file. Taggart does not check this condition yet, and lists it for you to confirm. Its validator is free and checks 75 of the 87 Matterhorn conditions software can decide — no watermark, no expiry, and no account needed up to 60 pages.

Check a PDF free

Taggart does not check this condition yet. A generated file that fails it is in the repository, with a test that fails the day Taggart starts catching it. Written on . The Acrobat steps follow Adobe’s documentation and were not walked through by hand. Last updated .