Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 23 |
Nodes: | 6 (0 / 6) |
Uptime: | 54:45:00 |
Calls: | 583 |
Files: | 1,139 |
D/L today: |
179 files (27,921K bytes) |
Messages: | 111,801 |
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!