Why fonts change when you edit a PDF

You corrected one word and the whole line came back looking different. This is the most common visible compromise in PDF editing, and it has a specific cause.

By EasyEditPDF · Updated

The cause: the file only carries what it used

PDFs usually embed fonts as subsets — only the glyphs the document actually needed. Change March to June and the file may contain no J in that face, because no J was ever on the page. More on subsetting.

What is tried first

Before substituting anything, the exporter attempts to write your text in the document’s own embedded font. That works when the file’s character map can be recovered exactly and the subset already contains the glyphs you typed — in which case nothing changes at all.

When only some characters are missing, the fallback applies to those characters, not to the whole block. A single missing glyph does not cost you the paragraph’s typeface.

What is substituted, and with what

Where a substitute is needed, it is chosen to preserve the widths the document already recorded, so the line does not reflow and the layout does not shift. Three common faces have metric-compatible replacements:

A face outside that set is matched by width within its class — serif, sans or monospace — rather than by name. Chinese text, simplified or traditional, is drawn in Source Han.

These are metric-compatible, not identical. The shapes differ on close inspection; what is preserved is the spacing, which is what stops the rest of the page from moving.

When you are asked first

A substitution the software is confident about happens without interrupting you: a document naming Arial gets Liberation Sans, and the widths are the ones the page already used.

Where the original font’s name is one the catalogue does not recognise and offers no clue to its shape, the choice of substitute is a guess. In that case the editor stops and asks you to acknowledge it before continuing, because that is the case where the result may not look like the page you started with.

When the spacing still shifts

Some documents position every glyph individually rather than letting the font’s widths do the work. Replacing a run in that kind of block means recomputing spacing the producer set by hand, and the result can differ visibly. Blocks like this are graded as limited before you start typing.

Related: font subsetting, how PDF text editing works. Open the editor.