emacs-devel
[Top][All Lists]
Advanced

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

Re: Ligatures (was: Unify the Platforms: Cairo+FreeType+Harfbuzz Everywh


From: Pip Cet
Subject: Re: Ligatures (was: Unify the Platforms: Cairo+FreeType+Harfbuzz Everywhere (except TTY))
Date: Fri, 22 May 2020 09:25:31 +0000

On Fri, May 22, 2020 at 6:12 AM Eli Zaretskii <address@hidden> wrote:
> > From: Pip Cet <address@hidden>
> > Date: Thu, 21 May 2020 21:16:44 +0000
> > Cc: Eli Zaretskii <address@hidden>, address@hidden, address@hidden
> >
> > (set-char-table-range composition-function-table t '([".+" 0
> > font-shape-gstring]))
> >
> > should work, but it has weird side effects that I'm pretty sure aren't
> > intended (paren highlighting is broken, for example).
>
> This is not the right way.

What is the right way, then? I want all ligatures my font supports.

Also, even if it is the wrong thing to do, why does it break seemingly
unrelated things?

> The right way is to do the likes of the
> following:
>
>   (set-char-table-range
>    composition-function-table '(?f . ?f)
>    (list (vector "ffi" 0 'compose-gstring-for-graphic)))

> This shows how to do this only for the "ffi" ligature, but I think it
> makes the idea clear.

I'm afraid it doesn't, to me.



reply via email to

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