When OpenDyslexic is enabled, some characters that rely on the page's original font render as missing-character boxes. A common case is icon fonts, which often use private-use Unicode code points. Since the extension forces OpenDyslexic/Arial across page elements, those glyphs can lose the original icon font and display as square boxes instead of the intended icon.
Expected behavior:
- If OpenDyslexic does not cover a glyph, the extension should preserve the page's original rendering instead of causing a missing-character box.
- Icon/private-use glyphs should continue to render with their original font while normal text still uses OpenDyslexic.
Observed behavior:
- Private-use/icon glyphs can render as square boxes after the extension applies the font.
One possible approach:
- Detect private-use Unicode text nodes and preserve their original font.
- Exclude common icon containers such as aria-hidden elements, role=img elements, and data-icon elements from forced font replacement.
I opened a PR with this approach here: #90
When OpenDyslexic is enabled, some characters that rely on the page's original font render as missing-character boxes. A common case is icon fonts, which often use private-use Unicode code points. Since the extension forces OpenDyslexic/Arial across page elements, those glyphs can lose the original icon font and display as square boxes instead of the intended icon.
Expected behavior:
Observed behavior:
One possible approach:
I opened a PR with this approach here: #90