MS Truetype fonts (msttcorefonts)

Home | UNIX | Oracle | Code | Practical | Private

MS Truetype fonts (msttcorefonts)


Prepare
Make sure you have those packages installed,
rpm -qa | grep rpmbuild
rpm -qa | grep ttmkfdir

Install cabextract from EPEL,
download.fedora.redhat.com/pub/epel/5/i386/repoview/cabextract.html
rpm -ivh cabextract-*.rpm

Fetch the latest msttcorefonts .spec from corefonts's Home,
corefonts.sf.net


Build & install
Prepare your build environment,
echo '%_topdir %(echo $HOME)/rpmbuild' > $HOME/.rpmmacros
mkdir -p $HOME/rpmbuild/BUILD
mkdir -p $HOME/rpmbuild/RPMS/noarch

Tweak the .specs to point to relevant SF mirrors (vi msttcorefonts-*.spec),
mirrors="ovh+heanet+switch"
mirror_count=3

Build the binary, install it and restart the X font server,
rpmbuild -bb msttcorefonts-2.0-1.spec
rpm -ivh $HOME/rpmbuild/RPMS/noarch/msttcorefonts-*.rpm
service xfs restart

Fix the path for phpsyslog,
mkdir /usr/share/fonts/truetype
ln -s ../msttcorefonts /usr/share/fonts/truetype

Note. you won't be able to see those fonts with that command,
#xlsfonts | less


References
corefonts.sf.net
daemonscorner.blogspot.com/


Home | UNIX | Oracle | Code | Practical | Private | Donate | Print | html/css
© 2010 Pierre-Philipp Braun