Debian Codegraph @

texmf-dist/fonts/source/public/cmbright/ebrleast.mf

raw
1 % ebrleast.mf
2 % [= exrleast.mf, changed by Walter Schmidt, see (CMBR)]
3 %
4 % (c) Copyright 1995, 1996, 1997 J"org Knappen
5 % (c) Copyright 1990, 1992 Norbert Schwarz
6 %
7 % This file is part of the EC Bright fonts version 1.0
8 %
9 % Content:
10 %
11 % accented lowercase letters ("eastern part")
12 %
13 % oct"236", oct"240" .. oct"274"
14 %
15 % oct"236" d with bar
16 %
17 % oct"240" a with breve
18 % oct"241" a with ogonek
19 % oct"242" c with acute
20 % oct"243" c with hacek
21 % oct"244" d with comma
22 % oct"245" e with hacek
23 % oct"246" e with ogonek
24 % oct"247" g with breve
25 %
26 % oct"250" l with acute
27 % oct"251" l with komma
28 % oct"252" l with (polnisches L)
29 % oct"253" n with acute
30 % oct"254" n with hacek
31 % oct"255" the letter eng
32 % oct"256" o with ungarian umlauts
33 % oct"257" r with acute
34 %
35 % oct"260" r with hacek
36 % oct"261" s with acute
37 % oct"262" s with hacek
38 % oct"263" s with cedille
39 % oct"264" t with comma
40 % oct"265" t with cedille
41 % oct"266" u with hungarian umlauts
42 % oct"267" u with circ
43 %
44 % oct"270" y with umlauts
45 % oct"271" z with acute
46 % oct"272" z with hacek
47 % oct"273" z with dot
48 % oct"274" ij
49
50 version_check(1,0); % |version_check| was introduced in dc1.3
51
52 ecchar "The letter bar d";
53 beginchar(oct"236",10u#+serif_fit#,asc_height#,0);
54 italcorr asc_height#*slant-serif_fit#+.5stem#-2u#;
55 adjust_fit(0,serif_fit#);
56 pickup tiny.nib; pos1(stem',0); pos2(stem,0);
57 pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2;
58 rt x1r=hround(w-2.5u+.5stem'); top y1=h;
59 numeric edge; edge=lft x2l;
60 pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0);
61 pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360);
62 lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]);
63 y3=1/8[bar_height,x_height];
64 x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo if monospace: -hair fi;
65 lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height if monospace: -.5hair fi ;
66 x6l=x4l-.2u; bot y6r=-oo;
67 x7=x3; y7=min(y3,y6+y4-y3+.6vair);
68 (x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]);
69 (x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]);
70 filldraw stroke z3e{up}...pulled_arc.e(4,5)
71 & pulled_arc.e(5,6)...{up}z7e; % bowl
72 y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l));
73 pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi;
74 filldraw stroke z1e--z0'e--z0e--z2e; % stem
75 if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif
76 sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif
77 %
78 pos8(bar,90); pos9(bar,90);
79 x8=.5[x4,x5];
80 if serifs: x9=x2r+jut; else: x9=w; fi
81 if serifs: y8=y9=.5[y.a2-.5slab,y4+.5vair];
82 else: y8=y9=.5[x_height,asc_height-serif_drop]; fi
83 filldraw stroke z8e--z9e;
84 penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
85
86
87
88 %%%%%%
89
90
91 ecchar "The letter a with breve";
92 beginchar(oct"240",9u#,x_height#+acc_height#,0);
93 bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh);
94 italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#;
95 adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi);
96 pickup fine.nib; top y3r=x_height+vround 1.5oo;
97 if serifs: pos1(flare,180); pos2(hair,180);
98 pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u;
99 y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare);
100 bulb(3,2,1); % bulb
101 else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r;
102 pos3(1/8[vair,thin_join],90);
103 x3=.5w-.2u; top y1r=vround .82[bh,top y3r];
104 filldraw stroke term.e(3,1,left,.9,4); fi % terminal
105 pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height];
106 pos5(stem,0); x5=x4; y5=max(.55bh,2vair);
107 filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem
108 pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh;
109 pos7(hround(curve-2stem_corr),180);
110 lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r];
111 pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo;
112 pos9(thin_join,360); z9l=z5l;
113 (x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u);
114 {{interim superness:=more_super;
115 filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl
116 if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr);
117 if hair#+.5stem#>1.5u#: pickup tiny.nib;
118 pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
119 pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh];
120 pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0;
121 pos12(shaved_stem,0); x11=x12; top y12=slab+eps;
122 filldraw z5'l---z10l...z11l{right}--z11r
123 --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot
124 else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
125 pos10(shaved_stem,0); x10=x5'; y10=1/3bh;
126 pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo;
127 pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair);
128 pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12);
129 (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10);
130 filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook
131 else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr);
132 pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
133 pos10(shaved_stem,0); x10=x5'; bot y10=0;
134 filldraw stroke z5'e--z10e; fi % base of stem
135 % the accent
136 lowercase_breve(.5w,0,14,15,16);
137 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16); endchar;
138
139 ecchar "The letter a with ogonek"; % from pl_ml (plfonts)
140 beginchar(oct"241",9u#,x_height#,the_ogonek_depth#);
141 bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh);
142 italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#;
143 adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi);
144 pickup fine.nib; top y3r=h+vround 1.5oo;
145 if serifs: pos1(flare,180); pos2(hair,180);
146 pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u;
147 y1=min(bh+.5flare+2vair+2,.9[bh,h]-.5flare);
148 bulb(3,2,1); % bulb
149 else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r;
150 pos3(1/8[vair,thin_join],90);
151 x3=.5w-.2u; top y1r=vround .82[bh,top y3r];
152 filldraw stroke term.e(3,1,left,.9,4); fi % terminal
153 pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,h];
154 pos5(stem,0); x5=x4; y5=max(.55bh,2vair);
155 filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem
156 pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh;
157 pos7(hround(curve-2stem_corr),180);
158 lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r];
159 pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo;
160 pos9(thin_join,360); z9l=z5l;
161 (x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u);
162 {{interim superness:=more_super;
163 filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl
164 if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr);
165 if is_bold: pickup tiny.nib;
166 pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
167 pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh];
168 pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0;
169 pos12(shaved_stem,0); x11=x12; top y12=slab+eps;
170 filldraw z5'l---z10l...z11l{right}--z11r
171 --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot
172 else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
173 pos10(shaved_stem,0); x10=x5'; y10=1/3bh;
174 pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo;
175 pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair);
176 pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12);
177 (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10);
178 filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook
179 else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr);
180 pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
181 pos10(shaved_stem,0); x10=x5'; bot y10=0;
182 filldraw stroke z5'e--z10e; % base of stem
183 fi;
184 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13);
185 if serifs: path p.l; p.l=z5'l---z10l...z11l{right}; fi
186 def the_pen=
187 if known ogonek_pen: ogonek_pen elseif serifs: tiny else: fine fi
188 enddef;
189 ogonek_breadth=if serifs and is_bold: slab else: xvair fi;
190 ogonek_pos=if serifs: (point if is_bold: 1.75 of p.l) else: 1.85 of p.l)+
191 .5the_pen*up fi\\ else: (x10l,.5the_pen) fi;
192 put_ogonek(the_pen);
193 endchar;
194
195 ecchar "The letter c with acute"; % from pl_ml (plfonts)
196 beginchar_twice(oct"242",8u#,x_height#,0);
197 italcorr x_height#*slant-.2u#;
198 adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi);
199 pickup fine.nib; pos2(vair',90); pos4(vair',270);
200 x2=x4=.5(w+u); top y2r=vround(h+1.5oo); bot y4r=-oo;
201 pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5h;
202 if serifs: pos1(hair,0); pos0(flare,0);
203 y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare);
204 rt x1r=hround(w-.7u); bulb(2,1,0); % bulb
205 pos5(hair,0); rt x5r=hround(w-.5u);
206 y5=max(good.y(.5bar_height-.9),y4l+vair');
207 (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u);
208 filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
209 & pulled_super_arc.e(3,4)(.5superpull)
210 ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal
211 else: pos1(4/7[vair',flare],80);
212 rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r];
213 filldraw stroke term.e(2,1,right,.8,4); % upper terminal
214 pos5(.6[vair',flare],275); rt x5r=hround(w-.5u);
215 y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
216 forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e;
217 if angle direction 1 of p.e>75:
218 p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor
219 filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
220 & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal
221 penlabels(0,1,2,3,4,5);
222 hpos_corr=-.25u; put_accent;
223 repeat_once;
224 endchar;
225
226 ecchar "The letter c with hachek"; % from cshachel.mf (csfonts)
227 beginchar(oct"243",8u#,lc_hachek_height#,0);
228 italcorr x_height#*slant-.2u#;
229 adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi);
230 pickup fine.nib; pos2(vair',90); pos4(vair',270);
231 x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo;
232 pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height;
233 if serifs: pos1(hair,0); pos0(flare,0);
234 y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,x_height]-.5flare);
235 rt x1r=hround(w-.7u); bulb(2,1,0); % bulb
236 pos5(hair,0); rt x5r=hround(w-.5u);
237 y5=max(good.y(.5bar_height-.9),y4l+vair');
238 (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u);
239 filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
240 & pulled_super_arc.e(3,4)(.5superpull)
241 ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal
242 else: pos1(4/7[vair',flare],80);
243 rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r];
244 filldraw stroke term.e(2,1,right,.8,4); % upper terminal
245 pos5(.6[vair',flare],275); rt x5r=hround(w-.5u);
246 y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
247 forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e;
248 if angle direction 1 of p.e>75:
249 p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor
250 filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
251 & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal
252 penlabels(0,1,2,3,4,5);
253 lc_hachek_accent(if serifs: 0.5[0.5[x3l,x3],x0r] else: x2 fi);
254 endchar; %% changed from ..[x3r,x3]..
255
256
257 ecchar "The letter d with hachek"; % from csotherl.mf (csfonts)
258 beginchar(oct"244",10u#+serif_fit#,lc_acute_height#,0);
259 italcorr lc_acute_height#*slant-serif_fit#+.5stem#-2u#;
260 adjust_fit(0, if monospace: 2u# else: dot_size#+0.25u# fi);
261 pickup tiny.nib; pos1(stem',0); pos2(stem,0);
262 pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2;
263 rt x1r=hround(w-2.5u+.5stem'); top y1=h;
264 numeric edge; edge=lft x2l;
265 pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0);
266 pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360);
267 lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]);
268 y3=1/8[bar_height,x_height];
269 x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo;
270 lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height;
271 x6l=x4l-.2u; bot y6r=-oo;
272 x7=x3; y7=min(y3,y6+y4-y3+.6vair);
273 (x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]);
274 (x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]);
275 filldraw stroke z3e{up}...pulled_arc.e(4,5)
276 & pulled_arc.e(5,6)...{up}z7e; % bowl
277 y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l));
278 pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi;
279 filldraw stroke z1e--z0'e--z0e--z2e; % stem
280 if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif
281 sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif
282 penlabels(0,1,2,3,4,5,6,7);
283 dtl_hachek(x0r+u+.5pdot_diam)(y1);
284 endchar;
285
286 ecchar "The letter e with hachek"; % from cshachel.mf (csfonts)
287 beginchar(oct"245",7.25u#+max(.75u#,.5curve#),lc_hachek_height#,0);
288 italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0);
289 adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi);
290 numeric left_curve,right_curve;
291 left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi;
292 if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi
293 if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi
294 pickup tiny.nib; pos1(right_curve,0);
295 pos2(vair,90); pos3(left_curve,180);
296 y1=good.y bar_height; top y2r=x_height+vround 1.5oo; y0l=bot y1;
297 rt x1r=hround min(w-.5u,w-u+.5right_curve);
298 lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u;
299 {{interim superness:=more_super;
300 filldraw stroke super_arc.e(1,2)}}; % right bowl
301 y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u;
302 if serifs: pos4(vair',270); pos5(hair,360);
303 y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r;
304 (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u);
305 filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4)
306 ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal
307 else: pos4(vair,270);
308 filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc
309 pickup fine.nib; pos4'(vair,270); z4=z4';
310 pos5(.5[vair,flare],275); rt x5r=hround(w-.6u);
311 y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
312 filldraw stroke term.e(4',5,right,1,4); fi % terminal
313 path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4);
314 y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1;
315 forsuffixes $=l,r:
316 x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor
317 fill stroke z0e--z1'e; % crossbar
318 penlabels(0,1,2,3,4,5);
319 lc_hachek_accent(x2);
320 endchar;
321
322
323 ecchar "The letter e with ogonek"; % from pl_ml (plfonts)
324 beginchar(oct"246",7.25u#+max(.75u#,.5curve#),x_height#,the_ogonek_depth#);
325 italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0);
326 adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi);
327 numeric left_curve,right_curve;
328 left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi;
329 if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi
330 if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi
331 pickup tiny.nib; pos1(right_curve,0);
332 pos2(vair,90); pos3(left_curve,180);
333 y1=good.y bar_height; top y2r=h+vround 1.5oo; y0l=bot y1;
334 rt x1r=hround min(w-.5u,w-u+.5right_curve);
335 lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u;
336 {{interim superness:=more_super;
337 filldraw stroke super_arc.e(1,2)}}; % right bowl
338 y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u;
339 if serifs: pos4(vair',270); pos5(hair,360);
340 y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r;
341 (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u);
342 filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4)
343 ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal
344 else: pos4(vair,270);
345 filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc
346 pickup fine.nib; pos4'(vair,270); z4=z4';
347 pos5(.5[vair,flare],275); rt x5r=hround(w-.6u);
348 y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
349 filldraw stroke term.e(4',5,right,1,4); fi % terminal
350 path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4);
351 y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1;
352 forsuffixes $=l,r:
353 x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor
354 fill stroke z0e--z1'e; % crossbar
355 penlabels(0,1,2,3,4,5);
356 path p.r;
357 p.r=if serifs: pulled_arc.r(3,4)...{x5-x4,5(y5-y4)}z5r
358 else: term.r(4',5,right,1,4) fi;
359 def the_pen=
360 if known ogonek_pen: ogonek_pen elseif serifs: tiny else: fine fi
361 enddef;
362 numeric tt; % the time...
363 tt=if serifs: if hefty: 2.6 else: 2.5 fi else: % sansserif
364 if is_bold: .6 else: .8 fi\\ fi;
365 join_angle=angle((direction tt of p.r) rotated 180);
366 ogonek_breadth=if serifs and is_bold: slab else: xvair fi;
367 ogonek_pos=(point tt of p.r)+.5(the_pen-if serifs: tiny else: fine fi)*
368 unitvector((direction tt of p.r) rotated 90);
369 put_ogonek(the_pen);
370 endchar;
371
372 iff not variant_g: ecchar "The letter g with breve";
373 beginchar(oct"247",9u#,x_height#+acc_height#,desc_depth#);
374 italcorr x_height#*slant+.25u#;
375 adjust_fit(0,0);
376 numeric light_vair,light_curve,loop_top,loop_side;
377 light_vair=Vround(.5[thin_join,vair]+vair_corr);
378 light_curve=max(fine.breadth,hround(curve-3stem_corr));
379 loop_top=Vround .77[vair,fudged.stem];
380 loop_side=hround .64[vair,fudged.stem];
381 pickup fine.nib; pos1(light_vair,90);
382 pos2(light_curve,180); pos3(light_vair,270);
383 pos4(light_curve,360); pos11(loop_top,90);
384 y11r=good.y(y11r+.15bar_height-y11); x1=x3=.5[x2,x4]; y2=y4=.5[y1,y3];
385 lft x2r=hround(1.75u-.5light_curve); rt x4r=hround(w-2.75u+.5light_curve);
386 top y1r=x_height+oo; y3r=good.y(y3r+.27[top y11r,bot y1l]-y3);
387 filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3); % left half of bowl
388 filldraw stroke pulled_arc.e(3,4) & pulled_arc.e(4,1); % right half of bowl
389 x0=superness[x1r,x4r]; y0=superness[y4r,y1r]; % NE point on the super bowl
390 x8'=superness[x3r,x2r]; y8'=superness[y2r,y3r]; % SW point on the super bowl
391 x8''=superness[x3,x2]; y8''=superness[y2,y3];
392 pos0(thin_join,angle(z0-z8')+90);
393 pos8(thin_join,angle(z0-z8')-90); z8=.618[z8',z8''];
394 if serifs: pos5(vair,90);
395 pos6(hair,0); pos7(.5[hair,flare],0); x5=.75[x0,x6]; top y5r=x_height+o;
396 rt x6r=hround(w-.25u); y6+(.5[hair,flare])/2=.95[bar_height,x_height]+oo;
397 filldraw stroke z0e..{right}z5e; bulb(5,6,7); % ear
398 else: pos5(vair',100); top y5r=x_height+oo;
399 rt x5l=hround(w-.25u); y5l:=good.y y5l;
400 filldraw z0l{z5-z0}..z5l--z5r{left}..{curl 1}z0r--cycle; fi % ear
401 pos10(loop_top,90); x10=x8+.75u; y10=y11;
402 pos12(loop_side,0); pos13(light_vair,-90);
403 pos14(loop_side,-180); pos10'(.5[thin_join,vair],-270);
404 rt x12r=hround max(w-1.25u+.5loop_side,w-.5u); y12=y14=.5[y11,y13];
405 x11=x13=max(.5w,x10+eps); bot y13r=-d-oo-1; x14=w-x12; z10'l=z10l;
406 filldraw stroke z8e{z8-z0}..z10e---z11e; % link
407 filldraw stroke {{interim superness:=hein_super; super_arc.e(11,12)}}
408 & super_arc.e(12,13) & super_arc.e(13,14) & super_arc.e(14,10'); % loop
409 % the accent
410 lowercase_breve(.5w,0,15,16,17);
411 penlabels(0,1,2,3,4,5,6,7,8,10,11,12,13,14); labels(8',8''); endchar;
412
413 iff variant_g: ecchar "Variant letter g with breve";
414 beginchar(oct"247",10u#+serif_fit#,
415 max(x_height#+acc_height#,min(asc_height#,2x_height#)),desc_depth#);
416 italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi;
417 adjust_fit(0,serif_fit# if serifs: -.5u# fi);
418 pickup tiny.nib; pos1(stem',0); pos2(stem,0);
419 pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2;
420 rt x1r=hround(w-2.5u+.5stem');
421 numeric edge; edge=lft x2l;
422 path edge_path; edge_path=(edge,x_height)--(edge,0);
423 pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0);
424 pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360);
425 lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),2/3[lft x2,edge]); y3=bar_height;
426 x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo;
427 lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height;
428 x6l=x4l-.2u; bot y6r=vround 1/3vair;
429 lft x7l=edge; y7=min(y3,y6+y4-y3+.6vair);
430 (x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]);
431 (x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]);
432 filldraw stroke z3e{up}...{left}z4e&super_arc.e(4,5)
433 &super_arc.e(5,6)&z6e{right}...{up}z7e; % bowl
434 y1=ypart(edge_path intersectionpoint(z3l{up}...{left}z4l));
435 y0=ypart(edge_path intersectionpoint(z7l{down}...{left}z6l));
436 pickup tiny.nib; bot y2=if serifs: -.25d else: 0 fi;
437 filldraw stroke z1e--z0'e--z0e--z2e; % stem
438 pickup crisp.nib;
439 pos8(hround(hair-stem_corr),0); pos7'(stem',0);
440 z7'=z1; x8r=x7'r; top y8=x_height+oo;
441 filldraw stroke z7'e--z8e; % point
442 if serifs: pickup tiny.nib;
443 pos9(vair,-90); x9=.5[x2,x10]; bot y9r=-d-o-1;
444 pos10(hair,-180); lft x10r=hround u; y10=-.75d+.5flare;
445 pos11(flare,-180); z11r=z10r;
446 bulb(9,10,11); filldraw stroke super_arc.e(2,9); % tail
447 else: pickup fine.nib; pos2'(stem,0); z2'=z2;
448 z2''r=z2'r; z2''=z2'; z2''l=(x2'l,0);
449 pos9(vair,-90); x9=4.5u; bot y9r=-d-o-1;
450 pos10(.5[vair,flare],-90); lft x10=hround 1.25u;
451 y10r=good.y -5/6d; y10l:=good.y y10l;
452 filldraw stroke z2'e..z2''e&super_arc.e(2'',9)
453 & term.e(9,10,left,.9,4); fi % tail
454 % the accent
455 lowercase_breve(.5w,0,12,13,14);
456 penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14); endchar;
457
458 ecchar "The letter l with acute"; % jk
459 beginchar_twice(oct"250",5u#,asc_height#,0);
460 l_width#:=5u#+2serif_fit#;
461 italcorr asc_height#*slant-serif_fit#+.5stem#-2u#;
462 adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
463 pickup tiny.nib; pos1(stem',0); pos2(stem',0);
464 if odd(w-stem'): change_width; fi
465 lft x1l=hround(.5w-.5stem'); x1=x2; top y1=asc_height; bot y2=0;
466 filldraw stroke z1e--z2e; % stem
467 if serifs or monospace:
468 sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif
469 fi
470 if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif
471 put_accent;
472 repeat_once;
473 penlabels(1,2); endchar;
474
475 ecchar "The letter l with hachek"; % from csotherl.mf (csfonts)
476 beginchar(oct"251",5u#,lc_acute_height#,0); l_width#:=5u#+2serif_fit#;
477 italcorr lc_acute_height#*slant-serif_fit#+.5stem#-2u#;
478 adjust_fit(serif_fit#+stem_shift#,
479 if monospace: 0 else: dot_size#+0.25u# fi);
480 pickup tiny.nib; pos1(stem',0); pos2(stem',0);
481 if odd(w-stem'): change_width; fi
482 lft x1l=hround(.5w-.5stem'); x1=x2; top y1=asc_height; bot y2=0;
483 filldraw stroke z1e--z2e; % stem
484 if serifs or monospace:
485 sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif
486 fi
487 if serifs:
488 dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif
489 penlabels(1,2);
490 dtl_hachek(x1r+u+.5pdot_diam)(y1);
491 endchar;
492
493 ecchar "The letter crossed l"; % from pl_ml (plfonts)
494 beginchar_twice(oct"252",5u#,asc_height#,0);
495 italcorr asc_height#*slant-serif_fit#+.5stem#-2u#;
496 charwd_:=charwd;
497 adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
498 pickup tiny.nib; pos1(stem',0); pos2(stem',0);
499 if odd(w-stem'): change_width; fi
500 lft x1l=hround(.5w-.5stem'); x1=x2; top y1=h; bot y2=0;
501 filldraw stroke z1e--z2e; % stem
502 if serifs or monospace:
503 sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif
504 fi
505 if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif
506 penlabels(1,2);
507 numeric unbalance;
508 unbalance=if monospace: 1 else: 1.1 fi;
509 if not monospace:
510 numeric cross_fit#;
511 cross_fit#=serif_fit#+if not serifs: if is_bold: 1 else: .75 fi\\ else:
512 .5 fi\\ u#;
513 charwd:=charwd_;
514 adjust_fit(cross_fit#+stem_shift#,unbalance*cross_fit#-stem_shift#);
515 fi
516 numeric l_jut;
517 % some funny fonts have an extremally small |jut|:
518 l_jut=.5stem+if serifs: max(limit_dist,if hefty: .8 fi\\ jut) else: 1.7u fi;
519 put_cross(l_jut,unbalance*l_jut);
520 repeat_once;
521 endchar;
522
523 ecchar "The letter n with acute"; % from pl_ml (plfonts)
524 beginchar_twice(oct"253",10u#,x_height#,0);
525 italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#;
526 adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
527 pickup tiny.nib; pos1(stem,0); pos2(stem,0);
528 numeric shaved_stem; shaved_stem=hround(stem-2stem_corr);
529 pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0);
530 lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1;
531 top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2';
532 filldraw stroke z1'e--z2'e; % left stem
533 h_stroke(2,a,3,4); % arch and right stem
534 if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif
535 numeric inner_jut; pickup tiny.nib;
536 if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut;
537 else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi
538 dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif
539 dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif
540 hpos_corr=-.5u; put_accent;
541 repeat_once;
542 penlabels(1,2,3,4); endchar;
543
544 ecchar "The letter n with hachek"; % from cshachel.mf (csfonts)
545 beginchar(oct"254",10u#,lc_hachek_height#,0);
546 italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#;
547 adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
548 pickup tiny.nib; pos1(stem,0); pos2(stem,0);
549 numeric shaved_stem; shaved_stem=hround(stem-2stem_corr);
550 pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0);
551 lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1;
552 top y1=x_height+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2';
553 filldraw stroke z1'e--z2'e; % left stem
554 h_stroke(2,a,3,4); % arch and right stem
555 if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif
556 numeric inner_jut; pickup tiny.nib;
557 if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut;
558 else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi
559 dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif
560 dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif
561 penlabels(1,2,3,4);
562 lc_hachek_accent(1/2[x1r,x.a1]);
563 endchar;
564
565
566 ecchar "The letter eng";
567 beginchar(oct"255",10u#,x_height#,desc_depth#);
568 italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#;
569 adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
570 pickup tiny.nib; pos1(stem,0); pos2(stem,0);
571 numeric shaved_stem; shaved_stem=hround(stem-2stem_corr);
572 pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0);
573 lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1;
574 top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2';
575 filldraw stroke z1'e--z2'e; % left stem
576 h_stroke(2,a,3,4); % arch and right stem
577 if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif
578 numeric inner_jut; pickup tiny.nib;
579 if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut;
580 else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi
581 dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif
582 % j stroke
583 pickup tiny.nib; pos7(vair,-90); pos8(hair,-180); pos9(flare,-180);
584 x7=.5[x4,x8r]; bot y7r=-d-oo; y8-.5flare=-.88d;
585 if monospace:
586 lft x8r=hround(x3r-3u+0.5stem);
587 else:
588 z8r=z9r; rt x9l=hround(x3r-3u+0.5stem); % floor .75u
589 fi;
590 (x,y7r)=whatever[z7l,z4l]; x7r:=max(x,.5[x8r,x7]);
591 filldraw stroke z4e{down}...z7e{left}; bulb(7,8,9); % arc and bulb
592 else: pickup fine.nib; pos4'(stem',0); z4'=z4;
593 pos8(.2[vair,stem'],-90); pos9(vair,-90);
594 lft x9r=hround -.75u+x3r-3u-0.5stem;
595 bot y9r=vround 5/6(-d-oo);
596 (x,y9l)=whatever[z9r,z3];
597 x9l:=x;
598 z7r=z4'r;
599 (x4'l,y7l)=whatever[z9l,z7r]; x7l=x4'l; y7=y7r;
600 x8r=.5[x9r,x7r]; x8l:=.5[x9l,x7l]; bot y8r=-d-oo;
601 filldraw stroke z4'e..{down}z7e
602 & super_arc.e(7,8)
603 & z8e{left}..z9e;
604 fi % arc and terminal
605 penlabels(1,2,3,4,5,6,7,8,9); endchar;
606
607 ecchar "The letter o with double acute";
608 beginchar_twice(oct"256",9u#,x_height#+acc_height#,0);
609 italcorr .7x_height#*slant;
610 adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi);
611 penpos1(vair,90); penpos3(vair',-90);
612 penpos2(curve,180); penpos4(curve,0);
613 x2r=hround max(.5u,1.25u-.5curve);
614 x4r=w-x2r; x1=x3=.5w; y1r=x_height+vround 1.5oo; y3r=-oo;
615 y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height;
616 penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3)
617 & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl
618 if monospace: hpos_corr=-2u; put_accent; hpos_corr=2u; put_accent;
619 else: hpos_corr=-1.5u; put_accent; hpos_corr=1.5u; put_accent; fi
620 repeat_once;
621 penlabels(1,2,3,4,5,6,7,8); endchar;
622
623
624 ecchar "The letter r with acute";
625 numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#];
626 beginchar_twice(oct"257",if serifs:max(7u#,5.5u#+r_flare#) else:6.5u# fi,
627 x_height#+acc_height#,0);
628 italcorr x_height#*slant if not serifs: +.25u# fi;
629 adjust_fit(serif_fit#,0);
630 define_whole_blacker_pixels(r_flare); % must come after |beginchar_twice|
631 pickup fine.nib; top y4r=x_height+oo;
632 if serifs: pos4(vair,90); pos5(hair,0);
633 x4=w-max(1.75u,.25u+r_flare);
634 rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,x_height]+oo;
635 pos6(r_flare,0); bulb(4,5,6); % bulb
636 else: pos4(r_flare,90); rt x4=hround(w-.25u); fi
637 pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height;
638 filldraw stroke z3e{up}...{right}z4e; % arc
639 pickup tiny.nib; pos0(stem',0); pos2(stem',0);
640 pos1(hround(stem-3stem_corr),0); top y1=x_height+min(oo,serif_drop);
641 pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l;
642 lft x1l=hround(2.5u-.5stem'); bot y2=0;
643 filldraw stroke z1e--z0'e--z0e--z2e; % stem
644 if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif
645 dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi % lower serif
646 % the accent
647 hpos_corr=-.25u; put_accent;
648 repeat_once;
649 penlabels(1,2,3,4,5,6,7,8); endchar;
650
651
652 ecchar "The letter r with hachek"; % from cshachel.mf (csfonts)
653 numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#];
654 define_whole_blacker_pixels(r_flare);
655 beginchar(oct"260",if serifs:max(7u#,5.5u#+r_flare#) else:6.5u# fi,
656 lc_hachek_height#,0);
657 italcorr x_height#*slant if not serifs: +.25u# fi;
658 adjust_fit(serif_fit#,0);
659 pickup fine.nib; top y4r=x_height+oo;
660 if serifs: pos4(vair,90); pos5(hair,0);
661 x4=w-max(1.75u,.25u+r_flare);
662 rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,x_height]+oo;
663 pos6(r_flare,0); bulb(4,5,6); % bulb
664 else: pos4(r_flare,90); rt x4=hround(w-.25u); fi
665 pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height;
666 filldraw stroke z3e{up}...{right}z4e; % arc
667 pickup tiny.nib; pos0(stem',0); pos2(stem',0);
668 pos1(hround(stem-3stem_corr),0); top y1=x_height+min(oo,serif_drop);
669 pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l;
670 lft x1l=hround(2.5u-.5stem'); bot y2=0;
671 filldraw stroke z1e--z0'e--z0e--z2e; % stem
672 if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif
673 dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi % lower serif
674 penlabels(1,2,3,4,5,6);
675 lc_hachek_accent(0.5[x1,x4]);
676 endchar;
677
678 ecchar "The letter s with acute"; % from pl_ml (plfonts)
679 beginchar_twice(oct"261",7.1u#,x_height#,0);
680 italcorr x_height#*slant-if serifs:.55u# else:.3u# fi;
681 adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi);
682 numeric theta; theta=90-angle(40u,h); slope:=-h/40u; % angle at middle
683 numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi;
684 numeric ess'; ess'=max(fine.breadth,ess);
685 pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100);
686 pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w;
687 top y2l=h+vround 1.5oo; bot y7r=-oo;
688 y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess');
689 lft x3l=hround .6u; rt x6r=hround(w-.6u);
690 x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine;
691 ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r;
692 ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r;
693 interim superness:=more_super;
694 filldraw stroke super_arc.e(2,3) & z3e{down}
695 ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke
696 if serifs: pos1(hair,180); pos8(hair,180);
697 rt x1l=hround(w-1.05u); lft x8r=hround .6u;
698 bot y1=min(bot y2r,vround 1/5[top y5r,h]);
699 top y8=max(top y7l,vround 5/6 bot y4l);
700 filldraw stroke z1e{up}....{left}z2e; % upper arc
701 filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e; % lower arc
702 path upper_arc, lower_arc;
703 upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8;
704 pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0);
705 x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r;
706 x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8;
707 numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1'));
708 filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle; % upper barb
709 t:=xpart(lower_arc intersectiontimes(z9r--z8'));
710 filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle; % lower barb
711 else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100);
712 x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u;
713 top y1l=vround(.93h+1.5oo); bot y8r=vround .1h-oo;
714 filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal
715 filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal
716 penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10);
717 hpos_corr=-.5u; put_accent;
718 repeat_once;
719 endchar;
720
721 ecchar "The letter s with hachek"; % from cshachel.mf (csfonts)
722 beginchar(oct"262",7.1u#,lc_hachek_height#,0);
723 italcorr x_height#*slant-if serifs:.55u# else:.3u# fi;
724 adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi);
725 numeric theta; theta=90-angle(40u,h); slope:=-x_height/40u; % angle at middle
726 numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi;
727 numeric ess'; ess'=max(fine.breadth,ess);
728 pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100);
729 pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w;
730 top y2l=x_height+vround 1.5oo; bot y7r=-oo;
731 y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess');
732 lft x3l=hround .6u; rt x6r=hround(w-.6u);
733 x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine;
734 ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r;
735 ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r;
736 interim superness:=more_super;
737 filldraw stroke super_arc.e(2,3) & z3e{down}
738 ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke
739 if serifs: pos1(hair,180); pos8(hair,180);
740 rt x1l=hround(w-1.05u); lft x8r=hround .6u;
741 bot y1=min(bot y2r,vround 1/5[top y5r,x_height]);
742 top y8=max(top y7l,vround 5/6 bot y4l);
743 filldraw stroke z1e{up}....{left}z2e; % upper arc
744 filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e; % lower arc
745 path upper_arc, lower_arc;
746 upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8;
747 pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0);
748 x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r;
749 x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8;
750 numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1'));
751 filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle; % upper barb
752 t:=xpart(lower_arc intersectiontimes(z9r--z8'));
753 filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle; % lower barb
754 else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100);
755 x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u;
756 top y1l=vround(.93x_height+1.5oo); bot y8r=vround .1x_height-oo;
757 filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal
758 filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal
759 penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10);
760 lc_hachek_accent(0.5[x3l,x1l]);
761 endchar;
762
763 ecchar "The letter cedilla s";
764 beginchar(oct"263",7.1u#,x_height#,0.875desc_depth#);
765 italcorr x_height#*slant-if serifs:.55u# else:.3u# fi;
766 adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi);
767 numeric theta; theta=90-angle(40u,h); slope:=-x_height/40u; % angle at middle
768 numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi;
769 numeric ess'; ess'=max(fine.breadth,ess);
770 pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100);
771 pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w;
772 top y2l=x_height+vround 1.5oo; bot y7r=-oo;
773 y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess');
774 lft x3l=hround .6u; rt x6r=hround(w-.6u);
775 x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine;
776 ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r;
777 ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r;
778 interim superness:=more_super;
779 filldraw stroke super_arc.e(2,3) & z3e{down}
780 ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke
781 if serifs: pos1(hair,180); pos8(hair,180);
782 rt x1l=hround(w-1.05u); lft x8r=hround .6u;
783 bot y1=min(bot y2r,vround 1/5[top y5r,x_height]);
784 top y8=max(top y7l,vround 5/6 bot y4l);
785 filldraw stroke z1e{up}....{left}z2e; % upper arc
786 filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e; % lower arc
787 path upper_arc, lower_arc;
788 upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8;
789 pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0);
790 x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r;
791 x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8;
792 numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1'));
793 filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle; % upper barb
794 t:=xpart(lower_arc intersectiontimes(z9r--z8'));
795 filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle; % lower barb
796 else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100);
797 x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u;
798 top y1l=vround(.93x_height+1.5oo); bot y8r=vround .1x_height-oo;
799 filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal
800 filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal
801 % the accent
802 lowercase_cedilla(x7,0,11,12,13,14,15);
803 penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); endchar;
804
805 ecchar "The letter t with hachek"; % from csotherl.mf (csfonts)
806 %beginchar(oct"264",6u#+max(u#,.5stem#),
807 % min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),0);
808 beginchar(oct"264",6u#+max(u#,.5stem#),lc_acute_height#,0);
809 numeric hh';
810 hh' = min(asc_height,if hefty:9/7 else:10/7 fi\\ x_height);
811 italcorr lc_acute_height#*slant if serifs: -.9u# else: -.4u# fi;
812 adjust_fit(0,if serifs: 0 else: -.5u# fi);
813 numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi);
814 pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180);
815 lft x2r=lft x3r=hround(2.5u-.5shaved_stem);
816 y2=y8; y3=max(.5bar_height,2vair);
817 pickup crisp.nib; pos8(bar,90);
818 rt x8=hround(w-1.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l;
819 if hefty: pos7(bar,90);
820 filldraw stroke z7e--z8e; % crossbar
821 pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0);
822 rt x1r=fine.rt x2l; top y1=hh';
823 penpos2'(x1r-x1l,0); x2'=x1; y2'=y2;
824 filldraw stroke z1e--z2'e; % upper terminal
825 else: pos7(vair,90); pos1(hair,0);
826 rt x1r=fine.rt x2l; top y1=hh';
827 filldraw z1l{down}...{left}z7r--z7l--z8l
828 --z8r--(x1r,y8r)--z1r--cycle; fi % upper terminal and crossbar
829 pickup fine.nib; interim superness:=more_super;
830 pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u);
831 if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l];
832 (x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]);
833 filldraw stroke z2e..super_arc.e(3,4)...{up}z5e; % stem and hook
834 pickup crisp.nib; pos6(hair,0); pos5'(hair,0);
835 x6=x5=x5'; top y6=max(vround .75bar_height,top y5); y5=y5';
836 filldraw stroke z5'e--z6e; % terminal
837 else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height];
838 x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair;
839 filldraw stroke z2e..super_arc.e(3,4); % stem and hook
840 path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal
841 if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0):
842 filldraw stroke z4e{right}...{up}z5e;
843 else: filldraw p; fi fi;
844 penlabels(1,2,3,4,5,6,7,8);
845 dtl_hachek(x8)(y1+.5pdot_diam);
846 endchar;
847
848 ecchar "The letter cedilla t";
849 beginchar(oct"265",6u#+max(u#,.5stem#),
850 min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),0.875desc_depth#);
851 italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi;
852 adjust_fit(0,if serifs: 0 else: -.5u# fi);
853 numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi);
854 pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180);
855 lft x2r=lft x3r=hround(2.5u-.5shaved_stem);
856 y2=y8; y3=max(.5bar_height,2vair);
857 pickup crisp.nib; pos8(bar,90);
858 rt x8=hround(w-1.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l;
859 if hefty: pos7(bar,90);
860 filldraw stroke z7e--z8e; % crossbar
861 pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0);
862 rt x1r=fine.rt x2l; top y1=h;
863 penpos2'(x1r-x1l,0); x2'=x1; y2'=y2;
864 filldraw stroke z1e--z2'e; % upper terminal
865 else: pos7(vair,90); pos1(hair,0);
866 rt x1r=fine.rt x2l; top y1=h;
867 filldraw z1l{down}...{left}z7r--z7l--z8l
868 --z8r--(x1r,y8r)--z1r--cycle; fi % upper terminal and crossbar
869 pickup fine.nib; interim superness:=more_super;
870 pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u);
871 if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l];
872 (x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]);
873 filldraw stroke z2e..super_arc.e(3,4)...{up}z5e; % stem and hook
874 pickup crisp.nib; pos6(hair,0); pos5'(hair,0);
875 x6=x5=x5'; top y6=max(vround .75bar_height,top y5); y5=y5';
876 filldraw stroke z5'e--z6e; % terminal
877 else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height];
878 x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair;
879 filldraw stroke z2e..super_arc.e(3,4); % stem and hook
880 path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal
881 if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0):
882 filldraw stroke z4e{right}...{up}z5e;
883 else: filldraw p; fi fi;
884 % the accent
885 lowercase_cedilla(x4,0,9,10,11,12,13);
886 penlabels(1,2,3,4,5,6,7,8,9,10,1,12,13); endchar;
887
888 ecchar "The letter u with double acute";
889 beginchar_twice(oct"266",10u#,x_height#+acc_height#,0);
890 italcorr x_height#*slant-serif_fit#+.5stem#-2u#;
891 adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
892 numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi;
893 if light_vair<fine.breadth: light_vair:=fine.breadth; fi
894 pickup tiny.nib; pos1(stem,0); pos2(stem,0);
895 pos3(stem,0); pos4(stem',0);
896 lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r;
897 if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop);
898 else: top y1=x_height; bot y4=0; fi
899 pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0';
900 penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height;
901 penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0);
902 y6=y0=2/3bar_height;
903 filldraw stroke z1e--z2e; % left stem
904 filldraw stroke z3e..z0e--z0'e..z4e; % right stem
905 pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l;
906 (x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]);
907 filldraw stroke {{interim superness:=hein_super;
908 pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc
909 if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif
910 sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif
911 sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif
912 if monospace: hpos_corr=-2u; put_accent; hpos_corr=2u; put_accent;
913 else: hpos_corr=-1.5u; put_accent; hpos_corr=1.5u; put_accent; fi
914 repeat_once;
915 penlabels(1,2,3,4,5,6,7,8,9,10); endchar;
916
917
918 ecchar "The letter circle u";
919 beginchar(oct"267",10u#,x_height#+acc_height#,0);
920 italcorr x_height#*slant-serif_fit#+.5stem#-2u#;
921 adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
922 numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi;
923 if light_vair<fine.breadth: light_vair:=fine.breadth; fi
924 pickup tiny.nib; pos1(stem,0); pos2(stem,0);
925 pos3(stem,0); pos4(stem',0);
926 lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r;
927 if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop);
928 else: top y1=x_height; bot y4=0; fi
929 pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0';
930 penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height;
931 penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0);
932 y6=y0=2/3bar_height;
933 filldraw stroke z1e--z2e; % left stem
934 filldraw stroke z3e..z0e--z0'e..z4e; % right stem
935 pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l;
936 (x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]);
937 filldraw stroke {{interim superness:=hein_super;
938 pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc
939 if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif
940 sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif
941 sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif
942 % the accent
943 lowercase_circle(.5w,(1/3[x_height,h]+apex_o),7,8,9,10);
944 penlabels(1,2,3,4,5,6,7,8,9,10); endchar;
945
946
947 ecchar "The letter y with umlaut";
948 beginchar(oct"270",if serifs:9.5u# else:9u# fi,lc_trema_height#,desc_depth#);
949 italcorr x_height#*slant+.25u#;
950 adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#);
951 numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut;
952 left_stem=fudged.stem-stem_corr;
953 right_stem=fudged.hair if hefty:-2stem_corr fi;
954 bot_stem=fudged.hair if hefty:-8stem_corr fi;
955 bot_vair=Vround(if serifs: vair else:.5[vair,bot_stem] fi);
956 outer_jut=.75jut;
957 x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4r=x_height; y2=y3=0; x2l=x3l;
958 numeric alpha,alpha[]; x9=3u; y9=bot_vair-d-oo;
959 alpha1=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-apex_corr);
960 alpha2=diag_ratio(1,bot_stem,y1-y9,x4r-x9);
961 if alpha1<alpha2: x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1;
962 else: alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi
963 penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0);
964 alpha3=(y1++(x2l-x1l))/y1;
965 penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0);
966 z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r);
967 if y0>notch_cut: y0:=notch_cut;
968 fill z0+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r)
969 --z3r--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1}
970 ...{down}z0+.5left--cycle; % left and right diagonals
971 else: fill z0--diag_end(0,4l,1,1,4r,3r)--z3r--z2l
972 --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
973 penpos5(alpha*bot_stem,0); z5r=whatever[z3r,z4r]; y5-.5vair=-.5d;
974 if serifs: numeric light_bulb; light_bulb=hround 7/8[hair,flare]; clearpen;
975 penpos6(vair,-90); penpos7(hair,-180); penpos8(light_bulb,-180);
976 x6=2u; y6r=-d-oo; y8-.5light_bulb=-.85d; x8r=hround .35u;
977 fill stroke z3e---z5e...{left}z6e; bulb(6,7,8); % arc and bulb
978 numeric inner_jut; pickup tiny.nib;
979 prime_points_inside(1,2); prime_points_inside(4,3);
980 if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut;
981 else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
982 dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif
983 dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif
984 else: penpos6(bot_vair,-90); x6=2.5u; y6r=-d-oo;
985 fill stroke z3e---z5e...{left}z6e; % arc
986 pickup fine.nib; pos6'(bot_vair,-90); z6'=z6;
987 pos7(2/3[bot_vair,flare],-85);
988 lft x7l=hround u; bot y7r=vround-.96d-oo; y7l:=good.y y7l;
989 filldraw stroke term.e(6',7,left,1,4); fi % arc and terminal
990 % the accent
991 lowercase_umlaut(0,0,10,11,12,13);
992 penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13); endchar;
993
994 ecchar "The letter z with acute"; % from pl_ml (plfonts)
995 beginchar_twice(oct"271",8u#,x_height#,0);
996 italcorr x_height#*slant-.5serif_fit#-.3u#;
997 adjust_fit(0,.5serif_fit#);
998 numeric arm_thickness[\\],z_stem;
999 if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair;
1000 z_stem=.6[vair,stem];
1001 else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi
1002 pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u;
1003 top y1=h; y2=min(y1,h-2/3arm_thickness1);
1004 bot y4=0; y3=max(y4,2/3arm_thickness2);
1005 numeric alpha;
1006 alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3));
1007 penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0);
1008 penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0);
1009 pair delta; delta=penoffset z3-z2 of currentpen;
1010 fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l
1011 ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r
1012 ---cycle; % diagonal
1013 pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180);
1014 top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps;
1015 arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak
1016 pos7(arm_thickness2,-90); pos8(hair,0);
1017 bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps;
1018 arm(7,8,b,beak_darkness,.6beak_jut); % lower arm and beak
1019 penlabels(1,2,3,4,5,6,7,8);
1020 hpos_corr=-.5u; put_accent;
1021 repeat_once;
1022 endchar;
1023
1024 ecchar "The z with hachek"; % from cshachel.mf (csfonts)
1025 beginchar(oct"272",8u#,lc_hachek_height#,0);
1026 italcorr x_height#*slant-.5serif_fit#-.3u#;
1027 adjust_fit(0,.5serif_fit#);
1028 numeric arm_thickness[],z_stem;
1029 if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair;
1030 z_stem=.6[vair,stem];
1031 else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi
1032 pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u;
1033 top y1=x_height; y2=min(y1,x_height-2/3arm_thickness1);
1034 bot y4=0; y3=max(y4,2/3arm_thickness2);
1035 numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3));
1036 penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0);
1037 penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0);
1038 pair delta; delta=penoffset z3-z2 of currentpen;
1039 fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l
1040 ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r
1041 ---cycle; % diagonal
1042 pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180);
1043 top y5r=x_height; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps;
1044 arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak
1045 pos7(arm_thickness2,-90); pos8(hair,0);
1046 bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps;
1047 arm(7,8,b,beak_darkness,.6beak_jut); % lower arm and beak
1048 penlabels(1,2,3,4,5,6,7,8);
1049 lc_hachek_accent(1/2[x6r,x1r]);
1050 endchar;
1051
1052 ecchar "The letter z with dot above"; % from pl_ml (plfonts)
1053 beginchar_twice(oct"273",8u#,x_height#,0);
1054 italcorr x_height#*slant-.5serif_fit#-.3u#;
1055 adjust_fit(0,.5serif_fit#);
1056 numeric arm_thickness[\\],z_stem;
1057 if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair;
1058 z_stem=.6[vair,stem];
1059 else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi
1060 pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u;
1061 top y1=h; y2=min(y1,h-2/3arm_thickness1);
1062 bot y4=0; y3=max(y4,2/3arm_thickness2);
1063 numeric alpha;
1064 alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3));
1065 penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0);
1066 penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0);
1067 pair delta; delta=penoffset z3-z2 of currentpen;
1068 fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l
1069 ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r
1070 ---cycle; % diagonal
1071 pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180);
1072 top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps;
1073 arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak
1074 pos7(arm_thickness2,-90); pos8(hair,0);
1075 bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps;
1076 arm(7,8,b,beak_darkness,.6beak_jut); % lower arm and beak
1077 penlabels(1,2,3,4,5,6,7,8);
1078 put_dot(tiny,max(dot_size#,cap_curve#));
1079 repeat_once;
1080 endchar;
1081
1082 ecchar "The letter ij";
1083 beginchar(oct"274",10.5u#,min(asc_height#,10/7x_height#+.5idot_diam#),desc_depth#);
1084 italcorr h#*slant-serif_fit# + .5idot_diam# -2u#;
1085 % adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi,serif_fit#-stem_shift#);
1086 pickup tiny.nib; pos1(stem',0); pos2(stem',0);
1087 if odd(w-stem'): change_width; fi
1088 lft x1l=hround(.25w-.5stem'); x1=x2;
1089 top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0;
1090 filldraw stroke z1e--z2e; % stem
1091 pos3(idot_diam,0); pos4(idot_diam,90);
1092 if serifs: x3r=max(x1r,x1+.5(idot_diam-tiny)-.2jut) else: x3=x1-.5 fi;
1093 top y4r=h; % (CMBR)
1094 if bot y4l-top y1<slab: y4l:=min(y4r-eps,y1+tiny+slab); fi
1095 x3=x4; y3=.5[y4l,y4r]; dot(3,4); % dot
1096 if serifs: sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif
1097 dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif
1098 %
1099 adjust_fit(serif_fit#+2stem_shift# if monospace:+\\.5u# fi,
1100 serif_fit#-2stem_shift# if monospace:-.5u# fi);
1101 pickup tiny.nib; pos11(stem',0); pos12(stem',0);
1102 rt x11r=hround(.75w+.25u+.5stem'); x11=x12;
1103 top y11=x_height if serifs: +min(oo,serif_drop) fi; bot y12=-1/3d;
1104 filldraw stroke z11e--z12e; % stem
1105 pos13(idot_diam,0); pos14(idot_diam,90);
1106 x13r=x11r; top y14r=h; % (CMBR)
1107 if bot y14l-top y11<slab: y14l:=min(y14r-eps,y11+tiny+slab); fi
1108 x13=x14; y13=.5[y14l,y14r]; dot(13,14); % dot
1109 if serifs: sloped_serif.l(11,12,aa,1/3,1.1jut,serif_drop); % upper serif
1110 pickup tiny.nib; pos15(vair,-90); pos16(hair,-180); pos17(flare,-180);
1111 x15=.5[x12,x16r]; bot y15r=-d-oo; y16-.5flare=-.88d;
1112 if monospace: lft x16r=.5w else: z16r=z17r; rt x17l=.5w+floor .75u fi;
1113 (x,y15r)=whatever[z15l,z12l]; x15r:=max(x,.5[x16r,x15]);
1114 filldraw stroke z12e{down}...z15e{left}; bulb(15,16,17); % arc and bulb
1115 else: pickup fine.nib; pos12'(stem',0); z12'=z12;
1116 pos16(.2[vair,stem'],-90); pos17(vair,-90);
1117 lft x17r=hround .5w-.75u; bot y17r=vround 5/6(-d-oo);
1118 (x,y17l)=whatever[z17r,z13]; x17l:=x;
1119 z15r=z12'r; (x12'l,y15l)=whatever[z17l,z15r]; x15l=x12'l; y15=y15r;
1120 x16r=.5[x17r,x15r]; x16l:=.5[x17l,x15l]; bot y16r=-d-oo;
1121 filldraw stroke z12'e..{down}z15e & super_arc.e(15,16)
1122 & z16e{left}..z17e; fi % arc and terminal
1123 penlabels(1,2,3,4,5,6,11,12,13,14,15,16,17); endchar;
1124
1125
1126 endinput;