Skip to content

Icon/private-use glyphs render as missing-character boxes when font is enabled #91

@TundTT

Description

@TundTT

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions