When I open a document sent to me by a colleague Calibri seems to work font as expected with the document:
But when I create a document on the same computer the Calibri font isn't available in the drop-down.
When I open a document sent to me by a colleague Calibri seems to work font as expected with the document:
But when I create a document on the same computer the Calibri font isn't available in the drop-down.
You have to install it:
Install Microsoft's classic TrueType fonts: sudo apt install ttf-mscorefonts-installer
Install Microsoft's newer ClearType fonts:
Constantia, Corbel, Calibri, Cambria, Candara, and Consolas
mkdir ~/.fonts
wget -qO- http://plasmasturm.org/code/vistafonts-installer/vistafonts-installer | bash
Then close and open LibreOffice, if open while you installed these fonts.
Source:
http://www.pcworld.com/article/2863497/how-to-install-microsoft-fonts-in-linux-office-suites.html
ttf-mscorefonts-installer
package installs successfully but fails to actually download the fonts, install the package from debian sid instead: https://packages.debian.org/en/sid/all/ttf-mscorefonts-installer/download (this is a known bug: https://bugs.launchpad.net/ubuntu/+source/msttcorefonts/+bug/1767748 )
– törzsmókus
Aug 02 '19 at 05:38
cabextract
needs to be installed. You can install it by running sudo apt install cabextract
.
– BeastOfCaerbannog
Mar 31 '20 at 06:55
~/.fonts
also available at snap's user home directory. That is, create a symlink as follows: ln -s ~/.fonts ~/snap/libreoffice/current/.fonts
. See also here: https://askubuntu.com/questions/881667/any-way-to-get-fonts-to-work-in-libreoffice-snap-package
– cubic lettuce
Apr 07 '20 at 10:39
The image that you've included with your question shows that the name of the font is in italics. This means that the named font is not installed, and an automatically selected substitute has been used instead. If you hover the cursor over this italicised font name you may see a comment to this effect.
If you don't wish to install the missing font, you can edit the Style to specify a font that is installed (right-click within a paragraph, and choose 'Edit Paragraph Style...' from the bottom of the dropdown menu).
In Microsoft Office the same thing happens with missing fonts, but there's usually no indication that a font substitution has occurred.
I had the same problem a week ago. ttf-mscorefonts-installer
doesn't include Calibri.
It includes the following fonts:
Source: sudo apt show ttf-mscorefonts-installer
If you own a legit Microsoft Office license you could copy calibri.ttf
and all calibri*.ttf
files (bold, italics, ...) from C:\Windows\Fonts
and install them on Ubuntu by simply double clicking them. Although I'm not sure if that's according to Office's terms of service.
The fonts Calibri, Cambria, Candara, Consolas, Constantia and Corbel require a Microsoft Office license, which means that they are only legal on machines where Microsoft Office (available only on Windows and MacOS) is installed.
LibreOffice installs the free font Carlito, which is a replacement for Calibri, and Caladea, which is a replacement for Cambria.
fonts-crosextra-carlito
and Caladea is in fonts-crosextra-caladea
.
– Craig McQueen
Jan 30 '20 at 10:49
Here is a nice way of installing Calibri on your Debian based system.
Run this command in the terminal.
$ sudo apt-get install fontforge
This will install Font Forge on your system, which will help in font conversion. After running the above command, execute the command given bellow:
$ wget https://gist.github.com/maxwelleite/10774746/raw/ttf-vista-fonts-installer.sh -q -O - | sudo bash
This will install the vista font pack on your system that also includes Calibri.
Another solution would be installing Carlito and Caladea fonts manually, and then manually map them in Tools->Options->Fonts so Calibri and Cambria are always shown as Carlito and Caladea respectively. I think LO 6 does that by default, but in older versions that didn't ship Carlito/Caladea it may be necessary doing it manually.
You can install "Calibri" and additional fonts using fontist.
Install Ruby development files:
sudo apt-get install ruby-dev
Install fontist:
sudo gem install fontist
Update fontist list:
fontist update
Install Calibri font:
fontist install "Calibri"
Fontist will present you the Microsoft's EULA: please read it and type "yes" followed by enter if you accept it.
Fontist will download the fonts and tell you where the fonts have been installed, in my case it was:
$HOME/.fontist/fonts/CALIBRI.TTF
LibreOffice uses fontconfig to resolve fonts: fontconfig needs to be aware of the new fonts if you want LibreOffice to use them. Create a local fontconfig configuration file, and add the directory in which the fonts have been installed:
mkdir $HOME/.config/fontconfig
mkdir $HOME/.config/fontconfig/conf.d
export CONFFILE=${HOME}/.config/fontconfig/conf.d/10-fontist.conf
echo "<?xml version='1.0'?>" >> $CONFFILE
echo "<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>" >> $CONFFILE
echo "<fontconfig>" >> $CONFFILE
echo "<dir>$HOME/.fontist/fonts</dir>" >> $CONFFILE
echo "</fontconfig>" >> $CONFFILE
Update fontconfig's cache:
fc-cache -f
Check that the font "Calibri" is resolved by fontconfig into the new installed font:
fc-match "Calibri"
If everything went right, the output of the previous command should be something like:
CALIBRI.TTF: "Calibri" "Regular"
Now LibreOffice will use the newly installed fonts. You can check this is true if LibreOffice does not display the font name in italics anymore.
yes "yes" | fontist install "Calibri"
to accept Microsoft's EULA automatically.
– robertspierre
Dec 17 '20 at 05:34
ttf-mscorefonts-installer
package (which includes Calibri). If you do, you'd better install the Debian version in accordance with this answer. – Gunnar Hjalmarsson Feb 16 '17 at 14:47ttf-mscorefonts-installer
package does NOT include Calibri... – Digger Jul 24 '18 at 03:39ttf-mscorefonts-installer
does not include Calibri, but see my answer below on how to install Calibri using fontist – robertspierre Dec 17 '20 at 05:00