Skip to content

Linux: keyboard-symbol fallback leaves U+238B (⎋) as tofu — plex_keyboard_symbols_use_real_glyphs fails on stock Ubuntu #2

Closed

Description

@ImBIOS

Linux-only QA finding (Ubuntu 24.04, stock fonts, Lavapipe headless + Xvfb windowed all otherwise green).

cargo test -p rune --lib fails one test:

---- text::tests::plex_keyboard_symbols_use_real_glyphs stdout ----
panicked at crates/rune/src/text.rs:768:37:
assertion `left != right` failed: missing symbol in "⌘⇧⏎⌥⌃⎋⌫←↑→↓↵"
  left: 0
 right: 0

79 passed, 1 failed, 1 ignored. Everything else (all 9 examples' scenes, first-pixels, scripted send run) renders fine, so this is isolated to one glyph.

Root cause (probed with skrifa 0.44.0 against system fonts): DejaVu Sans has no U+238B. All other 11 symbols resolve; only ⎋ maps to 0:

DejaVuSans -> ⌘:3485 ⇧:3186 ⏎:3527 ⌥:3494 ⌃:3470 ⎋:0 ⌫:3498 ←:3099 ↑:3100 →:3101 ↓:3102 ↵:3136
DejaVuSansMono -> ... ⎋:2366 ... (present)

register_symbol_fallbacks loads dejavusans (+ notosanssymbols, absent on stock Ubuntu), the DejaVu Sans family resolves, and shaping stops there — ⎋ stays tofu. Any keybind UI showing ⎋ (e.g. shortcut recorders) will render a missing glyph on such systems.

Possible directions (leaving the call to you — this is your hot zone): extend SYMBOL_FONT_FILES with a wider-coverage fallback present on stock distros, or fall through per-glyph to the next loaded family when the first maps to 0. Happy to re-run the test + snapshots on this Linux box for any candidate fix.

Activity

  1. added 11 commits that reference this issue on Oct 26, 2026
    146db70
    024feed
    ecc44af
    9eb46f5
    82ff71f
    5d3afcb
    21991b4
    35329d7
    e60641c
    f4f1a1f
    165147b
  2. added a commit that references this issue on Oct 30, 2026
    20b63df
  3. kitlangton commented on Oct 30, 2026

    @kitlangton
    Contributor

    Fixed on dev in 20b63df. DejaVu Sans Mono (which has U+238B) now follows DejaVu Sans in the Linux symbol fallbacks, and fallback fonts are also looked up among the files fc-list reports.

    Thanks for the probe output, it pointed straight at the gap. If you get a chance to rerun plex_keyboard_symbols_use_real_glyphs on that Ubuntu box, let us know if it still fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions