5.8 Fonts: TrueType Local Fonts

20201119 OpenType Fonts with the otf filename extension and TrueType fonts with the ttf filename extension can be added to the user’s ~/.local/share/fonts/ or system’s local store /usr/local/share/fonts/. Operating system installed fonts will be found in /usr/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.



Your donation will support ongoing availability and give you access to the PDF version of the book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.