[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: KDE and free fonts
From: Hetz Ben Hamo <hetz () linuxqa ! com>
Date: 2000-12-28 14:42:59
[Download RAW message or body]
Hi All,
I was browsing the gnome mailing lists when I found that there are some 20
true-type fonts which are released under GPL with Open Office..
How about adding those fonts to KDE?
The current situation with True Type fonts is that there are almost none free
True Type fonts available - unless you have Windows somewhere - and then you'll
have to copy them to your XFree fonts dir (and add the procedure to your beloved
font server)...
Enclosed a script which will grab from the Open Office CVS server - 20 fonts
which are available under GPL license.
Thanks
--
Hetz Ben Hamo
Hardware Research dept.
Aduva Inc.
["get_fonts.sh" (application/x-sh)]
#!/bin/sh
#QUICK and DIRTY hack to get ttf fonts from openoffice cvs web site
#Requires wget
#by Constantine Gavrilov <const-g@xpert.com>
BASE_URL="http://www.openoffice.org/source/browse/installation/extras/source/truetype"
SCRIPT_URL=`echo $BASE_URL|sed -e 's/browse\/installation/browse\/~checkout~\/installation/'`
VERSION=1.1
type -p wget > /dev/null
if [ $? -ne 0 ]; then
echo You do not have wget
exit 1
fi
type -p mktemp > /dev/null
if [ $? -ne 0 ]; then
echo "You do not have mktemp, reverting to insecure way of temp files creation"
FILE=/tmp/get_ttf_fonts.lst.$$
rm -f $FILE
touch $FILE
else
FILE=`mktemp /tmp/get_ttf_fonts.XXXXXX`
if [ $? -ne 0 ]; then
echo "mktemp failed for whatever reason"
echo "Reverting to insecure way of temp files creation"
FILE=/tmp/get_ttf_fonts.lst.$$
rm -f $FILE
touch $FILE
fi
fi
wget -O $FILE $BASE_URL/
if [ $? -ne 0 ]; then
echo 'Getting the base page has failed, aboring'
rm -f $FILE
exit 1
fi
DIR_LIST=`grep -i href= $FILE|grep -v -i 'href="/' |grep -v -i 'href="../'\
|sed -e 's/.*HREF="\(.*\/\)".*/\1/g'\
|sed -e 's/.*href="\(.*\/\)".*/\1/g' | sort|uniq`
echo Directories list is $DIR_LIST
for i in $DIR_LIST
do
cp /dev/null $FILE
/bin/echo -n "Downloading from $i: "
wget --quiet -O $FILE $BASE_URL/$i
if [ $? -ne 0 ]; then
echo "Getting $i page has failed, aboring"
rm -f $FILE
exit 1
fi
FILE_LIST=`grep -i href= $FILE |grep -v -i 'href="../'|grep -v -i 'href="/'\
|grep -v -i 'href="./?' |grep -i -v 'href="CVS'\
|sed -e 's/.*HREF="\(.*\.ttf\).*".*/\1/g'\
| sed -e 's/.*href="\(.*\.ttf\).*".*/\1/g'| sort|uniq`
for j in $FILE_LIST
do
/bin/echo -n "$j "
rm -f $j
wget --quiet -O $j "$SCRIPT_URL/$i/$j?rev=$VERSION&content-type=text/plain"
if [ $? -ne 0 ]; then
echo Failed to download $j
fi
done
echo
echo
done
rm -f $FILE
echo "All done."
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic