Playground font is non-fixed-width for some unicode characters

Open
#589 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
frontend

Research direction

Start by reproducing the reported Rust snippet in the Playground, checking both the code view and output in Firefox. Compare the vertical-bar alignment and cursor position with the expected fixed-width rendering; done means Unicode characters align consistently and cursor insertion matches the indicated position.

Written by the indexing model from the issue text.

Description

bug help wanted

I am putting the following code into playground:

fn main() {
    println!("0x00 │ ╾─────alloc777+0──────╼ 2a 00 00 00 00 00 00 00 │ ╾──────╼*.......");
    println!("0x10 │ 2a 00 00 00 00 00 00 00                         │ *.......");
}

Both for the code view and the resulting output, the vertical bars on the right are not properly aligned, even though we can see here in GitHub that in a fixed-width font, they should be aligned.

Also, the cursor (at least in Firefox) behaves really weird in that first line; the indicated position and the position where characters are inserted do not agree...

Dominant language
Rust
Stars
1.4k
Forks
267
Avg merge
3h 2m
Merged PRs (30d)
6

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-lang/rust-playground

All issues in rust-lang/rust-playground

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.