#!/bin/sh # Install fonts into Bitstream's Fonttastic # Copyright (C) 2000 Alan Shutko # 823 Avalon Court, Melville NY 11747 USA # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA if [ "$1" = "-h" ] ; then cat < fonts-ttf type1inst -nogs cat fonts-ttf >> fonts.scale sed -e 's/microsoft-fontspecific/microsoft-symbol/' -e 's/demibold/bold/' < fonts.scale |grep 'iso8859-1$\|microsoft-symbol' > fonts.scale.new wc -l fonts.scale.new | awk '{print $1'} | cat - fonts.scale.new > fonts.scale mkfontdir echo 'C*' userfonts | cat - fonts.dir | sed -e '2,$s/^.*$/D* \0/' -e '2d' > FontTastic.fm /etc/rc.d/init.d/fonttastic stop /etc/rc.d/init.d/fonttastic start if [ ! -z "$DISPLAY" ] ; then xset fp+ tcp/127.0.0.1:7102 #/all fi