Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Windows 7 partition mounted in Ubuntu. In order to access the fonts I created a link to the Windows font folder using

ln -s /path/to/your/windows/fonts/folder .fonts/windows

I then refreshed my font cache using

sudo fc-cache -fv

I only get Cambria in italics in LibreOffice. All the versions are available in gedit. Is there a way to get the regular and bold versions too?

share|improve this question
up vote 3 down vote accepted

From http://www.webupd8.org/2013/07/how-to-download-and-install-windows-81.html

If you need the Cambria (regular) font, you'll need to convert it to TTF because the font is available as a TrueType Collection (TTC) and unless you convert it, you won't be able to use it in LibreOffice for instance. To convert it to TTF, you need to install FontForge:

sudo apt-get install fontforge

And then, open a terminal and run the following command (the commands below assume you've followed our exact instructions and extracted the fonts under ~/sources/fonts):

cd ~/sources/fonts/ 
fontforge -lang=ff -c 'Open("cambria.ttc(Cambria)"); Generate("cambria.ttf");Close();Open("cambria.ttc(Cambria Math)"); Generate("cambria-math.ttf");Close();'
share|improve this answer

The regular (upright) style of Cambria is in the TrueType Collection (.ttc) format, allowing it to contain several styles in one file (in this case, Cambria and Cambria Math).

Since version 4.3.3 (released in 2014), LibreOffice is now compatible with TTC fonts when running on Linux. This is the commit that implements that support. Therefore, the workaround described in the accepted answer is no longer needed.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.