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: Alejandro Pérez Carballo
Subject: bug#58335: 28.2; Default font 'not available' when running dictionary
Date: Thu, 6 Oct 2022 13:33:49 -0400

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@gnu.org> wrote:

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]