mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
The old default, wcswidth, simply calls wcswidth() on the grapheme cluster. This was supposedly the implementation with the highest application compatibility. Except we never even tried to measure it. It was just assumed. A lot of modern applications have better implementations. Let’s try to push support for better emoji support by changing our default method from wcswith to double-width. While far from correct (it’s not based on the Unicode tables), the ‘double-width’ method produces accurate results anyway. double-width is like wcswidth(), in that it adds together the individual wcwidths of all codepoints in the grapheme cluster. But, it limits the maximum width to 2. |
||
|---|---|---|
| .. | ||
| benchmark.md | ||
| foot-ctlseqs.7.scd | ||
| foot.1.scd | ||
| foot.ini.5.scd | ||
| footclient.1.scd | ||
| meson.build | ||
| sixel-wow.png | ||