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


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ari Roponen <ari.roponen <at> gmail.com>
Cc: 28236 <at> debbugs.gnu.org, andrei.elkin <at> pp.inet.fi, dgutov <at> yandex.ru
Subject: bug#28236: 'configure --with-cairo' causes 'emacs -font' to fail
Date: Wed, 12 Dec 2018 17:16:26 +0200
> From: Ari Roponen <ari.roponen <at> gmail.com>
> Cc: Dmitry Gutov <dgutov <at> yandex.ru>,  28236 <at> debbugs.gnu.org,  andrei.elkin <at> pp.inet.fi
> Date: Wed, 12 Dec 2018 14:03:48 +0200
> 
> >> On 25.08.2017 22:57, andrei.elkin <at> pp.inet.fi wrote:
> >> >    bash# src/emacs -Q -font 7x14
> >> >    => Font ‘7x14’ is not defined
> >> 
> >> FWIW, I can confirm with the latest emacs-26 and master.
> >
> > Thanks for trying.  AFAIU, this is an important user-level feature, so
> > we should try fixing it if we want to enable Cairo by default.
> >
> 
> I can get the same result also without Cairo:
>     emacs-26.1 --xrm "Emacs.fontBackend: xft" -q -font 7x14
> 
> When I copy the font where fontconfig can see it:
>     cp /usr/share/X11/fonts/misc/7x14.pcf.gz ~/.local/share/fonts/
>     fc-cache -vf
> I see this:
>     fc-list | grep 7x14
> =>  /home/arirop/.local/share/fonts/7x14.pcf.gz: Fixed:style=Regular
> 
> After that, using "-font Fixed" seems to work.

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?




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.