emacs-devel
[Top][All Lists]
Advanced

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

Re: How to use "smart kerning" font features in Emacs using composition-


From: Steve Molitor
Subject: Re: How to use "smart kerning" font features in Emacs using composition-function-table
Date: Tue, 28 Nov 2023 07:27:49 -0600

Yes, you can make the composition-function-table buffer-local and
mode-specific. Here is an example:

https://github.com/mickeynp/ligature.el/issues/53#issuecomment-1828732077

Steve

On Tue, Nov 28, 2023 at 12:40 AM Yuan Fu <casouri@gmail.com> wrote:
>
>
>
> On 11/27/23 4:03 AM, Eli Zaretskii wrote:
> >> From: Steve Molitor <stevemolitor@gmail.com>
> >> Date: Sun, 26 Nov 2023 14:42:36 -0600
> >> Cc: emacs-devel@gnu.org
> >>
> >> For ligature support, I do need something like this for Commit Mono:
> >>
> >>      (set-char-table-range
> >>       composition-function-table
> >>       t
> >>       `([" [,-.:;A-Z_a-z><=!&|+-?/\\]+" 0 font-shape-gstring]))
> > Beware: composition-function-table is global, so the above will ligate
> > characters on the mode line as well, which might not be what you want.
> Is there any way to make it local? If I make composition-function-table
> buffer-local and set the buffer-local variable, would it work? The
> use-case I'm thinking about is using Commit Mono for Info buffers and
> help buffers, which have large bodies of monospaced text. The improved
> readability would help a lot there.
>
> Yuan
>



reply via email to

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