mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-12-01 07:39:48 +00:00
91ff68b00f
Removed an unnecessary word I removed the word 'enough' from the sentence: 'This method gives you enough control over the font package in the future, such as updating the package and removing it from the system." See merge request !13
73 lines
2.1 KiB
Text
73 lines
2.1 KiB
Text
[[adding-new-fonts-as-superuser]]
|
|
= Adding new fonts as the superuser
|
|
|
|
System fonts are available to all system users. If you need to add system fonts, there are two ways:
|
|
|
|
. Use the `dnf` package manager to install font packages,
|
|
. Manually add fonts to the system and update the font cache to make them available to the users.
|
|
|
|
[WARNING]
|
|
====
|
|
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`
|
|
|
|
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
|
|
|
|
* Add and enable repositories with font packages.
|
|
+
|
|
[NOTE]
|
|
====
|
|
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
|
|
|
|
. List all available font packages from enabled repositories.
|
|
+
|
|
----
|
|
$ sudo dnf search fonts
|
|
----
|
|
|
|
. Install the package you need.
|
|
+
|
|
----
|
|
$ sudo dnf install libreoffice-opensymbol-fonts.noarch
|
|
----
|
|
|
|
.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
|
|
|
|
. 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
|
|
----
|
|
|
|
. Copy the font file to the font's directory created in the previous step.
|
|
+
|
|
----
|
|
$ sudo cp ~/fonts/robofont.ttf /usr/share/fonts/robofont
|
|
----
|
|
|
|
. Update the font cache.
|
|
+
|
|
----
|
|
$ sudo fc-cache -v
|
|
----
|
|
|
|
|