domsson / nuru-web

Draw nuru images in your browser.
https://domsson.github.io/nuru-web/
Creative Commons Zero v1.0 Universal
10 stars 1 forks source link

In Chrome, the terminal cells will grow in width when box-drawing characters are applied #7

Open domsson opened 3 years ago

domsson commented 3 years ago

For example, with the current font and font size, an empty cell (containing a space) is 10px in width, but as soon as we paint some box drawing character into it, it will grow to 12px in width. This makes the entire canvas/terminal "grow". Not great.

domsson commented 3 years ago

Actually, the same can happen in Firefox with some characters, like some pretty big Kanji that I recently put in a palette by accident.

domsson commented 3 years ago

One possible solution would be this dirty JS hack: