bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58335: 28.2; Default font 'not available' when running dictionary


From: Eli Zaretskii
Subject: bug#58335: 28.2; Default font 'not available' when running dictionary
Date: Thu, 06 Oct 2022 20:27:08 +0300

> From: Alejandro Pérez Carballo <apc@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"))>)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]