char32: use utf8proc_charwidth() instead of wcwidth(), when available

It appears to be slightly more up-to-date with recent Unicode
versions.

In particular, it handles the new "Symbols for Legacy Computing
Supplement" block, introduced in Unicode 16.

Closes #1865
This commit is contained in:
Daniel Eklöf 2024-10-31 07:17:35 +01:00
parent f3e443ea47
commit d3cd4ad933
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 20 additions and 0 deletions

View file

@ -68,6 +68,11 @@
* OSC-9: sequences beginning with `<number>;` are now ignored. These
sequences are ConEmu/Windows Terminal sequences, and not intended to
be notifications.
* Use `utf8proc_charwidth()` instead of `wcwidth()`+`wcswidth()` when
calculating character width, when foot has been built with utf8proc
support ([#1865][1865]).
[1865]: https://codeberg.org/dnkl/foot/issues/1865
### Deprecated