Subject: bug#51277: 27.1; menu-set-font not loading correct font

From: Robert Pluim <[email-masked]>
Date: Wed, 20 Oct 2021 10:50:35 +0200

>>>>> On Tue, 19 Oct 2021 14:17:01 -0400, Jesse Sheidlower <[email-masked]> said:

    Jesse> On Tue, Oct 19, 2021 at 09:14:34PM +0300, Eli Zaretskii wrote:
    >> > Date: Tue, 19 Oct 2021 14:08:43 -0400
    >> > From: Jesse Sheidlower <[email-masked]>
    >> > Cc: [email-masked]
    >> > 
    >> > > Another thing I see is that you have 3 active font backends: xfont,
    >> > > ftfont, and fcrhb.  Maybe that has something to do with the issue...
    >> > 
    >> > Is there a "best" one to use?
    >> 
    >> That'd be fcrhb.
    >> 
    >> > And what's the correct sequence to test this in our current framework?
    >> 
    >> What would you like to test?

    Jesse> Whether using a single font backend will allow Emacs to find the font
    Jesse> I'm trying to select.

If you want to test restricting emacs to a single font-backend, put
something like the following in your .emacs

(add-to-list 'default-frame-alist '(font-backend ftcrhb))

(and note that itʼs spelled 'ftcrhb', not 'fcrhb').

If the font is found with xfont or ftfont, but not with ftcrhb, that
would be somewhat surprising, given that ftcrhb finds the 'bold' version.

Robert
--