summaryrefslogtreecommitdiff
path: root/language/croatian/fonts/mf/pleter.mf
blob: 7342aac5f7c3b0dcc440ef2897be08a7a81f4439 (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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297

% Croatian Wattle Pattern,
% 1994, darko.zubrinic@etf.hr

mode_setup;
 font_size 10pt#;
 u#:=.8pt#; font_quad= 24u#;
            font_normal_space= 9u#;
            font_normal_stretch= 3u#;
            font_normal_shrink= 2u#;
 em#:=10pt#; cap#:=7pt#;
 thin#:=2/3pt#; thick#:=.9*5/6pt#;
 o#:=1/5pt#;
define_pixels(em,cap);
define_blacker_pixels(thin,thick);
curve_sidebar:=round 1.1*1/10em;


beginchar("a",5*1.41cap#,5*cap#,0); "veliki ssiroki pleter";
pickup pencircle xscaled thick yscaled thick;
x1=x2=x3=x4=0; x5=x6=x7=x8=.5w; x9=x10=x11=x12=w;
y1=h; y9=0;
y1-y2=y2-y3=y3-y4=y12-y11=y11-y10=y10-y9=1/7h;
y8-y7=y7-y6=y6-y5=1.41*1/7h;
.5[y7,y6]=.5h;
kut:=angle(z9-z1);%-10;
draw z1{right}..{dir(kut)}z8..{right}z12;
pickup pencircle   xscaled .5thick yscaled .5thick;
draw z2{right}..{dir(kut)}z7..{right}z11;
draw z3{right}..{dir(kut)}z6..{right}z10;
pickup pencircle xscaled thick yscaled thick;
draw z4{right}..{dir(kut)}z5..{right}z9;
transform zrc; zrc=identity reflectedabout ((0,.5h),(w,.5h));
addto currentpicture also currentpicture transformed zrc;
unfill z1--z4{right}..{dir(kut)}z5..{right}z9--z12{left}..{dir(180+kut)}z8
..{left}z1..cycle;
draw z1{right}..{dir(kut)}z8..{right}z12;
pickup pencircle  xscaled .5thick yscaled .5thick;
draw z2{right}..{dir(kut)}z7..{right}z11;
draw z3{right}..{dir(kut)}z6..{right}z10;
pickup pencircle xscaled thick yscaled thick;
draw z4{right}..{dir(kut)}z5..{right}z9;
endchar;


beginchar("b",5*1.2cap#,5*cap#,0); "veliki pleter, srednje ssirine";
pickup pencircle xscaled thick yscaled thick;
x1=x2=x3=x4=0; x5=x6=x7=x8=.5w; x9=x10=x11=x12=w;
y1=h; y9=0;
y1-y2=y2-y3=y3-y4=y12-y11=y11-y10=y10-y9=1/7h;
y8-y7=y7-y6=y6-y5=1.41*1/7h;
.5[y7,y6]=.5h;
kut:=angle(z9-z1);%-10;
draw z1{right}..{dir(kut)}z8..{right}z12;
pickup pencircle   xscaled .5thick yscaled .5thick;
draw z2{right}..{dir(kut)}z7..{right}z11;
draw z3{right}..{dir(kut)}z6..{right}z10;
pickup pencircle xscaled thick yscaled thick;
draw z4{right}..{dir(kut)}z5..{right}z9;
transform zrc; zrc=identity reflectedabout ((0,.5h),(w,.5h));
addto currentpicture also currentpicture transformed zrc;
unfill z1--z4{right}..{dir(kut)}z5..{right}z9--z12{left}..{dir(180+kut)}z8
..{left}z1..cycle;
draw z1{right}..{dir(kut)}z8..{right}z12;
pickup pencircle  xscaled .5thick yscaled .5thick;
draw z2{right}..{dir(kut)}z7..{right}z11;
draw z3{right}..{dir(kut)}z6..{right}z10;
pickup pencircle xscaled thick yscaled thick;
draw z4{right}..{dir(kut)}z5..{right}z9;
endchar;


beginchar("c",5*cap#,5*cap#,0); "veliki, gusti pleter";
pickup pencircle xscaled thick yscaled thick;
x1=x2=x3=x4=0; x5=x6=x7=x8=.5w; x9=x10=x11=x12=w;
y1=h; y9=0;
y1-y2=y2-y3=y3-y4=y12-y11=y11-y10=y10-y9=1/7h;
y8-y7=y7-y6=y6-y5=1.41*1/7h;
.5[y7,y6]=.5h;
kut:=angle(z9-z1);%-10;
draw z1{right}..{dir(kut)}z8..{right}z12;
pickup pencircle   xscaled .5thick yscaled .5thick;
draw z2{right}..{dir(kut)}z7..{right}z11;
draw z3{right}..{dir(kut)}z6..{right}z10;
pickup pencircle xscaled thick yscaled thick;
draw z4{right}..{dir(kut)}z5..{right}z9;
transform zrc; zrc=identity reflectedabout ((0,.5h),(w,.5h));
addto currentpicture also currentpicture transformed zrc;
unfill z1--z4{right}..{dir(kut)}z5..{right}z9--z12{left}..{dir(180+kut)}z8
..{left}z1..cycle;
draw z1{right}..{dir(kut)}z8..{right}z12;
pickup pencircle  xscaled .5thick yscaled .5thick;
draw z2{right}..{dir(kut)}z7..{right}z11;
draw z3{right}..{dir(kut)}z6..{right}z10;
pickup pencircle xscaled thick yscaled thick;
draw z4{right}..{dir(kut)}z5..{right}z9;
picture slovoc; slovoc=currentpicture;
endchar;

beginchar("v",5*cap#,5*cap#,0); "Okomiti pleter";
transform rot;rot= identity rotatedabout ((.5w,.5h),90);
addto currentpicture also slovoc transformed rot;
endchar;



beginchar("e",1.41cap#,cap#,0); "tanki ssiroki pleter";
pickup pencircle xscaled .2thick yscaled .2thick;
x1=x2=x3=x4=0; x5=x6=x7=x8=.5w; x9=x10=x11=x12=w;
y1=h; y9=0;
y1-y2=y2-y3=y3-y4=y12-y11=y11-y10=y10-y9=1/7h;
y8-y7=y7-y6=y6-y5=1.41*1/7h;
.5[y7,y6]=.5h;
kut:=angle(z9-z1);%-10;
draw z1{right}..{dir(kut)}z8..{right}z12;
pickup pencircle   xscaled .1thick yscaled .1thick;
draw z2{right}..{dir(kut)}z7..{right}z11;
draw z3{right}..{dir(kut)}z6..{right}z10;
pickup pencircle xscaled .2thick yscaled .2thick;
draw z4{right}..{dir(kut)}z5..{right}z9;
transform zrc; zrc=identity reflectedabout ((0,.5h),(w,.5h));
addto currentpicture also currentpicture transformed zrc;
unfill z1--z4{right}..{dir(kut)}z5..{right}z9--z12{left}..{dir(180+kut)}z8
..{left}z1..cycle;
draw z1{right}..{dir(kut)}z8..{right}z12;
pickup pencircle  xscaled .1thick yscaled .1thick;
draw z2{right}..{dir(kut)}z7..{right}z11;
draw z3{right}..{dir(kut)}z6..{right}z10;
pickup pencircle xscaled .2thick yscaled .2thick;
draw z4{right}..{dir(kut)}z5..{right}z9;
endchar;

beginchar("f",cap#,cap#,0); "tanki gusti pleter";
pickup pencircle xscaled .2thick yscaled .2thick;
x1=x2=x3=x4=0; x5=x6=x7=x8=.5w; x9=x10=x11=x12=w;
y1=h; y9=0;
y1-y2=y2-y3=y3-y4=y12-y11=y11-y10=y10-y9=1/7h;
y8-y7=y7-y6=y6-y5=1.41*1/7h;
.5[y7,y6]=.5h;
kut:=angle(z9-z1);%-10;
draw z1{right}..{dir(kut)}z8..{right}z12;
pickup pencircle   xscaled .1thick yscaled .1thick;
draw z2{right}..{dir(kut)}z7..{right}z11;
draw z3{right}..{dir(kut)}z6..{right}z10;
pickup pencircle xscaled .2thick yscaled .2thick;
draw z4{right}..{dir(kut)}z5..{right}z9;
transform zrc; zrc=identity reflectedabout ((0,.5h),(w,.5h));
addto currentpicture also currentpicture transformed zrc;
unfill z1--z4{right}..{dir(kut)}z5..{right}z9--z12{left}..{dir(180+kut)}z8
..{left}z1..cycle;
draw z1{right}..{dir(kut)}z8..{right}z12;
pickup pencircle  xscaled .1thick yscaled .1thick;
draw z2{right}..{dir(kut)}z7..{right}z11;
draw z3{right}..{dir(kut)}z6..{right}z10;
pickup pencircle xscaled .2thick yscaled .2thick;
draw z4{right}..{dir(kut)}z5..{right}z9;
endchar;



beginchar("l",5*4/7*cap#,5*cap#,0); "veliki lijevi kraj";
pickup pencircle xscaled thick yscaled thick;
x1=x2=w; x3=x4=w-1/4w; y1=y4=h-y2=h-y3=.5h-.5*1/7h;
z14=(0,0); z15=(0,h); z16=(w,h); z13=(w,0);
z2-z1=z8-z2=z12-z8=z16-z12=z1-z5=z5-z9=z9-z13;
z11-z12=z10-z9=3(z3-z2); z8-z7=z5-z6=2(z1-z4);
draw z1--z4--z3--z2;
pickup pencircle xscaled .5thick yscaled .5thick;
draw z5--z6--z7--z8;
draw z9--z10--z11--z12;
pickup pencircle xscaled thick yscaled thick;
draw z13--z14--z15--z16;
picture slovol; slovol=currentpicture;
transform rot; rot= identity rotatedabout ((.5w,.5h),-90)
shifted (1.5*1/7h,-1.5*1/7h);
picture slovoll; slovoll=currentpicture transformed rot;
endchar;

beginchar("d",5*4/7*cap#,5*cap#,0); "veliki desni kraj";
transform s;s= identity reflectedabout ((.5w,0),(.5w,h));
addto currentpicture also slovol transformed s;
endchar;

beginchar("3",5*cap#,5*4/7*cap#,0); "Okomiti pleter, gore";
addto currentpicture also slovoll;
endchar;

beginchar("4",5*cap#,5*4/7*cap#,0); "Okomiti pleter, dolje";
transform rot;rot= identity rotatedabout ((.5w,.5h),180);
addto currentpicture also slovoll transformed rot;
endchar;



beginchar("1",4/7*cap#,cap#,0); "Lijevi kraj, tanki";
pickup pencircle xscaled .2thick yscaled .2thick;
x1=x2=w; x3=x4=w-1/4w; y1=y4=h-y2=h-y3=.5h-.5*1/7h;
z14=(0,0); z15=(0,h); z16=(w,h); z13=(w,0);
z2-z1=z8-z2=z12-z8=z16-z12=z1-z5=z5-z9=z9-z13;
z11-z12=z10-z9=3(z3-z2); z8-z7=z5-z6=2(z1-z4);
draw z1--z4--z3--z2;
pickup pencircle xscaled .1thick yscaled .1thick;
draw z5--z6--z7--z8;
draw z9--z10--z11--z12;
pickup pencircle xscaled .2thick yscaled .2thick;
draw z13--z14--z15--z16;
picture slovol; slovol=currentpicture;
endchar;

beginchar("2",4/7*cap#,cap#,0); "Desni kraj, tanki";
transform s;s= identity reflectedabout ((.5w,0),(.5w,h));
addto currentpicture also slovol transformed s;
endchar;


beginchar("g",3*1.2cap#,3*cap#,0); "srednji pleter g (ssiri)";
pickup pencircle xscaled .6thick yscaled .6thick;
x1=x2=x3=x4=0; x5=x6=x7=x8=.5w; x9=x10=x11=x12=w;
y1=h; y9=0;
y1-y2=y2-y3=y3-y4=y12-y11=y11-y10=y10-y9=1/7h;
y8-y7=y7-y6=y6-y5=1.41*1/7h;
.5[y7,y6]=.5h;
kut:=angle(z9-z1);%-10;
draw z1{right}..{dir(kut)}z8..{right}z12;
pickup pencircle   xscaled .3thick yscaled .3thick;
draw z2{right}..{dir(kut)}z7..{right}z11;
draw z3{right}..{dir(kut)}z6..{right}z10;
pickup pencircle xscaled .6thick yscaled .6thick;
draw z4{right}..{dir(kut)}z5..{right}z9;
transform zrc; zrc=identity reflectedabout ((0,.5h),(w,.5h));
addto currentpicture also currentpicture transformed zrc;
unfill z1--z4{right}..{dir(kut)}z5..{right}z9--z12{left}..{dir(180+kut)}z8
..{left}z1..cycle;
draw z1{right}..{dir(kut)}z8..{right}z12;
pickup pencircle  xscaled .3thick yscaled .3thick;
draw z2{right}..{dir(kut)}z7..{right}z11;
draw z3{right}..{dir(kut)}z6..{right}z10;
pickup pencircle xscaled .6thick yscaled .6thick;
draw z4{right}..{dir(kut)}z5..{right}z9;
endchar;


beginchar("h",3*cap#,3*cap#,0); "srednji pleter h (uzzi)";
pickup pencircle xscaled .6thick yscaled .6thick;
x1=x2=x3=x4=0; x5=x6=x7=x8=.5w; x9=x10=x11=x12=w;
y1=h; y9=0;
y1-y2=y2-y3=y3-y4=y12-y11=y11-y10=y10-y9=1/7h;
y8-y7=y7-y6=y6-y5=1.41*1/7h;
.5[y7,y6]=.5h;
kut:=angle(z9-z1);%-10;
draw z1{right}..{dir(kut)}z8..{right}z12;
pickup pencircle   xscaled .3thick yscaled .3thick;
draw z2{right}..{dir(kut)}z7..{right}z11;
draw z3{right}..{dir(kut)}z6..{right}z10;
pickup pencircle xscaled .6thick yscaled .6thick;
draw z4{right}..{dir(kut)}z5..{right}z9;
transform zrc; zrc=identity reflectedabout ((0,.5h),(w,.5h));
addto currentpicture also currentpicture transformed zrc;
unfill z1--z4{right}..{dir(kut)}z5..{right}z9--z12{left}..{dir(180+kut)}z8
..{left}z1..cycle;
draw z1{right}..{dir(kut)}z8..{right}z12;
pickup pencircle  xscaled .3thick yscaled .3thick;
draw z2{right}..{dir(kut)}z7..{right}z11;
draw z3{right}..{dir(kut)}z6..{right}z10;
pickup pencircle xscaled .6thick yscaled .6thick;
draw z4{right}..{dir(kut)}z5..{right}z9;
%picture slovoh; slovoh=currentpicture;
endchar;


beginchar("5",3*4/7*cap#,3*cap#,0); "lijevi kraj (srednja vel)";
pickup pencircle xscaled .6thick yscaled .6thick;
x1=x2=w; x3=x4=w-1/4w; y1=y4=h-y2=h-y3=.5h-.5*1/7h;
z14=(0,0); z15=(0,h); z16=(w,h); z13=(w,0);
z2-z1=z8-z2=z12-z8=z16-z12=z1-z5=z5-z9=z9-z13;
z11-z12=z10-z9=3(z3-z2); z8-z7=z5-z6=2(z1-z4);
draw z1--z4--z3--z2;
pickup pencircle xscaled .3thick yscaled .3thick;
draw z5--z6--z7--z8;
draw z9--z10--z11--z12;
pickup pencircle xscaled .6thick yscaled .6thick;
draw z13--z14--z15--z16;
picture tri; tri=currentpicture;
%transform rot; rot= identity rotatedabout ((.5w,.5h),-90)
%shifted (1.5*1/7h,-1.5*1/7h);
%picture trri; trri=currentpicture transformed rot; % za vertikalni
endchar;

beginchar("6",3*4/7*cap#,3*cap#,0); "desni kraj (srednja vel)";
transform s;s= identity reflectedabout ((.5w,0),(.5w,h));
addto currentpicture also tri transformed s;
endchar;




end.