Re: [hackers] [dmenu] inputw: improve correctness and startup performance || NRK

From: NRK <nrk_AT_disroot.org>
Date: Fri, 29 Apr 2022 13:15:10 +0600

On Fri, Apr 29, 2022 at 08:11:46AM +0200, Laslo Hunhold wrote:
> to keep a long story based on my experience with developing libgrapheme
> and intensely working with Unicode short: The char-width-data from the
> Unicode consortium cannot be relied on and said consortium has pretty
> much given up on this matter and delegated this to font-rendering and
> font-shaping implementations. While they still maintain the EAW-tables
> (among others), they are nothing more than heuristics that break
> horribly in many cases.

In that case, I think it's best to rule option 3 (codepoint width) and 2
(strlen) entirely.

I forgot to add the patch for option 1 (not taking fallback fonts into
account). Attached it here, it should apply cleanly on top of the patch
I sent earlier regarding not calculating `inputw` when using vertical
mode.

- NRK

Received on Fri Apr 29 2022 - 09:15:10 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 29 2022 - 09:24:34 CEST