From 76517034b0695cefc68e4fa117280c043987cfdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Kr=C3=A1tk=C3=BD?= Date: Wed, 3 Jan 2018 18:04:10 +0100 Subject: [PATCH] Fix the 'new fonts' topic. --- _topic_map.yml | 2 ++ en-US/adding-new-fonts-fedora.adoc | 6 ++-- .../proc_adding-new-fonts-as-superuser.adoc | 32 ++++++++++++------- .../proc_adding-new-fonts-as-user.adoc | 25 +++++++++++---- 4 files changed, 43 insertions(+), 22 deletions(-) diff --git a/_topic_map.yml b/_topic_map.yml index 5614eac..6b1f088 100644 --- a/_topic_map.yml +++ b/_topic_map.yml @@ -20,6 +20,8 @@ Topics: File: performing-administration-tasks-using-sudo - Name: Installing Spotify File: installing-spotify + - Name: Adding new fonts in Fedora + File: adding-new-fonts-fedora - Name: (FIX ME!) Third party repositories File: 3rd-party-repos - Name: (FIX ME!) Anaconda diff --git a/en-US/adding-new-fonts-fedora.adoc b/en-US/adding-new-fonts-fedora.adoc index 86879e0..51a29cf 100644 --- a/en-US/adding-new-fonts-fedora.adoc +++ b/en-US/adding-new-fonts-fedora.adoc @@ -1,11 +1,11 @@ :experimental: -:md: ./modules + [[adding-new-fonts-fedora]] = Adding new fonts in Fedora The default installation of the Fedora Linux (Fedora) includes several basic fonts. If you plan to use Fedora for activities such as typesetting and graphic design, you may wish to add additional fonts. -include::{md}/proc_adding-new-fonts-as-superuser.adoc[leveloffset=+1] +include::modules/proc_adding-new-fonts-as-superuser.adoc[leveloffset=+1] -include::{md}/proc_adding-new-fonts-as-user.adoc[leveloffset=+1] +include::modules/proc_adding-new-fonts-as-user.adoc[leveloffset=+1] diff --git a/en-US/modules/proc_adding-new-fonts-as-superuser.adoc b/en-US/modules/proc_adding-new-fonts-as-superuser.adoc index 67bc0ac..988ec5c 100644 --- a/en-US/modules/proc_adding-new-fonts-as-superuser.adoc +++ b/en-US/modules/proc_adding-new-fonts-as-superuser.adoc @@ -11,14 +11,17 @@ System fonts are available to all system users. If you need to add system fonts, If you manually add system-wide fonts, you will not be able to control them with the package manager. If the font is provided as a distribution package, you should always use the package manager to install it. ==== + [[installing-new-fonts-with-dnf]] -== Installing new fonts with `dnf` +== Installing new fonts with dnf Whenever you can add new fonts by installing a font package with the `dnf` package manager, you should do so. This method gives you control over the font package in the future, such as updating the package and removing it from the system. To install a font package with `dnf`: -.Before you start + +[discrete] +=== Before you start * Add and enable repositories with font packages. + @@ -27,47 +30,52 @@ To install a font package with `dnf`: A lot of fonts are available from the RPMfusion repository. To enable the repository on your system, follow the instructions on link:https://rpmfusion.org/Configuration[the RPMfusion webpage]. ==== -.Procedure + +[discrete] +=== Procedure . List all available font packages from enabled repositories. + ---- -$ sudo dnf search fonts +# dnf search fonts ---- . Install the package you need. + ---- -$ sudo dnf install libreoffice-opensymbol-fonts.noarch +# dnf install libreoffice-opensymbol-fonts.noarch ---- -.More information + +[discrete] +=== More information * The `dnf search fonts` command lists all available font packages, as well as their descriptions. + [[installing-new-fonts-manually]] == Installing new fonts manually When you need to install fonts that are not available in a repository, you can install them manually by copying the font files into a system font directory and updating the font cache. -.Procedure + +[discrete] +== Procedure . Create a new directory in the system's font directory `/usr/share/fonts`, where you will place the font files. + ---- -$ sudo mkdir /usr/share/fonts/robofont +# mkdir /usr/share/fonts/robofont ---- . Copy the font file to the font's directory created in the previous step. + ---- -$ sudo cp ~/fonts/robofont.ttf /usr/share/fonts/robofont +# cp ~/fonts/robofont.ttf /usr/share/fonts/robofont ---- . Update the font cache. + ---- -$ sudo fc-cache -v +# fc-cache -v ---- - - diff --git a/en-US/modules/proc_adding-new-fonts-as-user.adoc b/en-US/modules/proc_adding-new-fonts-as-user.adoc index a3b2111..fbccfaf 100644 --- a/en-US/modules/proc_adding-new-fonts-as-user.adoc +++ b/en-US/modules/proc_adding-new-fonts-as-user.adoc @@ -3,16 +3,21 @@ When you do not have superuser access to install fonts on the system level, or you only need to install a font that will be available to your user account only, there are two methods to do it. + [[adding-new-local-fonts-with-gfv]] == Adding new local fonts with the Gnome Font Viewer The *Gnome Font Viewer* is an application to display the fonts installed on the system. It also allows you to locally install fonts. To add a new font file with *Gnome Font Viewer*: -.Before you start + +[discrete] +=== Before you start * Make sure you have installed the `gnome-font-viewer` package. -.Procedure + +[discrete] +=== Procedure . Open a file manager. @@ -25,21 +30,27 @@ The *Gnome Font Viewer* is an application to display the fonts installed on the Currently, there is a bug in the application. When you click on the btn:[Install] button, it does not inform whether the installation succeeded. ==== -.More information + +[discrete] +=== More information * *Gnome Font Viewer* copies the font files to a font directory in the current user's directory `.local/share/fonts` and updates the font cache. -[[adding-new-local-fonts-manually]] -== Adding new local fonts manually + +[[adding-new-local-fonts-manually]] +== Adding new local fonts manually If you do not want to use any tools to add new fonts, you can do it manually. Copy the font files in the `.fonts` directory placed in the user's directory and update the font cache. -.Before you start + +[discrete] +=== Before you start * If it does not exist, create a `.fonts` directory in your user's home directory. -.Procedure +[discrete] +=== Procedure . In the `.local/share/fonts` directory, create a new directory to place your fonts files. +