Skip to content

Instantly share code, notes, and snippets.

@smzm
Created August 15, 2023 10:11
Show Gist options
  • Save smzm/8c9f3c925aaa060ce3144bbbf0996d22 to your computer and use it in GitHub Desktop.
Save smzm/8c9f3c925aaa060ce3144bbbf0996d22 to your computer and use it in GitHub Desktop.
Font in linux

Install fonts

Copy fonts in ~/.fonts directory and then run:

fc-cache -fv

  • List all fonts installed :
fc-list

  • Look at the table of charset for the font:
 fc-query /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf  | less

  • List Unicode character ranges for all supported code points (glyphs):
 fc-query --format='%{charset}\n' /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf | less

  • Show All glyphs of specific font (online) : fontdrop

  • Show unicodes in terminal as glyphs :
echo -ne '\u[unicode]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment