mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-28 14:56:35 +00:00
81 lines
2.1 KiB
Text
81 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`:
|
|
|
|
|
|
[discrete]
|
|
=== 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 xref:setup_rpmfusion.adoc[these instructions].
|
|
====
|
|
|
|
|
|
[discrete]
|
|
=== Procedure
|
|
|
|
. List all available font packages from enabled repositories.
|
|
+
|
|
----
|
|
# dnf search fonts
|
|
----
|
|
|
|
. Install the package you need.
|
|
+
|
|
----
|
|
# dnf install libreoffice-opensymbol-fonts.noarch
|
|
----
|
|
|
|
|
|
[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.
|
|
|
|
|
|
[discrete]
|
|
== Procedure
|
|
|
|
. Create a new directory in the system's font directory `/usr/share/fonts`, where you will place the font files.
|
|
+
|
|
----
|
|
# mkdir /usr/share/fonts/robofont
|
|
----
|
|
|
|
. Copy the font file to the font's directory created in the previous step.
|
|
+
|
|
----
|
|
# cp ~/fonts/robofont.ttf /usr/share/fonts/robofont
|
|
----
|
|
|
|
. Update the font cache.
|
|
+
|
|
----
|
|
# fc-cache -v
|
|
----
|