Skip to content

Web (Android, WebGL2): text inside card elements renders with missing glyphs #3015

Backlog

Description

@kebab-casee

What

On Android Chrome, where WebGPU is unavailable and Rune runs on its WebGL2 backend, text inside card-like elements renders with whole glyphs missing. The page header and stat labels render correctly; the rows inside the cards come out as fragments (for example sirius renders as two letters, betelgeuse as e eg use).

A screenshot from the device is attached below (added by the reporter).

This is separate from the transparency request in #3014 — same app, unrelated rendering bug.

Environment

  • Android 11, Chrome (exact version to be confirmed)
  • WebGPU absent (navigator.gpu undefined) → Rune WebGL2 path
  • Device scale factor ~3 (1170 px wide capture of a 390 pt viewport)
  • GPU: to be confirmed from chrome://gpu
  • Rune 8705dbea, wgpu 30.0.2

What the app looks like

A full-window dashboard. Text uses Rune's embedded Inter at SECTION 11.5, LABEL 12, TITLE 13 and MONO_CAPTION 12. The broken text sits inside elements built as col/row with .padding(), .radius(), .fill() and .border(); the header (no card fill) is fine.

What we ruled out

  • Images: the app already skips every image texture on WebGL2 (glyph star, monogram chips). The corruption is identical with images disabled.
  • Caching: assets are Cache-Control: no-store and cache-busted; the build hash is current.
  • Layout: the same build at 390×844 @3x renders correctly on desktop Chrome 158, both with WebGPU and with WebGPU hidden so Rune takes WebGL2 (Object.defineProperty(navigator, 'gpu', { value: undefined }) before init).
  • DPR: reproduced the phone's 3x scale on desktop; still clean.

So this looks specific to the Android GL stack (driver/ANGLE), not to the layout or the font data.

Questions

  • Is this a known Android/WebGL2 text issue?
  • What would help most: chrome://gpu output, an adb logcat capture, or a reduced repro? We can build a text-only card app and run it on the device if that narrows it.
  • Is there a preferred way to force the CPU renderer on web as a fallback? We could offer CpuFirst::Only on WebGL2 if that path avoids it.
image

Happy to test builds and report back.

Activity

  1. opencodejr commented on Dec 1, 2026

    @opencodejr
    Contributor

    not a known issue in rune yet.

    one path difference to check first: FontSmoothing::default() picks FontSmoothing::On (cpu-rasterised masks) in a macos browser, and FontSmoothing::WindfoilChromium on android, linux and windows. under CpuFirst::Auto, glyphs placed before webgl2 handover are filled on the cpu, while glyphs (or subpixel phases) placed after handover are filled on the gpu by FillPass (outline.wgsl reading an Rgba32Uint texture into an R8Unorm atlas). if FillPass fails or drops glyphs on that android driver, early static text would show while later card text comes out fragmented. (if the desktop chrome test was on macos, hiding navigator.gpu still kept FontSmoothing::On.)

    to narrow it down, the most useful things are:

    1. try App::font_smoothing(FontSmoothing::Off) on the phone (forces cpu masks and skips FillPass / outline.wgsl) and let us know if the missing glyphs come back.
    2. chrome://gpu (chrome version, GL_RENDERER / angle backend) and any console warnings or webgl errors from remote devtools, plus the screenshot (it did not attach to the issue).
    3. whether globalThis.RUNE_CPU_FIRST = "only" before init renders cleanly on the device.

    for forcing the cpu renderer on web:

    • App::cpu_first(CpuFirst::Only) (or globalThis.RUNE_CPU_FIRST = "only" before init) keeps a full-window web app on the 2d cpu canvas without requesting webgpu or webgl2.
    • if you want webgpu when present and cpu instead of webgl2 otherwise, either omit rune's opt-in webgl feature (full-window CpuFirst::Auto stays on cpu when navigator.gpu is absent) or pass CpuFirst::Only when navigator.gpu is missing.
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