This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

Fonts

From Gentoo Wiki (test)
Jump to:navigation Jump to:search
This article is a stub. You can help by expanding it.
Resources

In Gentoo, font installation is handled much like other distributions. It can be as easy as copying the font file into the proper directory. Other methods, such as fontconfig, are also possible.

Home directory

When installing fonts on a local basis, each user can create a .local/share/fonts directory in their home directory. This directory can then be filled with font files:

user $mkdir -p ~/.local/share/fonts
user $cp ~/Downloads/Inconsolata.otf ~/.local/share/fonts
Note
Historically, the ~/.fonts directory was used to store fonts on a per-user basis. The modern equivalent is ~/.local/share/fonts.

Check in a few applications to see if the newly copied font has been made available. A terminal emulator or an office program should work nicely for this purpose.

Globally available

System administrators (those with root privileges) can copy fonts into the system's /usr/share/fonts directory. This will make fonts available to any user on the system.

root #cp /home/larry/Downloads/Inconsolata.otf /usr/share/fonts

Console font

In order to use a specific font in the console, set the consolefont variable in /etc/conf.d/consolefont to the name of a file found in /usr/share/consolefonts/ (without the .psfu.gz suffix).

FILE /etc/conf.d/consolefontSetting the console font
consolefont="lat9w-16"

Next, verify that the consolefont service is in the boot runlevel:

root #rc-update -v show | grep consolefont

If no runlevel is displayed for consolefont, then add it to the proper level:

root #rc-update add consolefont boot

If you need bigger fonts and more modern looking fonts for HD screens you should install media-fonts/terminus-font. It has fonts with sizes from 12 to 32 pixels.

GUI font

To configure fonts for use in graphical applications, see Fontconfig.

See also

External resources