[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ligature support

From: Lars Ingebrigtsen
Subject: Re: Ligature support
Date: Fri, 05 Nov 2021 23:50:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> the same as running all text through harfbuzz.  Which we don't want to
> do in general.

But what's the effect of that, then, I wonder?  Uhm...

(aset composition-function-table
        '([" [^ \n\t]+" 0 font-shape-gstring]))

Is this the correct incantation for "send (almost) all words to
harfbuzz"?  (I.e., a space and then a non-space sequence.)

In xdisp.c with this:

(benchmark-run 1 (while (not (eobp)) (forward-page 1) (redisplay t)))

Without: 1.2s
With: 1.3s

Sending all words to harfbuzz is probably the right solution in a
variable-pitch font buffer anyway (to get proper kerning), but it
probably doesn't make that much sense in a monospace-font buffer.

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]