TrueType fonts install on CentOS 6/RHEL

Fonts used for a PhantomJS project installed locally on server with this method. Required some css tweaks that were slightly different from desktop browser.

yum install ttmkfdir.x86_64 xorg-x11-font-utils.x86_64
 
mkdir /usr/share/fonts/default/TrueType
cp *.otf /usr/share/fonts/default/TrueType
cd /usr/share/fonts/default/TrueType
ttmkfdir
mkfontdir
fc-cache
 
# view installed fonts:
/usr/bin/fc-list

Install MS fonts on Linux

see:
http://www.techrepublic.com/blog/opensource/how-do-i-install-and-use-fonts-in-linux/238

wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec
 
yum install rpm-build cabextract
 
rpmbuild -ba msttcorefonts-2.0-1.spec
 
yum localinstall --nogpgcheck /usr/src/redhat/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm

I found you’ll need to edit the spec file to change the mirror location:

mirror="http://download.sourceforge.net/sourceforge/corefonts/"

Web fonts and font converters

Links to some useful tools for web fonts for the @font-face tag and/or IE Embedded OpenType (EOT):