How to install Arial font in Ubuntu?
I found many ways to install fonts in Ubuntu but I didn't find any proper way or method to install (particularly) Arial fonts in Ubuntu.
ttf-mscorefonts-installer mechanism mentioned in the accepted answer is still broken in Ubuntu 18.04 and I could not find a suitable mirror server for it to fix it, I propose to use this manual mechanism instead to install the very same fonts:
cabextract, a tool needed to unpack self-extracting
sudo apt install cabextract
Download the font package provided via this page (also note the EULA there):
tar -xzf webfonts.tar.gz
Move the fonts to your user's directory for installing additional fonts:
cp *.ttf *.TTF ~/.local/share/fonts/
Restart the software in which you want to use the fonts, and they should be ready to use.
I have been getting LiberationSans-Regular.ttf: "Liberation Sans" "Regular" for sudo fc-match Arial
So I tried following to make it work :
1) Create directory to download fonts to:
sudo mkdir ~/ms-fonts/
3) Download fonts manually :
4) sudo dpkg-reconfigure ttf-mscorefonts-installer and follow instructions. When asked, use full path to directory where fonts were downloaded i.e.
6) Check if installation is done successfully or not :
sudo fc-match Arial
Hope this helps.
I search for a solution for similar problems when preparing the docker file.
When you install fonts with the same command:
DEBIAN_FRONTEND="noninteractive" apt-get -y ttf-mscorefonts-installer
A license agreement is not applied and Arial and other fonts are not installed!
You can use this solution:
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections
apt-get install -y ttf-mscorefonts-installer
And you can check the result with the command:
ttf-mscorefonts package mentioned in the other answers contains a very limited selection of fonts, and rather outdated versions of them.
To get a better selection of up-to-date fonts, you can instead rip them from a Windows installation. Microsoft itself provides free virtual machine images of Win 11, ostensibly for "testing sites on MS Edge", which you can use for this.
Distributing fonts obtained this way is probably illegal, but using them yourself may or may not be be fine.
Get an image here, select "VirtualBox".
The filenames below will be different depending on the VM image version.
unzip WinDev2301Eval.VirtualBox.zip - this might take a while
tar -xf 'WinDev2301Eval.ova' - this might take a while
sudo apt install libguestfs-tools
sudo mkdir /mnt/foo
sudo guestmount -a 'WinDev2301Eval-disk001.vmdk' -i --ro /mnt/foo
sudo cp -r /mnt/foo/Windows/Fonts/ .
sudo umount /mnt/foo
sudo rm -r /mnt/foo
sudo mv Fonts WindowsFonts
Now you should have a
WindowsFonts directory in the current directory, containing all the fonts you want.
To install them for all users, copy it to
To install it just for yourself, run
sudo chown -R "$USER:$USER" WindowsFonts to change the owner to yourself, then copy the directory to