29

When I open a document sent to me by a colleague Calibri seems to work font as expected with the document:

enter image description here

But when I create a document on the same computer the Calibri font isn't available in the drop-down.

7 Answers7

47

You have to install it:

  1. Install Microsoft's classic TrueType fonts: sudo apt install ttf-mscorefonts-installer

  2. Install Microsoft's newer ClearType fonts:

    • which includes: Constantia, Corbel, Calibri, Cambria, Candara, and Consolas
    • make fonts directory: mkdir ~/.fonts
    • wget -qO- http://plasmasturm.org/code/vistafonts-installer/vistafonts-installer | bash

  3. 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

Ethan T
  • 204
George Udosen
  • 37,534
14

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.

vandem
  • 166
9

I had the same problem a week ago. ttf-mscorefonts-installer doesn't include Calibri.

It includes the following fonts:

  • Andale Mono
  • Arial Black
  • Arial (Bold, Italic, Bold Italic)
  • Comic Sans MS (Bold)
  • Courier New (Bold, Italic, Bold Italic)
  • Georgia (Bold, Italic, Bold Italic)
  • Impact
  • Times New Roman (Bold, Italic, Bold Italic)
  • Trebuchet (Bold, Italic, Bold Italic)
  • Verdana (Bold, Italic, Bold Italic)
  • Webdings

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.

MWin123
  • 243
7

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.

zrajm
  • 2,766
6

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.

3

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.

jesjimher
  • 339
  • 1
  • 8
1

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.