Skip to content

Bugs with Multiple Width Glyphs #135

@benoitlx

Description

@benoitlx

Hi,

I’m trying to port a Ratatui project to the web using Ratzilla (see feat-ratzilla), but I’m seeing a weird display issue with Japanese Unicode characters.

As shown in the screenshot below, the problematic characters take more horizontal space than the others, which causes a visual glitch when the following character is printed. At first I suspected a variable‑width font issue (I’m using the default index.html from the Ratzilla README), but that doesn’t explain the second screenshot.

Home Page (ratzilla) Image
Home Page (ratatui) Image
Hiragana Page (ratzilla) Image
Hiragana Page (ratatui) Image

NOTE: The issue persists with CanvasBackend and WebGl2Backend. (though japanese char are not rendered with the last one)

I’d appreciate any pointers for debugging this visual issue (I have no experience with WASM or the web).

Also thank you for this awesome project !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions