C++ Logo

sg16

Advanced search

Width estimation

From: Corentin <corentin.jabot_at_[hidden]>
Date: Wed, 30 Nov 2022 23:26:17 +0100
Hello folks.
Here is a list of all the codepoint that change
https://gist.githubusercontent.com/cor3ntin/b7f4f52893b0b54890e970f7bbec6118/raw/720a910585d78c9ceb4e0458dcef87af2a436121/width.md

Simply cat that file in the terminal.
The screenshot below is a render on ITerm2
You will notice the tofu for reserved codepoints is considered narrow
but doesn't quite fit so it overlaps with the next cell, same for the
number in square.


[image: Screenshot 2022-11-30 at 23.19.47.png]


FYI Iterm2 also uses Unicode UAX 44
https://github.com/gnachman/iTerm2/blob/master/sources/NSCharacterSet+iTerm.m#L464

Received on 2022-11-30 22:26:31