Re: Defoma and TT Font installation scripts
hrm I wrote a silly little script to add new fonts
and refresh the fonts cache...
===========================================================
#!/bin/bash
# Create a directory named /usr/local/share/fonts if it doesn't exist;
# then edit /etc/fonts/local.conf to look
# vaguely like this:
# <fontconfig>
# <dir>/usr/X11R6/lib/X11/fonts</dir>
# <dir>/usr/local/share/fonts</dir>
echo " "
echo " This script will move fonts from ~/fonts "
echo " to /usr/local/share/fonts; and update the"
echo " font cache accordingly."
echo " "
echo " Adding fonts on Linux requires root access."
echo " This may require your sudo password."
echo " Please enter your password at the prompt, if prompted"
echo " "
echo " "
cd ~/fonts
echo " Moving fonts to required location..."
echo " "
sudo mv -v * /usr/local/share/fonts/
echo " "
echo " "
echo " Registering fonts with X server..."
echo " "
sudo fc-cache -fv
echo " "
echo " Goodbye."
echo " "
echo " "
===========================================================
Yeah, I know, simple and childish but it works and makes things a no-brainer.
--
If Washington fears honest citizens armed at their own expense and desire,
then Washington should.
Reply to: