From 551362d3da380137bfcb4ed3cf99ee10e3837343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Ravier?= Date: Mon, 8 Aug 2022 15:57:38 +0200 Subject: [PATCH] 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. --- modules/ROOT/pages/fonts.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ROOT/pages/fonts.adoc b/modules/ROOT/pages/fonts.adoc index e3e52cb..438ad6a 100644 --- a/modules/ROOT/pages/fonts.adoc +++ b/modules/ROOT/pages/fonts.adoc @@ -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. Anyone with an account on the machine will be able to use these fonts. -Create a new directory `/usr/share/fonts//` for the new font family:: -`sudo mkdir /usr/share/fonts/robofont` +Create a new directory `/usr/local/share/fonts//` for the new font family:: +`sudo mkdir -p /usr/local/share/fonts/robofont` 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:: `sudo fc-cache -v`