[Ubuntu] Install a font for the current user

Created on November 30, 2026

Copy the font file into ~/.local/share/fonts and run fc-cache. In this example the font file is named ExampleFont.ttf and is in the current directory.

mkdir -p ~/.local/share/fonts
cp ExampleFont.ttf ~/.local/share/fonts/
fc-cache -f -v ~/.local/share/fonts

mkdir -p creates the font directory if needed. cp copies the font and fc-cache -f forces a cache refresh. The end of the output should look like this.

fc-cache: succeeded
Ubuntu Shell command