BenchmarkTools.jl icon indicating copy to clipboard operation
BenchmarkTools.jl copied to clipboard

Miss-aligned text (likely issue with unicode?)

Open vchuravy opened this issue 4 years ago • 5 comments

See the discussion here https://discourse.julialang.org/t/use-juliamono-to-fix-misaligned-benchmarktools-histograms/65054

vchuravy avatar Jul 21 '21 20:07 vchuravy

Is this still an issue? Looks like it may have been solved.

tecosaur avatar Aug 13 '21 09:08 tecosaur

Probably depends on what Font your browser defaults to, since for me https://github.com/JuliaCI/BenchmarkTools.jl/pull/243#discussion_r688361580 is misaligned.

vchuravy avatar Aug 13 '21 12:08 vchuravy

Still an issue the text example in #260 looks like:

Screenshot from 2021-09-22 10-00-08

On Firefox+Linux (and also Slack I think)

vchuravy avatar Sep 22 '21 14:09 vchuravy

So it looks like the blocks for the histogram aren't printing the same width as the ordinary space.

Could try printing blocks set to the same colour as the background instead of spaces? But that's unlikely to work well with different colour schemes, nor with copying plain text.

Is there a unicode space which might somehow be interpreted as having the same width? In https://en.wikipedia.org/wiki/Block_Elements there is no empty block.

mcabbott avatar Sep 22 '21 14:09 mcabbott

Having looked a bit around Unicode before, IIRC the character we're looking for simply does not exist. This isn't a nice answer, but unfortunately, I don't think there is one here.

tecosaur avatar Sep 22 '21 15:09 tecosaur