How to change the font #1510
Replies: 2 comments
-
NerdFontsPeople looking for some nice programming fonts can find a bunch of them over at NerdFonts. It looks like they provide a shell script that can install one font at a time, but there's another utility that I actually like better, and it looks like he updated it recently. I like getnf, because you don't have to clone the nerd-fonts repo to get individual fonts. Its interface also shows you which fonts you have and which fonts you don't out of the Nerd Fonts collection. It's very sensible. One last tip: to get a list of available fonts, run this shell one-liner. fc-list --format="%{family[0]}\n" | sort | uniq If you have fzf, you could also add that to the end to help you search through the list of fonts interactively. fc-list --format="%{family[0]}\n" | sort | uniq | fzf |
Beta Was this translation helpful? Give feedback.
-
I know a lot of us here are also Emacs users, so here's an Elisp function that lets you pick fonts in Emacs in a more sensible way than (defun i/set-frame-font (&optional font size)
"Set the font and size for the current frame."
(interactive (list
(completing-read
"font: " (process-lines "fc-list" "--format=%{family[0]}\n"))
(completing-read
"size: " (mapcar (lambda (n) (format "%d" n)) (number-sequence 12 22 2)))))
(set-frame-font (concat font " " size))) |
Beta Was this translation helpful? Give feedback.
-
Example as of today (it might change / be abstracted):
by @jfaz1 on Discord
Beta Was this translation helpful? Give feedback.
All reactions