Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Rust Buckett Newsgroups: gnu.emacs.help Subject: Re: help with fonts Date: Sat, 05 Jul 2025 19:14:34 -0400 Organization: A noiseless patient Spider Lines: 55 Message-ID: <87ldp2w7qd.fsf@fakedomain.nope> References: <101a44s$3vdfk$1@dont-email.me> <87bjr1g63y.fsf@somewhere.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 06 Jul 2025 01:14:34 +0200 (CEST) Injection-Info: dont-email.me; posting-host="0cd82c87e2dc9fcc433373ae4afc564c"; logging-data="1817110"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188XB/Nz8k6s91jVjiJSVwesNlf758HxbQ=" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:BgHgsbQ7w3IgMKDRHMdVSlnW5xs= sha1:vI9jTTHnDKrRhnBz/AZkoH/mazw= Xref: csiph.com gnu.emacs.help:61038 Ethan Carter writes: > François Patte 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! This is all I have in my config for the font: (set-frame-font "DejaVu Sans Mono 11" nil t) I believe it is for this font (from fc-list): /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book -- this is my clever sig.