fonts: Use /usr/local/share for unpackaged fonts

Avoid storing unmanaged content in `/usr/share` and use
`/usr/local/share` instead.

This also has the advantage of working on rpm-ostree variants for Fedora
such as Silverblue & Kinoite.
This commit is contained in:
Timothée Ravier 2022-08-08 15:57:38 +02:00
parent 1dc16c1498
commit 551362d3da

View file

@ -70,11 +70,11 @@ If a font is provided by a distribution package, you should always use a package
System fonts are installed for all users. System fonts are installed for all users.
Anyone with an account on the machine will be able to use these fonts. Anyone with an account on the machine will be able to use these fonts.
Create a new directory `/usr/share/fonts/<font-family-name>/` for the new font family:: Create a new directory `/usr/local/share/fonts/<font-family-name>/` for the new font family::
`sudo mkdir /usr/share/fonts/robofont` `sudo mkdir -p /usr/local/share/fonts/robofont`
Copy font files (e.g. `.ttf` files) to the new directory:: Copy font files (e.g. `.ttf` files) to the new directory::
`sudo cp ~/Downloads/robofont.ttf /usr/share/fonts/robofont` `sudo cp ~/Downloads/robofont.ttf /usr/local/share/fonts/robofont`
Update the font cache:: Update the font cache::
`sudo fc-cache -v` `sudo fc-cache -v`