Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

2 Answers 2

up vote 2 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 .ttc format, allowing it to contain two fonts in one file (Cambria and Cambria Math). LibreOffice seems not to be compatible with this font format, and therefore does not display the regular but it displays the other styles properly.

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.