Posted on

Managing Fonts in Debian

How to manage fonts in Debian (installing/removing/refreshing).

Microsoft Core Fonts Installer

Check to see if this is installed via apt-cache

sudo apt-cache search ttf-mscorefonts-installer

Debian and application fonts

There is a large number of fonts installed via Debian and basic X11, as well as applications (such as LibreOffice).

In order to reduce these, it will be necessary to create a script to get rid of these. Even better:

  • Figure out which fonts can be removed, from where
  • Remove those directories
  • Add fonts using symlinks to repositories
  • Update the repositories regularly (figure out how to do this)

Copy Fonts to Directories


Note, better/easier to symlink to /usr/share/fonts/ if organized with a set of font directories. Example:

First remove font shares:

sudo rm -rf /usr/share/fonts/other-fonts
sudo rm -rf /usr/share/fonts/code-128-fonts
sudo rm -rf /usr/share/fonts/thai-fonts

Then add font shares

sudo ln -s /home/jeff/software/fonts /usr/share/fonts/other-fonts
sudo ln -s /home/jeff/github/code-128-font/fonts /usr/share/fonts/code-128-fonts
sudo ln -s /home/jeff/github/thai-font-collection/downloadable-free-thai-fonts /usr/share/fonts/thai-fonts

Rebuild the Font Cache

sudo fc-cache -fv

List all Installed and Cached Fonts


Reconfigure Fonts

This may be needed to support bitmap fonts.

dpkg-reconfigure fontconfig-config