% % lgunicl.mf % %% Cyrillic font container with T2 encoding beta-support % % This file is future part of lxfonts package % Version 3.5 // Patchlevel=1 % (c) O.Lapko % % This package is freeware product under conditions similar to % those of D. E. Knuth specified for the Computer Modern family of fonts. % In particular, only the authors are entitled to modify this file % (and all this package as well) and to save it under the same name. % % Content: % % Lowercase non-T2 Cyrillic letters included in Unicode % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % List of letternames and their codes in Unicode % % e_grv "50 E with grave % i_grv "5d I with grave % gje "53 Ghe with acute % kje "5c Ka with acute % zh_brv "c2 Zhe with breve % a_brv "d1 A with breve % a_uml "d3 A with umlaut % e_brv "d7 E with breve % schwa_uml "db Schwa with umlaut % zh_uml "dd Zhe with umlaut % z_uml "df Ze with umlaut % i_bar "e3 I with macrn (bar) % i_uml "e5 I with umlaut % o_uml "e7 O with umlaut % otld_uml "e8 O tilded with umlaut % ukre_uml -- Ukrainian E with umlaut % erev_uml "ed Erev with umlaut % u_bar "ef U with macron (bar) % u_uml "f1 U with umlaut % u_dac "f3 U with double acute % ch_uml "f5 Che with umlaut % ery_uml "f9 Ery with umlaut % LHver_check(3,5); % like |version_check| in ec if concrete: input lgnoncl; fi % Cyrillic concrete letters lhchar "Lowercase Cyrillic letter e_grv - e grave"; cyrchar_twice(e_grv,7.25u#+max(.75u#,.5curve#),x_height#,0); italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); % lower_e; numeric left_curve,right_curve; left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; if right_curvex_height+jut adjust_fit(serif_fit#,serif_fit#); begingroup % lower_i; pickup tiny.nib; pos1(fudged.stem,0); pos2(fudged.stem,0); pos3(fudged.stem,0); pos4(fudged.stem,0); lft x1l=lft x2l=hround(2.5u-.5fudged.stem-eps); x3=x4=w-x1; top y1=top y3=h; bot y2=bot y4=0; filldraw stroke z1e--z2e; % left stem filldraw stroke z3e--z4e; % right stem numeric stem[],alpha[]; if hefty: numeric upper_notch,lower_notch; stem1=fudged.hair-2stem_corr; upper_notch=y6-cap_notch_cut-eps; lower_notch=y5+cap_notch_cut+eps; if monospace: x5r =rt x1r; x6l =lft x3l; y5=vround(vair'+eps); y6=vround(h-vair-eps); alpha1=diag_ratio(1,stem1,y5-y6,x5r-x6l); penpos5(min(2fudged.stem,alpha1*stem1),0); penpos6(min(2fudged.stem,alpha1*stem1),0); x5'=lft x1l; z5'=whatever[z5l,z6l]; x6'=rt x4r; z6'=whatever[z5r,z6r]; x5l:=x5'; x6r:=x6'; y5l:=y5'; y6r:=y6'; else: y5l=0; y6r=h; x5=x1r; x6=x3l; penpos5(stem1,0); penpos6(stem1,0); fi x2'=rt x1r; z2'=whatever[z5l,z6l]; x3'=lft x4l; z3'=whatever[z5r,z6r]; fill z5l.. if y2'>lower_notch: {right}(x2'+1,lower_notch){up}... fi {z6-z5}diag_in(5l,6l,1,6r)--z6r.. if y3'x_height+.5u# adjust_fit(serif_fit#if monospace:+\\.5u#,.5u#+ else:,fi\\ -.25u#); begingroup % lower_g; pickup tiny.nib; pos1(stem,0); pos2(stem,0); lft x1l=lft x2l=hround (2.5u-.5stem); top y1=h; bot y2=0; filldraw stroke z1e--z2e; % stem pickup crisp.nib; pos3(Vround(vair-vair_corr),90); pos4(hair,0); top y3r=h; x3=x1; rt x4r=hround(w-.45u); y4=good.y(y3l-beak/1.4)-eps; arm(3,4,e,beak_darkness,.4beak_jut); % upper arm and beak if serifs: save slab; slab:=Vround(vair-vair_corr); % lower.slab nodish_serif(1,2,a,1/3,jut,b,1/3,.5jut); % upper serif slab:=vair; % lower.slab dish_serif(2,1,c,1/3,jut,d,1/3,1.25jut); fi % lower serif %%%%% endgroup; % the accent hpos_corr=-u; put_accent; repeat_once; penlabels(0,1,2,3,4,5,6,7,8,9); endchar; iff not concrete:% iff not specific:% lhchar "Lowercase Cyrillic letter kje (k acute) (`roman')"; cyrchar_twice(kje,if serifs:10u# else:9.5u# fi % zhk_width: n_width;keng_width ,x_height#,0); % +acc_height# italcorr x_height#*slant-.2u#; adjust_fit(serif_fit#,serif_fit#); full_h:=h; h:=x_height; begingroup % lowerr_k; pickup tiny.nib; numeric stem[]; stem0=max(tiny.breadth,hround(fudged.stem-stem_corr)); pos1(stem0,0); pos2(stem0,0); lft x1l=lft x2l=hround (2.5u-.5fudged.stem); top y1=h; bot y2=0; filldraw stroke z1e--z2e; % stem save slab; % lower.slab if serifs: slab:=Vround(vair-vair_corr); % lower.slab dish_serif(1,2,a,1/3,jut,b,1/3,jut); % upper stem serif slab:=vair; % lower.slab dish_serif(2,1,c,1/3,jut,d,1/3,jut); fi% lower stem serif % k_rbowl; numeric right_jut,stem[],alpha[]; pickup tiny.nib; right_jut=if serifs:.6jut else:.4tiny fi; stem1=max(tiny.breadth,hround(fudged.hair if hefty:-\\4stem_corr fi)); stem2=max(tiny.breadth,fudged.stem-3stem_corr); rt x3r=hround(r-letter_fit-.7u-right_jut)+eps; rt x6r=hround(r-letter_fit-.3u-right_jut)+eps; y4=.7bar_height; top y3=h; bot y6=0; x4=x1; penpos3(alpha1*(stem1-tiny),0); penpos4(whatever,-90); alpha1=diag_ratio(1,.5(stem1-tiny),y3-y4,x3r-x4); penpos6(alpha2*(stem2-tiny),0); alpha2=diag_ratio(1,.5(stem2-tiny),y1-y6,x6r-x1); forsuffixes $=l,r: y3'$=h; y6'$=0; z4.$=z3'$+whatever*(z3-z4); z5.$=z6'$+whatever*(z1-z6)=whatever[z3,z4]; endfor z5=.5[z5l,z5r]; z3'r=z3r+penoffset z3-z4 of currentpen+whatever*(z3-z4); % we have also |z3'l=z3l+penoffset z4-z3 of currentpen+whatever*(z3-z4)|;\] z6'r=z6r+penoffset z1-z6 of currentpen+whatever*(z1-z6); z6'l=z6l+penoffset z6-z1 of currentpen+whatever*(z1-z6); fill z4r--diag_end(4r,3'r,1,.5,3'l,4l)--z4l--cycle; % upper diagonal fill z5l--diag_end(5l,6'l,.5,1,6'r,5r)--z5r--cycle; % lower diagonal %% if serifs: numeric inner_jut,up_inner_jut; if rt x2r+jut+.5u+1<=lft x6l-jut: inner_jut=jut; else: rt x2r+jut+.5u+1=lft x6l-inner_jut; fi if rt x1r+jut+.5u+1<=lft x3l-1.2jut: up_inner_jut=1.2jut; else: rt x1r+jut+.5u+1=lft x3l-up_inner_jut; fi slab:=Vround(vair-vair_corr); % lower.slab dish_serif(3,4,e,2/3,up_inner_jut,f,1/2,right_jut)(dark); % upper diagonal serif slab:=vair; % lower.slab dish_serif(6,5,g,1/2,inner_jut,h,1/3,right_jut)(dark); fi % lower diagonal serif %%% %%%%% endgroup; % the accent hpos_corr=-u; put_accent; repeat_once; penlabels(1,2,3,4,5,6); endchar; iff not concrete:% iff not specific:% lhchar "Lowercase Cyrillic letter zh_brv - zhe breve (`roman')"; cyrchar(zh_brv,if serifs:10u# else:9.5u# fi % zhk_width: n_width;keng_width ,x_height#+acc_height#,0); italcorr x_height#*slant-.2u#; adjust_fit(w#-5u#+ %zhr_adj if monospace: 0,0 else:serif_fit#,serif_fit# fi); %wlett_adj full_h:=h; h:=x_height; % lowerr_zh; pickup tiny.nib; numeric stem[]; stem0=max(tiny.breadth,hround(fudged.stem-stem_corr)); if odd((r-l)-stem0): change_width; fi % symmetric & all three equal pos1(stem0,0); pos2(stem0,0); lft x1l=lft x2l=hround (.5[l,r]-.5fudged.stem)-eps; % middle stem point top y1=h; bot y2=0; filldraw stroke z1e--z2e; % stem save slab; % lower.slab if serifs: slab:=Vround(vair-vair_corr); % lower.slab dish_serif(1,2,a,1/3,jut,b,1/3,jut); % upper stem serif slab:=vair; % lower.slab dish_serif(2,1,c,1/3,jut,d,1/3,jut); fi% lower stem serif % k_rbowl;zh%mono:+.25u numeric right_jut,stem[],alpha[]; pickup tiny.nib; right_jut=if serifs:.6jut else:.4tiny fi; stem1=max(tiny.breadth,hround(fudged.hair if hefty:-\\4stem_corr fi)); stem2=max(tiny.breadth,fudged.stem-3stem_corr); rt x3r=hround(r-letter_fit-.7u-right_jut if monospace:+.25u fi)+eps; %!!! rt x6r=hround(r-letter_fit-.3u-right_jut if monospace:+.25u fi)+eps; %!!! y4=.7bar_height; top y3=h; bot y6=0; x4=x1; penpos3(alpha1*(stem1-tiny),0); penpos4(whatever,-90); alpha1=diag_ratio(1,.5(stem1-tiny),y3-y4,x3r-x4); penpos6(alpha2*(stem2-tiny),0); alpha2=diag_ratio(1,.5(stem2-tiny),y1-y6,x6r-x1); forsuffixes $=l,r: y3'$=h; y6'$=0; z4.$=z3'$+whatever*(z3-z4); z5.$=z6'$+whatever*(z1-z6)=whatever[z3,z4]; endfor z5=.5[z5l,z5r]; z3'r=z3r+penoffset z3-z4 of currentpen+whatever*(z3-z4); % we have also |z3'l=z3l+penoffset z4-z3 of currentpen+whatever*(z3-z4)|;\] z6'r=z6r+penoffset z1-z6 of currentpen+whatever*(z1-z6); z6'l=z6l+penoffset z6-z1 of currentpen+whatever*(z1-z6); fill z4r--diag_end(4r,3'r,1,.5,3'l,4l)--z4l--cycle; % upper diagonal fill z5l--diag_end(5l,6'l,.5,1,6'r,5r)--z5r--cycle; % lower diagonal %% if serifs: numeric inner_jut,up_inner_jut; if rt x2r+jut+.5u+1<=lft x6l-jut: inner_jut=jut; else: rt x2r+jut+.5u+1=lft x6l-inner_jut; fi if rt x1r+jut+.5u+1<=lft x3l-1.2jut: up_inner_jut=1.2jut; else: rt x1r+jut+.5u+1=lft x3l-up_inner_jut; fi slab:=Vround(vair-vair_corr); % lower.slab dish_serif(3,4,e,2/3,up_inner_jut,f,1/2,right_jut)(dark); % upper diagonal serif slab:=vair; % lower.slab dish_serif(6,5,g,1/2,inner_jut,h,1/3,right_jut)(dark); fi % lower diagonal serif %%% % mirror forsuffixes $ = 3'r,3,3'l,4r,4,4l,5l,5,5r,6'l,6,6'r: x.m$=l+(r-x$); y.m$=y$; endfor; fill z.m4r--diag_end(.m4r,.m3'r,1,.5,.m3'l,.m4l)--z.m4l--cycle; % upper diagonal fill z.m5l--diag_end(.m5l,.m6'l,.5,1,.m6'r,.m5r)--z.m5r--cycle; % lower diagonal %% if serifs: penpos7(alpha1*(stem1-tiny),0); penpos8(whatever,-90); penpos10(alpha2*(stem2-tiny),0); z7=z.m3; z8=z.m4; z9l=z.m5r; z9=z.m5; z9r=z.m5l; z10=z.m6; slab:=Vround(vair-vair_corr); % lower.slab dish_serif(7,8,i,1/2,right_jut,j,2/3,up_inner_jut)(dark); % upper diagonal serif slab:=vair; % lower.slab dish_serif(10,9,k,1/3,right_jut,l,1/2,inner_jut)(dark); fi % lower diagonal serif %%%%% % the accent h:=full_h; lowercase_breve(x1,0, 17,18,19); penlabels(1,2,3,4,5,6, 7,8,9); endchar; lhchar "Lowercase Cyrillic letter a_brv - a breve"; cyrchar(a_brv,9u#,x_height#+acc_height#,0); bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); full_h:=h; h:=x_height; % lower_a; pickup fine.nib; top y3r=h+vround 1.5oo; if serifs: pos1(flare,180); pos2(hair,180); pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; y1=min(bh+.5flare+2vair+2,.9[bh,h]-.5flare); bulb(3,2,1); % bulb else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; pos3(1/8[vair,thin_join],90); x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; filldraw stroke term.e(3,1,left,.9,4); fi % terminal pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,h]; pos5(stem,0); x5=x4; y5=max(.55bh,2vair); filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; pos7(hround(curve-2stem_corr),180); lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; pos9(thin_join,360); z9l=z5l; (x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); {{interim superness:=more_super; filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); if hair#+.5stem#>1.5u#: pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; pos12(shaved_stem,0); x11=x12; top y12=slab+eps; filldraw z5'l---z10l...z11l{right}--z11r --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; pos10(shaved_stem,0); x10=x5'; y10=1/3bh; pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; pos10(shaved_stem,0); x10=x5'; bot y10=0; filldraw stroke z5'e--z10e; fi % base of stem %%%%% % the accent h:=full_h; lowercase_breve(.5w,0, 14,15,16); penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13, 14,15,16); endchar; lhchar "Lowercase Cyrillic letter a_uml - a umlaut"; cyrchar(a_uml,9u#,lc_trema_height#,0); bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); full_h:=h; h:=x_height; % lower_a; pickup fine.nib; top y3r=h+vround 1.5oo; if serifs: pos1(flare,180); pos2(hair,180); pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; y1=min(bh+.5flare+2vair+2,.9[bh,h]-.5flare); bulb(3,2,1); % bulb else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; pos3(1/8[vair,thin_join],90); x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; filldraw stroke term.e(3,1,left,.9,4); fi % terminal pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,h]; pos5(stem,0); x5=x4; y5=max(.55bh,2vair); filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; pos7(hround(curve-2stem_corr),180); lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; pos9(thin_join,360); z9l=z5l; (x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); {{interim superness:=more_super; filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); if hair#+.5stem#>1.5u#: pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; pos12(shaved_stem,0); x11=x12; top y12=slab+eps; filldraw z5'l---z10l...z11l{right}--z11r --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; pos10(shaved_stem,0); x10=x5'; y10=1/3bh; pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; pos10(shaved_stem,0); x10=x5'; bot y10=0; filldraw stroke z5'e--z10e; fi % base of stem %%%%% % the accent h:=full_h; lowercase_umlaut(0,0, 14,15,16,17); penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13, 14,15,16,17); endchar; lhchar "Lowercase Cyrillic letter e_brv - e breve"; cyrchar(e_brv,7.25u#+max(.75u#,.5curve#),x_height#+acc_height#,0); italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); full_h:=h; h:=x_height; % lower_e; numeric left_curve,right_curve; left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; if right_curvetop y5l:..(lft x5r,bot y5r)---(lft x5l,top y5l).. else: ... fi {right}z5l--cycle; % bar point pos2'(vair,90); z2'=z2; pos8'(vair',-90); z8'=z8; if serifs: filldraw stroke z1e{x2-x1,7(y2-y1)}....{right}z2'e; % upper arc {{interim superness:=more_super; filldraw stroke super_arc.e(8',9)}}; % lower arc else: filldraw stroke term.e(2',1,left,.8,4); % upper terminal forsuffixes e=l,r: path p.e; p.e=z8'e{left}..tension .9 and 1..z9e; if angle direction 1 of p.e<105: p.e:=z8'e{left}..tension atleast.9 and 1..{dir 105}z9e; fi endfor filldraw stroke p.e; % lower arc fi if serifs: path upper_arc; upper_arc=z1{x2-x1,7(y2-y1)}....{right}z2; pos10(.3[fine.breadth,hair],0); x10l=x1r; top y10=vround(h+1.5oo); x1'-x1l=1.5curve; y1'=y1; numeric t; t=xpart(upper_arc intersectiontimes (z10r--z1')); filldraw z1r--z10l--z10r--subpath(t,0) of upper_arc--cycle; fi % upper serif %%%%% % the accent h:=full_h; lowercase_umlaut(0,0, 11,12,13,14); penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; lhchar "Lowercase Cyrillic letter i_bar - i bar (macron)"; cyrchar(i_bar,10u# if not serifs:+.5width_adj# fi, % n_width lc_trema_height#,0); italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut adjust_fit(serif_fit#,serif_fit#); full_h:=h; h:=x_height; % lower_i; pickup tiny.nib; pos1(fudged.stem,0); pos2(fudged.stem,0); pos3(fudged.stem,0); pos4(fudged.stem,0); lft x1l=lft x2l=hround(2.5u-.5fudged.stem-eps); x3=x4=w-x1; top y1=top y3=h; bot y2=bot y4=0; filldraw stroke z1e--z2e; % left stem filldraw stroke z3e--z4e; % right stem numeric stem[],alpha[]; if hefty: numeric upper_notch,lower_notch; stem1=fudged.hair-2stem_corr; upper_notch=y6-cap_notch_cut-eps; lower_notch=y5+cap_notch_cut+eps; if monospace: x5r =rt x1r; x6l =lft x3l; y5=vround(vair'+eps); y6=vround(h-vair-eps); alpha1=diag_ratio(1,stem1,y5-y6,x5r-x6l); penpos5(min(2fudged.stem,alpha1*stem1),0); penpos6(min(2fudged.stem,alpha1*stem1),0); x5'=lft x1l; z5'=whatever[z5l,z6l]; x6'=rt x4r; z6'=whatever[z5r,z6r]; x5l:=x5'; x6r:=x6'; y5l:=y5'; y6r:=y6'; else: y5l=0; y6r=h; x5=x1r; x6=x3l; penpos5(stem1,0); penpos6(stem1,0); fi x2'=rt x1r; z2'=whatever[z5l,z6l]; x3'=lft x4l; z3'=whatever[z5r,z6r]; fill z5l.. if y2'>lower_notch: {right}(x2'+1,lower_notch){up}... fi {z6-z5}diag_in(5l,6l,1,6r)--z6r.. if y3'x_height+jut adjust_fit(serif_fit#,serif_fit#); full_h:=h; h:=x_height; % lower_i; pickup tiny.nib; pos1(fudged.stem,0); pos2(fudged.stem,0); pos3(fudged.stem,0); pos4(fudged.stem,0); lft x1l=lft x2l=hround(2.5u-.5fudged.stem-eps); x3=x4=w-x1; top y1=top y3=h; bot y2=bot y4=0; filldraw stroke z1e--z2e; % left stem filldraw stroke z3e--z4e; % right stem numeric stem[],alpha[]; if hefty: numeric upper_notch,lower_notch; stem1=fudged.hair-2stem_corr; upper_notch=y6-cap_notch_cut-eps; lower_notch=y5+cap_notch_cut+eps; if monospace: x5r =rt x1r; x6l =lft x3l; y5=vround(vair'+eps); y6=vround(h-vair-eps); alpha1=diag_ratio(1,stem1,y5-y6,x5r-x6l); penpos5(min(2fudged.stem,alpha1*stem1),0); penpos6(min(2fudged.stem,alpha1*stem1),0); x5'=lft x1l; z5'=whatever[z5l,z6l]; x6'=rt x4r; z6'=whatever[z5r,z6r]; x5l:=x5'; x6r:=x6'; y5l:=y5'; y6r:=y6'; else: y5l=0; y6r=h; x5=x1r; x6=x3l; penpos5(stem1,0); penpos6(stem1,0); fi x2'=rt x1r; z2'=whatever[z5l,z6l]; x3'=lft x4l; z3'=whatever[z5r,z6r]; fill z5l.. if y2'>lower_notch: {right}(x2'+1,lower_notch){up}... fi {z6-z5}diag_in(5l,6l,1,6r)--z6r.. if y3'75: p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor filldraw stroke pulled_super_arc.e(2,3)(.7superpull) & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal %%% % lukre_bar; if (serifs=true) and (bar#<=.5curve#): x7r=x3l; x8r=min(lft x1l-.5hair,0.85[x3l,x1l]); y7l=y8l=y1.bh; y7r=y8r=y2.bh; x7l=x7r; x8l=x8r; numeric bar[]; bar2=7/8[bar,fudged.stem-2stem_corr]; penpos9(bar2,45); z9=.575[z7l,z8l]; fill circ_stroke z8e{-2,-1}..{-2,1}z9e..{-2,-1}z7e; % curve ~ else: bar_stroke(x3l,min(lft x1l-.5hair,0.85[x3l,x1l])); % bar -- fi %%%%% h:=full_h; lowercase_umlaut(0,0, 10,11,12,13); penlabels(1,1',2,3,4,5,6,7,8,9); endchar; lhchar "Lowercase Cyrillic letter erev_uml - reverse e umlaut"; cyrchar(erev_uml,8u#,lc_trema_height#,0); % eng italcorr x_height#*slant-.2u#; adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); full_h:=h; h:=x_height; % lower_erev; set_bar_axis; pickup fine.nib; pos2(vair',90); pos3(curve,0); pos4(vair',-90); x2=x4=w-.5(w+u); top y2r=vround(h+1.5oo); bot y4r=-oo; rt x3r=w-hround max(.6u,1.35u-.5curve); y3=.5h; % eng if serifs: pos1(hair,180); pos5(hair,-180); y1=min(y2.bh+.75flare-.25vair+eps,.9[bar_height,h]-.75flare); lft x1r=lft x5r=hround.5u; y5=max(good.y(.5bar_height-.9),y4l+vair'); (x,y4l)=whatever[z4r,z5l]; x4l:=max(x,x4l-.5u); filldraw stroke z1e{x2-x1,5(y2-y1)}...pulled_super_arc.e(2,3)(.7superpull) & pulled_super_arc.e(3,4)(.5superpull) ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal pos6(.3[fine.breadth,hair],180); x6r=x1r; top y6=h+oo; x1'-x1r=1.5curve; y1'=y1; path upper_arc; upper_arc=z1{x2-x1,5(y2-y1)}..z2{right}; numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1')); filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb else: pos1(4/7[vair',flare],100); pos5(.6[vair',flare],-95); lft x1r=good.x .6u; top y1r=vround .82[bar_height,top y2r]; filldraw stroke term.e(2,1,left,.8,4); % upper terminal lft x5r=good.x .5u; y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; forsuffixes e=l,r: path p.e; p.e=z4e{left}..tension .9 and 1..z5e; if angle direction 1 of p.e<105: p.e:=z4e{left}..tension atleast.9 and 1..{dir 105}z5e; fi endfor filldraw stroke pulled_super_arc.e(2,3)(.7superpull) & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal %%% % lerev_bar; if (serifs=true) and (bar#<=.5curve#): x7r=max(rt x1l+.5hair,0.85[x3l,x1l]); x8r=x3l; y7l=y8l=y1.bh; y7r=y8r=y2.bh; x7l=x7r; x8l=x8r; numeric bar[]; bar2=7/8[bar,fudged.stem-2stem_corr]; penpos9(bar2,45); z9=.475[z7l,z8l]; fill circ_stroke z7e{2,1}..{2,-1}z9e..{2,1}z8e; % curve /\/ else: bar_stroke(max(rt x1l+.5hair,0.85[x3l,x1l]),x3l); % bar -- fi %%%%% % the accent h:=full_h; lowercase_umlaut(0,0, 10,11,12,13); penlabels(1,1',2,3,4,5,6,7,8,9, 10,11,12,13); endchar; lhchar "Lowercase Cyrillic letter u_bar - u bar (macron)"; cyrchar(u_bar,if serifs:9.5u# else:9u# fi, lc_trema_height#,desc_depth#); % eng italcorr x_height#*slant+.25u#; adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); full_h:=h; h:=x_height; % lower_u; numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; left_stem=fudged.stem-stem_corr; right_stem=fudged.hair if hefty:-2stem_corr fi; bot_stem=fudged.hair if hefty:-8stem_corr fi; bot_vair=Vround(if serifs: vair else:.5[vair,bot_stem] fi); outer_jut=.75jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4r=h; y2=y3=0; x2l=x3l; numeric alpha,alpha[]; x9=3u; y9=bot_vair-d-oo; alpha1=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-apex_corr); alpha2=diag_ratio(1,bot_stem,y1-y9,x4r-x9); if alpha1notch_cut: y0:=notch_cut; fill z0+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) --z3r--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} ...{down}z0+.5left--cycle; % left and right diagonals else: fill z0--diag_end(0,4l,1,1,4r,3r)--z3r--z2l --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals penpos5(alpha*bot_stem,0); z5r=whatever[z3r,z4r]; y5-.5vair=-.5d; if serifs: numeric light_bulb; light_bulb=hround 7/8[hair,flare]; clearpen; penpos6(vair,-90); penpos7(hair,-180); penpos8(light_bulb,-180); x6=2u; y6r=-d-oo; y8-.5light_bulb=-.85d; x8r=hround .35u; fill stroke z3e---z5e...{left}z6e; bulb(6,7,8); % arc and bulb numeric inner_jut; pickup tiny.nib; prime_points_inside(1,2); prime_points_inside(4,3); if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi save slab; slab:=Vround(vair-vair_corr); % lower.slab dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % upper left serif dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % upper right serif else: penpos6(bot_vair,-90); x6=2.5u; y6r=-d-oo; fill stroke z3e---z5e...{left}z6e; % arc pickup fine.nib; pos6'(bot_vair,-90); z6'=z6; pos7(2/3[bot_vair,flare],-85); lft x7l=hround u; bot y7r=vround-.96d-oo; y7l:=good.y y7l; filldraw stroke term.e(6',7,left,1,4); fi % arc and terminal %%%%% % the accent h:=full_h; % low_bar(.5[x1,x4],0, 10,11); x_move:=.5[x1,x4]; y_move:=0; _one:=10; _two:=11; pickup if serifs: crisp.nib else: fine.nib fi; numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; pos[_one](macron_breadth,90); pos[_two](macron_breadth,90); x[_one]=x_move+hround(2.5u if monospace:/expansion_factor fi+.5vair); top y[_one]r=top y[_two]r=lc_trema_height+o; x[_two]=x_move-hround(2.5u if monospace:/expansion_factor fi+.5vair); filldraw stroke z[_one]e--z[_two]e; % bar penlabels(0,1,2,3,4,5,6,7,8,9, 10,11); endchar; lhchar "Lowercase Cyrillic letter u_uml - u umlaut"; cyrchar(u_uml,if serifs:9.5u# else:9u# fi, lc_trema_height#,desc_depth#); % eng italcorr x_height#*slant+.25u#; adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); full_h:=h; h:=x_height; % lower_u; numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; left_stem=fudged.stem-stem_corr; right_stem=fudged.hair if hefty:-2stem_corr fi; bot_stem=fudged.hair if hefty:-8stem_corr fi; bot_vair=Vround(if serifs: vair else:.5[vair,bot_stem] fi); outer_jut=.75jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4r=h; y2=y3=0; x2l=x3l; numeric alpha,alpha[]; x9=3u; y9=bot_vair-d-oo; alpha1=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-apex_corr); alpha2=diag_ratio(1,bot_stem,y1-y9,x4r-x9); if alpha1notch_cut: y0:=notch_cut; fill z0+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) --z3r--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} ...{down}z0+.5left--cycle; % left and right diagonals else: fill z0--diag_end(0,4l,1,1,4r,3r)--z3r--z2l --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals penpos5(alpha*bot_stem,0); z5r=whatever[z3r,z4r]; y5-.5vair=-.5d; if serifs: numeric light_bulb; light_bulb=hround 7/8[hair,flare]; clearpen; penpos6(vair,-90); penpos7(hair,-180); penpos8(light_bulb,-180); x6=2u; y6r=-d-oo; y8-.5light_bulb=-.85d; x8r=hround .35u; fill stroke z3e---z5e...{left}z6e; bulb(6,7,8); % arc and bulb numeric inner_jut; pickup tiny.nib; prime_points_inside(1,2); prime_points_inside(4,3); if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi save slab; slab:=Vround(vair-vair_corr); % lower.slab dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % upper left serif dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % upper right serif else: penpos6(bot_vair,-90); x6=2.5u; y6r=-d-oo; fill stroke z3e---z5e...{left}z6e; % arc pickup fine.nib; pos6'(bot_vair,-90); z6'=z6; pos7(2/3[bot_vair,flare],-85); lft x7l=hround u; bot y7r=vround-.96d-oo; y7l:=good.y y7l; filldraw stroke term.e(6',7,left,1,4); fi % arc and terminal %%%%% % the accent h:=full_h; lowercase_umlaut((.5[x1,x4]-.5w),0, 10,11,12,13); penlabels(0,1,2,3,4,5,6,7,8,9, 10,11,12,13); endchar; lhchar "Lowercase Cyrillic letter u_dac - u double acute"; cyrchar_twice(u_dac,if serifs:9.5u# else:9u# fi, x_height#,desc_depth#); % eng italcorr x_height#*slant+.25u#; adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); begingroup % lower_u; numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; left_stem=fudged.stem-stem_corr; right_stem=fudged.hair if hefty:-2stem_corr fi; bot_stem=fudged.hair if hefty:-8stem_corr fi; bot_vair=Vround(if serifs: vair else:.5[vair,bot_stem] fi); outer_jut=.75jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4r=h; y2=y3=0; x2l=x3l; numeric alpha,alpha[]; x9=3u; y9=bot_vair-d-oo; alpha1=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-apex_corr); alpha2=diag_ratio(1,bot_stem,y1-y9,x4r-x9); if alpha1notch_cut: y0:=notch_cut; fill z0+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) --z3r--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} ...{down}z0+.5left--cycle; % left and right diagonals else: fill z0--diag_end(0,4l,1,1,4r,3r)--z3r--z2l --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals penpos5(alpha*bot_stem,0); z5r=whatever[z3r,z4r]; y5-.5vair=-.5d; if serifs: numeric light_bulb; light_bulb=hround 7/8[hair,flare]; clearpen; penpos6(vair,-90); penpos7(hair,-180); penpos8(light_bulb,-180); x6=2u; y6r=-d-oo; y8-.5light_bulb=-.85d; x8r=hround .35u; fill stroke z3e---z5e...{left}z6e; bulb(6,7,8); % arc and bulb numeric inner_jut; pickup tiny.nib; prime_points_inside(1,2); prime_points_inside(4,3); if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi save slab; slab:=Vround(vair-vair_corr); % lower.slab dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % upper left serif dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % upper right serif else: penpos6(bot_vair,-90); x6=2.5u; y6r=-d-oo; fill stroke z3e---z5e...{left}z6e; % arc pickup fine.nib; pos6'(bot_vair,-90); z6'=z6; pos7(2/3[bot_vair,flare],-85); lft x7l=hround u; bot y7r=vround-.96d-oo; y7l:=good.y y7l; filldraw stroke term.e(6',7,left,1,4); fi % arc and terminal %%%%% endgroup; % the accent if monospace: hpos_corr=-2u; put_accent; hpos_corr=2u; put_accent; else: hpos_corr=-1.5u; put_accent; hpos_corr=1.5u; put_accent; fi repeat_once; penlabels(0,1,2,3,4,5,6,7,8,9); endchar; lhchar "Lowercase Cyrillic letter ch_uml - che umlaut"; cyrchar(ch_uml,10u# if not serifs: +.5width_adj# fi,lc_trema_height#,0); % n_width italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut adjust_fit(serif_fit#,serif_fit#); full_h:=h; h:=x_height; % lower_ch; pickup tiny.nib; numeric middle_weight; middle_weight=.6[thin_join,vair]; pos1(fudged.stem,0); pos2(fudged.stem,0); pos3(fudged.stem,0); pos4(fudged.stem,0); penpos2'(fudged.stem,0); z2'=z2; penpos5(middle_weight,90); penpos6(middle_weight,90); penpos6'(middle_weight,90); lft x1l=lft x2l=hround(2.5u-.5fudged.stem-eps); x3=x4=w-x1; top y1=top y3=h; bot y2=.3[y6,h]; bot y4=0; x5l=1/3[x1,x3]; y6l=vround(.48h-.5middle_weight if serifs:-.15(.5[hair,.7stem]) fi); filldraw stroke z1e--z2e; % left stem filldraw stroke z3e--z4e; % right stem y5l=y6l; x6=x6'=x3; if serifs: y6'l=min(3/5h,y6l-hair+1.05stem); fi if serifs: if ((y6'l-y6l)>=middle_weight+1+eps): fill stroke z2'e{down}..z5e{right}...{.75(z5-z6)+z6'}z6'e; % arc else: fill stroke pulled_arc.e(2',5) & z5e--z6e; fi % arc numeric inner_jut; pickup tiny.nib; if rt x1r+jut+.5u+1<=lft x3l-jut: inner_jut=jut; else: rt x1r+inner_jut+.5u+1=lft x3l-inner_jut; fi %%% save slab; slab:=Vround(vair-vair_corr); % lower.slab dish_serif(1,2,a,1/3,jut,b,1/3,inner_jut); % upper left serif dish_serif(3,4,e,1/3,inner_jut,f,1/3,jut); % upper right serif slab:=vair; % lower.slab dish_serif(4,3,g,1/3,inner_jut,h,1/3,jut); % lower right serif else: fill stroke pulled_arc.e(2',5) & z5e{right}...{right}z6e; fi % arc %%%%% % the accent h:=full_h; lowercase_umlaut(0,0, 7,8,9,10); penlabels(1,2,3,4,5,6, 7,8,9,10); endchar; lhchar "Lowercase Cyrillic letter ery_uml - ery umlaut"; cyrchar(ery_uml,9u#,lc_trema_height#,0); % v_witdh italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut adjust_fit(if monospace: 0,0 else: serif_fit#,serif_fit# fi %wlett_adj +4u#); full_h:=h; h:=x_height; % lower_ery; pickup tiny.nib; pos1(fudged.stem,0); pos2(fudged.stem,0); lft x1l=lft x2l=hround (2.5u-.5fudged.stem-eps); top y1=h; bot y2=0; filldraw stroke z1e--z2e; % stem save slab; % lower.slab if serifs: slab:=Vround(vair-vair_corr); % lower.slab dish_serif(1,2,a,1/3,jut,b,1/3,jut); % upper serif slab:=vair; % lower.slab nodish_serif(2,1,c,1/3,jut,d,1/3,.5jut); fi % lower serif % lsftsn_bowl(2); _zero:=2; _one:=3; _two:=4; _three:=5; _four:=6; _five:=7; % set_bar_axis; penpos[_three](curve if hefty:-3stem_corr fi,0); penpos[_four](vair',-90); penpos[_five](vair',-90); z[_five]r=bot z[_zero]; y[_four]=y[_five]; y[_three]=.5[y[_two]l,y[_four]l]; y[_one]l=y[_two]l=y1.bh; y[_one]r=y[_two]r=y2.bh; x[_two]l=x[_two]r=x[_four]=w-3.75u; %.5v_width+.75u; x[_one]l=x[_one]r=x[_zero]; x[_three]r=hround(w-.6u); x[_two]l:=x[_four]l:=x[_two]r-.25curve; fill stroke {{if not serifs: interim superness:=more_super; fi z[_five]e..super_arc.e([_four],[_three])}} & super_arc.e([_three],[_two])..z[_one]e; % lobe %%% % I w:=w+4u; rt x8r=rt x9r=w-lft x1l; top y8=h; bot y9=0; pos8(fudged.stem,0); pos9(fudged.stem,0); filldraw stroke z8e--z9e; % stem if serifs: slab:=Vround(vair-vair_corr); % lower.slab dish_serif(8,9,e,1/3,jut,f,1/3,jut); % upper serif slab:=vair; % lower.slab dish_serif(9,8,g,1/3,jut,h,1/3,jut); fi % lower serif %%%%% % the accent h:=full_h; lowercase_umlaut(0,0, 10,11,12,13); penlabels(1,2,3,4,5,6,7,8,9, 10,11,12,13); endchar; endinput; %end of file