GNU bug report logs - #28236
'configure --with-cairo' causes 'emacs -font' to fail

Previous Next

Package: emacs;

Reported by: andrei.elkin <at> pp.inet.fi

Date: Fri, 25 Aug 2017 20:00:02 UTC

Severity: normal

Tags: help

Done: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>

Bug is archived. No further changes may be made.

Full log


Message #31 received at 28236 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 28236 <at> debbugs.gnu.org, ari.roponen <at> gmail.com, andrei.elkin <at> pp.inet.fi,
 dgutov <at> yandex.ru
Subject: Re: bug#28236: 'configure --with-cairo' causes 'emacs -font' to fail
Date: Thu, 13 Dec 2018 12:34:54 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Robert Pluim <rpluim <at> gmail.com>
>> Cc: Ari Roponen <ari.roponen <at> gmail.com>,  28236 <at> debbugs.gnu.org,  andrei.elkin <at> pp.inet.fi,  dgutov <at> yandex.ru
>> Date: Wed, 12 Dec 2018 16:41:52 +0100
>> 
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>> 
>> > So you are saying that the problem here is that Cairo can only work
>> > with fonts known fontconfig, and cannot switch to font backend(s) that
>> > bypass fontconfig?  If so, perhaps just an entry in PROBLEMS with the
>> > above recipe would suffice as a workaround?
>> 
>> I find that surprising. The non-Cairo GTK build can use Xft and X font
>> backends, what's different about Cairo?
>> 
>> (I just tried to set font-backend to '(ftcr x) on my Cairo build, and
>> failed, so perhaps it really isnʼt supported).
>
> I'm guessing that the other font backends use X calls that cannot be
> supported with Cairo drawing, or maybe such support simply wasn't
> coded yet.  But I'm not an expert on this stuff, so maybe I'm wrong.

So xfns.c only initializes the xfont driver when not using Cairo. I
made the obvious changes there, and 'emacs -Q -fn 7x14' starts up, and
'C-u C-x =' tells me:

 x:-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1 (#x68)

Unfortunately *scratch* does not (re-)display properly [1], so unless
weʼre feeling really adventurous, we probably shouldn't enable both
Cairo and the X font back on master, etc/PROBLEMS (or NEWS?) might be
better.

Robert

Footnotes:
[1]  Admittedly this is over an ssh forwarded connection. Running it
     locally might look better.





This bug report was last modified 6 years and 63 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.