summaryrefslogtreecommitdiff
path: root/fonts/ugaritic/ugaritic.mf
blob: 087ad0f8075aa44a3453ca770c463a64320ea038 (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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
%		ugaritic.mf
% This font was designed by Alan M Stanier      ( alan@essex.ac.uk ),
% at Essex University Computer Service, Colchester, Essex CO4 3EA. England.
%
% If you make significant additions or improvements to the font,
% please email me an updated version
%
% The ugaritic script is a cuneiform alphabet (as opposed to the
% syllabic cuneiform of Akkadian or Hittite), as found on tablets
% dated from the Late Bronze Age (c 1400 - 1200 BC) in Northern Syria
% and Palestine, notably in the archives at Ugarit.
%
% The alphabet contained 30 letters, plus a word-separating character
% (coded as -).

mg:=2.0;	% CHANGE THIS TO GET DIFFERENT SIZES OF FONT (font size = 10*mg pt)

mode_setup;
height#:=mg*10pt#;
width#:=mg*0.1pt#;
endword#:=mg*1pt#;
spacing#:=mg*5pt#;
define_pixels(height,width,spacing,endword);

def stroke = (-0.5*mg,0.5*mg) -- (-0.05*mg,0.05*mg) -- (0,-0.5mg)
		-- (0.05mg,0.05*mg) -- (0.5*mg,0.5*mg) -- (-0.5*mg,0.5*mg)
		.. cycle enddef;

def chevron = (-0.5*mg,0) -- (0.5*mg,-0.5*mg) -- (0,0) --
		(0.5*mg,0.5*mg) -- (-0.5*mg,0) .. cycle enddef;

def cun_stroke(expr x,y,xx,yy,theta) =
	fill ((stroke) xscaled x yscaled y rotated theta shifted(xx*mg,yy*mg));
enddef;

def cun_chevron(expr x,xx,yy) =
	fill ((chevron) scaled x shifted(xx*mg,yy*mg));
enddef;

beginchar("a",25width#+spacing#,height#,0);
 cun_stroke(10,20,10,20,90);
 cun_stroke(10,20,20,20,90);
endchar;
%
beginchar("i",24width#+spacing#,height#,0);
 cun_stroke(8,30,15,9,90);
 cun_stroke(8,30,15,17,90);
 cun_stroke(8,30,15,25,90);
 cun_stroke(5,14,15,2,0);
endchar;
%
beginchar("u",30width#+spacing#,height#,0);
 cun_stroke(7,20,10,15,0);
 cun_stroke(7,20,17,15,0);
 cun_stroke(7,20,24,15,0);
 cun_stroke(10,30,20,10,90);
endchar;
%
beginchar("b",30width#+spacing#,height#,0);
 cun_stroke(10,20,12.5,10,90);
 cun_stroke(10,20,22.5,10,90);
 cun_stroke(10,20,10,20,0);
 cun_stroke(10,20,20,20,0);
endchar;
%
beginchar("g",5width#+spacing#,height#,0);
 cun_stroke(10,30,9,10,0);
endchar;
%
beginchar("d",35width#+spacing#,height#,0);
 cun_stroke(10,20,7.5,10,90);
 cun_stroke(10,20,17.5,10,90);
 cun_stroke(10,20,27.5,10,90);
 cun_stroke(10,20,5,20,0);
 cun_stroke(10,20,15,20,0);
 cun_stroke(10,20,25,20,0);
endchar;
%
beginchar("D",35width#+spacing#,height#,0);
 cun_chevron(20,10,20);
 cun_stroke(10,20,25,17.5,330);
endchar;
%
beginchar("h",28width#+spacing#,height#,0);
 cun_stroke(9,30,15,9,90);
 cun_stroke(9,30,15,17,90);
 cun_stroke(9,30,15,25,90);
endchar;
%
beginchar("w",55width#+spacing#,height#,0);
 cun_stroke(10,20,10,10,90);
 cun_stroke(10,20,10,20,90);
 cun_stroke(10,20,25,15,90);
 cun_stroke(10,20,35,15,90);
endchar;
%
beginchar("z",5width#+spacing#,height#,0);
 cun_stroke(9,25,8,9,0);
 cun_stroke(9,25,8,18,0);
endchar;
%
beginchar("H",45width#+spacing#,height#,0);
 cun_stroke(10,30,15,18,90);
 cun_stroke(8,20,20,21,0);
 cun_stroke(8,20,20,15,180);
 cun_chevron(20,27.5,18);
endchar;
%
beginchar("0",5width#+spacing#,height#,0);
 cun_stroke(8,20,8,5,0);
 cun_stroke(8,20,8,15,0);
 cun_stroke(8,20,8,25,0);
endchar;
%
beginchar("T",45width#+spacing#,height#,0);
 cun_stroke(10,30,15,18,90);
 cun_stroke(10,30,17,16,0);
 cun_chevron(20,27.5,18);
endchar;
%
beginchar("1",40width#+spacing#,height#,0);
 cun_stroke(10,30,15,10,90);
 cun_stroke(10,30,15,20,90);
 cun_chevron(20,22.5,15);
endchar;
%
beginchar("y",20width#+spacing#,height#,0);
 cun_stroke(8,20,8,5,0);
 cun_stroke(8,20,8,15,0);
 cun_stroke(8,20,8,25,0);
 cun_stroke(8,20,18,5,0);
 cun_stroke(8,20,18,15,0);
 cun_stroke(8,20,18,25,0);
endchar;
%
beginchar("k",45width#+spacing#,height#,0);
 cun_stroke(10,20,10,10,90);
 cun_stroke(10,20,10,20,90);
 cun_stroke(10,20,25,15,90);
endchar;
%
beginchar("l",30width#+spacing#,height#,0);
 cun_stroke(10,30,5,15,0);
 cun_stroke(10,30,15,15,0);
 cun_stroke(10,30,25,15,0);
endchar;
%
beginchar("m",30width#+spacing#,height#,0);
 cun_stroke(10,30,18,18,90);
 cun_stroke(10,30,25,15,0);
endchar;
%
beginchar("n",30width#+spacing#,height#,0);
 cun_stroke(10,20,10,20,90);
 cun_stroke(10,20,20,20,90);
 cun_stroke(10,20,30,20,90);
endchar;
%
beginchar("s",12width#+spacing#,height#,0);
 cun_stroke(10,20,5,25,0);
 cun_stroke(10,20,10,15,0);
 cun_stroke(10,20,15,25,0);
endchar;
%
beginchar("S",30width#+spacing#,height#,0);
 cun_stroke(8,15,5,10,180);
 cun_stroke(8,15,5,20,180);
 cun_stroke(8,15,5,30,180);
 cun_stroke(8,15,25,10,180);
 cun_stroke(8,15,25,20,180);
 cun_stroke(8,15,25,30,180);
 cun_stroke(10,35,15,15,0);
endchar;
%
beginchar(39,17width#+spacing#,height#,0);
 cun_chevron(20,10,20);
endchar;
%
beginchar("G",30width#+spacing#,height#,0);
 cun_stroke(10,30,18,18,90);
 cun_stroke(10,30,18,18,135);
endchar;
%
beginchar("p",30width#+spacing#,height#,0);
 cun_stroke(10,30,18,10,90);
 cun_stroke(10,30,18,20,90);
endchar;
%
beginchar("3",12width#+spacing#,height#,0);
 cun_stroke(10,30,5,20,0);
 cun_stroke(10,30,15,20,0);
endchar;
%
beginchar("q",45width#+spacing#,height#,0);
 cun_stroke(10,30,15,18,90);
 cun_chevron(20,27.5,18);
endchar;
%
beginchar("r",55width#+spacing#,height#,0);
 cun_stroke(10,20,10,10,90);
 cun_stroke(10,20,10,20,90);
 cun_stroke(10,20,20,10,90);
 cun_stroke(10,20,20,20,90);
 cun_stroke(10,20,35,15,90);
endchar;
%
beginchar("4",40width#+spacing#,height#,0);
 cun_chevron(20,10,20);
 cun_stroke(10,20,25,17.5,0);
 cun_stroke(10,20,30,17.5,330);
endchar;
%
beginchar("t",30width#+spacing#,height#,0);
 cun_stroke(10,30,18,15,90);
endchar;
%
beginchar("2",17width#+spacing#,height#,0);
 cun_chevron(20,10,20);
 cun_stroke(10,30,10,20,0);
endchar;
%
beginchar("-",12width#,height#,0);
 pickup pencircle scaled endword#;
 draw (5,10) -- (5,50);
endchar;
%
end