all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: How to use "smart kerning" font features in Emacs using composition-function-table
Date: Tue, 28 Nov 2023 16:57:34 -0800	[thread overview]
Message-ID: <dbc75afd-c035-41aa-bbd0-7fa24471a56b@gmail.com> (raw)
In-Reply-To: <83fs0q7yd2.fsf@gnu.org>



On 11/28/23 6:20 AM, Eli Zaretskii wrote:
>> Date: Mon, 27 Nov 2023 21:18:18 -0800
>> From: Yuan Fu <casouri@gmail.com>
>>
>>
>>
>> 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?
> It will work to affect compositions when the buffer is the current
> one, but it will not work to avoid compositions on the mode line of
> the window(s) which display(s) that buffer.
Cool!
>> 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.
> I think if you like these features enough, you should want it in any
> major mode that displays human-readable text.  But that's me.

I tend to you variable width fonts for human-readable text whenever 
possible. But for Info and help buffers, very often the content relies 
on monospacing for text layout. So I can't use variables-width font for 
those.

Yuan



      reply	other threads:[~2023-11-29  0:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-26 15:48 How to use "smart kerning" font features in Emacs using composition-function-table Steve Molitor
2023-11-26 17:52 ` Eli Zaretskii
2023-11-26 19:49   ` Steve Molitor
2023-11-26 20:16     ` Eli Zaretskii
2023-11-26 20:42       ` Steve Molitor
2023-11-27 12:03         ` Eli Zaretskii
     [not found]           ` <CAJrM8VW0P+-cO_cup6W-teoJV46nZTcsPrFbaKdXDD_CK_5Rxw@mail.gmail.com>
2023-11-27 15:22             ` Eli Zaretskii
2023-11-27 16:16               ` Steve Molitor
2023-11-28  5:18           ` Yuan Fu
2023-11-28 13:27             ` Steve Molitor
2023-11-29  0:58               ` Yuan Fu
2023-11-28 14:20             ` Eli Zaretskii
2023-11-29  0:57               ` Yuan Fu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dbc75afd-c035-41aa-bbd0-7fa24471a56b@gmail.com \
    --to=casouri@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.