[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 15:38:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> So for having ligatures you need to set up composition-function-table
> for the characters that could/should ligate.

Yes.  And to do that, we can parse the tables in the font, apparently.
It's not obviously clear how, but it looks like harfbuzz has the
functions needed.

> But please read the TODO item: there are pitfalls here that we need to
> solve before this could be considered a reasonable user-level
> feature.  Setting up composition-function-table to produce ligatures
> for, say, "fi" and "ff" is easy for testing, but if you do that in
> production, every word with these characters, everywhere on display in
> Emacs, will display as that ligature, and that is hardly TRT.  We need
> to make this more fine-tunable.  TODO has the details.

I guess it needs some more customisation to be a per-font thing?

But first we need to parse the Gsub/Gpos tables so that we can get
started at all.

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