Mint Linux Installing Fonts System-Wide

From Free Knowledge Base- The DUCK Project: information for everyone
Revision as of 20:19, 5 October 2024 by Littleguy (Talk | contribs)

Jump to: navigation, search

check which fonts are already installed

fc-list

Navigate to /usr/share/fonts

cd /usr/share/fonts

place your downloaded *.otf and *.tff fonts in this directory.

To make the system aware of the new fonts, update the font cache by running the following command:

fc-cache -f -v

As a side note, specific users can have fonts in their home that are not available system wide. They simply place them in ~/.fonts and run 'fc-cache -f -v' as a regular user.

Other options: fontconfig, GNOME fonts or KFontView for graphical fonts installation

Traditionally on Linux-based operating systems, fonts are managed via the fontconfig library. The directories where the fonts should be installed are declared in the /etc/fonts/font.conf

Default font related directories:

   /usr/share/fonts
   /usr/share/X11/fonts/Type1
   /usr/share/X11/fonts/TTF
   /usr/local/share/fonts
   ~/.fonts

Command to get information only about a specific font: (example uses font named cantarell)

fc-list cantarell