Linux: Howto install truetype (freetype) and Msttcorefonts fonts

Apple Computers originally developed a Truetype font in 1980. Later in 1991 Microsoft introduced the same to Windows operating system. These fonts enhance your web browsing experience and some software such as Macromedia Flash player only works best with Truetype / FreeType fonts under Linux desktop.

Linux use fonts from the FreeType project of David Turner. It is an attempt to create an independent implementation of the TrueType standard.

How do I install Microsoft TrueType core fonts and FreeType fonts under Debian Linux?

If you are using Debian Linux, type the command:
# apt-get install msttcorefonts cabextract x-ttcidfont-conf

Reconfigure TrueType and CID fonts for X windows:
# dpkg-reconfigure x-ttcidfont-conf

Select FreeType from the drop down list.

Open /etc/X11/XF86Config-4 file and append following FontPath:
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"

Save and close the file

Open XFS /etc/X11/fs/config file
# vi /etc/X11/fs/config

Append above font paths catalogue option, which specifies paths to search for fonts. At the end, your entry should look like as follows:
catalogue = /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/,/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID/,/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/cyrillic/,/usr/lib/X11/fonts/100dpi/:unscaled,/usr/lib/X11/fonts/75dpi/:unscaled,/usr/lib/X11/fonts/Type1/,/usr/lib/X11/fonts/CID,/usr/lib/X11/fonts/Speedo/,/usr/lib/X11/fonts/100dpi/,/usr/lib/X11/fonts/75dpi/

Close and save the file. Restart the system:
# reboot

Update:
OR just restart both xfs and X server:
# /etc/init.d/xfs restart
# /etc/init.d/xdm restart

🐧 If you liked this page, please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source & DevOps topics via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
2 comments… add one
  • foo Mar 15, 2009 @ 13:41

    LoLz, reboot after installation of fonts ? Even under Windows, it’s not need do that !!!

  • subi Sep 6, 2006 @ 23:17

    no need to reboot – restart xfs

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.