• help with fonts

    From =?UTF-8?Q?Fran=C3=A7ois_Patte?=@francois.patte@mi.parisdescartes.fr to gnu.emacs.help on Thu May 29 19:05:32 2025
    From Newsgroup: gnu.emacs.help

    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?

    Thank you for helping.

    F.P.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Ethan Carter@ec1828@somewhere.edu to gnu.emacs.help on Thu Jun 5 19:45:37 2025
    From Newsgroup: gnu.emacs.help

    Fran|oois 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!
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From steve g@sgonedes1977@gmail.com to gnu.emacs.help on Sun Mar 29 20:17:06 2026
    From Newsgroup: gnu.emacs.help

    Fran|oois 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.



    try M-x list-colors-display

    I found the following in my dot-emacs file.


    ;; Fonts for win32

    ;; (setq w32-enable-synthesized-fonts t)
    ;; (set-face-font 'italic "-*-Courier New-normal-i-*-*-11-*-*-*-c-*-iso8859-1") ;; (set-face-font 'bold-italic "-*-Courier New-bold-i-*-*-11-*-*-*-c-*-iso8859-1")

    ;;(set-face-font 'default "-outline-Andale Mono-normal-normal-normal-mono-*-*-*-*-c-*-iso8859-1")

    ;; Display Windows Fonts
    (defun si:win32-dump-fonts (&optional pattern)
    "Insert available font names into current buffer.
    When <pattern> is supplied only insert fonts that match <pattern>."
    (interactive)
    (let ((fonts (sort (x-list-fonts (or pattern "*")) 'string< ))
    num)
    (setq num (length fonts))
    (save-excursion
    (while fonts
    (newline )
    (insert (car fonts))
    (setq fonts (cdr fonts)))
    (newline))
    (message "Inserted %d fonts." num)))



    hope this helps
    --- Synchronet 3.21f-Linux NewsLink 1.2