# Replace missing icon-font squares with understandable labels

Canonical: https://githtml.com/guides/icon-font-boxes-html-report
Published: 2026-11-23
Publisher: WaveTech LLC / gitHtml

If icons become empty squares or unrelated characters, check whether the document depends on a custom icon font. A fallback text font may not contain the same glyph mappings. Restore meaning with visible words or self-contained graphics rather than expecting a different font to reproduce private-use icon characters correctly.

## Identify the specific failure

Icon fonts often map symbols to character positions that have no useful ordinary-text meaning. When the font request fails, the browser can show a box or another glyph while the rest of the page remains readable. This is different from an entire paragraph losing its typeface.

## Make a narrow correction

Identify what each symbol means before replacing it. A checkmark could mean approved, completed, or merely selected. Use that exact meaning as visible text. If an icon remains decorative beside the label, it should not create a duplicate or confusing spoken name.

1. Inventory icon-only statuses and controls before changing the font dependency.
2. Replace private-use glyph meaning with explicit visible wording.
3. Keep any retained graphic decorative when the neighboring text already supplies its meaning.

````html
<p><span aria-hidden="true">✓</span> Review complete</p>
````

## Recover the meaning before choosing a replacement symbol

Take an illustrative status table with three unlabeled glyphs: a check, an hourglass, and a triangle. Before changing fonts, compare those glyphs with the legend or the system that produced the report. The check might indicate successful execution, completed review, or selected scope. Replacing it with the word Success without evidence would improve appearance while changing the report's meaning. Write the verified status in text and retain the original symbol only if it remains a useful redundant cue.

Inspect the font request independently from ordinary paragraph typography. A custom family can load for some text while the particular icon font is absent, has the wrong weight, or does not contain the expected character mapping. Look at the actual character used in the markup and the font applied to its element. If the source contains an ordinary word such as warning but the stylesheet converts it through a special ligature font, a fallback may expose that word instead of a square; that is still a font dependency worth removing from essential status information.

Do not swap a missing private-use glyph for an arbitrary emoji and assume the result is equivalent. Emoji appearance, naming, and visual emphasis vary, and a symbol that looks harmless in one environment can dominate the line in another. For a compact reading copy, a short status phrase often needs less explanation than a new icon system. Compare the revised table without any custom fonts and have a reader explain one row from its text alone. Preserve distinctions such as Not run and Failed rather than merging both into a generic warning.

## Verify the repaired artifact

Disable the custom font in a test copy and verify that every state and action still has a comprehensible label.

## Sources and further reading

- [MDN: @font-face](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@font-face)

## Related guides

- [Fix stretched figures caused by conflicting dimensions](https://githtml.com/guides/image-stretched-css-aspect-ratio)
- [Understand a stylesheet blocked by an integrity mismatch](https://githtml.com/guides/integrity-hash-blocks-stylesheet)
- [Why malformed table markup moves text outside the table](https://githtml.com/guides/invalid-table-markup-moves-content)
- [Find images that were never loaded before saving](https://githtml.com/guides/lazy-images-missing-saved-report)

Editorial approach: https://githtml.com/guides/about
