Skip to content

Commit

Permalink
Fetch nice font from font branch, if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Clements committed Sep 7, 2011
1 parent 5304c85 commit 5c87802
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions runoff
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,17 @@ awk '
grep Pages: all.ps

# if we have the nice font, use it
nicefont=../LucidaSans-Typewriter83
if [ -f $nicefont ]
nicefont=LucidaSans-Typewriter83
if [ ! -f ../$nicefont ]
then
if git cat-file blob font:$nicefont > ../$nicefont~; then
mv ../$nicefont~ ../$nicefont
fi
fi
if [ -f ../$nicefont ]
then
echo nicefont
(sed 1q all.ps; cat $nicefont; sed '1d; s/Courier/LucidaSans-Typewriter83/' all.ps) >allf.ps
(sed 1q all.ps; cat ../$nicefont; sed "1d; s/Courier/$nicefont/" all.ps) >allf.ps
else
echo ugly font!
cp all.ps allf.ps
Expand Down

0 comments on commit 5c87802

Please sign in to comment.