#!/bin/sh
# echo "Bengali Writer Font Utilities, Version 1.0"
# echo "------------------------------------------"
echo "Adding X11 fonts for Devnagari alphabet ..."
dnfontdir="/usr/local/dvedit/BDF"
xset fp- $dnfontdir
# if test -e does not work in the following line, try test -f
if test -e $dnfontdir/fonts.dir
then
   echo "fonts.dir found ... skipping"
else
   if test -w $dnfontdir
   then 
      echo "Creating fonts.dir ..."
      mkfontdir $dnfontdir
   else
      echo "Unable to create fonts.dir"
      echo "$dnfontdir is not writable"
   fi
fi
xset fp+ $dnfontdir
echo "... Done"
echo "The following Devnagari fonts are added :"
xlsfonts | grep devnagari
echo "Have a nice day ..."
