GNU/Linux Desktop Survival Guide
by Graham Williams |
|||||
Fonts: TrueType Local Fonts |
20201119 Fonts in the form of otf and ttf files can be added to the system either per user into /.local/share/fonts/ or system wide into /usr/local/share/fonts/. To list all fonts that are known to the system:
$ fc-list -f '%{file}\n' | sort [...] /home/kayon/.local/share/fonts/muli/Muli-BlackItalic.ttf /home/kayon/.local/share/fonts/muli/Muli-Black.ttf /home/kayon/.local/share/fonts/muli/Muli-BoldItalic.ttf /home/kayon/.local/share/fonts/muli/Muli-Bold.ttf [...] |
If they are installed system wide:
fc-list -f '%{file}\n' | grep Muli /usr/local/share/fonts/Muli-Medium.ttf /usr/local/share/fonts/Muli-Bold.ttf /usr/local/share/fonts/Muli-BoldItalic.ttf /usr/local/share/fonts/Muli-MediumItalic.ttf |
When adding fonts to /usr/local/share/fonts/ the font cache may need to be refreshed:
$ fc-cache -f -v |
The files within the directory can be organised, per font family for example, into separate sub-directories.