From: Robert Pluim <rpluim@gmail.com>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: When and how to register various font backends
Date: Fri, 14 Jun 2019 13:52:28 +0200 [thread overview]
Message-ID: <m2d0jg1j0j.fsf@gmail.com> (raw)
In-Reply-To: <wla7ek30dk.wl-mituharu@math.s.chiba-u.ac.jp> (YAMAMOTO Mitsuharu's message of "Fri, 14 Jun 2019 19:52:07 +0900")
>>>>> On Fri, 14 Jun 2019 19:52:07 +0900, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> said:
YAMAMOTO> On Sat, 08 Jun 2019 04:40:45 +0900,
YAMAMOTO> Eli Zaretskii wrote:
>>
>> The question is how to implement this preference. In the code that is
>> currently on master, you will see one way of implementing it in
>> w32fns.c, where the Windows code creates GUI frames (look in
>> x-create-frame). Basically, after determining whether Uniscribe was
>> explicitly requested, this implementation registers or doesn't
>> register Uniscribe for each new frame. This means the backends to be
>> available to a frame must be specified at frame creation time, or be
>> known by that time.
>>
>> Yamamoto-san suggested a slightly different way of implementing the
>> same idea; I will let him explain his proposal in more detail.
YAMAMOTO> Attached is my proposal. The idea is to register all the drivers in
YAMAMOTO> x-create-frame as before, but tweak the function font_update_drivers
YAMAMOTO> (in font.c) so it only chooses "unsuperseded" drivers if the user did
YAMAMOTO> not explicitly specify font backends (i.e., if NEW_DRIVERS is t).
YAMAMOTO> Unlike Eli's current code in w32fns.c, this leaves the room to change
YAMAMOTO> the font backend from uniscribe to harfbuzz (and vice versa) for the
YAMAMOTO> same frame. (You can't change xft/frcr to xfthb/ftcrhb on X
YAMAMOTO> regardless of this patch because Bug#23386).
Whilst such an ability to change font backends is cool, I really donʼt
see it being very much used: as I said in my other message, in the
long term only the HarfBuzz backend will be supported, so I donʼt see
any need to add such infrastructure.
Robert
next prev parent reply other threads:[~2019-06-14 11:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-07 19:40 When and how to register various font backends Eli Zaretskii
2019-06-14 9:14 ` Robert Pluim
2019-06-14 12:19 ` Eli Zaretskii
2019-06-14 13:16 ` Robert Pluim
2019-06-14 14:47 ` Eli Zaretskii
2019-06-15 9:50 ` Eli Zaretskii
2019-06-17 3:03 ` Michael Welsh Duggan
2019-06-17 9:41 ` Robert Pluim
2019-06-17 16:01 ` Eli Zaretskii
2019-06-18 1:29 ` YAMAMOTO Mitsuharu
2019-06-18 17:26 ` Eli Zaretskii
2019-06-18 23:21 ` YAMAMOTO Mitsuharu
2019-06-19 16:42 ` Eli Zaretskii
2019-06-14 16:54 ` Andy Moreton
2019-06-14 10:52 ` YAMAMOTO Mitsuharu
2019-06-14 11:52 ` Robert Pluim [this message]
2019-06-14 12:26 ` Eli Zaretskii
2019-06-14 13:24 ` Robert Pluim
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2d0jg1j0j.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=mituharu@math.s.chiba-u.ac.jp \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).