From Newsgroup: gnu.emacs.help
Ethan Carter <
ec1828@somewhere.edu> writes:
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!
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.
--- Synchronet 3.21a-Linux NewsLink 1.2