Getting Microsoft Calibri font on Amazon EC2 ubuntu

I am trying to use the Calibri font in JasperReports on my Amazon EC2 instance. How can I get this to work? I tried...

sudo apt-get install ttf-mscorefonts-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ttf-mscorefonts-installer is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ttf-mscorefonts-installer' has no installation candidate

      

I need to be able to initiate the JVM from a PHP method that accesses this font for the report, but I don't have it on my server. How can I get it?

+1


source to share


2 answers


Using

wget "http://cl.ly/0m3f0x0c252P3O3t190q/download/Calibri.ttf" -O "~/.fonts/Calibri.ttf"

      



This will save the Calibri font in your default font directory, and all your applications and scripts can use it like a regular font.

+1


source


After that, I recommend removing Calibri.ttf from ~ / .fonts, but may work without removing ...

You need to add this to the source list which is on " /etc/apt/sources.list

":

deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

      

(You can edit this for example sudo nano /etc/sources.list

)



Then you can install the package using this command from the terminal:

sudo apt-get install -y ttf-mscorefonts-installer

      

This will download and install ...

0


source







All Articles