Debian Codegraph @

texmf-dist/fonts/source/public/mathabx/mathcall.mf

raw
1 % mathematical symbols by Anthony Phan.
2 % file: mathcall.mf (calligraphic font)
3 % last modification: May 16, 2005.
4
5 %
6 % LOWERCASE
7 %
8 % design, metrics and italic corrections checked (nov. 28, 2002).
9 %
10
11 cmchar "Calligraphic a";
12 beginchar("a", 9u#, x_height#, 0);
13 italcorr max(0.15x_height#*slant+0.5lower_cal_width#,
14 x_height#*slant+0.5lower_cal_width#-2u#) if math_fitting: -0.5u# fi;
15 adjust_fit(0, 0);
16 %
17 pickup lower_cal.nib;
18 top y1 = vround 0.98h; x1 = x2 = good.x(w-2.5u); x4 = w;
19 draw z1..hook_out(2, 3, 4);
20 top y6 = x_height+oo; bot y8 = -oo; y5 = y7 = 0.5[y6, y8];
21 x5 = x1; x7 = good.x(1.25u); x6 = x8 = 0.5[x5, x7];
22 draw z5 up_to_left z6 left_to_down z7
23 down_to_right z8 right_to_up z5;
24 math_fit(-.3x_height#*slant+0.5curve#-u#, ic#);
25 labels(1, 2, 3, 4, 5, 6, 7, 8);
26 endchar;
27
28 cmchar "Calligraphic b";
29 beginchar("b", 8u#, asc_height#, 0);
30 italcorr .75x_height#*slant+0.5curve#-u# if math_fitting: -0.5u# fi;
31 adjust_fit(0, 0);
32 %
33 pickup lower_cal.nib;
34 top y1 = h; y2 = 0.5x_height; bot y3 = -oo;
35 y4 = 0.5x_height; top y5 = x_height+oo;
36 x1 = x2 = good.x 1.5u; x3 = 0.5[x2, x4];
37 x4 = good.x(w-1.25u); x5 = 0.5[x2, x4];
38 draw z1-cal.extension--z1..z2{down}
39 ...z3{right}...z4{up}...z5{left}...z2{down};
40 %
41 math_fit(-.3x_height#*slant+0.5curve#-u#, ic#);
42 labels(1, 2, 3, 4, 5);
43 endchar;
44
45 cmchar "Calligraphic c";
46 beginchar("c", 8u#, x_height#, 0);
47 italcorr max(0.25x_height#*slant+0.5lower_cal_width#,
48 0.85x_height#*slant+0.5lower_cal_width#-1.1u#);
49 adjust_fit(0, 0);
50 %
51 pickup lower_cal.nib;
52 x2-x1 = hround u; rt x2 = hround(w-1.1u);
53 if x2 > w-1.25u: x2 := good.x w-1.25u; fi
54 x3 = 0.6[x4, x2]; x4 = good.x 1.25u;
55 x5 = 0.5[x4, x6]; x6 = good.x w;
56 top y3 = h+oo; y4 = .5h; bot y5 = -oo;
57 y1 = good.y 0.65[y5, y3]; y2 = .8[y5, y3];
58 y6 = good.y 1/4x_height;
59 draw z1 ... z2 up_to_left z3 left_to_down
60 z4 down_to_right z5...z6;
61 %
62 math_fit(-.3x_height#*slant+0.5curve#-u#, ic#);
63 labels(1, 2, 3, 4, 5, 6);
64 endchar;
65
66 cmchar "Calligraphic d";
67 beginchar("d", 9u#, asc_height#, 0);
68 italcorr max(0.15x_height#*slant+0.5lower_cal_width#,
69 h#*slant+0.5lower_cal_width#-2u#) if math_fitting: -0.5u# fi;
70 adjust_fit(0, 0);
71 %
72 pickup lower_cal.nib;
73 top y1 = h; x1 = x2 = good.x(w-2.5u); x4 = w;
74 draw z1-cal.extension--z1---hook_out(2, 3, 4);
75 top y6 = x_height+oo; bot y8 = -oo; y5 = y7 = 0.5[y6, y8];
76 x5 = x1; x7 = good.x(1.25u); x6 = x8 = 0.5[x5, x7];
77 draw z5 up_to_left z6 left_to_down z7
78 down_to_right z8 right_to_up z5;
79 %
80 math_fit(-.3x_height#*slant+0.5curve#-u#, ic#);
81 labels(1, 2, 3, 4, 5, 6, 7, 8);
82 endchar;
83
84 cmchar "Calligraphic e";
85 beginchar("e", 8u#, x_height#, 0);
86 italcorr max(0.25x_height#*slant+0.5lower_cal_width#,
87 0.85x_height#*slant+0.5lower_cal_width#-1.1u#);
88 adjust_fit(0, 0);
89 %
90 pickup lower_cal.nib;
91 rt x1 = hround(w-1.1u); x2 = 0.6[x3, x1];
92 if x1 > w-1.25u: x1 := good.x w-1.25u; fi
93 x3 = good.x 1.25u; x4 = 0.5[x3, x5]; x5 = good.x w;
94 y1 = 0.8[y4, y2]; top y2 = h+oo; y3 = .5h; bot y4 = -oo;
95 y5 = good.y 1/4x_height;
96 draw z3 right_to_up z1 up_to_left z2
97 left_to_down z3 down_to_right z4...z5;
98 %
99 math_fit(-.3x_height#*slant+0.5curve#-u#, ic#);
100 labels(1, 2, 3, 4, 5);
101 endchar;
102
103 cmchar "Calligraphic f";
104 beginchar("f", 5.5u#, asc_height#, desc_depth#);
105 italcorr asc_height#*slant+.75u#;
106 adjust_fit(0, 0);
107 %
108 pickup lower_cal.nib;
109 z88 = (0.5w-0.5u, h); z89 = (0.5w+0.5u, -d);
110 top y2 = h+oo; bot y5 = -d-oo; top y8 = top y9 = x_height;
111 y2-y0 = y6-y5 = vround 0.35min(d, h-x_height);
112 y1 = 0.5[y0, y2]; y6 = 0.5[y5, y7];
113 y3 = 0.25[x_height, y2]; y4 = 0.5[y5, y3];
114 rt x1-w = -lft x6 = hround 0.25u; x7-x6 = hround 0.5u;
115 x0 = x1; x2 = 0.4[x1, x3]; x5 = 0.4[x6, x4];
116 z3 = whatever[z88, z89]; z4 = whatever[z88, z89];
117 lft x8 = hround(lft x3-0.5stem-1.25u);
118 rt x9 = hround(rt x3+0.5stem+1.7u);
119 draw (z0--z1) softjoin (z1 up_to_left z2....z3
120 ---z4....z5{left}...z6);%...z7);
121 draw z8..z9;
122 %
123 math_fit(desc_depth#*slant+u#, x_height#*slant);
124 labels(1, 2, 3, 4, 5, 6, 7, 8);
125 endchar;
126
127 cmchar "Calligraphic g";
128 beginchar("g", 8u#, x_height#, desc_depth#);
129 italcorr x_height#*slant+0.5lower_cal_width#-u#;
130 adjust_fit(0, 0);
131 %
132 pickup lower_cal.nib;
133 top y1 = vround 0.98h;
134 top y6 = x_height+oo; bot y8 = -oo; y5 = y7 = 0.5[y6, y8];
135 x1 = x2 = x5 = good.x(w-1.5u); x4 = 1.5u;
136 x7 = good.x(1.25u); x6 = x8 = 0.5[x5, x7];
137 draw z1..desc_curve(2, 3, 4);
138 draw z5 up_to_left z6 left_to_down z7
139 down_to_right z8 right_to_up z5;
140 %
141 math_fit(-min(.3x_height#*slant+0.5curve#-u#,
142 1.5u#-desc_depth#*slant), ic#-1/3x_height#*slant);
143 labels(1, 2, 3, 4, 5, 6, 7, 8);
144 endchar;
145
146 cmchar "Calligraphic h";
147 beginchar("h", 9u#, asc_height#, 0);
148 italcorr max(0.15x_height#*slant+0.5lower_cal_width#,
149 0.75x_height#*slant+0.5lower_cal_width#-2u#);
150 adjust_fit(0, 0);
151 %
152 pickup lower_cal.nib;
153 top y1 = h; bot y2 = -oo;
154 x1 = x2 = good.x 1.5u;
155 x4 = w-2.45u; x5 = w-2.80u; x7 = w;
156 draw z1-cal.extension--z1--z2
157 --ital_arch(2, 3, 4)...hook_out(5, 6, 7);
158 %
159 math_fit(0, ic#);
160 labels(1, 2, 3, 4, 5, 6, 7);
161 endchar;
162
163 cmchar "Calligraphic i";
164 beginchar("i", 5u#, min(10/7x_height#+0.5flare#, asc_height#), 0);
165 italcorr max(0.15x_height#*slant+0.5lower_cal_width#,
166 (h#-0.5flare#)*slant
167 -2.5u#-0.4(h#-x_height#)*slant+0.5flare#+0.5u#);
168 adjust_fit(0, 0);
169 %
170 pickup lower_cal.nib;
171 x1 = 0; x3 = good.x(0.5w+0.30u);
172 x4 = good.x(0.5w-0.30u); x6 = w;
173 draw hook_in(1, 2, 3)...hook_out(4, 5, 6);
174 %
175 pickup fine_cal.nib;
176 cal_dot7(0.5w-0.4(h-x_height)*slant, h+1-0.5flare, flare);
177 %
178 math_fit(-2/3x_height#*slant+0.5hair#+0.5u#, ic#);
179 labels(1, 2, 3, 4, 5, 6); penlabels(7, 7');
180 endchar;
181
182 cmchar "Calligraphic j";
183 beginchar("j", 5u#, min(10/7x_height#+0.5flare#, asc_height#), desc_depth#);
184 italcorr max(0.8x_height#*slant+0.5lower_cal_width#-u#,
185 (h#-0.5flare#)*slant
186 -1.5u#+0.5lower_cal_width#-0.6(h#-x_height#)*slant+0.5u#);
187 adjust_fit(0, 0);
188 %
189 pickup lower_cal.nib;
190 x1 = 0; x3 = x4 = good.x(w-1.5u);
191 x6 = good.x 0; x0 = rt x3;
192 draw hook_in(1, 2, 3)..desc_curve(4, 5, 6);
193 %
194 pickup fine_cal.nib;
195 cal_dot7(x0-0.5flare-0.6(h-x_height)*slant, h+1-0.5flare, flare);
196 %
197 math_fit(desc_depth#*slant, x_height#*slant+0.5stem#-u#);
198 labels(1, 2, 3, 4, 5, 6); penlabels(7, 7');
199 endchar;
200
201 cmchar "Calligraphic k";
202 beginchar("k", 8.5u#, asc_height#, 0);
203 italcorr max(0.2x_height#*slant+0.1w#,
204 0.95x_height#*slant-0.1w#+0.5u#);
205 adjust_fit(0, 0);
206 %
207 pickup lower_cal.nib;
208 top y1 = h; bot y2 = -oo; x1 = x2 = good.x 1.5u;
209 draw z1-cal.extension--z1--z2;
210 %
211 rt x4 = .9w; x5 = x4-.1w; x7 = .8w; rt x8 = 1.1w;
212 y4 = .9x_height; top y5 = x_height+oo; bot y7 = -oo; y8 = .2x_height-oo;
213 (lft z6)t_ = (x2, 0.4x_height).t_+penoffset up of pen_[lower_cal.nib];
214 draw z4{up}...{left}z5..tension atleast 2..{down}z6
215 ..tension atleast 3 and atleast 2..z7{right}...{up}z8; % diagonals
216 %
217 math_fit(0, 1/3x_height#*slant+0.5hair#+0.5u#);
218 labels(1, 2, 3, 4, 5, 6, 7, 8);
219 endchar;
220
221 cmchar "Calligraphic l";
222 beginchar("l", 4.5u#, asc_height#, 0);
223 italcorr max(0.15x_height#*slant+0.5lower_cal_width#,
224 asc_height#*slant+0.5lower_cal_width#-2.1u#) if math_fitting: +0.5u# fi;
225 adjust_fit(0, 0);
226 %
227 pickup lower_cal.nib;
228 top y1 = h; x1 = x2 = good.x 1.9u; x4 = w;
229 draw z1-cal.extension--z1---hook_out(2, 3, 4);
230 %
231 math_fit(-0.5u#, 1/3x_height#*slant+0.5hair#+u#);
232 labels(1, 2, 3, 4, 5, 6, 7);
233 endchar;
234
235 cmchar "Calligraphic m";
236 beginchar("m", 15u#, x_height#, 0);
237 italcorr max(0.15x_height#*slant+0.5lower_cal_width#,
238 0.75x_height#*slant+0.5lower_cal_width#-2u#);
239 adjust_fit(0, 0);
240 %
241 pickup lower_cal.nib;
242 x1 = 0; x3 = x4 = good.x 2.5u; x6 = x7 = good.x 0.5w;
243 x9 = good.x(w-2.45u); x10 = good.x(w-2.80u); x12 = w;
244 bot y4 = bot y7 = -oo;
245 draw hook_in(1, 2, 3)---z4;
246 draw ital_arch(4, 5, 6)---z7;
247 draw ital_arch(7, 8, 9)...hook_out(10, 11, 12);
248 %
249 math_fit(-2/3x_height#*slant+0.5hair#+0.5u#, ic#);
250 labels(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
251 endchar;
252
253 cmchar "Calligraphic n";
254 beginchar("n", 10u#, x_height#, 0);
255 italcorr max(0.15x_height#*slant+0.5lower_cal_width#,
256 0.75x_height#*slant+0.5lower_cal_width#-2u#);
257 adjust_fit(0, 0);
258 %
259 pickup lower_cal.nib;
260 x1 = 0; x3 = x4 = good.x 2.5u; bot y4 = -oo;
261 x6 = good.x(w-2.45u); x7 = good.x(w-2.80u);
262 x9 = w;
263 draw hook_in(1, 2, 3)---z4;
264 draw ital_arch(4, 5, 6)...hook_out(7, 8, 9);
265 %
266 math_fit(-2/3x_height#*slant+0.5hair#+0.5u#, ic#);
267 labels(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
268 endchar;
269
270 cmchar "Calligraphic o";
271 beginchar("o", 9u#, x_height#, 0);
272 italcorr .7x_height#*slant+0.5lower_cal_width#-u#
273 if math_fitting: -0.5u# fi;
274 adjust_fit(0, 0);%(-0.25u#, -0.25u#);
275 %
276 pickup lower_cal.nib;
277 top y1 = h+oo; bot y3 = -oo; y2 = y4 = 0.5[y1, y3];
278 x2 = good.x 1.25u; x4 = good.x(w-1.25u); x1 = x3 = 0.5[x2, x4];
279 draw z1 left_to_down z2 down_to_right
280 z3 right_to_up z4 up_to_left z1;
281 % not good
282 % x5 = good.x 0.75[x2, x1]; x6 = 0.5[x5, x7]; x7 = good.x w;
283 % y5 = 0.75[y6, y1]; y6 = good.y 0.6[y3, y1]; y7 = good.y 3/4x_height;
284 % draw z1{left}...z5 down_to_right z6...z7;
285 %
286 math_fit(-.3x_height#*slant+0.5curve#-u#, ic#);
287 labels(1, 2, 3, 4, 5, 6, 7);
288 endchar;
289
290 cmchar "Calligraphic p";
291 beginchar("p", 9u#, x_height#, desc_depth#);
292 italcorr .7x_height#*slant+0.5lower_cal_width#-u#
293 if math_fitting: -0.5u# fi;
294 adjust_fit(0, 0);
295 %
296 pickup lower_cal.nib;
297 x1 = 0; x3 = x4 = good.x 2.5u; bot y4 = -d-eps;
298 draw hook_in(1, 2, 3)..z4;
299 top y6 = x_height+oo; bot y8 = -oo; y5 = y7 = 0.5[y6, y8];
300 x5 = good.x(w-1.25u); x7 = x3; x6 = x8 = 0.5[x5, x7];
301 draw z5 up_to_left z6 left_to_down z7
302 down_to_right z8 right_to_up z5;
303 %
304 math_fit(-min(2/3x_height#*slant-0.5hair#-0.5u#,
305 2u#-0.5stem#-desc_depth#*slant), ic#);
306 labels(1, 2, 3, 4, 5, 6, 7, 8);
307 endchar;
308
309 cmchar "Calligraphic q";
310 beginchar("q", 8u#, x_height#, desc_depth#);
311 italcorr x_height#*slant+0.5lower_cal_width#-u#;
312 adjust_fit(0, 0);
313 %
314 pickup lower_cal.nib;
315 top y1 = vround 0.98h; bot y2 = -d-eps;
316 x1 = x2 = good.x(w-1.5u);
317 draw z1--z2--z2+cal.extension;
318 top y6 = x_height+oo; bot y8 = -oo; y5 = y7 = 0.5[y6, y8];
319 x5 = x1; x7 = good.x(1.25u); x6 = x8 = 0.5[x5, x7];
320 draw z5 up_to_left z6 left_to_down z7
321 down_to_right z8 right_to_up z5;
322 %
323 math_fit(-.3x_height#*slant+0.5curve#-u#, ic#-1/3x_height#*slant);
324 labels(1, 2, 3, 4, 5, 6, 7, 8);
325 endchar;
326
327 cmchar "Calligraphic r";
328 beginchar("r", 7.25u#, x_height#, 0);
329 italcorr 0.8x_height#*slant+0.5lower_cal_width#-0.15u#;
330 adjust_fit(0, 0);
331 %
332 pickup lower_cal.nib;
333 x1 = 0; x3 = x4 = good.x 2.5u; bot y4 = -oo;
334 draw hook_in(1, 2, 3)---z4;
335 y5 = y2; y7 = good.y 0.65[y4, y5]; y6 = .8[y4, y5];
336 x6 = good.x(w-0.65u); x6-x7 = hround 0.75u; x5 = 0.75[x4, x6];
337 draw z4{up}...z5 right_to_down z6...z7;
338 %
339 math_fit(-2/3x_height#*slant+0.5hair#+0.5u#, ic#-0.5u#);
340 labels(1, 2, 3, 4, 5, 6, 7);
341 endchar;
342
343 cmchar "Calligraphic s";
344 beginchar("s", 5.25u#+1.75u#, x_height#, 0);
345 italcorr 0.9x_height#*slant-0.05w#+0.5u#;
346 adjust_fit(0, 0);
347 pickup lower_cal.nib;
348 rt x0 = rt x1 = .95w; x2 = .5[x3, x1]; lft x3 = .15w; x4 = .5[x6, x2];
349 rt x5 = w; x6 = .5w; lft x7 = 0; lft x8 = .075w;
350 y0 = .8h; y1 = .9h; top y2 = h+o; y3 = .55[y4, y2]; y4 = .55[y6, y2];
351 y5 = .45[y6, y4]; bot y6 = -o; y7 = .2h; y8 = .35h;
352 draw\\(z0--z1) softjoin (z1...z2{left}...z3{down}...z4...z5{down}
353 ...z6{left}...z7) softjoin (z7{up}...{right}z8); % stroke
354 math_fit(0, ic#);
355 labels(0, 1, 2, 3, 4, 5, 6, 7, 8);
356 endchar;
357
358 cmchar "Calligraphic t";
359 beginchar("t", 5.5u#, min(asc_height#, 10/7x_height#), 0);
360 italcorr max(0.15x_height#*slant+0.5lower_cal_width#,
361 x_height#*slant-.25u#);
362 adjust_fit(0, 0);
363 %
364 pickup lower_cal.nib;
365 top y1 = h; x1 = x2 = good.x 2u; x4 = w;
366 draw z1---hook_out(2, 3, 4);
367 lft x5 = hround -0.75u; rt x6 = hround(w-0.65u);
368 top y5 = top y6 = x_height;
369 draw z5..z6;
370 %
371 math_fit(1.25u#-x_height#*slant, ic#);
372 labels(1, 2, 3, 4, 5, 6);
373 endchar;
374
375 cmchar "Calligraphic u";
376 beginchar("u", 9.5u#, x_height#, 0);
377 italcorr max(0.15x_height#*slant+0.5lower_cal_width#,
378 x_height#*slant+0.5lower_cal_width#-2u#);
379 adjust_fit(0, 0);
380 %
381 pickup lower_cal.nib;
382 x1 = 0; x3 = good.x(2.80u); x4 = good.x(2.3u);
383 x5 = 0.5[x4, x6]; x6 = x7 = x8 = good.x(w-2.5u); x10 = w;
384 y4 = 0.7[y5, y6]; bot y5 = -oo; y6 = 0.57h; top y7 = h;
385 draw hook_in(1, 2, 3)...z4 down_to_right z5...z6{up};
386 draw z7..hook_out(8, 9, 10);
387 %
388 math_fit(-2/3x_height#*slant+0.5hair#+0.5u#, ic#);
389 labels(1, 2, 3, 4, 6, 7, 8, 9, 10);
390 endchar;
391
392 %cmchar "Calligraphic v";
393 % beginchar("v", 8u#, x_height#, 0);
394 % italcorr 0.8x_height#*slant;
395 % adjust_fit(0, 0.5u#);
396 % %
397 % pickup lower_cal.nib;
398 % x1 = 0; top y1 = h; z3 = (.48w, 0);
399 % z0.t_ = z2.t_+penoffset down of currentpen
400 % = z3.t_+penoffset down of pen_[tilted.nib];
401 % draw z1{right}..tension atleast 1 and infinity..z2; % left diagonal
402 % pickup tilted.nib;
403 % rt x4 = w; x5 = x4-.2w; top y4 = .8h; top y5 = h;
404 % path p; p = z3..tension atleast 3 and 1..{up}z4;
405 % erase fill z0--(x0, y0-0.5h)--(x4, y0-0.5h)--(x4+eps, y4)--reverse p--cycle;
406 % draw p...{left}z5; % right diagonal
407 % %
408 % math_fit(-2/3x_height#*slant+0.5hair#+0.5u#, 2/3ic#);
409 % labels(0, 1, 2, 3, 4, 5);
410 % endchar;
411
412 cmchar "Calligraphic v";
413 beginchar("v", 8.75u#, x_height#, 0);
414 italcorr .7x_height#*slant+0.5lower_cal_width#-u#
415 if math_fitting: -0.5u# fi; % same as "o"
416 adjust_fit(0, 0);
417 %
418 pickup lower_cal.nib;
419 x1 = 0; x3 = good.x(2.80u); x4 = good.x(2.3u);
420 x5 = 0.5[x4, x6]; x6 = good.x(w-1.25u); x7 = good.x(w-2.25u);
421 y4 = 0.7[y5, y6]; bot y5 = -oo; y6 = 0.57h; top y7 = h+oo;
422 draw hook_in(1, 2, 3)...z4 down_to_right z5...z6{up}...z7;
423 %
424 math_fit(-2/3x_height#*slant+0.5hair#+0.5u#, ic#);
425 labels(1, 2, 3, 4, 5, 6, 7);
426 endchar;
427
428 cmchar "Calligraphic w";
429 % beginchar("w", 12.3u#, x_height#, 0);
430 % italcorr 0.8x_height#*slant;
431 % adjust_fit(0.2u#, 0.5u#);
432 % %
433 % pickup lower_cal.nib;
434 % x1 = 0; x3 = .5[x1, x6]; x6 = .52w;
435 % x9 = .58[x6, x10]; y3 = y9 = 0; top y1 = top y6 = h;
436 % z7 = .5[z8, z6]+bend; z4 = .5[z3, z5]+bend;
437 % (z0)t_ = (z2)t_+penoffset down of currentpen
438 % = (z3)t_+penoffset down of pen_[tilted.nib];
439 % (z20)t_ = (z8)t_+penoffset down of currentpen
440 % = (z9)t_+penoffset down of pen_[tilted.nib];
441 % draw z1{right}..tension atleast 1 and infinity..z2; % first diagonal
442 % pickup tilted.nib;
443 % x5 = x6; rt x10 = w;
444 % x11 = x10-.1w; top y5 = h; top y10 = .8h; top y11 = h;
445 % erase fill z0--(x0, y0-0.5h)--(x5, y0-0.5h)--z5..z4..z3--cycle;
446 % draw z3..z4..z5; % second diagonal
447 % pickup lower_cal.nib;
448 % erase fill\\(.3w, bot y6)--(w, bot y6)--(w, top y6)--(.3w, top y6)--cycle;
449 % draw z6..z7..z8; % third diagonal
450 % pickup tilted.nib;
451 % path p; p = z9..tension atleast 3 and 1..{up}z10;
452 % erase fill z20--(x20, y20-0.5h)--(x10, y20-0.5h)--(x10+eps, y10)
453 % --reverse p--cycle;
454 % draw p..{left}z11; % fourth diagonal
455 % %
456 % math_fit(-2/3x_height#*slant+0.5hair#+0.5u#, 3/4ic#);
457 % labels(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 20);
458 % endchar;
459
460 cmchar "Calligraphic w";
461 beginchar("w", 12.5u#, x_height#, 0);
462 italcorr .7x_height#*slant+0.5lower_cal_width#-u#
463 if math_fitting: -0.5u# fi; % same as "o"
464 adjust_fit(0, 0);
465 %
466 pickup lower_cal.nib;
467 x1 = 0; x3 = good.x(2.80u); x4 = good.x(2.3u);
468 x5 = 0.5[x4, x6]; x6 = x7 = good.x 0.5[2.5u,w-1.5u]; x8 = 0.5[x6,x9];
469 x9 = good.x(w-1.25u); x10 = good.x(w-2.25u);
470 y4 = 0.7[y5, y6]; bot y5 = bot y8 = -oo; y6 = y9 = 0.57h;
471 top y7 = top y10 = h+oo;
472 draw hook_in(1, 2, 3)...z4 down_to_right z5...z6---z7;
473 draw z6 down_to_right z8...z9{up}...z10;
474 %
475 math_fit(-2/3x_height#*slant+0.5hair#+0.5u#, ic#);
476 labels(1, 2, 3, 4, 5, 6, 7);
477 endchar;
478
479 cmchar "Calligraphic x";
480 beginchar("x", 8.25u#, x_height#, 0);
481 italcorr max(1/9x_height#*slant, 0.9x_height#*slant+.5u#);
482 adjust_fit(0, 0.25u#);
483 %
484 pickup lower_cal.nib;
485 lft x1 = .08w; lft x2 = .2w; x4-x3 = x2-x1; rt x4 = w;
486 h-y1 = y4 = 1/9h; top y2 = h; bot y3 = 0;
487 draw z1{up}....z2{right}
488 ... .2[z2+(.1w, 0), z3-(.1w, 0)]---.8[z2+(.1w, 0), z3-(.1w, 0)]
489 ...{right}z3....{up}z4; % left diagonal
490 x5 = x6-u; rt x6 = w; lft x7 = 0; x8 = x7+u;
491 top y5 = h; y6 = .85h; y7 = h-y6; bot y8 = 0;
492 draw z5{right}...z6{down}
493 ..tension atleast 3..{down}z7...{right}z8; % right diagonal
494 %
495 math_fit(0, ic#);
496 labels(1, 2, 3, 4, 5, 6, 7, 8);
497 endchar;
498
499 cmchar "Calligraphic y";
500 beginchar("y", 8.5u#, x_height#, desc_depth#);
501 italcorr x_height#*slant+0.5lower_cal_width#-0.5u#;
502 adjust_fit(0, 0);
503 %
504 pickup lower_cal.nib;
505 x1 = 0; x3 = good.x(2.80u); x4 = x10 = good.x(2.3u);
506 x5 = 0.5[x4, x6]; x6 = x7 = x8 = good.x(w-1.5u);
507 y4 = 0.7[y5, y6]; bot y5 = -oo; y6 = 0.57h; top y7 = h;
508 draw hook_in(1, 2, 3)...z4 down_to_right z5...z6{up};
509 draw z7..desc_curve(8, 9, 10);
510 %
511 math_fit(-2/3x_height#*slant+0.5hair#+0.5u#, ic#-1/3x_height#*slant);
512 labels(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
513 endchar;
514
515 cmchar "Calligraphic z";
516 beginchar("z", 5.5u#+max(1.5u#, stem#), x_height#, 0);%desc_depth#);
517 italcorr x_height#*slant+0.5lower_cal_width#;
518 adjust_fit(0, 0);
519 %
520 pickup lower_cal.nib;
521 y1 = good.y 3/4x_height;
522 top y2 = h+oo; top y3 = vround 0.98h+eps;
523 bot y4 = -oo; bot y5 = -oo;
524 y6 = good.y 1/4x_height;
525 x1 = x4 = good.x u; x6 = good.x w; x6-x3 = hround 0.5u;
526 x2 = 0.25[x1, x3]; x5 = 0.25[x6, x4];
527 draw z1 ... z2{right}..{z3-z4}z3
528 --z4{z3-z4}..z5{right}... z6;
529 %
530 math_fit(0, 1/3x_height#*slant+0.5hair#+0.5u#);
531 labels(1, 2, 3, 5, 6);
532 endchar;
533
534 %
535 % LATIN EXTENSION
536 %
537 % the three first have been checked: design, metrics
538 % and italic corrections (nov. 28, 2002).
539 %
540
541 cmchar "Calligraphic dotless i";
542 beginchar(hex"10", 5u#, x_height#, 0);% height
543 italcorr max(0.15x_height#*slant+0.5lower_cal_width#,
544 0.8x_height#*slant+0.5lower_cal_width#-1.7u#);
545 italcorr 1/3x_height#*slant+0.5hair#+0.5u#;
546 adjust_fit(0, 0);
547 %
548 pickup lower_cal.nib;
549 x1 = 0; x3 = good.x(0.5w+0.30u);
550 x4 = good.x(0.5w-0.30u); x6 = w;
551 draw hook_in(1, 2, 3)...hook_out(4, 5, 6);
552 %
553 math_fit(0, 0);
554 labels(1, 2, 3, 4, 5, 6, 7);
555 endchar;
556
557 cmchar "Calligraphic dotless j";
558 beginchar(hex"11", 5u#, x_height#, desc_depth#);
559 italcorr max(0.8x_height#*slant+0.5lower_cal_width#-u#,
560 0.8x_height#*slant+0.5lower_cal_width#-0.5u#);
561 adjust_fit(0, 0);
562 %
563 pickup lower_cal.nib;
564 x1 = 0; x3 = x4 = good.x(w-1.5u);
565 x6 = good.x 0;
566 draw hook_in(1, 2, 3)..desc_curve(4, 5, 6);
567 %
568 math_fit(0, 0);
569 labels(1, 2, 3, 4, 5, 6);
570 endchar;
571
572 cmchar "Calligraphic es-zet";
573 beginchar(oct"31", 8u#, asc_height#, desc_depth#);
574 italcorr max(.8h#*slant-.1w#, .5x_height#*slant)+.5u#;
575 adjust_fit(0, 0);
576 %
577 pickup lower_cal.nib;
578 x1 = x3 = good.x 1.5u; x4 = .6[x2, x5]; rt x5 = .9w; x6 = .4w;
579 rt x7 = w;
580 x8 = .4[x9, x7]; lft x9 = rt x3;
581 top y1 = x_height+oo; bot y3 = -d-eps; z2 = .3[z3, z1]+bend;
582 top y4 = h+oo; y5 = .6[y6, y4]; y6 = .55h; y7 = .45[y8, y6];
583 bot y8 = -oo; y9 = .1h;
584 draw z1-cal.extension--flex(z1, z2, z3); % stem
585 draw z2{up}...z4...z5{down}...{dir 200}z6{dir 10}
586 ...z7{down}...z8{left}...z9; % lobes
587 %
588 math_fit(.5u#, .3h#*slant+.5u#);
589 labels(1, 2, 3, 4, 5, 6, 7, 8, 9);
590 endchar;
591
592 cmchar "Calligraphic ae";
593 beginchar(oct"32", 13u#, x_height#, 0);
594 italcorr max(0.25x_height#*slant+0.5lower_cal_width#,
595 0.85x_height#*slant+0.5lower_cal_width#-1.1u#);
596 adjust_fit(0, 0);
597 %
598 pickup lower_cal.nib;
599 top y1 = h+oo; bot y3 = -oo; y2 = y4 = 0.5[y1, y3];
600 x2 = good.x 1.25u; x4 = good.x 0.5w;
601 x1 = 0.5[x2, x4]; x3 = 0.5[x2, x4];
602 draw z1 left_to_down z2 down_to_right
603 z3 right_to_up z4 up_to_left z1;
604 %
605 rt x5 = hround(w-1.1u); x6 = 0.6[x7, x5];
606 if x5 > w-1.25u: x5 := good.x w-1.25u; fi
607 x7 = x4; x8 = 0.5[x7, x9]; x9 = good.x w;
608 y5 = 0.8[y8, y6]; top y6 = h+oo; y7 = .5h; bot y8 = -oo;
609 y9 = good.y 1/4x_height;
610 draw z7 right_to_up z5 up_to_left z6
611 left_to_down z7 down_to_right z8...z9;
612 %
613 top y10=vround 0.98h; bot y11=0;
614 x10=x11=x4; draw z10..z11;
615 %
616 math_fit(-.3x_height#*slant+0.5curve#-u#, ic#);
617 labels(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
618 endchar;
619
620 cmchar "Calligraphic oe";
621 beginchar(oct"33", 13u#, x_height#, 0);
622 italcorr max(0.25x_height#*slant+0.5lower_cal_width#,
623 0.85x_height#*slant+0.5lower_cal_width#-1.1u#);
624 adjust_fit(0, 0);
625 %
626 pickup lower_cal.nib;
627 top y1 = h+oo; bot y3 = -oo; y2 = y4 = 0.5[y1, y3];
628 x2 = good.x 1.25u; x4 = good.x 0.5w; x1 = x3 = 0.5[x2, x4];
629 draw z1 left_to_down z2 down_to_right
630 z3 right_to_up z4 up_to_left z1;
631 %
632 rt x5 = hround(w-1.1u); x6 = 0.6[x7, x5];
633 if x5 > w-1.25u: x5 := good.x w-1.25u; fi
634 x7 = x4; x8 = 0.5[x7, x9]; x9 = good.x w;
635 y5 = 0.8[y8, y6]; top y6 = h+oo; y7 = .5h; bot y8 = -oo;
636 y9 = good.y 1/4x_height;
637 draw z7 right_to_up z5 up_to_left z6
638 left_to_down z7 down_to_right z8...z9;
639 %
640 math_fit(-.3x_height#*slant+0.5curve#-u#, ic#);
641 labels(1, 2, 3, 4, 5, 6, 7, 8, 9);
642 endchar;
643
644 cmchar "Calligraphic o/slash";
645 beginchar(oct"34", 9u#, x_height#+0.5desc_depth#, 0.5desc_depth#);
646 italcorr .7x_height#*slant+0.5lower_cal_width#-u#
647 if math_fitting: -0.5u# fi;
648 adjust_fit(0, 0);%(-0.25u#, -0.25u#);
649 %
650 pickup lower_cal.nib;
651 top y1 = x_height+oo; bot y3 = -oo; y2 = y4 = 0.5[y1, y3];
652 x2 = good.x 1.25u; x4 = good.x(w-1.25u); x1 = x3 = 0.5[x2, x4];
653 draw z1 left_to_down z2 down_to_right
654 z3 right_to_up z4 up_to_left z1;
655 %
656 pickup fine_cal.nib;
657 x5=good.x x4; x6=good.x x2; top y5=h+eps; bot y6=-d-eps; draw z5..z6;
658 %
659 math_fit(-.3x_height#*slant+0.5curve#-u#, ic#);
660 labels(1, 2, 3, 4, 5, 6);
661 endchar;
662
663 cmchar "Calligraphic AE";
664 beginchar(oct"35",18u#,cap_height#,0);
665 italcorr max(h#*slant-.1w#,.2h#*slant)+.5u#;
666 adjust_fit(0,0); pickup cal.nib;
667 w':=hround 8.5u;
668 x1=.9[x3,x2]; rt x2=.9w'+w-w'; x3=.6[x4,x2]; lft x4=.05w'+w-w';
669 x5=.7[x6,x2]; lft x6=w-w'; x7=.5[x6,x8]; rt x8=w;
670 y1=y2-.1h; y2=.9h+o; top y3=h+o; y4=.5[y5,y3];
671 y5=.55h; y6=.6[y5,y7]; bot y7=-o; y8=.2h;
672 %
673 pickup tilted.nib;
674 lft x4'=.05w'+w-w';
675 w':=hround 14.4u;
676 lft x1'=.05w'; x2'=.2w';
677 y1'=y2'+.1h; bot y2'=bot_flourish_line;
678 y3'=y6; z3'=whatever[z2',z4]+2bend; y4'=y4;
679 draw\\(z1'..tension 1.2..{right}z2') softjoin (z2'...z3'...z4'{up});
680 % left diagonal
681 pickup cal.nib;
682 draw\\(z1{2(x2-x1),y2-y1}...z2)
683 softjoin (z2...z3{left}...z4{down}...{right}z5); % upper arc
684 draw z5{left}...z6{down}...z7{right}...z8; % lower arc
685 draw rt z3'--z6; % bar
686 math_fit(.5u#-.2h#*slant,.2h#*slant+.5u#);
687 labels(1',2',3',4',1,2,3,4,5,6,7,8);
688 endchar;
689
690 cmchar "Calligraphic OE";
691 beginchar(oct"36",16u#,cap_height#,0);
692 italcorr max(h#*slant-.1w#,.2h#*slant)+.5u#;
693 adjust_fit(0,0); pickup cal.nib;
694 w':=hround 8.5u;
695 x1=.9[x3,x2]; rt x2=.9w'+w-w'; x3=.6[x4,x2]; lft x4=.05w'+w-w';
696 x5=.7[x6,x2]; lft x6=w-w'; x7=.5[x6,x8]; rt x8=w;
697 y1=y2-.1h; y2=.9h+o; top y3=h+o; y4=.5[y5,y3];
698 y5=.55h; y6=.6[y5,y7]; bot y7=-o; y8=.2h;
699 draw\\(z1{2(x2-x1),y2-y1}...z2)
700 softjoin (z2...z3{left}...z4{down}...{right}z5); % upper arc
701 draw z5{left}...z6{down}...z7{right}...z8; % lower arc
702 %
703 w':=hround 12.6u;
704 x1'=.3w'; lft x2'=0; x3'=0.6[x2',x6]; x5'=0.75[x2',x4];
705 lft x6'=.27w';
706 top y1'=top y5'=h+o; y2'=.55h; bot y3'=-o; y6'=y2';
707 draw z1'...z2'{down}...z3'{right}...z6{up};
708 save p; path p; p = z4{up}...z5'{left}...{down}z6';
709 draw subpath (0,1.8) of p;
710 math_fit(.5u#-.2h#*slant,.2h#*slant+.5u#);
711 labels(1',2',3',5',6',1,2,3,4,5,6,7,8);
712 endchar;
713
714 cmchar "Calligraphic O/slash";
715 beginchar(oct"37",12.6u#,cap_height#+0.25desc_depth#, 0.25desc_depth#);
716 italcorr .7h#*slant+.5u#;
717 adjust_fit(0,0); pickup cal.nib;
718 x1=.3w; lft x2=0; x3=.5w; rt x4=w; x5=.6w; lft x6=.27w;
719 top y1=top y5=cap_height+o; y2=.55cap_height;
720 bot y3=-o; y4=.5cap_height; y6=y2;
721 path p; p=z1...z2{down}...z3{right}...z4{up}...z5{left}...{down}z6;
722 draw subpath(0,4.8) of p; % bowl
723 % pickup .nib;
724 top y7= vround(h+0.25desc_depth)+eps; bot y8=-hround(0.25desc_depth)-eps;
725 x7 = good.x x4; x8 = good.x 0.1[x2, x6]; draw z7..z8;
726 math_fit(.5u#-.3h#*slant,ic#-.5u#);
727 labels(1,2,3,4,5,6);
728 endchar;
729
730 %
731 % DIGITS
732 %
733
734 beginchar("0", 9u#, fig_height#, 0);
735 "The digit 0";
736 italcorr fig_height#*slant-0.5u#;
737 adjust_fit(0, 0);
738 pickup lower_cal.nib;
739 numeric a; a = min(0.25h, 0.5(x_height-o));
740 top y1 = h+o; bot y3 = -o; y2 = y4 = 0.5[y1, y3];
741 lft x2 = hround max(0.7u, lft 1.45u); x4 = w-x2;
742 x1 = x3 = 0.5[x2, x4];
743 draw z1 left_to_down z2 down_to_right z3
744 right_to_up z4 up_to_left z1;
745 labels(1, 2, 3, 4);
746 math_fit(0, 0.5ic#);
747 endchar;
748
749 beginchar("1", 9u#, fig_height#, 0);
750 "The digit 1";
751 italcorr fig_height#*slant-0.5u#;
752 adjust_fit(0, 0);
753 pickup lower_cal.nib;
754 top y2 = h+o; bot y3 = -max(hround(0.05h)+eps, oo); y1 = good.y 0.35[y2, y3];
755 rt x2-lft x1 = hround 4.875u; rt x2 = w-hround 2.125u;
756 rt x3 = w-hround 3.75u;
757 draw z1{x2-x1, 0.5(y2-y1)}...z2 & z2{x3-x2, 0.4(y3-y2)}...{down}z3;
758 labels(1, 2, 3);
759 math_fit(0, 0.5ic#);
760 endchar;
761
762 beginchar("2", 9u#, fig_height#, 0);
763 "The digit 2";
764 italcorr fig_height#*slant-0.5u#;
765 adjust_fit(0, 0);
766 pickup lower_cal.nib;
767 top y2 = h+o; bot y5 = bot y6 = 0; y1 = y3 = good.y 0.75h;
768 lft x1 = lft x5+eps = hround u; rt x3 = rt x6-eps = w-hround u;
769 x2 = x4 = 0.5[x1, x3]; y4 = 0.4[y5, y3];
770 draw z1 up_to_right z2 right_to_down z3...z4---z5--z6;
771 labels(1, 2, 3, 4, 5, 6);
772 math_fit(0, 0.5ic#);
773 endchar;
774
775 % beginchar("3", 9u#, fig_height#, 0);
776 % "The digit 3";
777 % italcorr fig_height#*slant-0.5u#;
778 % adjust_fit(0, 0);
779 % pickup lower_cal.nib;
780 % bot y2 = -o; top y5 = top y6 = x_height;
781 % y1 = good.y 1/4x_height;
782 % y3 = a; y5-y4 = y3-y2; top y7 = top y8 = h;
783 % rt x3 = w-hround u; x3 = x4 = x7+hround 0.5u-eps;
784 % lft x1 = hround u; x1+hround 0.5u-eps = x8;
785 % lft x6 = hround 3u-eps;
786 % x2 = x5 = 0.5[x1, x3];
787 % draw z1 ... z2 right_to_up z3..z4 up_to_left z5--z6--z7--z8;
788 % labels(1, 2, 3, 4, 5, 6, 7, 8);
789 % math_fit(0, 0.5ic#);
790 % endchar;
791
792 beginchar("3", 9u#,fig_height#,0);
793 "The digit 3";
794 italcorr fig_height#*slant-0.5u#;
795 adjust_fit(0,0); pickup lower_cal.nib;
796 lft x2 = hround 1.25u; x3=.46[x2,x4]; x4=good.x(w-2u);
797 x5=.7[x6,x2]; x6= good.x(w-1.25u); x7=.5[x6,x8]; lft x8 = hround u;
798 x1=good.x 0.6[x5, x2];
799 %y1=y2-.1h;
800 y2=.85h+oo; top y3=h+oo; y4=.5[y5,y3];
801 y5=good.y .55h; y6=.5[y5,y7]; bot y7=-oo; y8=good.y 1/4x_height;
802 y1 = good.y 0.55[y5, y3];
803 draw\\(z1{2(x2-x1),y2-y1}...z2)
804 softjoin (z2...z3 right_to_down z4...{left}z5); % upper arc
805 draw z5 right_to_down z6...z7{left}...z8; % lower arc
806 math_fit(.5u#-.2h#*slant,.2h#*slant+.5u#);
807 labels(1,2,3,4,5,6,7,8);
808 endchar;
809
810 beginchar("4", 9u#, fig_height#, 0);
811 "The digit 4";
812 italcorr fig_height#*slant-0.5u#;
813 adjust_fit(0, 0);
814 pickup lower_cal.nib;
815 top y1 = h+o; bot y5 = -max(hround(0.05h)+eps, oo); top y4 = x_height+eps;
816 y2 = y3 = good.y(0.5x_height);
817 rt x3 = w-hround 0.1u+eps;
818 lft x2 = hround 0.5u-eps;
819 x1 = good.x 0.33[x2, x3];
820 x4 = good.x 0.725[x2, x3];
821 x5 = good.x 0.475[x2, x3];
822 draw z1{down}...z2--z3; draw z4{x5-x4, 0.45(y5-y4)}..z5{down};
823 labels(1, 2, 3, 4, 5);
824 math_fit(0, 0.5ic#);
825 endchar;
826
827 beginchar("5", 9u#, fig_height#, 0);
828 "The digit 5";
829 italcorr fig_height#*slant-0.5u#;
830 adjust_fit(0, 0);
831 pickup lower_cal.nib;
832 bot y2 = -o; top y4 = x_height+eps; y1 = good.y 1/4x_height;
833 y3 = 0.5[y2, y4]; y5 = good.y 0.2[y4, y2]; top y6 = top y7 = h;
834 rt x3 = w-hround u; x3 = x7+hround 0.5u-eps;
835 lft x1 = hround u; x1+hround 0.5u = x5 = x6;
836 x2 = x4 = 0.5[x1, x3];
837 draw z1 ... z2 right_to_up z3
838 up_to_left z4 ... z5&z5..{0.5(x6-x4), y6-y4}z6&z6..{x7-x5, 0.5(y7-y5)}z7;
839 labels(1, 2, 3, 4, 5, 6, 7);
840 math_fit(0, 0.5ic#);
841 endchar;
842
843 beginchar("6", 9u#, fig_height#, 0);
844 "The digit 6";
845 italcorr fig_height#*slant-0.5u#;
846 adjust_fit(0, 0);
847 pickup lower_cal.nib;
848 top y2 = h+o; bot y4 = -o; y1 = good.y(h-0.2x_height);
849 top y6 = x_height+eps; y3 = 0.45[y4, y2]; y5 = 0.5[y4, y6];
850 lft x3 = hround max(0.7u, lft 1.45u); x5 = w-x3;
851 rt x1 = w-hround u; x2 = 0.6[x3, x1]; x4 = x6 = 0.5[x3, x5];
852 draw z1 ... z2{left} ... z3 down_to_right z4
853 right_to_up z5 up_to_left z6 ...z3;
854 labels(1, 2, 3, 4, 5, 6);
855 math_fit(0, 0.5ic#);
856 endchar;
857
858 beginchar("7", 9u#, fig_height#, 0);
859 "The digit 7";
860 italcorr fig_height#*slant-0.5u#;
861 adjust_fit(0, 0);
862 pickup lower_cal.nib;
863 top y2 = top y3 = h+o; bot y4 = -max(hround(0.05h)+eps, oo);
864 y1 = good.y 0.3[y2, y4];
865 lft x1 = lft x2 = hround 0.75u; rt x3 = w-hround 0.25u;
866 x4 = good.x 0.4[x2, x3];
867 draw z1{0.2(x3-x1), y3-y1}..z2 & z2{x4-x2, 0.2(y4-y2)}..z3
868 &z3{x4-x3, 0.4(y4-y3)}..z4;
869 labels(1, 2, 3, 4);
870 math_fit(0, 0.5ic#);
871 endchar;
872
873 beginchar("8", 9u#, fig_height#, 0);
874 "The digit 8";
875 italcorr fig_height#*slant-0.5u#;
876 adjust_fit(0, 0);
877 pickup lower_cal.nib;
878 bot y1 = vround 0.5h; bot y4 = -o;
879 y1-y2 = y1-y6 = y3-y4; y3 = y5 = a;
880 lft x2 = lft x3 = hround u;
881 rt x5 = rt x6 = w-hround u;
882 x1 = x4 = x7 = 0.5[x2, x6];
883 top y7 = h+o; y8 = y9 = 0.5[y7, y1];
884 lft x8 = w-rt x9 = hround 1.4u-eps;
885 draw z1 left_to_down z2..z3 down_to_right z4 right_to_up z5..z6
886 up_to_left z1; draw superellipse(z9, z7, z8, z1, superness);
887 labels(1, 2, 3, 4, 5, 6, 7, 8, 9);
888 math_fit(0, 0.5ic#);
889 endchar;
890
891 beginchar("9", 9u#, fig_height#, 0);
892 "The digit 9";
893 italcorr fig_height#*slant-0.5u#;
894 adjust_fit(0, 0);
895 pickup lower_cal.nib;
896 bot y2 = -o; top y4 = h+o; y1 = good.y 0.2x_height;
897 bot y6 = h-x_height-eps; y3 = 0.45[y4, y2]; y5 = 0.5[y4, y6];
898 lft x5 = hround max(0.7u, lft 1.45u); x3 = w-x5;
899 lft x1 = hround u; x2 = 0.6[x3, x1]; x4 = x6 = 0.5[x3, x5];
900 draw z1 ... z2{right}... z3 up_to_left z4
901 left_to_down z5 down_to_right z6 ...z3;
902 labels(1, 2, 3, 4, 5, 6, 7, 8, 9);
903 math_fit(0, 0.5ic#);
904 endchar;
905
906 %
907 % PUNCTUATION
908 %
909
910 call_spanish_query:=0;
911 call_spanish_shriek:=1;
912 call_laquo:=2;
913 call_raquo:=3;
914
915 vardef complete_quote@#(expr $,$$)=
916 pickup lower_cal.nib;
917 bot y@#.c=hround 0.06h; y@#.b=good.y 0.5h; y@#.a-y@#.b=y@#.b-y@#.c;
918 if $$<0: lft x@#.a=lft x@#.c=rt x@#.b-(hround 4u+2eps)=$;
919 else: rt x@#.a=rt x@#.c=lft x@#.b+(hround 4u+2eps)=$; fi
920 draw z@#.a{(z@#.b-z@#.a) yscaled 3}..z@#.b
921 &z@#.b..{(z@#.c-z@#.b) yscaled 3}z@#.c;
922 labels(@#.a,@#.b,@#.c);
923 enddef;
924
925 beginchar("<",8u#,x_height#,0);
926 "French single opening quote";
927 complete_quote1(w-hround 2u+eps,1);
928 endchar;
929
930 beginchar(">",8u#,x_height#,0);
931 "French single closing quote";
932 complete_quote1(hround 2u-eps,-1);
933 endchar;
934
935 beginchar(call_laquo,10u#,x_height#,0);
936 "French double opening quote";
937 complete_quote1(w-hround u+eps,1);
938 complete_quote2(w-hround 4u+eps,1);
939 endchar;
940
941 beginchar(call_raquo,10u#,x_height#,0);
942 "French double closing quote";
943 complete_quote1(hround u-eps,-1);
944 complete_quote2(hround 4u-eps,-1);
945 endchar;
946
947 cmchar "Hash mark (number sign)";
948 spread#:=math_spread[0.45x_height#,0.55x_height#];
949 spread:=2ceiling(spread#*hppp/2)+eps;
950 beginchar("#",15u#,asc_height#,asc_depth#);
951 italcorr (math_axis#+.5(spread#+rth1#))*slant-.5u#;
952 adjust_fit(0,0);
953 pickup lower_cal.nib; lft x1=hround u-eps; x3=x1; x2=x4=w-x1;
954 y1=y2; y3=y4; y1-y3=spread; .5[y1,y3]=math_axis;
955 draw z1--z2; % upper bar
956 draw z3--z4; % lower bar
957 lft x6=hround 3u; rt x7=hround(w-3u); x5-x6=x7-x8;
958 x8=good.x .5\\w;
959 top y5=top y7=h+eps; bot y6=bot y8=-d-eps;
960 y15=y1; z15=whatever[z5,z6]; y36=y3; z36=whatever[z5,z6];
961 y27=y2; z27=whatever[z7,z8]; y48=y4; z48=whatever[z7,z8];
962 draw z5--if x5>x6+1:(good.x(x15+.5),y1)--(good.x(x15-.5),y1)
963 --(good.x(x36+.5),y3)--(good.x(x36-.5),y3)--fi\\z6; % left diagonal
964 draw z7--if x7>x8+1:(good.x(x27+.5),y2)--(good.x(x27-.5),y2)
965 --(good.x(x48+.5),y4)--(good.x(x48-.5),y4)--fi\\z8; % right diagonal
966 labels(1,2,3,4,5,6,7,8,15,27,36,48);
967 endchar;
968
969 cmchar "Plus sign";
970 beginchar("+",arithmetic_bounds);
971 pickup lower_cal.nib;
972 x1=x2=good.x .5w; top y1=h+eps; .5[y1,y2]=math_axis;
973 lft x3=hround u-eps; x4=w-x3; y3=y4=math_axis;
974 draw z1--z2; % stem
975 draw z3--z4; % crossbar
976 labels(1,2,3,4);
977 endchar;
978
979 beginchar("*",9u#,body_height#,0);
980 "Asterisk";
981 italcorr body_height#*slant-u#;
982 pickup lower_cal.nib;
983 top y1=h+eps; bot y2=h-x_height-eps;
984 x1=x2=good.x 0.5w;
985 x3=good.x (x1-3u*cosd 30);
986 x1-x3=x1-x6=x5-x1=x4-x1;
987 y3=good.y (0.5[y1,y2]+3u*sind 30);
988 y1-y3=y1-y5=y4-y2=y6-y2;
989 draw z1..z2; draw z3..z4; draw z5..z6;
990 labels(1,2,3,4,5,6);
991 endchar;
992
993 cmchar "Virgule (slash)";
994 beginchar("/",9u#,body_height#,paren_depth#);
995 italcorr body_height#*slant-.5u#;
996 pickup fine_cal.nib;
997 rt x1=hround(w-u)+eps; top y1=h+eps;
998 lft x2=hround u-eps; bot y2=-d-eps;
999 draw z1--z2; % diagonal
1000 labels(1,2);
1001 endchar;
1002
1003 beginchar("=",14u#,v_center(spread#+rth1#));
1004 italcorr h#*slant-.5u#;
1005 adjust_fit(0,0); pickup lower_cal.nib;
1006 lft x1=hround u-eps; x3=x1; x2=x4=w-x1;
1007 y1=y2; y3=y4; y1-y3=spread; .5[y1,y3]=math_axis;
1008 draw z1--z2; % upper bar
1009 draw z3--z4; % lower bar
1010 labels(1,2,3,4);
1011 endchar;
1012
1013 cmchar "Calligraphic dot";
1014 beginchar(".", 5u#, dtsz#, 0);
1015 italcorr 0.5u#;
1016 adjust_fit(0, 0);
1017 pickup fine_cal.nib;
1018 cal_dot1(0.5w, 0.5dtsz, dtsz);
1019 math_fit(0, 0);
1020 penlabels(1, 1');
1021 endchar;
1022
1023 cmchar "Calligraphic comma";
1024 beginchar(", ", 5u#, dtsz#, comma_depth#);
1025 italcorr 0.5u#;
1026 adjust_fit(0, 0);
1027 cal_comma1(0.5w, 0.5dtsz, 1, -comma_depth);
1028 math_fit(0, 0);
1029 endchar;
1030
1031 cal_apostrophe=hex"27"; cal_reverse_apostrophe=hex"60";
1032 cal_opening_quotes=hex"5C"; cal_closing_quotes=hex"22";
1033
1034 cmchar "Calligraphic apostrophe";
1035 beginchar(cal_apostrophe, 5u#, asc_height#, 0);
1036 italcorr 0.5u#;
1037 adjust_fit(0, 0);
1038 cal_comma1(0.5w, h-0.5dtsz, 1, h-comma_depth-dtsz);
1039 math_fit(0, 0);
1040 endchar;
1041
1042 cmchar "Calligraphic reverse apostrophe";
1043 beginchar(cal_reverse_apostrophe, 5u#, asc_height#, 0);
1044 italcorr 0.5u#;
1045 adjust_fit(0, 0);
1046 cal_comma1(0.5w, h-0.5dtsz-comma_depth,
1047 -1, h);
1048 math_fit(0, 0);
1049 endchar;
1050
1051 cmchar "Calligraphic opening quotes";
1052 beginchar(cal_opening_quotes, 7u#+max(2u#, dtsz#),
1053 asc_height#, 0);
1054 italcorr 0.5u#;
1055 adjust_fit(0, 0);
1056 cal_comma1(w-0.6u-0.5dtsz,
1057 h-0.5dtsz-comma_depth, -1, h);
1058 cal_comma2(w-0.6u-0.5dtsz-1.5u-max(2u, dtsz),
1059 h-0.5dtsz-comma_depth, -1, h);
1060 math_fit(0, 0);
1061 endchar;
1062
1063 cmchar "Calligraphic closing quotes";
1064 beginchar(cal_closing_quotes, 7u#+max(2u#, dtsz#),
1065 asc_height#, 0);
1066 italcorr 0.5u#;
1067 adjust_fit(0, 0);
1068 cal_comma1(0.6u+0.5dtsz,
1069 h-0.5dtsz, 1, h-dtsz-comma_depth);
1070 cal_comma2(0.6u+0.5dtsz+1.5u+max(2u, dtsz),
1071 h-0.5dtsz, 1, h-dtsz-comma_depth);
1072 math_fit(0, 0);
1073 endchar;
1074
1075 cmchar "Calligraphic semicolon";
1076 beginchar(";", 5u#, x_height#, comma_depth#);
1077 italcorr 0.5u#;
1078 adjust_fit(0, 0);
1079 pickup fine_cal.nib;
1080 cal_dot1(0.5w, h-0.5dtsz, dtsz);
1081 cal_comma2(0.5w, 0.5dtsz, 1, -comma_depth);
1082 math_fit(0, 0);
1083 endchar;
1084
1085 cmchar "Calligraphic colon";
1086 beginchar(":", 5u#, x_height#, 0);
1087 italcorr 0.5u#;
1088 adjust_fit(0, 0);
1089 pickup fine_cal.nib;
1090 cal_dot1(0.5w, 0.5dtsz, dtsz);
1091 cal_dot2(0.5w, h-0.5dtsz, dtsz);
1092 math_fit(0, 0);
1093 penlabels(1, 1', 2, 2');
1094 endchar;
1095
1096 cmchar "Calligraphic hyphen";
1097 beginchar("-", 6u#, x_height#, 0);
1098 italcorr 0.5x_height#*slant-0.5u#;
1099 adjust_fit(0, 0);
1100 pickup lower_cal.nib;
1101 y1 = y3 = good.y 0.5h;
1102 lft x1 = hround 0.2u-eps; rt x3 = hround(w-u)+eps;
1103 z2 = 0.5[z1, z3];
1104 draw z1{w, h}...z2{w, -0.5h}...z3{w, h};
1105 math_fit(0, 0);
1106 labels(1, 2, 3);
1107 endchar;
1108
1109 cmchar "Calligraphic en-dash";
1110 beginchar(oct"173", 9u#, x_height#, 0);
1111 italcorr 0.61803x_height#*slant+0.5u#;
1112 adjust_fit(0, 0);
1113 pickup lower_cal.nib;
1114 y1 = y2 = good.y 0.61803h; lft x1 = -eps; rt x2 = w+eps;
1115 draw z1..z2; math_fit(0, 0); labels(1, 2);
1116 endchar;
1117
1118 cmchar "Calligraphic em-dash";
1119 beginchar(oct"174", 18u#, x_height#, 0);
1120 italcorr 0.61803x_height#*slant+0.5u#;
1121 adjust_fit(letter_fit#, letter_fit#);
1122 pickup lower_cal.nib;
1123 y1 = y2 = good.y 0.61803h; lft x1 = -eps; rt x2 = w+eps;
1124 draw z1..z2; math_fit(0, 0); labels(1, 2, 3);
1125 endchar;
1126
1127 beginchar("(", 6u#, asc_height#, desc_depth#);
1128 italcorr asc_height#*slant;
1129 adjust_fit(0, 0);
1130 pickup med_cal.nib;
1131 top y1 = h; bot y3 = -d; y2 = 0.5(y1+y3);
1132 rt x1 = rt x3 = hround(w-0.5u); lft x2 = hround u;
1133 draw z1{x2-x1, 0.5(y2-y1)}...z2{down}...{x3-x2, 0.5(y3-y2)}z3;
1134 labels(1, 2, 3);
1135 endchar;
1136
1137 beginchar(")", 6u#, asc_height#, desc_depth#);
1138 italcorr asc_height#*slant;
1139 adjust_fit(0, 0);
1140 pickup med_cal.nib;
1141 top y1 = h; bot y3 = -d; y2 = 0.5(y1+y3);
1142 lft x1 = lft x3 = hround(0.5u); rt x2 = hround(w-u);
1143 draw z1{x2-x1, 0.5(y2-y1)}...z2{down}...{x3-x2, 0.5(y3-y2)}z3;
1144 labels(1, 2, 3);
1145 endchar;
1146
1147 beginchar("[", 6u#, asc_height#, desc_depth#);
1148 italcorr asc_height#*slant;
1149 adjust_fit(0, 0);
1150 pickup med_cal.nib;
1151 top y1 = top y2 = h; bot y4 = bot y5 = -d; y3 = 0.5[y1, y5];
1152 rt x1 = rt x5 = hround(w-0.25u); lft x2 = lft x4 = hround 1.25u;
1153 lft x3 = hround 1.5u;
1154 draw z1--z2...z3{down}...z4--z5;
1155 labels(1, 2, 3, 4, 5);
1156 endchar;
1157
1158 beginchar("]", 6u#, asc_height#, desc_depth#);
1159 italcorr asc_height#*slant;
1160 adjust_fit(0, 0);
1161 pickup med_cal.nib;
1162 top y1 = top y2 = h; bot y4 = bot y5 = -d; y3 = 0.5[y1, y5];
1163 lft x1 = lft x5 = hround(0.25u); rt x2 = rt x4 = hround(w-1.25u);
1164 rt x3 = hround(w-1.5u);
1165 draw z1--z2...z3{down}...z4--z5;
1166 labels(1, 2, 3, 4, 5);
1167 endchar;
1168
1169 beginchar("!", 5u#, asc_height#, 0);
1170 "Exclamation point";
1171 italcorr asc_height#*slant-2u#+0.5curve#;
1172 adjust_fit(0, 0);
1173 pickup med_cal.nib;
1174 x1=x2=good.x 0.5w;
1175 top y2= h+eps;
1176 cal_dot3(0.5w, 0.5dtsz, dtsz);
1177 bot y1=ceiling 0.25[top y3.b, x_height]-eps;
1178 draw z1..z2; labels(1, 2);
1179 endchar;
1180
1181 beginchar(call_spanish_shriek, 5u#, asc_height#-desc_depth#, desc_depth#);
1182 "Spanish shriek";
1183 italcorr (charht-0.5dtsz#)*slant-2u#+0.5dtsz#;
1184 adjust_fit(0, 0);
1185 pickup med_cal.nib;
1186 x1=x2=good.x 0.5w;
1187 bot y2=-d-eps;
1188 cal_dot3(0.5w, h-0.5dtsz, dtsz);
1189 top y1=floor 0.25[bot y3.d, h-x_height]+eps;
1190 draw z1..z2; labels(1, 2);
1191 endchar;
1192
1193 cmchar "Question mark";
1194 beginchar("?", 9u#, asc_height#, 0);
1195 italcorr 0.8asc_height#*slant-0.5u#;
1196 pickup med_cal.nib;
1197 cal_dot9(0.5w, 0.5dtsz, dtsz);
1198 top y4 = h+oo; bot y7=ceiling 0.25[top y9.b, x_height]-eps;
1199 y2=good.y 0.5[y7, y4]; y3=y5=0.5[y2,y4]; y1= good.y 0.4[y2,y3];
1200 y6=1/9[y7,y4]; y8 = good.y 0.8[y7, y6];
1201 x3=good.x 1.5u; x5=good.x(w-1.25u); x4=0.55[x3,x5]; x7=0.5w;
1202 x1=good.x 0.5[x3,x5]; x2=0.25[x3,x5]; x6=good.x 2/3[x3,x4];
1203 x8=good.x 0.5[x7,x5];
1204 draw z1...z2 left_to_up z3 ...z4 right_to_down z5...z6 down_to_right z7...z8;
1205 labels(1, 2, 3, 4, 5, 6,7,8);
1206 endchar;
1207
1208 beginchar(call_spanish_query, 9u#, asc_height#-desc_depth#, desc_depth#);
1209 "Spanish query";
1210 pickup med_cal.nib;
1211 cal_dot9(0.5w, h-0.5dtsz, dtsz);
1212 bot y4 = -d-oo; top y7=ceiling 0.25[bot y9.d, h-x_height]+eps;
1213 y2=good.y 0.5[y7, y4]; y3=y5=0.5[y2,y4]; y1=good.y 0.4[y2,y3];
1214 y6=1/9[y7,y4]; y8 = good.y 0.8[y7,y6];
1215 x3=good.x(w-1.5u); x5=good.x 1.25u; x4=0.55[x3,x5]; x7=0.5w;
1216 x1=good.x 0.5[x3,x5]; x2=0.25[x3,x5]; x6=good.x 2/3[x3,x4];
1217 x8=good.x 0.5[x7,x5];
1218 draw z1...z2 right_to_down z3 ...z4 left_to_up z5...z6 up_to_left z7...z8;
1219 labels(1, 2, 3, 4, 5, 6,7,8);
1220 endchar;
1221
1222 % just look at italic corection and math fitting
1223 cmchar "Calligraphic ampersand";
1224 beginchar(oct"46", 14u#, asc_height#, 0);
1225 italcorr max(0.15x_height#*slant+0.5lower_cal_width#,
1226 x_height#*slant+0.5lower_cal_width#-2u#) if math_fitting: -0.5u# fi;
1227 adjust_fit(0, 0);
1228 %
1229 pickup lower_cal.nib;
1230 top y1 = vround 0.98x_height;
1231 bot y2 = bot y7 = -oo;
1232 top y5 = h+oo;
1233 y3 = 0.5[y2, x_height]; y4 = y6 = 0.6[x_height, y5];
1234 y8 = good.y 7/8[x_height, y7];
1235 x1 = x7 = good.x(w-2.5u);
1236 x3 = good.x 1.25u; x6 = good.x 3u;
1237 x8 = good.x w; x2 = 5u; x4-x6=hround 3u; x5=0.6[x6,x4];
1238 draw z1{down}...z2 left_to_up z3...z4 up_to_left z5 left_to_down z6
1239 ...z7{right}...z8;
1240 %
1241 math_fit(-.3x_height#*slant+0.5curve#-u#, ic#);
1242 labels(1, 2, 3, 4, 5, 6, 7, 8);
1243 endchar;
1244
1245 %
1246 % ACCENTS
1247 %
1248
1249 cmchar "Calligraphic grave accent";
1250 beginchar(oct"22", 9u#, min(asc_height#, 2x_height#), 0);
1251 italcorr asc_height#*slant-0.5u#;
1252 adjust_fit(0, 0);
1253 pickup pencircle xscaled stem yscaled hair;
1254 top y1 = h+eps; bot y2 = vround 1/3[x_height, h]-eps;
1255 lft x1 = hround 1.75u; rt x2 = hround 2/3[x1, w-x1];
1256 draw z1{x2-x1, 2(y2-y1)}..z2;
1257 labels(1, 2);
1258 endchar;
1259
1260 cmchar "Calligraphic acute accent";
1261 beginchar(oct"23", 9u#, min(asc_height#, 2x_height#), 0);
1262 italcorr asc_height#*slant-0.5u#;
1263 adjust_fit(0, 0);
1264 pickup pencircle xscaled stem yscaled hair;
1265 top y1 = h+eps; bot y2 = vround 1/3[x_height, h]-eps;
1266 rt x1 = w-hround 1.75u; lft x2 = hround 2/3[x1, w-x1];
1267 draw z1{x2-x1, 2(y2-y1)}..z2;
1268 labels(1, 2);
1269 endchar;
1270
1271 % HUM
1272 cmchar "Calligraphic tilde accent";
1273 beginchar(oct"176", 9u#,
1274 min(asc_height#, 10/7x_height#+0.5flare#), 0);
1275 italcorr asc_height#*slant-0.5u#;
1276 adjust_fit(0, 0);
1277 pickup lower_cal.nib;
1278 bot y4 = vround 1/3[x_height, h]-eps;
1279 top y2 = h+eps; y1 = y3 = y5 = good.y 0.5[y2, y4];
1280 lft x1 = w-rt x5 = hround 1.25u;
1281 x2 = 0.25[x1, x5]; x3 = 0.5[x1, x5]; x4 = 0.75[x1, x5];
1282 draw z1{(z2-z1) yscaled 2}...z2{right}...
1283 z3{(z4-z3)yscaled 2}...z4{right} ...{(z5-z4) yscaled 2}z5;
1284 labels(1, 2, 3, 4, 5);
1285 endchar;
1286
1287 cmchar "Calligraphic circumflex accent";
1288 beginchar(oct"136", 9u#, min(asc_height#, 2x_height#), 0);
1289 italcorr asc_height#*slant-0.5u#;
1290 adjust_fit(0, 0);
1291 pickup pencircle xscaled stem yscaled hair;
1292 top y2 = h+eps; bot y1 = bot y3 = vround 1/3[x_height, h]-eps;
1293 lft x1 = w-rt x3 = hround 1.75u; x2 = good.x 0.5[x1, x3];
1294 draw z1..{x2-x1, 2(y2-y1)}z2
1295 &z2{x3-x2, 2(y3-y2)}..z3;
1296 labels(1, 2, 3);
1297 endchar;
1298
1299 cmchar "Calligraphic hacheck accent";
1300 beginchar(oct"24", 9u#, min(asc_height#, 2x_height#), 0);
1301 italcorr asc_height#*slant-0.5u#;
1302 adjust_fit(0, 0);
1303 pickup pencircle xscaled stem yscaled hair;
1304 top y1 = top y3 = h+eps; bot y2 = vround 1/3[x_height, h]-eps;
1305 lft x1 = w-rt x3 = hround 1.75u; x2 = good.x 0.5[x1, x3];
1306 draw z1..{x2-x1, 2(y2-y1)}z2
1307 &z2{x3-x2, 2(y3-y2)}..z3;
1308 labels(1, 2, 3);
1309 endchar;
1310
1311 cmchar "Calligraphic breve accent";
1312 beginchar(oct"25", 9u#, min(asc_height#, 2x_height#), 0);
1313 "Breve accent";
1314 italcorr asc_height#*slant-0.5u#;
1315 adjust_fit(0, 0);
1316 % pickup pencircle xscaled stem yscaled hair;
1317 pickup lower_cal.nib;
1318 top y1 = top y3=h+eps; bot y2=vround 1/3[x_height, h]-eps;
1319 lft x1 = w-rt x3=hround 1.5u; x2=0.5[x1, x3];
1320 draw z1 down_to_right z2 right_to_up z3; labels(1, 2, 3);
1321 endchar;
1322
1323 cmchar "Calligraphic macron accent";
1324 beginchar(oct"26", 9u#, 0.4[x_height#, asc_height#]+0.5hair#, 0);
1325 italcorr charht*slant-0.5u#;
1326 adjust_fit(0, 0);
1327 pickup lower_cal.nib; top y1 = top y2 = h;
1328 lft x1 = w-rt x2 = hround 1.25u;
1329 draw z1..z2; labels(1, 2);
1330 endchar;
1331
1332 cmchar "Calligraphic circ accent";
1333 beginchar(oct"27", 14.4u#
1334 +4/3(asc_height#-x_height#)*slant+1.5u#,
1335 asc_height#, 0);
1336 italcorr asc_height#*slant-0.5u#;
1337 adjust_fit(0, 0);
1338 pickup fine_cal.nib;
1339 numeric a, b; b = vround(1/3[x_height, h]);
1340 a = round max(3.6u, h+o-b);
1341 top y2 = b+a+eps; bot y4 = b-eps;
1342 y0 = y1 = y3 = 0.5[y4, y2]; x0 = x2 = x4 = 0.5w;
1343 lft x3 = hround(x0-0.5a)-eps; x1-x0 = x0-x3;
1344 draw superellipse(z1, z2, z3, z4, superness);
1345 labels(1, 2, 3, 4, 0);
1346 endchar;
1347
1348 cmchar "Calligraphic cedilla accent";
1349 beginchar(oct"30", 9u#, 0, desc_depth#);
1350 italcorr asc_height#*slant-0.5u#;
1351 adjust_fit(0, 0);
1352 pickup lower_cal.nib;
1353 bot y1 = -oo; top y2 = -vround max(o, -d/6);
1354 bot y4 = -d; y3 = 0.5[y2, y4]; y5 = good.y 0.4[y4, y3];
1355 x1 = x2 = x4 = good.x 0.5w;
1356 lft x5 = w-rt x3 = hround 1.5u-eps;
1357 draw z1--z2 right_to_down z3 down_to_left
1358 z4 ... z5;
1359 labels(1, 2, 3, 4, 5);
1360 endchar;
1361
1362 cmchar "Calligraphic dot accent";
1363 beginchar(oct"137", 9u#,
1364 min(asc_height#, 10/7x_height#+0.5flare#), 0);
1365 adjust_fit(0, 0);
1366 pickup fine_cal.nib;
1367 cal_dot1(0.5w, h-0.5flare, flare);
1368 math_fit(0, 0);
1369 penlabels(1, 1');
1370 endchar;
1371
1372 cmchar "Calligraphic umlaut accent";
1373 beginchar(oct"177", 9u#,
1374 min(asc_height#, 10/7x_height#+0.5flare#), 0);
1375 adjust_fit(0, 0);
1376 pickup fine_cal.nib;
1377 cal_dot1(2.75u, h-0.5flare, flare);
1378 cal_dot2(w-2.75u, h-0.5flare, flare);
1379 math_fit(0, 0);
1380 penlabels(1, 1', 2, 2');
1381 endchar;
1382
1383 cmchar "Calligraphic long umlaut accent";
1384 beginchar(oct"175", 9u#, min(asc_height#, 2x_height#), 0);
1385 adjust_fit(0, 0);
1386 pickup pencircle xscaled stem yscaled hair;
1387 top y1 = top y3 = h+eps;
1388 bot y2 = bot y4 = vround 1/3[x_height, h]-eps;
1389 lft x4 = hround 2.25u; rt x1 = w-hround 1.5u;
1390 x1-x3 = x2-x4 = hround 3u;
1391 draw z1{x2-x1, 2(y2-y1)}..z2;
1392 draw z3{x4-x3, 2(y4-y3)}..z4;
1393 labels(1, 2, 3, 4);
1394 endchar;
1395
1396 beginchar("@", 15u#, asc_height#, 0);
1397 "The at sign";
1398 italcorr 0.7asc_height#*slant-0.5u#;
1399 adjust_fit(0, 0);
1400 pickup lower_cal.nib;
1401 top y1 = 0.75h+eps; bot y3 = vround 0.25h-eps; y4 = 0.333[y3, y5];
1402 top y5 = h+o; y6 = 0.5[y5, y7]; bot y7 = -o; y8 = good.y 0.15h;
1403 y2 = 0.2[y3, y1];
1404 rt x4 = rt x8 = w-hround u+eps; lft x6 = hround u-eps;
1405 x5 = x7 = 0.5[x4, x6];
1406 x1 = x2 = good.x(0.7[x6, x4]); x3 = 0.333[x2, x4];
1407 draw z1..z2 down_to_right z3 right_to_up z4 up_to_left z5
1408 left_to_down z6 down_to_right z7...z8;
1409 %
1410 y9b = good.y(0.73[y7, y5]); y9d = good.y(0.27[y7, y5]);
1411 0.5[y9b, y9d] = y9a = y9c;
1412 y9a-y9e = 0.4*(y9b-y9e);
1413 x9a = x1; x9c = good.x 0.71[x4, x6];
1414 x9b = x9d = 0.5[x9a, x9c];
1415 draw z9a up_to_left z9b...z9c down_to_right
1416 z9d right_to_up z9a;
1417 labels(1, 2, 3, 4, 5, 6, 7, 8, 9a, 9b, 9c, 9d);
1418 math_fit(0, 0);
1419 endchar;
1420
1421 skewchar=oct"060"; skew#=.5u#;
1422
1423 ligtable cal_reverse_apostrophe: cal_reverse_apostrophe=: cal_opening_quotes;
1424 ligtable cal_apostrophe: cal_apostrophe=: cal_closing_quotes;
1425 ligtable "!": cal_reverse_apostrophe =: call_spanish_shriek;
1426 ligtable "?": cal_reverse_apostrophe =: call_spanish_query;
1427 ligtable "<": "<" =: call_laquo;
1428 ligtable ">": ">" =: call_raquo;
1429
1430 ligtable "-" : "-" =: oct"173";
1431 ligtable oct"173" : "-" =: oct"174";
1432
1433 ligtable "I": "T": "V": skewchar kern skew#;
1434 ligtable "D": "R": "U": "W": "Y": skewchar kern 3skew#;
1435 ligtable "E": "G": "O": "Q": skewchar kern 4skew#;
1436 ligtable "B": "C": "L": "S": "X": "Z": skewchar kern 5skew#;
1437 ligtable "J": skewchar kern 6skew#;
1438 ligtable "A": skewchar kern 7skew#;
1439
1440 ligtable "F": skewchar kern 4skew#,
1441 "a" kern -2u#, "e" kern -2u#, "o" kern -2u#, "r" kern -u#;
1442
1443 ligtable "H": skewchar kern 4skew#,
1444 "a" kern -u#, "e" kern -u#, "o" kern -u#;
1445
1446 ligtable "K": skewchar kern 2skew#,
1447 "a" kern -u#, "e" kern -u#, "o" kern -u#;
1448
1449 ligtable "M": skewchar kern 5skew#,
1450 "a" kern -u#, "e" kern -u#, "o" kern -u#, "r" kern -u#;
1451
1452 ligtable "N": skewchar kern 3skew#,
1453 "a" kern -u#, "e" kern -u#, "o" kern -u#;
1454
1455 ligtable "P": skewchar kern 3skew#,
1456 "a" kern -u#, "e" kern -u#, "o" kern -u#;
1457
1458 ligtable "f": "a" kern -0.5u#, "e" kern -0.5u#, "o" kern -0.5u#;
1459 ligtable "h": "m": "n": "t": "x":
1460 "a" kern -0.25u#, "e" kern -0.25u#, "o" kern -0.25u#,
1461 "d" kern -0.25u#, "g" kern -0.25u#, "q" kern -0.25u#;
1462 ligtable "o": "x" kern -0.25u#;
1463
1464 endinput.