GNU bug report logs - #58335
28.2; Default font 'not available' when running dictionary

Previous Next

Package: emacs;

Reported by: Alejandro Pérez Carballo <apc <at> umass.edu>

Date: Thu, 6 Oct 2022 15:39:02 UTC

Severity: normal

Found in version 28.2

Full log


View this message in rfc822 format

From: Alejandro Pérez Carballo <apc <at> umass.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 58335 <at> debbugs.gnu.org
Subject: bug#58335: 28.2; Default font 'not available' when running dictionary
Date: Thu, 6 Oct 2022 13:33:49 -0400
[Message part 1 (text/plain, inline)]
Thanks for writing back. 

If I try

emacs -Q -fn Input

I get Emacs to open with Input as the default font just fine. 



I’ve been using Input with Emacs for over two years without any trouble. In what sense is Emacs rejecting it? 

> On Oct 6, 2022, at 1:27 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
>> From: Alejandro Pérez Carballo <apc <at> umass.edu>
>> Date: Thu, 06 Oct 2022 08:38:09 -0400
>> 
>> I tried calling `dictionary` (just `M-x dictionary RET`) and got the following error:
>> 
>>    set-face-attribute: Font not available: #<font-spec nil nil default nil nil nil nil nil nil nil nil nil ((:name . "default") (:user-spec . "default"))>
>> 
>> I do not get this error if I simply run `emacs -Q` and then call `dictionary`. But adding just
>> 
>>    (set-face-attribute 'default nil :font "Input")
>> 
>> suffices to reproduce the error on my system (after calling `emacs -Q -l file.el`, where 'file.el' contains just that one line).
> 
> What happens if you invoke Emacs like this:
> 
>  emacs -Q -fn Input
> 
> I suspect that Input font is not good for Emacs, so it rejects it.
> 
> Nevertheless, I think the definition of
> dictionary-word-definition-face is problematic: it shouldn't use font
> names such as "default", because it will always fail like this:
> 
>> Debugger entered--Lisp error: (error "Font not available" #<font-spec
>>  nil nil default nil nil nil nil nil nil nil nil nil ((:name .
>>  "default") (:user-spec . "default"))>)

[Message part 2 (text/html, inline)]
[PastedGraphic-1.png (image/png, inline)]

This bug report was last modified 2 years and 316 days ago.

Previous Next


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