From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rodrigo Morales Newsgroups: gmane.emacs.help Subject: Error when using Unifont and trying to launch M-x term Date: Wed, 15 May 2024 14:46:11 -0500 Message-ID: <8684bb0021409771f1532cee9cb0424f@rodrigomorales.site> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37165"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 15 21:46:55 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s7KaV-0009WE-56 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 15 May 2024 21:46:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7KZz-0005wU-TQ; Wed, 15 May 2024 15:46:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7KZx-0005uy-S4 for help-gnu-emacs@gnu.org; Wed, 15 May 2024 15:46:21 -0400 Original-Received: from smtpout1.mo11.mail-out.ovh.ca ([51.161.45.253]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7KZt-00013W-FR for help-gnu-emacs@gnu.org; Wed, 15 May 2024 15:46:21 -0400 Original-Received: from mxplan1.mail.ovh.ca (unknown [10.111.38.140]) by mo11.mail-out.ovh.ca (Postfix) with ESMTPS id 4VfkHT4XdszHpvx for ; Wed, 15 May 2024 16:46:13 -0300 (ADT) Original-Received: from rodrigomorales.site (54.39.251.57) by DAG2EX1.mxpca1.local (172.16.2.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 15 May 2024 15:46:12 -0400 Authentication-Results: garm.ovh; auth=pass (GARM-95B002eac97246-e5cf-4462-a55c-2b9e06e48c50, 9430FB427A4A35C8BA01D3BD7E876FFBC3E15BA8) smtp.auth=me@rodrigomorales.site X-OVh-ClientIp: 190.232.101.8 X-Originating-IP: [54.39.251.57] X-ClientProxiedBy: DAG1EX2.mxpca1.local (172.16.2.2) To DAG2EX1.mxpca1.local (172.16.2.11) X-Ovh-Tracer-GUID: f8bb97b8-92d0-4adc-ad1f-eef0f88aa153 X-Ovh-Tracer-Id: 1226386474572586519 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdegkedgudefhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhepfffkhffvufggtghisehttdhjtddttddtnecuhfhrohhmpeftohgurhhighhoucfoohhrrghlvghsuceomhgvsehrohgurhhighhomhhorhgrlhgvshdrshhithgvqeenucggtffrrghtthgvrhhnpeelieetveeuheefgeekfeeuhfevheejjeduhfegfedtgeekhfekjeetfffgtdejkeenucffohhmrghinhepuhhnihhfohhunhgurhihrdgtohhmnecukfhppeduvdejrddtrddtrddupdehgedrfeelrddvhedurdehjedpudeltddrvdefvddruddtuddrkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepmhgvsehrohgurhhighhomhhorhgrlhgvshdrshhithgvpdhnsggprhgtphhtthhopedupdhrtghpthhtohephhgvlhhpqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgpdfovfetjfhoshhtpehmohduuddpmhhouggvpehsmhhtphhouhht Received-SPF: pass client-ip=51.161.45.253; envelope-from=me@rodrigomorales.site; helo=smtpout1.mo11.mail-out.ovh.ca X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146761 Archived-At: 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