How to install msttcore-fonts on Linux systems?
This article applies to all MetaDefender Core V5 releases deployed on Linux systems.
To apply non-English watermarks (e.g., Hebrew, Japanese) in P-DLP or to resolve issues where text becomes corrupted (e.g., characters overlapping) after OCR, additional fonts from Microsoft must be installed on your Linux system.
Installation Instructions
- Debian/Ubuntu-based Systems
To install the required font, please issue the following commands.
sudo apt install fontconfig ttf-mscorefonts-installerfc-cache -v -rIn case you get an error like  Package ttf-mscorefonts-installer is not available..., please enable the contrib repository, which contains ttf-mscorefonts-installer, by adding contrib to the repository lines in /etc/apt/sources.list (see below) and then run sudo apt update.
deb http://deb.debian.org/debian/ bullseye main contribdeb-src http://deb.debian.org/debian/ bullseye main contribdeb http://security.debian.org/debian-security bullseye-security main contribdeb-src http://security.debian.org/debian-security bullseye-security main contribdeb http://deb.debian.org/debian/ bullseye-updates main contribdeb-src http://deb.debian.org/debian/ bullseye-updates main contrib- RHEL based systems
Please first take a look at the package and its content/dependencies to ensure it complies with your regulations.
First, you need to install the dependencies:
sudo yum install curl cabextract xorg-x11-font-utils fontconfigOnce the dependencies have been installed, you can install the .rpm package itself:
sudo rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpmfc-cache -v -r- RHEL 9 system
First, install the required dependencies:
dnf install curl fontconfig cabextractIf you get the following error:  No match for argument: cabextract  you need to enable the EPEL repository:
subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpmsdnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpmThen, try to install The cabextract again:
dnf install cabextractThe xorg-x11-font-utils is also a dependency for the msttcore-fonts-installer, but it is not available in any base RHEL 9 repository, so you need to install the following tools:
dnf install mkfontscale mkfontdir xsetWhen you install the msttcore fonts RPM, you need to use the --nodeps option so the installation won’t fail because of the missing xorg-x11-font-utils:
    sudo rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm --nodepsfc-cache -v -rIf Further Assistance is required, please proceed to log a support case or chat with our support engineer.
