Groups | Search | Server Info | Login | Register


Groups > gnu.emacs.help > #61034

Re: help with fonts

From Ethan Carter <ec1828@somewhere.edu>
Newsgroups gnu.emacs.help
Subject Re: help with fonts
Date 2025-06-05 19:45 -0300
Organization A noiseless patient Spider
Message-ID <87bjr1g63y.fsf@somewhere.edu> (permalink)
References <101a44s$3vdfk$1@dont-email.me>

Show all headers | View raw


François Patte <francois.patte@mi.parisdescartes.fr> writes:

> Bonjour,
>
> I have this line in my init file .emacs :
>
> (set-face-font 'default "fontset-default")
>    (set-fontset-font "fontset-default" 'grantha "Noto Serif Grantha")
>
> And emacs complains that it cannot find this font.
>
> If I test the installed fonts with fc-list, I get this answer:
>
> fc-list |grep Grantha
> /usr/share/fonts/google-noto/NotoSerifGrantha-Regular.ttf: Noto Serif
> Grantha:style=Regular
>
> So the font is installed.... Why this complaint? And how can I debug?
>
> I add that this was perfectly working in my previous linux install,
> did I miss something in my new installation?

My first guess is that somehow you're not getting the font name right.
If you tell

  xlsfonts | grep rantha

to your shell, what do you get?

By the way, I set my GNU EMACS font using an X resource:

$ cat ~/.Xresources | grep emacs.font                                          
emacs.font: -misc-fira code medium-medium-r-normal--17-0-0-0-m-0-iso8859-1
$ 

I feel using an X resource sets the font quicker avoiding you noticing a
resize of the window.  (If I recall correctly.  It's been weeks since I
started the GNU EMACS.)

Good luck!

Back to gnu.emacs.help | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

help with fonts François Patte <francois.patte@mi.parisdescartes.fr> - 2025-05-29 19:05 +0200
  Re: help with fonts Ethan Carter <ec1828@somewhere.edu> - 2025-06-05 19:45 -0300
    Re: help with fonts Rust Buckett <rsstinnett@pm.me> - 2025-07-05 19:14 -0400
  Re: help with fonts steve g <sgonedes1977@gmail.com> - 2026-03-29 20:17 -0400

csiph-web