summaryrefslogtreecommitdiff
path: root/fonts/utilities/makefonts/00previous/mk_utility
blob: 1c750053d11224e501740393ff03386a07206c22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/bin/csh -f
# need csh because of foreach used for running gftopk

echo "\
This script runs metafont and gftopk to produce the \
following fonts / family / shapes:\
\
  *********************************************************\
  utilityfonts\
  *********************************************************\
\
Give metafont mode as first argument (default = localfont)\
\
Volker Kuhlmann\
    21 July 94; 8 Jan 95; 8 Apr 95; 8 Apr 96\
v.kuhlmann@elec.canterbury.ac.nz\
"


# CHANGELOG
#
# 8 Apr 96 (VK)
#	Added \scrollmode. Fixed docs.
# 8 Apr 95 (VK)
#	Metafont mode can now be given as $1. Using \scrollmode.


if ( $#argv > 0 ) set MODE=$1
if ( ! $?MODE ) set MODE=localfont
echo ""
echo "**********************************"
echo 'metafont mode is set to: '$MODE
echo "**********************************"
echo ""

set MFARG='\mode='"$MODE"'; \scrollmode;'


# LOGO
mf "$MFARG"' \scrollmode; \mag=magstep(0);'	input logo8
mf "$MFARG"' \scrollmode; \mag=magstep(0);'	input logo9
mf "$MFARG"' \scrollmode; \mag=magstep(0);'	input logo10
mf "$MFARG"' \scrollmode; \mag=magstep(0.5);'	input logo10	# 10.95pt
mf "$MFARG"' \scrollmode; \mag=magstep(1);'	input logo10	# 12pt
mf "$MFARG"' \scrollmode; \mag=magstep(2);'	input logo10	# 14.4pt
mf "$MFARG"' \scrollmode; \mag=magstep(3);'	input logo10	# 17.28pt
mf "$MFARG"' \scrollmode; \mag=magstep(4);'	input logo10	# 20.74pt
mf "$MFARG"' \scrollmode; \mag=magstep(5);'	input logo10	# 24.88pt

# LOGO BOLD
mf "$MFARG"' \scrollmode; \mag=magstep(0);'	input logobf10
mf "$MFARG"' \scrollmode; \mag=magstep(0.5);'	input logobf10	# 10.95pt
mf "$MFARG"' \scrollmode; \mag=magstep(1);'	input logobf10	# 12pt
mf "$MFARG"' \scrollmode; \mag=magstep(2);'	input logobf10	# 14.4pt
mf "$MFARG"' \scrollmode; \mag=magstep(3);'	input logobf10	# 17.28pt
mf "$MFARG"' \scrollmode; \mag=magstep(4);'	input logobf10	# 20.74pt
mf "$MFARG"' \scrollmode; \mag=magstep(5);'	input logobf10	# 24.88pt

# LOGO SLANTED
mf "$MFARG"' \scrollmode; \mag=magstep(0);'	input logosl10
mf "$MFARG"' \scrollmode; \mag=magstep(0.5);'	input logosl10	# 10.95pt
mf "$MFARG"' \scrollmode; \mag=magstep(1);'	input logosl10	# 12pt
mf "$MFARG"' \scrollmode; \mag=magstep(2);'	input logosl10	# 14.4pt
mf "$MFARG"' \scrollmode; \mag=magstep(3);'	input logosl10	# 17.28pt
mf "$MFARG"' \scrollmode; \mag=magstep(4);'	input logosl10	# 20.74pt
mf "$MFARG"' \scrollmode; \mag=magstep(5);'	input logosl10	# 24.88pt

# MANFNT
mf "$MFARG"' \scrollmode; \mag=magstep(0);'	input manfnt

# GRAY
mf "$MFARG"' \scrollmode; \mag=magstep(0);'	input grayf
mf "$MFARG"' \scrollmode; \mag=magstep(0);'	input gresp
mf "$MFARG"' \scrollmode; \mag=magstep(0);'	input lgresp

# BLACK
mf "$MFARG"' \scrollmode; \mag=magstep(0);'	input blesp

# HALF
mf "$MFARG"' \scrollmode; \mag=magstep(0);'	input halftone


echo ""
echo "Metafont finished."
echo ""



echo "Now running GFtoPK."

# note this requires csh or tcsh
foreach file (*gf)
  gftopk $file
end

echo "GFtoPK finished."
echo ""

echo ""
echo "To complete the font installation, do the following:"
echo "  copy all .tfm-files into the tfm directory"
echo "  copy all .pk-files into the pk-directory"
echo "  delete all .gf files."
echo ""
echo "Have a nice day."
echo ""