unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Rodrigo Morales <me@rodrigomorales.site>
To: <help-gnu-emacs@gnu.org>
Subject: Error when using Unifont and trying to launch M-x term
Date: Wed, 15 May 2024 14:46:11 -0500	[thread overview]
Message-ID: <8684bb0021409771f1532cee9cb0424f@rodrigomorales.site> (raw)



I downloaded the file =unifont-15.1.05.pcf.gz= from https://unifoundry.com/unifont/index.html . I decompressed it using =gunzip= and moved the file to =~/.fonts=. Afterwards, I executed =fc-cache -f=.

I started Emacs using =$ emacs -Q=. I evaluated the following sexp to change the default font.

#+BEGIN_SRC elisp
(progn
  (set-fontset-font "fontset-startup" '(#x000000 . #x3FFFFF) "Unifont")
  (set-fontset-font "fontset-default" '(#x000000 . #x3FFFFF) "Unifont"))
#+END_SRC

I executed =M-x term=, and I got the message  =window-max-chars-per-line: Invalid font name: -GNU-Unifont-medium-normal-normal-Sans-Serif-16-*-*-*-c-80-iso10646-1= in the minibuffer and =term= wasn't started. I tried executing =M-x term= again but the same message was shown and =term= wasn't started.

The backtrace is shown below. I obtained by starting =emacs -Q= again, enabling =toggle-debug-on-error=, evaluating the same sexp shown above for changing the default font, and executing =M-x term=.

#+BEGIN_SRC text
Debugger entered--Lisp error: (error "Invalid font name: -GNU-Unifont-medium-normal-norm...")
  window-font-width(nil nil)
  window-max-chars-per-line()
  term-mode()
  make-term("terminal" "/bin/zsh" nil)
  term("/bin/zsh")
  funcall-interactively(term "/bin/zsh")
  command-execute(term record)
  execute-extended-command(nil "term" "term")
  funcall-interactively(execute-extended-command nil "term" "term")
  command-execute(execute-extended-command)
#+END_SRC

Why am I getting that error?

* System information

I'm running GNU Emacs 29.3 in Ubuntu 22.04.4 LTS.

#+BEGIN_SRC text
ELISP> (emacs-version)
"GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0)"
#+END_SRC




             reply	other threads:[~2024-05-15 19:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-15 19:46 Rodrigo Morales [this message]
2024-05-16  7:03 ` Error when using Unifont and trying to launch M-x term Eli Zaretskii
2024-05-16 19:43   ` Rodrigo Morales

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8684bb0021409771f1532cee9cb0424f@rodrigomorales.site \
    --to=me@rodrigomorales.site \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).