You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WASM: Arabic fallback text renders unjoined after math is shown #25816
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:
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