Skip to content

WASM: Arabic fallback text renders unjoined after math is shown #25816

Closed

Description

@ramezgerges

Current behavior 🐛

On WebAssembly, Arabic text that relies on font fallback renders with disconnected letters once the app has shown any math. Which font a character gets also depends on what text the app displayed earlier.

The browser fallback reuses the first already-loaded Noto family that covers a codepoint. Noto Sans Math covers the basic Arabic letters (as bases for its Arabic math alphabet) but has no joining forms. Once anything loads it, for example a RichEditBox showing math in "Cambria Math", later Arabic text uses it instead of Noto Sans Arabic.

Shared characters have the same problem. Tatweel (U+0640) or the Arabic comma can resolve to another script's font that happens to be loaded (Adlam, Syriac, NKo...). The font then changes in the middle of an Arabic word, which splits the shaping run.

Expected behavior 🎯

Arabic text renders joined with Noto Sans Arabic, whatever was shown before.

How to reproduce it (as minimally and precisely as possible) 🔬

On the WebAssembly head, run these runtime tests in this order:

  1. Given_RichEditBox.When_Tall_Math_Table_Uses_Browser_Safe_Vertical_Glyphs
  2. Given_RichEditBox.When_Terminal_Paragraph_Format_Renders_RoundTrips_Rtf_And_Undoes
  3. Given_TextBlock.Check_FontFallback_Shaping2

The last one times out. The fallback-rendered Arabic is 163px wide against 110px in Noto Sans Arabic, and every letter resolves to "Noto Sans Math". This is the order of WASM WebGPU runtime test shard 7, where it fails on CI.

Workaround 🛠️

Set an explicit Arabic FontFamily on the text.

Affected platforms 📱💻🖥️

WebAssembly

Uno.Sdk version (and other relevant versions) 📦

master (7.0 dev)

IDE version 🧑‍💻

No response

Anything else we need to know? 💬

It affects both renderers (Skia and WebGPU). The Skia WASM lane only escapes because its sharding never runs the test after the math one.

Activity

  1. added
    kind/bug
    platform/wasm 🌐
    on Oct 29, 2026
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

    kind/bugplatform/wasm 🌐

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions