From aeae8e4ab11586a375d642b5c0c02906ab12f2c3 Mon Sep 17 00:00:00 2001 From: Fabrice Quenneville Date: Mon, 23 Sep 2024 17:59:28 -0400 Subject: [PATCH] Add notes on installing and updating fonts - Added instructions for downloading, extracting, and copying font files. - Included steps to update the font cache with explanations of `fc-cache` options. --- notes/linux.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/notes/linux.md b/notes/linux.md index 9b750f3..ebcc721 100644 --- a/notes/linux.md +++ b/notes/linux.md @@ -13,6 +13,7 @@ - [Switch User](#switch-user) - [USB Devices](#usb-devices) - [Test USB Key](#test-usb-key) + - [Fonts](#fonts) ## System Information @@ -261,3 +262,38 @@ Unmount the USB key and safely remove it from the system: umount /mnt/usb eject /dev/sdc ``` + +## Fonts + +**Download and Install Fonts** + +1. **Download the Font Archive**: + + ```bash + wget https://path/to/font/archive.tar.gz + ``` + +2. **Extract the Font Files**: + + ```bash + tar -xzvf font-archive.tar.gz + ``` + +3. **Copy the Font Files to the Local Fonts Directory**: + ```bash + cp -v *.ttf ~/.local/share/fonts/ + ``` + +**Update the Font Cache** + +**Force a Reload of the Installed Font Cache**: + +```bash +sudo su - +fc-cache -fv +fc-cache -frv +``` + +- **`-f`**: Force re-generation of apparently up-to-date cache files, overriding the timestamp checking. +- **`-r`**: Erase all existing cache files and rescan. +- **`-v`**: Display status information while busy.