GNU bug report logs -
#58335
28.2; Default font 'not available' when running dictionary
Previous Next
Full log
Message #8 received at 58335 <at> debbugs.gnu.org (full text, mbox):
> 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"))>)
This bug report was last modified 2 years and 314 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.