13

If I do M-x customize-face RET default I can adjust the default face (font) in Emacs.

There are several options, all of them explained in the documentation. Many of these options can be selected from a menu when you select/click on Value Menu, but not the Font Family.

How can I see a list of the fonts that I can use in Font Family in Emacs?

Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564

2 Answers2

22

Type the following in the *scratch* buffer, and press C-j at the end of it:

(font-family-list)

You may need to expand the result to see all of them, by hitting enter on the ... at the end.

JSON
  • 4,487
  • 22
  • 26
  • If you're having issues doing this with evil-mode, see https://www.reddit.com/r/emacs/comments/agdjp1/any_evildoers_or_not_have_better_suggested/ . I had to M-x eval-last-sexp manually. – Caleb Jay Apr 27 '21 at 05:51
  • 1
    In evil-mode, press $ (to move to the end of the expression, which is required in this example), then either C-x C-e (to run eval-last-sexp) for a preview OR, to return the result to the current buffer, press C-u (in Doom Emacs, that's SPC u) C-x C-e. See details: https://stackoverflow.com/a/13731645/1231693 – mellow-yellow Feb 23 '22 at 15:35
10

If you are using Emacs 23.1 or later on the X Window System, the following fc-list command can list font families available on your system for Emacs (or any application using fontconfig):

$ fc-list : family
dkim
  • 3,930
  • 1
  • 33
  • 37