In my opinion, you would be better off foregoing the package and downloading the fonts manually. It’s what I did under Debian and Ubuntu (I’m not a Mageia user).
One big advantage of this method is that you can then download the fonts just once, and copy them over to any system on which you wish to use them. In addition, while you’re at it, you can also obtain updated and new fonts, which the package may not provide (at least, the Debian package didn’t, last time I looked).
To download the original core fonts, just run the following command:
Code:
wget --base='http://downloads.sourceforge.net/corefonts/' --input-file=- <<'//*EOF'
andale32.exe
arial32.exe
arialb32.exe
comic32.exe
courie32.exe
georgi32.exe
impact32.exe
times32.exe
trebuc32.exe
verdan32.exe
webdin32.exe
wd97vwr32.exe
//*EOF
(Actually, if you’re going to download the updated fonts anyway, then you may skip the
arial32.exe, times32.exe, trebuc32.exe, and
verdan32.exe downloads, since the
EUupdate.EXE file—which will be downloaded next—provides newer versions of these fonts.)
Then, similarly, download the updated and new font files:
Code:
wget --base='http://downloads.sourceforge.net/mscorefonts2/' --input-file=- <<'//*EOF'
EUupdate.EXE
PowerPointViewer.exe
//*EOF
To continue, make sure that the
cabextract utility is installed on your system, and run the following sequence of commands to extract the font files from the downloaded files (I’ll ignore the old versions of the updated fonts, since they would get overwritten anyway):
Code:
cabextract --lowercase --filter='*.tt?' 'andale32.exe'
cabextract --lowercase --filter='*.tt?' 'arialb32.exe'
cabextract --lowercase --filter='*.tt?' 'comic32.exe'
cabextract --lowercase --filter='*.tt?' 'courie32.exe'
cabextract --lowercase --filter='*.tt?' 'georgi32.exe'
cabextract --lowercase --filter='*.tt?' 'impact32.exe'
cabextract --lowercase --filter='*.tt?' 'webdin32.exe'
cabextract --lowercase --filter='*.tt?' 'EUupdate.EXE'
cabextract --lowercase --filter='viewer1.cab' 'wd97vwr32.exe'
cabextract --lowercase --filter='ppviewer.cab' 'PowerPointViewer.exe'
cabextract --lowercase --filter='*.tt?' 'viewer1.cab'
cabextract --lowercase --filter='*.tt?' 'ppviewer.cab'
Next,
as ‘root’, create the directory to which you will be copying the fonts, …
Code:
mkdir '/usr/share/fonts/truetype/mstt'
… and copy the fonts there:
Code:
cp *.tt? '/usr/share/fonts/truetype/mstt'
Finally, update the font cache:
Code:
fc-cache --force --verbose
Transporting the fonts to another computer.If you want to be able to easily set up the fonts on any other system, then you may want to pack them up into an archive:
Code:
tar -cvzPf msfonts.tar.gz '/usr/share/fonts/truetype/mstt'
Then, whenever you want to set up the fonts on another computer, just run the following command as ‘root’ to unpack the archive, …
Code:
tar -xvzPf msfonts.tar.gz
… and update the font cache again.