emacs-devel
[Top][All Lists]
Advanced

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

Re: Ligature support


From: Lars Ingebrigtsen
Subject: Re: Ligature support
Date: Sat, 06 Nov 2021 00:02:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> 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.

The space-based thing was wrong, but here's another stab at testing the
speed.

(dolist (c (append (number-sequence ?A ?Z)
                   (number-sequence ?a ?z)))
  (aset composition-function-table
        c
        (list (vector (concat (string c) "[^ \n\t]+") 0 #'font-shape-gstring))))

Without:

PNG image

With:

PNG image

So that fixes the kerning (this is with the proportional Deja Vu font).
And with that, scrolling through xdisp.c is 30% slower.

-- 
(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]