Skip to content

Instantly share code, notes, and snippets.

@DmitryMyadzelets
Created October 26, 2021 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DmitryMyadzelets/c22b57cf26d403b2b0199d84afb2d483 to your computer and use it in GitHub Desktop.
Save DmitryMyadzelets/c22b57cf26d403b2b0199d84afb2d483 to your computer and use it in GitHub Desktop.
Fonts in Linux

Fonts are located in directories /usr/share/fonts/ and ~/.fonts/.

List all fonts, pick the ones for the terminal:

fc-list | sort | grep -i mono

See how a font looks in the current console (use the font name, not the file name):

printf '\e]710;%s\007' "Ubuntu Mono:pixelsize=16"

Edit .Xresources to apply the font for your terminal (say, urxvt):

URxvt*font: xft:Ubuntu Mono:pixelsize=16

Reload the resources:

xrdb ~/.Xresources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment