quick-docs/modules/ROOT/pages/_partials/proc_adding-new-fonts-as-user.adoc

72 lines
1.8 KiB
Text
Raw Normal View History

2017-12-14 13:44:21 +00:00
[[adding-new-fonts-as-user]]
= Adding new fonts as a user
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.
2018-01-03 17:04:10 +00:00
2017-12-14 13:44:21 +00:00
[[adding-new-local-fonts-with-gfv]]
2017-12-14 15:18:05 +00:00
== Adding new local fonts with the Gnome Font Viewer
2017-12-14 13:44:21 +00:00
2017-12-14 15:18:05 +00:00
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*:
2017-12-14 13:44:21 +00:00
2018-01-03 17:04:10 +00:00
[discrete]
=== Before you start
2017-12-14 13:44:21 +00:00
* Make sure you have installed the `gnome-font-viewer` package.
2018-01-03 17:04:10 +00:00
[discrete]
=== Procedure
2017-12-14 13:44:21 +00:00
. Open a file manager.
. Double-click on a font file to open it in the *Gnome Font Viewer*.
. Click on the blue btn:[Install] button on the top bar.
+
[NOTE]
====
2017-12-14 15:18:05 +00:00
Currently, there is a bug in the application. When you click on the btn:[Install] button, it does not inform whether the installation succeeded.
2017-12-14 13:44:21 +00:00
====
2018-01-03 17:04:10 +00:00
[discrete]
=== More information
2017-12-14 13:44:21 +00:00
* *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.
2018-01-03 17:04:10 +00:00
[[adding-new-local-fonts-manually]]
== Adding new local fonts manually
2017-12-14 13:44:21 +00:00
2017-12-14 15:18:05 +00:00
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.
2017-12-14 13:44:21 +00:00
2018-01-03 17:04:10 +00:00
[discrete]
=== Before you start
2017-12-14 13:44:21 +00:00
* If it does not exist, create a `.fonts` directory in your user's home directory.
2018-01-03 17:04:10 +00:00
[discrete]
=== Procedure
2017-12-14 13:44:21 +00:00
. In the `.local/share/fonts` directory, create a new directory to place your fonts files.
+
----
$ mkdir ~/.local/share/fonts/robofont
----
2017-12-14 15:18:05 +00:00
. Copy the font file into the newly created directory.
2017-12-14 13:44:21 +00:00
+
----
$ cp robofont.ttf ~/.local/share/fonts/robofont
----
. Update the font cache.
+
----
$ fc-cache -v
----