diff options
Diffstat (limited to 'Master/texmf-dist/fonts/source/lh/nont2')
16 files changed, 12741 insertions, 0 deletions
diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgbersta.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgbersta.mf new file mode 100644 index 00000000000..e2f8174d73a --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgbersta.mf @@ -0,0 +1,869 @@ +% +% lgbersta.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Lowercase letters used in files beresta(r/e): file #1 +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames +% +% Lb_bar +% Lc_lcom +% Ld_moc +% Ld_dsc +% Ld_bar +% Ld_mtl +% Lf_rev +% LVg_hcrs +% LVg_beak +% Lh_voic +% Lh_moc +% Lh_tl +% Lh_lftl +% Lh_dsc +% Lhflip_hcrs +% Li_dsc +% Lj_bar +% Lj_arm +% Lj_dotbar +% Lj_armhcrs +% Lj_crs +% Lk_lcom +% + +LHver_check(3,4); % like |version_check| in ec + +lhchar "Lowercase Special letter Lb_bar"; +cyrchar(Lb_bar,10u#+serif_fit#,asc_height#,0); +italcorr .5x_height#*slant+min(.5curve#-u#,-.25u#); +adjust_fit(serif_fit#,0); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; +lft x1l=hround(2.5u-.5stem'); top y1=h; +numeric edge; edge=rt x2r; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); +pos4(vair,90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); +rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l),1/3[rt x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; +rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x4,x5r]); +(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x6,x5r]); +filldraw stroke z3e{up}...pulled_arc.e(4,5)&pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); +y2=ypart(((edge,h)--(edge,0))intersectionpoint(z6l{left}...{up}z7l)); +pickup tiny.nib; filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; pos8(hair,0); pos7'(stem,0); +z7'=z2; x8l=x7'l; bot y8=0; +filldraw stroke z7'e--z8e; % point +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif +% +pos80(bar,90); pos90(bar,90); x80=.5[x4,x5]; +if serifs: x90=x2l-jut; else: x90=w; fi +if serifs: y80=y90=.5[y.a2-.5slab,y4+.5vair]; +else: y80=y90=.5[x_height,asc_height-serif_drop]; fi +filldraw stroke z80e--z90e; +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter Lc_lcom"; +cyrchar(Lc_lcom,8u#,x_height#,1.25desc_depth#); % eng +italcorr x_height#*slant-.2u#; +adjust_fit(if monospace: .5u#,.5u# else: -.1u#,0 fi); +pickup fine.nib; pos2(vair',90); pos4(vair',270); +x2=x4=.5(w+u); top y2r=vround(h+1.5oo); bot y4r=-oo; +pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5h; % eng +if serifs: pos1(hair,0); pos0(flare,0); + y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare); + rt x1r=hround(w-.7u); bulb(2,1,0); % bulb + pos5(hair,0); rt x5r=hround(w-.5u); + y5=max(good.y(.5bar_height-.9),y4l+vair'); + (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); + filldraw stroke 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 +else: pos1(4/7[vair',flare],80); + rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2,1,right,.8,4); % upper terminal + pos5(.6[vair',flare],275); rt x5r=hround(w-.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{right}..tension .9 and 1..z5e; + if angle direction 1 of p.e>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 +% the accent +%ac_comma(x4-.5w,0,1.25desc_depth, 6,7,8,9,10); + x_move:=x4-.5w; y_move:=0; depth:=1.25desc_depth; + _zero:=6; _one:=7; _two:=8; _three:=9; _four:=10; + numeric height,bulb_diam; + height=if serifs: depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + % comma below letter as sans serif cedilla + top y[_one]=-o-2; bot y[_two]=-d-o; + x[_two]=x[_one]-1.25u=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=-d+y_move+height; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(0,1,2,3,4,5); endchar; + +lhchar "Lowercase Special letter Ld_moc"; +cyrchar(Ld_moc,10u#+serif_fit#,asc_height#,desc_depth#); +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(0,serif_fit#); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); top y1=h; +numeric edge; edge=lft x2l; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...pulled_arc.e(4,5) + & pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); +pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif +% the accent +% ac_ammoc(x2,0, 8,9,10,11,12); +x_move:=x2; y_move:=0; _zero:=8; _one:=9; _two:=10; _three:=11; _four:=12; +% +numeric bulb_diam; +bulb_diam=max(fine.breadth,min(dot_size,floor(.56d))); +if square_dots: + % sans serif cedilla;edited + pickup fine.nib; + pos[_one](vair,0); pos[_two](.5[vair,stem],0); + top y[_one]=y_move-o-1-eps; + bot y[_two]=-d-o; x[_two]=x[_one]-1.25u=x_move-.5u; %%%!!! + filldraw stroke z[_one]e--z[_two]e; % diagonal +else: + pickup crisp.nib; + pos[_one](vair,90); pos[_two](vair,0); + pos[_three](vair,-45); pos[_four](bulb_diam,90); + x[_four]-.5bulb_diam=hround(x_move-.5bulb_diam); + y[_four]+.5bulb_diam=vround(-d-o+bulb_diam); + z[_one]l=z[_four]l; + lft x[_two]l= + hround(x[_four]-.5bulb_diam-.28u + if monospace: /expansion_factor fi)-2eps; + x[_three]=x[_four]+.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=y_move; + y_:=ypart((z[_one]{left}...z[_two]{up}...z[_three]) + intersectiontimes (z[_four]r{left}..{right}z[_four]l)); + if y_<0: y_:=1; fi + filldraw z[_four]l{right}..subpath (0,y_) of (z[_four]r{left} + ..{right}z[_four]l)--cycle; % dot + filldraw stroke z[_one]e{left}...z[_two]e{up}...z[_three]e; % tail +fi +%%% +penlabels(0,1,2,3,4,5,6,7); endchar; + +lhchar "Lowercase Special letter Ld_dsc"; +cyrchar(Ld_dsc,10u#+serif_fit#,asc_height#,sbeak#); +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(0, + if serifs: serif_fit# else: 0 fi); % lr_serif_adj +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); top y1=h; +numeric edge; edge=lft x2l; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...pulled_arc.e(4,5) + & pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); +pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif +% sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif +% lower lat descender +numeric right_jut; +right_jut=if serifs: 1.414jut else: hround (r-rt x2r-.5u) fi; +r_serif(2,1,o,1/3,0,p,1/3,beak_darkness,right_jut,.6beak_jut); % lower left serif +penlabels(0,1,2,3,4,5,6,7); endchar; + +lhchar "Lowercase Special letter Ld_bar"; +cyrchar(Ld_bar,10u#+serif_fit#,asc_height#,0); +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(0,serif_fit#); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); top y1=h; +numeric edge; edge=lft x2l; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo if monospace: -hair fi; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height if monospace: -.5hair fi ; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...pulled_arc.e(4,5) + & pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); +pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif +% +pos8(bar,90); pos9(bar,90); x8=.5[x4,x5]; +if serifs: x9=x2r+jut; else: x9=w; fi +if serifs: y8=y9=.5[y.a2-.5slab,y4+.5vair]; +else: y8=y9=.5[x_height,asc_height-serif_drop]; fi +filldraw stroke z8e--z9e; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Lowercase Special letter Ld_mtl - miscelaneous tail"; +cyrchar(Ld_mtl,10u#+serif_fit#,asc_height#,0); +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(0,max(u#,.5u#+.5stem#)); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); top y1=h; +numeric edge; edge=lft x2l; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...pulled_arc.e(4,5) + & pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); +pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif +% sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif +% misc_tail +bar_stroke(x2r,hround (r-1/3u)); +penpos10(vair',90); penpos11(hair,180); +x10=x2r; y10l=0; z11=.5[z10l,z9r]; +fill stroke z10e{right}...z11e{up}...{right}z9e; +penlabels(0,1,2,3,4,5,6,7); endchar; + +lhchar "Lowercase Special letter Lf_rev"; +cyrchar(Lf_rev,8u#,asc_height#,0); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +rt x1r=rt x2r=w-hround(2.5u-.5stem); top y1=.25[x_height,h]; bot y2=0; +if serifs: pos1'(stem',0); pos2'(stem',0); pos3(stem,0); + x1l=x1'l=x2'l; x3=w-x1; y1=y1'; y2=y2'; + filldraw stroke z1'e--z2'e; % left stem + pos9(vair,-270); pos9'(vair,90); z9=z9'; x9=.5[x1,x10]; top y9r=h; + pos10(hair,180); rt x10r=hround u; y10=.75[x_height,h]-.5flare; + pos11(flare,180); bulb(9',10,11); % bulb + filldraw stroke super_arc.e(1,9'); % tail +else: pickup fine.nib; pos1'(stem,0); z1'=z1; + z1''r=z1'r; z1''=z1'; z1''l=(x1'l,0); + pos9(vair,-270); x9=4.5u; top y9r=h; + pos10(.5[vair,flare],90); rt x10=hround 1.25u; + y10r=good.y 5/6[x_height,h]; y10l:=good.y y10l; + filldraw stroke z1'e..z1''e&super_arc.e(1'',9) + & term.e(9,10,left,.9,4); fi % tail +if serifs: dish_serif(2,1,c,1/3,jut,d,1/3,jut); fi % lower left serif +% bar +pickup fine.nib; numeric middle_weight; +middle_weight=max(fine.breadth,.6[thin_join,vair]); +pos21(middle_weight,90); pos20(middle_weight,90); +y20=y21=x_height; x21=lft x2l-jut; x20=rt x2r+jut; +filldraw stroke z20e--z21e; +penlabels(1,2,3,4,9,10,11); endchar; + +lhchar "Lowercase Special letter LVg_hcrs"; +cyrchar(LVg_hcrs,10u#+serif_fit#,x_height#,desc_depth#); +h:=vround(x_height#*hppp); d:=vround(desc_depth#*hppp); % vertical adj. +italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi; +adjust_fit(0,serif_fit# if serifs: -.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); +numeric edge; edge=lft x2l; +path edge_path; edge_path=(edge,h)--(edge,0); +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); +pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=2/3[lft x2,edge]; y3=bar_height; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=vround 1/3vair; +lft x7l=edge; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{left}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{right}...{up}z7e; % bowl +y1=ypart(edge_path intersectionpoint(z3l{up}...{left}z4l)); +y0=ypart(edge_path intersectionpoint(z7l{down}...{left}z6l)); +pickup tiny.nib; bot y2=if serifs: -.25d else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; +pos8(hround(hair-stem_corr),0); pos7'(stem',0); +z7'=z1; x8r=x7'r; top y8=h+oo; +filldraw stroke z7'e--z8e; % point +if serifs: pickup tiny.nib; + pos9(vair,-90); x9=.5[x2,x10]; bot y9r=-d-o-1; + pos10(hair,-180); lft x10r=hround u; y10=-.75d+.5flare; + pos11(flare,-180); z11r=z10r; + bulb(9,10,11); filldraw stroke super_arc.e(2,9); % tail +else: pickup fine.nib; pos2'(stem,0); z2'=z2; + z2''r=z2'r; z2''=z2'; z2''l=(x2'l,0); + pos9(vair,-90); x9=4.5u; bot y9r=-d-o-1; + pos10(.5[vair,flare],-90); lft x10=hround 1.25u; + y10r=good.y -5/6d; y10l:=good.y y10l; + filldraw stroke z2'e..z2''e&super_arc.e(2'',9) + & term.e(9,10,left,.9,4); fi % tail +% bar +pickup fine.nib; numeric middle_weight; +middle_weight=max(fine.breadth,.6[thin_join,vair]); +pos21(middle_weight,90); pos20(middle_weight,90); +y20=y21=hround min(-oo-1,.25[-oo,-d+vair'])-.5middle_weight; +x21=lft x2l-jut; x20=rt x2r+.75jut; +filldraw stroke z20e--z21e; +penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; + +lhchar "Lowercase Special letter Vg_beak"; +cyrchar(LVg_beak,10u#+serif_fit#,asc_height#,desc_depth#); +full_h:=h; +h:=vround(x_height#*hppp); d:=vround(desc_depth#*hppp); % vertical adj. +italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi; +adjust_fit(0,serif_fit# if serifs: -.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); +numeric edge; edge=lft x2l; +path edge_path; edge_path=(edge,h)--(edge,0); +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); +pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=2/3[lft x2,edge]; y3=bar_height; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=vround 1/3vair; +lft x7l=edge; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{left}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{right}...{up}z7e; % bowl +%y1=ypart(edge_path intersectionpoint(z3l{up}...{left}z4l)); +y1=full_h; +y0=ypart(edge_path intersectionpoint(z7l{down}...{left}z6l)); +pickup tiny.nib; bot y2=if serifs: -.25d else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; +%pos8(hround(hair-stem_corr),0); pos7'(stem',0); +pos8(vair,90); pos7'(vair,90); +%z7'=z1; x8r=x7'r; top y8=h+oo; +top y8r=top y7'r=tiny.top y1; x7'=x1; x8=hround u; +filldraw stroke z7'e--z8e; % point +if serifs: pickup tiny.nib; + pos9(vair,-90); x9=.5[x2,x10]; bot y9r=-d-o-1; + pos10(hair,-180); lft x10r=hround u; y10=-.75d+.5flare; + pos11(flare,-180); z11r=z10r; + bulb(9,10,11); filldraw stroke super_arc.e(2,9); % tail +else: pickup fine.nib; pos2'(stem,0); z2'=z2; + z2''r=z2'r; z2''=z2'; z2''l=(x2'l,0); + pos9(vair,-90); x9=4.5u; bot y9r=-d-o-1; + pos10(.5[vair,flare],-90); lft x10=hround 1.25u; + y10r=good.y -5/6d; y10l:=good.y y10l; + filldraw stroke z2'e..z2''e&super_arc.e(2'',9) + & term.e(9,10,left,.9,4); fi % tail +penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; + +lhchar "Lowercase Special letter Lh_voic"; +cyrchar(Lh_voic,10u#,asc_height#,0); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); pos3(stem,0); +lft x1l=lft x2l=hround(2.5u-.5stem); x3=w-x1; +top y1=.25[x_height,h]; bot y2=0; +h_stroke(2,a,3,4); % arch and right stem +if serifs: pickup tiny.nib; pos1'(stem',0); pos2'(stem',0); + x1l=x1'l=x2'l; y1=y1'; y2=y2'; + filldraw stroke z1'e--z2'e; % left stem + pos9(vair,-270); pos9'(vair,-90);z9=z9';x9=.5[x1,x10]; top y9r=h; + pos10(hair,-360); + rt x10r=min(w- hround u,rt x3r); + y10=.75[x_height,h]-.5flare; + pos11(flare,-360); + bulb(9,10,11); filldraw stroke super_arc.e(1,9'); % tail +else: pickup fine.nib; pos1'(stem,0); z1'=z1; + z1''r=z1'r; z1''=z1'; z1''l=(x1'l,0); + pos9(vair,-270); x9=4.5u; top y9r=h; + pos10(.5[vair,flare],90); rt x10=hround 1.25u; + y10r=good.y 5/6[x_height,h]; y10l:=good.y y10l; + filldraw stroke z1'e..z1''e&super_arc.e(1'',9) + & term.e(9,10,left,.9,4); fi % tail +if serifs: numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +penlabels(1,2,3,4,9,10,11); endchar; + +lhchar "Lowercase Special letter Lh_moc"; +cyrchar(Lh_moc,10u#,asc_height#,desc_depth#); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos1'(stem',0); pos2'(stem',0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=h; bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +% the accent +% ac_ammoc(x4,0, 5,6,7,8,9); +x_move:=x4; y_move:=0; _zero:=5; _one:=6; _two:=7; _three:=8; _four:=9; +% +numeric bulb_diam; +bulb_diam=max(fine.breadth,min(dot_size,floor(.56d))); +if square_dots: + % sans serif cedilla;edited + pickup fine.nib; + pos[_one](vair,0); pos[_two](.5[vair,stem],0); + top y[_one]=y_move-o-1-eps; + bot y[_two]=-d-o; x[_two]=x[_one]-1.25u=x_move-.5u; %%%!!! + filldraw stroke z[_one]e--z[_two]e; % diagonal +else: + pickup crisp.nib; + pos[_one](vair,90); pos[_two](vair,0); + pos[_three](vair,-45); pos[_four](bulb_diam,90); + x[_four]-.5bulb_diam=hround(x_move-.5bulb_diam); + y[_four]+.5bulb_diam=vround(-d-o+bulb_diam); + z[_one]l=z[_four]l; + lft x[_two]l= + hround(x[_four]-.5bulb_diam-.28u + if monospace: /expansion_factor fi)-2eps; + x[_three]=x[_four]+.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=y_move; + y_:=ypart((z[_one]{left}...z[_two]{up}...z[_three]) + intersectiontimes (z[_four]r{left}..{right}z[_four]l)); + if y_<0: y_:=1; fi + filldraw z[_four]l{right}..subpath (0,y_) of (z[_four]r{left} + ..{right}z[_four]l)--cycle; % dot + filldraw stroke z[_one]e{left}...z[_two]e{up}...z[_three]e; % tail +fi +%%% +penlabels(1,2,3,4); endchar; + +lhchar "Lowercase Special letter Lh_tl"; +cyrchar(Lh_tl,10u#,asc_height#,desc_depth#); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); h:=x_height; +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); +pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=asc_height+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif +% dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +x8=x4; bot y8=-1/3d; penpos8(x3r-x3l,0); % stuff added +pickup tiny.nib; filldraw stroke z4e--z8e; % right stem continuation +pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); + x5=.5[x8,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; + if monospace: lft x6r=0; else: z6r=z7r; lft x7r= rt x2r; fi + (x,y5r)=whatever[z5l,z8l]; x5r:=max(x,.5[x6r,x5]); + filldraw stroke z8e{down}...z5e{left}; bulb(5,6,7); fi % arc and bulb +penlabels(1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter Lh_lftl"; +cyrchar(Lh_lftl,10u#,asc_height#,0); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); pos3(stem,0); +lft x1l=lft x2l=hround(2.5u-.5stem); x3=w-x1; +top y1=.25[x_height,h]; bot y2=0; +h_stroke(2,a,3,4); % arch and right stem +if serifs: pickup tiny.nib; pos1'(stem',0); pos2'(stem',0); + x1l=x1'l=x2'l; y1=y1'; y2=y2'; + filldraw stroke z1'e--z2'e; % left stem + pos9(vair,-270); pos9'(vair,90); pos10(hair,180); + z9=z9'; x9=.5[x1,x10]; top y9r=h; + lft x10r=2x1-min(w-hround u,rt x3r); + y10=.75[x_height,h]-.5flare; + pos11(flare,180); %z11l=z10l; + bulb(9',10,11); filldraw stroke super_arc.e(1,9'); % tail +else: pickup fine.nib; pos1'(stem,0); z1'=z1; + z1''r=z1'r; z1''=z1'; z1''l=(x1'l,0); + pos9(vair,-270); x9=4.5u; top y9r=h; + pos10(.5[vair,flare],90); rt x10=hround 1.25u; + y10r=good.y 5/6[x_height,h]; y10l:=good.y y10l; + filldraw stroke z1'e..z1''e&super_arc.e(1'',9) + & term.e(9,10,left,.9,4); fi % tail +if serifs: numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +penlabels(1,2,3,4,9,10,11); endchar; + +lhchar "Lowercase Special letter Lh_dsc"; +cyrchar(Lh_dsc,10u#,asc_height#,sbeak#); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#, + if serifs: serif_fit# else: 0 fi % lr_serif_adj + -stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos1'(stem',0); pos2'(stem',0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=h; bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +% lower lat descender +numeric right_jut; +right_jut=if serifs: 1.414jut else: hround (r-rt x4r-.5u) fi; +r_serif(4,3,g,1/3,jut,h,1/3,beak_darkness,right_jut,.6beak_jut); % lower right descender +penlabels(1,2,3,4); endchar; + +lhchar "Lowercase Special letter Lhflip_hcrs"; +cyrchar(Lhflip_hcrs,10u#,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; +if light_vair<fine.breadth: light_vair:=fine.breadth; fi +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos3(stem,0); pos4(stem',0); +lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; +if serifs: top y1=h+min(oo,serif_drop); bot y4=-d; +else: top y1=h; bot y4=-d; fi +pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; +penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; +penpos5(light_vair-fine,-90); penpos6(thin_join-fine,0); +y6=y0=2/3bar_height; +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e..z0e--z0'e..z4e; % right stem +pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; +(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); +filldraw stroke {{interim superness:=hein_super; + pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif + sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif + dish_serif(4,0',c,1/3,jut,d,1/3,jut); fi % lower right serif +% bar +pickup fine.nib; numeric middle_weight; +middle_weight=max(fine.breadth,.6[thin_join,vair]); +pos11(middle_weight,90); pos10(middle_weight,90); +y10=y11=hround min(-oo-1,.25[-oo,-d+vair'])-.5middle_weight; +x11=lft x4l-jut; x10=rt x4r+.75jut; +filldraw stroke z10e--z11e; +penlabels(1,2,3,4,5); labels(6); endchar; + +lhchar "Lowercase Special letter Li_dsc"; +cyrchar(Li_dsc,5u#,x_height#,sbeak#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift# if monospace:+.25u# fi, + if serifs: serif_fit# else: 0 fi % lr_serif_adj + -stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs: sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); fi % upper serif +% lower lat descender +numeric right_jut; +right_jut=if serifs: 1.414jut else: hround (r-rt x2r-.5u) fi; +r_serif(2,1,o,1/3,jut,p,1/3,beak_darkness,right_jut,.6beak_jut); % lower right descender +penlabels(1,2); endchar; + +lhchar "Lowercase Special letter j_bar"; +cyrchar(Lj_bar,5.5u#,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+2stem_shift# if monospace:+.5u# fi, + serif_fit#-2stem_shift# if monospace:-.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +rt x1r=hround(.5w+.25u+.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=-1/3d; +filldraw stroke z1e--z2e; % stem +if serifs: sloped_serif.l(1,2,a,1/3,1.1jut,serif_drop); % upper serif + pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); + x5=.5[x2,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; + if monospace: lft x6r=0 else: z6r=z7r; rt x7l=floor .75u fi; + (x,y5r)=whatever[z5l,z2l]; x5r:=max(x,.5[x6r,x5]); + filldraw stroke z2e{down}...z5e{left}; bulb(5,6,7); % arc and bulb +else: pickup fine.nib; pos2'(stem',0); z2'=z2; + pos6(.2[vair,stem'],-90); pos7(vair,-90); + lft x7r=hround -.75u; bot y7r=vround 5/6(-d-oo); + x3r=x1r; top y4r=min(2x_height,h+1); + (x,y7l)=whatever[z7r,(x1,min(h,asc_height))]; x7l:=x; + z5r=z2'r; (x2'l,y5l)=whatever[z7l,z5r]; x5l=x2'l; y5=y5r; + x6r=.5[x7r,x5r]; x6l:=.5[x7l,x5l]; bot y6r=-d-oo; + filldraw stroke z2'e..{down}z5e & super_arc.e(5,6) + & term.e(6,7,left,1,4); fi % arc and terminal +% bar +pickup fine.nib; numeric middle_weight; +middle_weight=max(fine.breadth,.6[thin_join,vair]); +pos8(middle_weight,90); pos9(middle_weight,90); +bot y8r=bot y9r=0; lft x8=hround .5u-1; +rt x9=hround(w-if monospace:.75u+1 else:1/3u fi); +filldraw stroke z8e--z9e; +penlabels(1,2,3,4,5,6,7); endchar; + +lhchar "Lowercase Special letter Lj_arm"; +cyrchar(Lj_arm,5.5u#,x_height#,desc_depth#); +italcorr h#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(2u#+serif_fit#+2stem_shift# if monospace:+\\.5u# fi, + serif_fit#-2stem_shift# if monospace:-.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +rt x1r=hround(.5w+.25u+.5stem'); x1=x2; +top y1=x_height; bot y2=-1/3d; +filldraw stroke z1e--z2e; % stem +if serifs: + save slab; slab:=Vround(vair-vair_corr); %lower.slab + nodish_serif(1,2,a,1/3,.5jut,d,1/3,jut); % upper serif + %sloped_serif.l(1,2,a,1/3,1.1jut,serif_drop); % upper serif + pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); + x5=.5[x2,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; + if monospace: lft x6r=0 else: z6r=z7r; rt x7l=floor .75u fi; + (x,y5r)=whatever[z5l,z2l]; x5r:=max(x,.5[x6r,x5]); + filldraw stroke z2e{down}...z5e{left}; bulb(5,6,7); % arc and bulb +else: + pickup fine.nib; pos2'(stem',0); z2'=z2; + pos6(.2[vair,stem'],-90); pos7(vair,-90); + lft x7r=hround -.75u; bot y7r=vround 5/6(-d-oo); + (x,y7l)=whatever[z7r,(x1,min(h,asc_height))]; x7l:=x; + z5r=z2'r; (x2'l,y5l)=whatever[z7l,z5r]; x5l=x2'l; y5=y5r; + x6r=.5[x7r,x5r]; x6l:=.5[x7l,x5l]; bot y6r=-d-oo; + filldraw stroke z2'e..{down}z5e & super_arc.e(5,6) + & z6e{left}..z7e; fi % arc and terminal +% lower left beak +pickup crisp.nib; pos8(slab,90); top y8r=tiny.top y1; x8=x1; +pos9(hair,180); x9=hround(l+.65u); y9=good.y(y8l-beak/1.4)-eps; +arm(8,9,f,beak_darkness,-.4beak_jut); % left arm and beak +penlabels(1,2,3,4,5,6,7); endchar; + +lhchar "Lowercase Special letter Lj_dotbar"; +cyrchar(Lj_dotbar,5.5u#,min(asc_height#,10/7x_height#+.5idot_diam#),desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+2stem_shift# if monospace:+.5u# fi, + serif_fit#-2stem_shift# if monospace:-.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +rt x1r=hround(.5w+.25u+.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=-1/3d; +filldraw stroke z1e--z2e; % stem +pos3(idot_diam,0); pos4(idot_diam,90); +x3r=x1r; top y4r=h+1; +if bot y4l-top y1<slab: y4l:=min(y4r-eps,y1+tiny+slab); fi +x3=x4; y3=.5[y4l,y4r]; dot(3,4); % dot +if serifs: sloped_serif.l(1,2,a,1/3,1.1jut,serif_drop); % upper serif + pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); + x5=.5[x2,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; + if monospace: lft x6r=0 else: z6r=z7r; rt x7l=floor .75u fi; + (x,y5r)=whatever[z5l,z2l]; x5r:=max(x,.5[x6r,x5]); + filldraw stroke z2e{down}...z5e{left}; bulb(5,6,7); % arc and bulb +else: pickup fine.nib; pos2'(stem',0); z2'=z2; + pos6(.2[vair,stem'],-90); pos7(vair,-90); + lft x7r=hround -.75u; bot y7r=vround 5/6(-d-oo); + (x,y7l)=whatever[z7r,(x1,min(h,asc_height))]; x7l:=x; + z5r=z2'r; (x2'l,y5l)=whatever[z7l,z5r]; x5l=x2'l; y5=y5r; + x6r=.5[x7r,x5r]; x6l:=.5[x7l,x5l]; bot y6r=-d-oo; + filldraw stroke z2'e..{down}z5e & super_arc.e(5,6) + & term.e(6,7,left,1,4); fi % arc and terminal +% hcross +pickup crisp.nib; pos8(bar,90); pos9(bar,90); +top y8r=top y9r=vround bar+eps; +lft x8=tiny.lft x2l-1.414jut; rt x9=hround(w-1/3u)+serif_fit; +filldraw stroke z8e--z9e; % bar +penlabels(1,2,3,4,5,6,7); endchar; + +lhchar "Lowercase Special letter Lj_armhcrs"; +cyrchar(Lj_armhcrs,5.5u#,x_height#,desc_depth#); +italcorr h#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(2u#+serif_fit#+2stem_shift# if monospace:+\\.5u# fi, + serif_fit#-2stem_shift# if monospace:-.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +rt x1r=hround(.5w+.25u+.5stem'); x1=x2; +top y1=x_height; bot y2=-1/3d; +filldraw stroke z1e--z2e; % stem +if serifs: + save slab; slab:=Vround(vair-vair_corr); % lower.slab + nodish_serif(1,2,c,1/3,.5jut,d,1/3,jut); % upper serif + pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); + x5=.5[x2,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; + if monospace: lft x6r=0 else: z6r=z7r; rt x7l=floor .75u fi; + (x,y5r)=whatever[z5l,z2l]; x5r:=max(x,.5[x6r,x5]); + filldraw stroke z2e{down}...z5e{left}; bulb(5,6,7); % arc and bulb +else: + pickup fine.nib; pos2'(stem',0); z2'=z2; + pos6(.2[vair,stem'],-90); pos7(vair,-90); + lft x7r=hround -.75u; bot y7r=vround 5/6(-d-oo); + (x,y7l)=whatever[z7r,(x1,min(h,asc_height))]; x7l:=x; + z5r=z2'r; (x2'l,y5l)=whatever[z7l,z5r]; x5l=x2'l; y5=y5r; + x6r=.5[x7r,x5r]; x6l:=.5[x7l,x5l]; bot y6r=-d-oo; + filldraw stroke z2'e..{down}z5e & super_arc.e(5,6) + & z6e{left}..z7e; fi % arc and terminal +% lower left beak +pickup crisp.nib; pos8(Vround(vair-vair_corr),90); pos9(hair,180); +top y8r=tiny.top y1; x8=x1; x9=hround(l+.65u); y9=good.y(y8l-beak/1.4)-eps; +arm(8,9,f,beak_darkness,-.4beak_jut); % left arm and beak +% hcross +pos11(bar,90); pos10(bar,90); top y10r=top y11r=vround bar+eps; +x11=tiny.lft x2l-1.414jut; x10=hround(w-1/3u)+serif_fit; +filldraw stroke z10e--z11e; % cross bar +penlabels(1,2,3,4,5,6,7); endchar; + +lhchar "Lowercase Special letter Lj_crs"; +cyrchar(Lj_crs,9u#,x_height#,desc_depth#); +italcorr x_height#*slant-cap_serif_fit# + +.75cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(u#,cap_serif_fit#); +pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); +top y1=h; rt x1r=hround(w-2u); x2=x1; y2=-d; + filldraw stroke z1e--z2e; % stem and arc +% lower left beak +pickup crisp.nib; pos30(slab,90); top y30r=h; x30=x1; +pos50(hair,180); x50=hround(l+.65u); y50=good.y(y30l-beak/1.4)-eps; +arm(30,50,f,beak_darkness,-.4beak_jut); % left arm and beak +if serifs: dish_serif(2,1,c,1/3,1.414cap_jut,d,1/3,1.414cap_jut); % lower serif + nodish_serif(1,2,a,1/3,.5cap_jut,b,1/3,.5cap_jut); fi % upper bracketing +% bar +pickup fine.nib; numeric middle_weight; +middle_weight=max(fine.breadth,.6[thin_join,vair]); +pos21(middle_weight,90); pos20(middle_weight,90); +y20=y21=0; x21=lft x2l-1.414cap_jut; x20=rt x2r+1.414cap_jut; +filldraw stroke z20e--z21e; +penlabels(1,2,3,4,5); endchar; + +lhchar "Lowercase Special letter Lk_lcom"; +cyrchar(Lk_lcom,9.5u#,asc_height#,1.25desc_depth#); +italcorr x_height#*slant-.2u#; +adjust_fit(serif_fit#,serif_fit#); pickup tiny.nib; +numeric right_jut,stem[],alpha[]; +stem1=max(tiny.breadth,hround(fudged.stem-stem_corr)); +stem2=max(tiny.breadth,hround(fudged.stem-2stem_corr)); +stem3=max(tiny.breadth,hround(fudged.hair if hefty:-\\4stem_corr fi)); +stem4=max(tiny.breadth,hround(fudged.stem-3stem_corr)); +if serifs: right_jut=.6jut; else: right_jut=.4tiny; fi +pos1(stem1,0); pos2(stem2,0); top y1=h; bot y2=0; +lft x1l=lft x2l=hround(2.5u-.5stem1); +top y3=x_height; rt x3r=hround(r-letter_fit-.7u-right_jut)+eps; +bot y6=0; rt x6r=hround(r-letter_fit-.3u-right_jut)+eps; +x4=x11=x1; y4=.7bar_height; y11=y3; +alpha1=diag_ratio(1,.5(stem3-tiny),y3-y4,x3r-x4); +alpha2=diag_ratio(1,.5(stem4-tiny),y11-y6,x6r-x1); +penpos3(alpha1*(stem3-tiny),0); penpos4(whatever,-90); +z5=.5[z5l,z5r]; penpos6(alpha2*(stem4-tiny),0); +forsuffixes $=l,r: y3'$=x_height; y6'$=0; z4$=z3'$+whatever*(z3-z4); + z5$=z6'$+whatever*(z11-z6)=whatever[z3,z4]; endfor +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 z11-z6 of currentpen+whatever*(z11-z6); +z6'l=z6l+penoffset z6-z11 of currentpen+whatever*(z11-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 +pos0(stem1,0); pos0'(stem2,0); y0=y0'; x0=x1; x0'=x2; +rt z0r=whatever[z3,z4]; filldraw stroke z1e..z0e--z0'e..z2e; % stem +if serifs: numeric inner_jut; + if rt x2r+jut+.5u+1<=lft x6l-jut: inner_jut=jut; + else: rt x2r+inner_jut+.5u+1=lft x6l-inner_jut; fi + sloped_serif.l(1,0,a,1/3,jut,serif_drop); % upper stem serif + dish_serif(2,0',b,1/3,jut,c,1/3,inner_jut); % lower stem serif + dish_serif(3,4,d,2/3,1.4jut,e,1/2,right_jut)(dark); % upper diagonal serif + dish_serif(6,5,f,1/2,inner_jut,g,1/3,right_jut)(dark);fi % lower diagonal serif +% the accent +%ac_comma(0,0,1.25desc_depth, 7,8,9,10,12); + x_move:=0; y_move:=0; depth:=1.25desc_depth; + _zero:=7; _one:=8; _two:=9; _three:=10; _four:=12; + numeric height,bulb_diam; + height=if serifs: depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + % comma below letter as sans serif cedilla + top y[_one]=-o-2; bot y[_two]=-d-o; + x[_two]=x[_one]-1.25u=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=-d+y_move+height; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(0,1,2,3,4,5,6,11); endchar; + +endinput; +%end of file diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgberstb.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgberstb.mf new file mode 100644 index 00000000000..a111de37a5e --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgberstb.mf @@ -0,0 +1,1034 @@ +% +% lgberstb.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Lowercase letters used in files beresta(r/e): file #2 +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames +% +% Llpol +% Llpol_lcom +% Ll_dsc +% LL_hook +% Ln_lngst +% Ln_lngsthcrs +% Ln_dsc +% Lo_open +% Lp_moc +% Lp_tl +% Lq_hcrs +% Lq_dcrs +% Lq_pin +% Lr_hcrs +% Ls_lcom +% Ls_dcrs +% Lt_dsc +% Lt_lcom +% Lwj +% Lx_blbs +% Lz_dsc +% Lz_hcrs +% Lz_dschcrs +% Lz_lcom +% + +LHver_check(3,4); % like |version_check| in ec + +lhchar "Lowercase Special letter Llpol"; +cyrchar(Lpoll,5u#,asc_height#,0); l_width#:=5u#+2serif_fit#; +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif + dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif +_one :=3; _two :=4; +if unknown l_width: l_width:=5u+2serif_fit; fi % nominal width of `l' +if unknown L_stem: L_stem:=cap_serif_fit+max(2u+.5cap_stem,3u); fi % center of `L' stem +% +pickup crisp.nib; +x[_two]-x[_one]=max(4u,2.8u+stem); .5[x[_one],x[_two]]=x1; +y[_one]-.5bar=.2[bar_height,x_height]; +y[_two]+.5bar=.8[bar_height,x_height]; +numeric theta; theta=angle(z[_two]-z[_one])+90; +pos[_one](bar,theta); pos[_two](bar,theta); +filldraw stroke z[_one]e--z[_two]e; % diagonal +penlabels(1,2); endchar; + +lhchar "Lowercase Special letter Llpol_lcom"; +cyrchar(Llpol_lcom,5u#,asc_height#,1.25desc_depth#); l_width#:=5u#+2serif_fit#; +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif + dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif +_one :=3; _two :=4; +if unknown l_width: l_width:=5u+2serif_fit; fi % nominal width of `l' +if unknown L_stem: L_stem:=cap_serif_fit+max(2u+.5cap_stem,3u); fi % center of `L' stem +% +pickup crisp.nib; +x[_two]-x[_one]=max(4u,2.8u+stem); .5[x[_one],x[_two]]=x1; +y[_one]-.5bar=.2[bar_height,x_height]; +y[_two]+.5bar=.8[bar_height,x_height]; +numeric theta; theta=angle(z[_two]-z[_one])+90; +pos[_one](bar,theta); pos[_two](bar,theta); +filldraw stroke z[_one]e--z[_two]e; % diagonal +% the accent +%ac_comma(0,0,1.25desc_depth, 5,6,7,8,9); + x_move:=0; y_move:=0; depth:=1.25desc_depth; + _zero:=5; _one:=6; _two:=7; _three:=8; _four:=9; + numeric height,bulb_diam; + height=if serifs: depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + % comma below letter as sans serif cedilla + top y[_one]=-o-2; bot y[_two]=-d-o; + x[_two]=x[_one]-1.25u=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=-d+y_move+height; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(1,2); endchar; + +lhchar "Lowercase Special letter Ll_dsc"; +cyrchar(Ll_dsc,5u#,asc_height#,sbeak#); l_width#:=5u#+2serif_fit#; +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#, + if serifs: serif_fit# else: 0 fi % lr_serif_adj + -stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif + dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif +% lower lat descender +numeric right_jut; +right_jut=if serifs: 1.414jut else: hround (r-rt x2r-.5u) fi; +r_serif(2,1,g,1/3,jut,h,1/3,beak_darkness,right_jut,.6beak_jut); % lower right descender +penlabels(1,2); endchar; + +lhchar "Lowercase Special letter L_hook"; +cyrchar(LL_hook,11u#-width_adj#,cap_height#,0); +adjust_fit(cap_serif_fit#,0); +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); +top y1=.25[x_height,h]; bot y2=0; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos3(slab,-90); pos4(hair,0); +bot y3r=0; x3=x2; y4=y3l+7/6beak+eps; rt x4r=hround(w-.75u); +arm(3,4,e,1.2beak_darkness,beak_jut); % lower arm and beak +if serifs: % dish_serif(1,2,a,1/3,cap_jut,b,1/3,1.25cap_jut); % upper serif + nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif +if serifs: pickup tiny.nib; + pos9(vair,-270); pos9'(vair,-90); z9=z9';x9=.5[x1,x10]; top y9r=h; + pos10(hair,-360); + rt x10r=min(w- hround u,rt x4r); + y10=.75[x_height,h]-.5flare; + pos11(flare,-360); %z11l=z10l; + bulb(9,10,11); filldraw stroke super_arc.e(1,9'); % tail +else: pickup fine.nib; pos1'(stem,0); z1'=z1; + z1''r=z1'r; z1''=z1'; z1''l=(x1'l,0); + pos9(vair,-270); x9=4.5u; top y9r=h; + pos10(.5[vair,flare],90); rt x10=hround 1.25u; + y10r=good.y 5/6[x_height,h]; y10l:=good.y y10l; + filldraw stroke z1'e..z1''e&super_arc.e(1'',9) + & term.e(9,10,left,.9,4); fi % tail +penlabels(1,2,3,4); endchar; + +lhchar "Lowercase Special letter Ln_lngst"; +cyrchar(Ln_lngst,10u#,x_height#,desc_depth#); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); +pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=h+min(oo,serif_drop); bot y2=-d; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +penlabels(1,2,3,4); endchar; + +lhchar "Lowercase Special letter Ln_lngsthcrs"; +cyrchar(Ln_lngsthcrs,10u#,x_height#,desc_depth#); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); +pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=h+min(oo,serif_drop); bot y2=-d; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-.3jut: inner_jut=.3jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2',1',c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); % lower right serif + fi +% bar +pickup fine.nib; numeric middle_weight; +middle_weight=max(fine.breadth,.6[thin_join,vair]); +pos21(middle_weight,90); pos20(middle_weight,90); +bot y20l=bot y21l=0; x21=lft x2l-jut; x20=rt x2r+jut; +filldraw stroke z20e--z21e; +penlabels(1,2,3,4); endchar; + +lhchar "Lowercase Special letter Ln_dsc"; +cyrchar(Ln_dsc,10u#,x_height#,sbeak#); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#, + if serifs: serif_fit# else: 0 fi % lr_serif_adj + -stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); +pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +% lower lat descender +numeric right_jut; +right_jut=if serifs: max(limit_dist,1.1jut) else: hround (r-rt x4r-.5u) fi; +r_serif(4,3,g,1/3,jut,h,1/3,beak_darkness,right_jut,.6beak_jut); % lower right descender +penlabels(1,2,3,4); endchar; + +lhchar "Lowercase Special letter Lo_open"; +cyrchar(Lo_open,8u#,x_height#,0); +italcorr x_height#*slant-.2u#; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +pickup fine.nib; pos2(vair',90); pos4(vair',270); +x2=x4=.5(w+u); top y2r=vround(h+1.5oo); bot y4r=-oo; +pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5h; +if serifs: pos1(hair,0); pos0(flare,0); + y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare); + rt x1r=hround(w-.7u); bulb(2,1,0); % bulb + pos5(hair,0); rt x5r=hround(w-.5u); + y5=max(good.y(.5bar_height-.9),y4l+vair'); + (x,y4l)=whatever[z4r,z5l]; x4l:=x; +filldraw stroke 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 +else: pos1(4/7[vair',flare],80); + rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2,1,right,.8,4); % upper terminal + pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; +filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) + ..tension .9 and 1..z5e; fi % arc and lower terminal + currentpicture:=currentpicture rotatedaround ((.5w,.5h),180); +penlabels(0,1,2,3,4,5); endchar; + +lhchar "Lowercase Special letter Lp_moc"; +cyrchar(Lp_moc,10u#+serif_fit#,x_height#,desc_depth#); +italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); +adjust_fit(serif_fit#,0); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; +lft x1l=hround(2.5u-.5stem'); top y1=h if serifs: +min(oo,serif_drop) fi; +numeric edge; edge=rt x2r; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); +pos4(vair',90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); +rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l), 1/3[rt x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; +rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{left}...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); +pickup tiny.nib; bot y2=-d; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; pos8(hair,0); pos7'(stem,0); +z7'=z2; x8l=x7'l; bot y8=0; +filldraw stroke z7'e--z8e; % point +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif +% the accent +% ac_ammoc(.5[x5,x6],0, 9,10,11,12,13); +x_move:=.5[x5,x6]; y_move:=0; +_zero:=9; _one:=10; _two:=11; _three:=12; _four:=13; +% +numeric bulb_diam; +bulb_diam=max(fine.breadth,min(dot_size,floor(.56d))); +if square_dots: + % sans serif cedilla;edited + pickup fine.nib; + pos[_one](vair,0); pos[_two](.5[vair,stem],0); + top y[_one]=y_move-o-1-eps; + bot y[_two]=-d-o; x[_two]=x[_one]-1.25u=x_move-.5u; %%%!!! + filldraw stroke z[_one]e--z[_two]e; % diagonal +else: + pickup crisp.nib; + pos[_one](vair,90); pos[_two](vair,0); + pos[_three](vair,-45); pos[_four](bulb_diam,90); + x[_four]-.5bulb_diam=hround(x_move-.5bulb_diam); + y[_four]+.5bulb_diam=vround(-d-o+bulb_diam); + z[_one]l=z[_four]l; + lft x[_two]l= + hround(x[_four]-.5bulb_diam-.28u + if monospace: /expansion_factor fi)-2eps; + x[_three]=x[_four]+.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=y_move; + y_:=ypart((z[_one]{left}...z[_two]{up}...z[_three]) + intersectiontimes (z[_four]r{left}..{right}z[_four]l)); + if y_<0: y_:=1; fi + filldraw z[_four]l{right}..subpath (0,y_) of (z[_four]r{left} + ..{right}z[_four]l)--cycle; % dot + filldraw stroke z[_one]e{left}...z[_two]e{up}...z[_three]e; % tail +fi +%%% +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter Lp_tl"; +cyrchar(Lp_tl,10.5u#+serif_fit#,x_height#,desc_depth#); +italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); +adjust_fit(serif_fit#,0); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; +lft x1l=hround(3u-.5stem'); top y1=h if serifs: +min(oo,serif_drop) fi; +numeric edge; edge=rt x2r; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); +pos4(vair',90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); +pos8(stem',0); +rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l), 1/3[rt x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; +rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{left}...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); +pickup tiny.nib; bot y2=0; bot y8=-1/3d; x2l=x8l; %bot y2=-d; +filldraw stroke z1e--z0'e--z0e--z2e--z8e; % stem +pickup crisp.nib; pos9(hair,0); pos7'(stem,0); +z7'=z2; x9l=x7'l; bot y9=0; +filldraw stroke z7'e--z9e; % point +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif +% dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif +if serifs: + pickup tiny.nib; pos10(vair,-90); pos11(hair,-180); pos12(flare,-180); + x10=.5[x8,x11r]; bot y10r=-d-oo; y11-.5flare=-.88d; + if monospace: lft x11r=0 else: z11r=z12r; rt x12l=floor .75u fi; + (xx,y10r)=whatever[z10l,z8l]; x10r:=max(xx,.5[x11r,x10]); + filldraw stroke z8e{down}...z10e{left}; bulb(10,11,12); % arc and bulb +else: pickup fine.nib; pos8'(stem',0); z8'=z8; + pos11(.2[vair,stem'],-90); pos12(vair,-90); + lft x12r=hround -.75u; bot y12r=vround 5/6(-d-oo); + (xx_,y12l)=whatever[z12r,z3]; x12l:=xx_; + z10r=z8'r; (x8'l,y10l)=whatever[z12l,z10r]; x10l=x8'l; y10=y10r; + x11r=.5[x12r,x10r]; x11l:=.5[x12l,x10l]; bot y11r=-d-oo; + filldraw stroke z8'e..{down}z10e & super_arc.e(10,11) + & z11e{left}..z12e; fi % arc and terminal +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter Lq_hcrs"; +cyrchar(Lq_hcrs,10u#+serif_fit#,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi; +adjust_fit(0,serif_fit# if serifs: -.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); +numeric edge; edge=lft x2l; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair',90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),2/3[lft x2,edge]); y3=bar_height; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; y7=min(y3,y6+y4-y3+.6vair); +lft x7l=min(lft x7l-(rt x7r-tiny.rt x2r),1/3[lft x2,edge]); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{left}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{right}...{up}z7e; % bowl +y1=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z6l{right}...{up}z7l)); +pickup tiny.nib; bot y2=-d; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; +pos8(hround(hair-stem_corr),0); pos7'(stem',0); +z7'=z1; x8r=x7'r; top y8=h+oo; +filldraw stroke z7'e--z8e; % point +if serifs: dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif +% bar +pickup fine.nib; numeric middle_weight; +middle_weight=max(fine.breadth,.6[thin_join,vair]); +pos11(middle_weight,90); pos10(middle_weight,90); +y10=y11=hround min(-oo-1,.25[-oo,-d+vair'])-.5middle_weight; +x11=lft x2l-jut; x10=rt x2r+.75jut; +filldraw stroke z10e--z11e; +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter Lq_dcrs"; +cyrchar(Lq_dcrs,10u#+serif_fit#,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi; +adjust_fit(0,serif_fit# if serifs: -.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); +numeric edge; edge=lft x2l; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair',90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),2/3[lft x2,edge]); y3=bar_height; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; y7=min(y3,y6+y4-y3+.6vair); +lft x7l=min(lft x7l-(rt x7r-tiny.rt x2r),1/3[lft x2,edge]); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{left}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{right}...{up}z7e; % bowl +y1=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z6l{right}...{up}z7l)); +pickup tiny.nib; bot y2=-d; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; +pos8(hround(hair-stem_corr),0); pos7'(stem',0); +z7'=z1; x8r=x7'r; top y8=h+oo; +filldraw stroke z7'e--z8e; % point +if serifs: dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif +% +pickup crisp.nib; cross_two:=30; cross_one:=40; +x[cross_two]-x[cross_one]=max(4.25u,3u+stem); %max(4u,2.8u+stem); %to account ess_width +.5[x[cross_one],x[cross_two]]=.5[x5,x6]; +y[cross_one]-.5bar=0;%.2[bar_height,x_height]; +y[cross_two]+.5bar=y5;%.8[bar_height,x_height]; +numeric theta; theta=angle(z[cross_two]-z[cross_one])+90; +pos[cross_one](bar,theta); pos[cross_two](bar,theta); +filldraw stroke z[cross_one]e--z[cross_two]e; % diagonal +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter Lq_pin"; +cyrchar(Lq_pin,12.25u#+serif_fit#,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi; +adjust_fit(0,serif_fit# if serifs: -.5u# fi); +ful_w:=w; w:=8.85u; +penpos1(vair,90); penpos3(vair',-90); +penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +% +w:=ful_w; pickup tiny.nib; pos10(stem',0); pos20(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x10; x0=x20; +rt x10r=hround(w-2.5u+.5stem'); numeric edge; edge=lft x20l; +pos30(if hefty:thin_join else: hair fi,0); pos40(vair',90); +lft x30l=min(lft x30l-(rt x30r-tiny.rt x20r),2/3[lft x20,edge]); +y30=bar_height; x40l=6.2u; top y40r=x_height+oo; +y10=ypart(((edge,h)--(edge,0))intersectionpoint(z30l{up}...{left}z40l)); +pickup tiny.nib; bot y20=-d; y0=0; +filldraw stroke z10e--z0'e--z0e--z20e; % stem +pickup crisp.nib; +pos8(hround(hair-stem_corr),0); pos8'(vair',-90); pos7'(stem',0); +z10'=z10; pos10'(stem',0); x7'=x10; x8r=x7'r; top y8=h+oo; z8'l=z8l; +x9=x1; y9=y4; z7'l=whatever[z9,z8l]; pos9'(vair',-90); +filldraw stroke z10'e--z7'e--z8e; % point +z9'l=((pulled_arc.r(4,1)) intersectionpoint (z9--z8l)); +filldraw stroke z9'e--z8'e; % pin +if serifs: dish_serif(20,0,b,1/3,jut,c,1/3,jut); fi % lower serif +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter Lr_hcrs"; +numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#]; +define_whole_blacker_pixels(r_flare); +cyrchar(Lr_hcrs,if serifs:max(7u#,5.5u#+r_flare#) else:6.5u# fi,x_height#,0); +italcorr x_height#*slant if not serifs: +.25u# fi; +adjust_fit(serif_fit#,0); +pickup fine.nib; top y4r=h+oo; +if serifs: pos4(vair,90); pos5(hair,0); + x4=w-max(1.75u,.25u+r_flare); + rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,h]+oo; + pos6(r_flare,0); bulb(4,5,6); % bulb +else: pos4(r_flare,90); rt x4=hround(w-.25u); fi +pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height; +filldraw stroke z3e{up}...{right}z4e; % arc +pickup tiny.nib; pos0(stem',0); pos2(stem',0); +pos1(hround(stem-3stem_corr),0); top y1=h+min(oo,serif_drop); +pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l; +lft x1l=hround(2.5u-.5stem'); bot y2=0; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi % lower serif +% hstroke +bar_stroke(x3l,x4r); +penlabels(1,2,3,4,5,6); endchar; + +lhchar "Lowercase Special letter Ls_lcom"; +cyrchar(Ls_lcom,7.1u#,x_height#,1.25desc_depth#); +italcorr x_height#*slant-if serifs:.55u# else:.3u# fi; +adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi); +numeric theta; theta=90-angle(40u,h); slope:=-h/40u; % angle at middle +numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi; +numeric ess'; ess'=max(fine.breadth,ess); +pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100); +pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w; +top y2l=h+vround 1.5oo; bot y7r=-oo; +y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess'); +lft x3l=hround .6u; rt x6r=hround(w-.6u); +x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine; +ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; +ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; +interim superness:=more_super; +filldraw stroke super_arc.e(2,3) & z3e{down} + ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke +if serifs: pos1(hair,180); pos8(hair,180); + rt x1l=hround(w-1.05u); lft x8r=hround .6u; + bot y1=min(bot y2r,vround 1/5[top y5r,h]); + top y8=max(top y7l,vround 5/6 bot y4l); + filldraw stroke z1e{up}....{left}z2e; % upper arc + filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e; % lower arc + path upper_arc, lower_arc; + upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8; + pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0); + x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r; + x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8; + numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1')); + filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle; % upper barb + t:=xpart(lower_arc intersectiontimes(z9r--z8')); + filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle; % lower barb +else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100); + x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u; + top y1l=vround(.93h+1.5oo); bot y8r=vround .1h-oo; + filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal + filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal +% the accent +%ac_comma(0,0,1.25desc_depth, 11,12,13,14,15); + x_move:=0; y_move:=0; depth:=1.25desc_depth; + _zero:=11; _one:=12; _two:=13; _three:=14; _four:=15; + numeric height,bulb_diam; + height=if serifs: depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + % comma below letter as sans serif cedilla + top y[_one]=-o-2; bot y[_two]=-d-o; + x[_two]=x[_one]-1.25u=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=-d+y_move+height; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); endchar; + +lhchar "Lowercase Special letter Ls_dcrs"; +cyrchar(Ls_dcrs,7.1u#,x_height#,0); +italcorr x_height#*slant-if serifs:.55u# else:.3u# fi; +adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi); +numeric theta; theta=90-angle(40u,h); slope:=-h/40u; % angle at middle +numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi; +numeric ess'; ess'=max(fine.breadth,ess); +pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100); +pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w; +top y2l=h+vround 1.5oo; bot y7r=-oo; +y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess'); +lft x3l=hround .6u; rt x6r=hround(w-.6u); +x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine; +ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; +ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; +interim superness:=more_super; +filldraw stroke super_arc.e(2,3) & z3e{down} + ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke +if serifs: pos1(hair,180); pos8(hair,180); + rt x1l=hround(w-1.05u); lft x8r=hround .6u; + bot y1=min(bot y2r,vround 1/5[top y5r,h]); + top y8=max(top y7l,vround 5/6 bot y4l); + filldraw stroke z1e{up}....{left}z2e; % upper arc + filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e; % lower arc + path upper_arc, lower_arc; + upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8; + pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0); + x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r; + x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8; + numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1')); + filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle; % upper barb + t:=xpart(lower_arc intersectiontimes(z9r--z8')); + filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle; % lower barb +else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100); + x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u; + top y1l=vround(.93h+1.5oo); bot y8r=vround .1h-oo; + filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal + filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal +% +pickup crisp.nib; cross_two:=30; cross_one:=40; +x[cross_two]-x[cross_one]=max(4.25u,3u+stem); %max(4u,2.8u+stem); %to account ess_width +.5[x[cross_one],x[cross_two]]=.5w; +y[cross_one]-.5bar=.3x_height;%.2[bar_height,x_height]; +y[cross_two]+.5bar=.7x_height;%.8[bar_height,x_height]; +numeric theta; theta=angle(z[cross_two]-z[cross_one])+90; +pos[cross_one](bar,theta); pos[cross_two](bar,theta); +filldraw stroke z[cross_one]e--z[cross_two]e; % diagonal +penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); endchar; + +lhchar "Lowercase Special letter Lt_dsc"; +cyrchar(Lt_dsc,6u#+max(u#,.5stem#), + min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),sbeak#); +italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; +adjust_fit(0,if serifs: 0 else: -.5u# fi); +numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); +pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180); +lft x2r=lft x3r=hround(2.5u-.5shaved_stem); +y2=y8; y3=max(.5bar_height,2vair); +pickup crisp.nib; pos8(bar,90); +rt x8=hround(w-1.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l; +if hefty: pos7(bar,90); + filldraw stroke z7e--z8e; % crossbar + pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0); + rt x1r=fine.rt x2l; top y1=h; + penpos2'(x1r-x1l,0); x2'=x1; y2'=y2; + filldraw stroke z1e--z2'e; % upper terminal +else: pos7(vair,90); pos1(hair,0); + rt x1r=fine.rt x2l; top y1=h; + filldraw z1l{down}...{left}z7r--z7l--z8l + --z8r--(x1r,y8r)--z1r--cycle; fi % upper terminal and crossbar +pickup fine.nib; interim superness:=more_super; +pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u); +if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l]; + (x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]); + filldraw stroke z2e..super_arc.e(3,4)...{up}z5e; % stem and hook + pickup crisp.nib; pos6(hair,0); pos5'(hair,0); + x6=x5=x5'; top y6=max(vround .75bar_height,top y5); y5=y5'; + filldraw stroke z5'e--z6e; % terminal +penpos14'(slab,180); x14'l=fine.rt x5r; y14'=-d; + fill z4{right}...{up}z5--(fine.rt x5r,y5r)---z14'l...z14'r--cycle; +else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height]; + x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair; + filldraw stroke z2e..super_arc.e(3,4); % stem and hook + path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal + if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): + filldraw stroke z4e{right}...{up}z5e; + else: filldraw p; fi +penpos14'(slab,180); x14'l=rt x5r; y14'=-d; + fill + if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): + z4{right}...{up}z5 else: z4{right}..tension .9 and atleast 1..z5 fi + --(rt x5r,y5r)---z14'l...z14'r--cycle; +fi; +penlabels(1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter Lt_lcom"; +cyrchar(Lt_lcom,6u#+max(u#,.5stem#), + min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),1.25desc_depth#); +italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; +adjust_fit(0,if serifs: 0 else: -.5u# fi); +numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); +pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180); +lft x2r=lft x3r=hround(2.5u-.5shaved_stem); +y2=y8; y3=max(.5bar_height,2vair); +pickup crisp.nib; pos8(bar,90); +rt x8=hround(w-1.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l; +if hefty: pos7(bar,90); + filldraw stroke z7e--z8e; % crossbar + pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0); + rt x1r=fine.rt x2l; top y1=h; + penpos2'(x1r-x1l,0); x2'=x1; y2'=y2; + filldraw stroke z1e--z2'e; % upper terminal +else: pos7(vair,90); pos1(hair,0); + rt x1r=fine.rt x2l; top y1=h; + filldraw z1l{down}...{left}z7r--z7l--z8l + --z8r--(x1r,y8r)--z1r--cycle; fi % upper terminal and crossbar +pickup fine.nib; interim superness:=more_super; +pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u); +if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l]; + (x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]); + filldraw stroke z2e..super_arc.e(3,4)...{up}z5e; % stem and hook + pickup crisp.nib; pos6(hair,0); pos5'(hair,0); + x6=x5=x5'; top y6=max(vround .75bar_height,top y5); y5=y5'; + filldraw stroke z5'e--z6e; % terminal +else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height]; + x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair; + filldraw stroke z2e..super_arc.e(3,4); % stem and hook + path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal + if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): + filldraw stroke z4e{right}...{up}z5e; + else: filldraw p; fi fi; +% the accent +%ac_comma(0,0,1.25desc_depth, 9,10,11,12,13); + x_move:=0; y_move:=0; depth:=1.25desc_depth; + _zero:=9; _one:=10; _two:=11; _three:=12; _four:=13; + numeric height,bulb_diam; + height=if serifs: depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + % comma below letter as sans serif cedilla + top y[_one]=-o-2; bot y[_two]=-d-o; + x[_two]=x[_one]-1.25u=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=-d+y_move+height; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter Lwj"; +cyrchar(Lwj,13u#,x_height#,desc_depth#); +italcorr x_height#*slant+.25u#; +adjust_fit(serif_fit#,serif_fit#); +numeric stem[],outer_jut,upper_notch,alpha,mid_corr; +outer_jut=.7jut; x1l=w-x8r=l+letter_fit+outer_jut+.25u; +stem1=fudged.stem-stem_corr; +stem4=min(fudged.hair if hefty:-2stem_corr fi,stem1); +stem2=if hefty:.1[vair,stem4] else: stem4 fi; +stem3=max(stem2,stem1-3stem_corr); +x2-x1=x4-x3=x6-x5=x8-x7; x2l+apex_corr=x3l; x6l+apex_corr=x7l; +y1=y8=h; y2=y3=y6=y7=-apex_oo; +y4=y5=if monospace: vround .6 fi\\ h; upper_notch=y4-notch_cut; +mid_corr=if monospace or hefty:-.3apex_corr else: .5jut fi; +alpha=diag_ratio(4,stem2-stem3+stem4,y1-y2,x8r-x1l+mid_corr-2apex_corr); +penpos1(alpha*stem1,0); penpos2(alpha*stem1,0); +penpos3(alpha*stem2,0); penpos4(alpha*stem2,0); +penpos5(alpha*stem3,0); penpos6(alpha*stem3,0); +penpos7(alpha*stem4,0); penpos8(alpha*stem4,0); +x4l-x1l=floor(x4l-x1l+.5(x5r+mid_corr-x4r)); % |x5r| $\approx$ |x4r+mid_corr| +z23=whatever[z1r,z2r]=whatever[z3l,z4l]; +z45=whatever[z3r,z4r]=whatever[z5l,z6l]; +z67=whatever[z5r,z6r]=whatever[z7l,z8l]; +fill diag_end(1l,2l,1,1,3r,4r){z4-z3} + ...if y45<upper_notch:(x45,upper_notch)+.5left{up} + --(x45,upper_notch)+.5right{down} else: z45&z45 fi + ...{z6-z5}diag_end(5l,6l,1,1,7r,8r)--diag_end(7r,8r,1,1,8l,7l){z7-z8} + ...if y67>notch_cut:(x67,notch_cut)+.5right{down} + --(x67,notch_cut)+.5left{up} else: z67&z67 fi + ...{z5-z6}special_diag_end(6,5,4,3){z3-z4} + ...if y23>notch_cut:(x23,notch_cut)+.5right{down} + --(x23,notch_cut)+.5left{up} else: z23&z23 fi + ...{z1-z2}diag_end(2r,1r,1,1,1l,2l)--cycle; % diagonals +if serifs: numeric inner_jut[]; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(5,6); prime_points_inside(8,7); + if monospace: inner_jut1=inner_jut4=1.5jut; + elseif hefty: inner_jut1=inner_jut4=jut; + else: fill diag_end(6r,5r,1,1,5l,6l)--.9[z5l,z6l] + ..{z5-z6}.1[z5r,z6r]--cycle; % middle stem + inner_jut2=.7inner_jut1; inner_jut4=1.1inner_jut3; + if rt x1'r+jut+.5u+1<=lft x5'l-.7jut: inner_jut1=jut; + else: rt x1'r+inner_jut1+.5u+1=lft x5'l-inner_jut2; fi + if rt x5'r+jut+.5u+1<=lft x8'l-1.1jut: inner_jut3=jut; + else: rt x5'r+inner_jut3+.5u+1=lft x8'l-inner_jut4; fi + dish_serif(5',6,e,1/3,inner_jut2,f,1/2,inner_jut3); fi % middle serif + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut1); % left serif + dish_serif(8',7,c,.6,inner_jut4,d,1/2,outer_jut)(dark); fi % right serif +%j +pickup fine.nib; x9=x45; top y9=y45-stem; pos9(fudged.stem,0); +filldraw z9l--z9r--z45--cycle; +% l_tail(70'); +_zero:=9; +_one:=10; _two:=11; _three:=12; _four:=13; _five:=14; +% +pickup fine.nib; +pos[_five](tiny.rt x[_zero]r-tiny.lft x[_zero]l,0); +pos[_one](tiny.rt x[_zero]r-tiny.lft x[_zero]l,0); +z[_five]=z[_zero]; x[_one]r=x[_five]r; +bot y[_one]=max(-1/3d,-d+vair'+eps); +if serifs: + numeric bulb_diam; + bulb_diam=max(currentbreadth+eps,min(.82d-1-eps,hround 7/8[hair,flare])); + pos[_two](vair',-90); pos[_three](hair,-180); + pos[_four](bulb_diam,-180); + x[_two]=.5[x[_one],x[_three]r]; + bot y[_two]r=-d-oo; y[_three]-.5bulb_diam=-.85d; + z[_three]r=z[_four]r; + rt x[_four]l=max(x[_zero]l-bulb_diam, + floor x[_zero]-2.5u if monospace: / expansion_factor fi); + (x,y[_two]r)=whatever[z[_two]l,z[_one]l]; + x[_two]r:=max(x,.5[x[_three]r,x[_two]]); + filldraw stroke z[_five]e--pulled_arc.e([_one],[_two]); + bulb([_two],[_three],[_four]); % bulb +else: + pos[_two](vair',-90); pos[_three](.6[vair',flare],-105); + rt x[_three]r=x[_zero]-3u; bot y[_three]r=-d; + bot y[_two]r=-d-oo; x[_two]=.4[x[_three]r,x[_zero]r]; + filldraw stroke z[_five]e--super_arc.e([_one],[_two]) + & term.e([_two],[_three],left,.8,4); fi +%%% +penlabels(0,1,2,3,4,5,6,7,8,23,45,67, 10,11,12,13,14); endchar; + +lhchar "Lowercase Special letter Lx_blbs"; +cyrchar(Lx_blbs,if serifs:9.5u# else:9u# fi,x_height#,0); +italcorr x_height#*slant-.05u#; +%adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); +adjust_fit(serif_fit# +max(u#,.5u#+.5stem#) if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#+max(u#,.5u#+.5stem#)); +numeric stem[],outer_jut,xjut,alpha[]; +stem1=fudged.stem-4stem_corr; stem2=min(fudged.hair,stem1); +outer_jut=.75jut; xjut= if serifs: (stem1-stem2)/4 else: 0 fi; +x1l=l+letter_fit+.1u+outer_jut+max(u,.5u+.5stem); +x2r=r-letter_fit-.3u-outer_jut-xjut-max(u,.5u+.5stem); +x3l=l+letter_fit+outer_jut+xjut+max(u,.5u+.5stem); +x4r=r-letter_fit-outer_jut-max(u,.5u+.5stem); +y1=y2=h; y3=y4=0; +alpha1=diag_ratio(1,stem1,h,x4r-x1l); +alpha2=diag_ratio(1,stem2,h,x2r-x3l); +penpos1(alpha1*stem1,0); penpos2(alpha2*stem2,0); +penpos3(alpha2*stem2,0); penpos4(alpha1*stem1,0); +top y5r=top y8r=h+oo; penpos5(vair,90); penpos8(vair,90); +penpos1''(alpha1*stem1,0); penpos2''(alpha2*stem2,0); +z1''=whatever[z1,z4]; z2''=whatever[z2,z3]; +y1''=y2''=min(.9x_height,bot y5l-vair); +x5=if serifs:.5[x2'',rt x6r] else: rt x6r fi; +x8=if serifs:.5[x1'',lft x9r] else: lft x9r fi; +rt x6r=hround(r-.5u-.5); penpos6(hair,0); +lft x9r=hround(l+.5u+.5); penpos9(hair,180); +y6=y9=max(vround(top y5r-.5hair)-1-.5flare, + min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare)); +penpos7(flare,0); penpos10(flare,180); +if serifs: cyrbulb(5,6,7); cyrbulb(8,9,10); fi +if hefty: z0=whatever[z1,z4]=whatever[z2,z3]; + x12=x34=x0; y13=y24=y0; + z12=whatever[z2l,z3l]; z13=whatever[z2l,z3l]; + z24=whatever[z2r,z3r]; z34=whatever[z2r,z3r]; + forsuffixes $=13,24,34: z$'=.2[z$,z0]; endfor + fill z1''r...{left}z8r--z8l{right}...z1''l--z13' + --diag_end(13',3l,1,.5,3r,34')--z34' + --diag_end(34',4l,.5,1,4r,24')--z24' + --z2''r...{right}z5l--z5r{left}...z2''l--z12--cycle; % diagonals +% fill diag_end(12,1r,.5,1,1l,13')--z13'--diag_end(13',3l,1,.5,3r,34')--z34' +% --diag_end(34',4l,.5,1,4r,24')--z24' +% --diag_end(24',2r,1,.5,2l,12)--z12--cycle; % diagonals +else: fill z1''r...{left}z8r--z8l{right}...z1''l + --diag_end(1l,4l,.5,1,4r,1r)--cycle; % left diagonal + fill diag_end(2l,3l,.5,1,3r,2r) + --z2''r...{right}z5l--z5r{left}...z2''l--cycle; fi % right diagonal +%else: fill diag_end(4r,1r,.5,1,1l,4l) +% --diag_end(1l,4l,.5,1,4r,1r)--cycle; % left diagonal +% fill diag_end(2l,3l,.5,1,3r,2r) +% --diag_end(3r,2r,.5,1,2l,3l)--cycle; fi % right diagonal +if serifs: numeric inner_jut[]; pickup tiny.nib; + prime_points_inside(1,4); prime_points_inside(2,3); + prime_points_inside(3,2); prime_points_inside(4,1); + if rt x1'r+jut+.5u+1<=lft x2'l-jut-xjut: inner_jut1=jut; + else: rt x1'r+inner_jut1+.5u+1=lft x2'l-inner_jut1-xjut; fi + if rt x3'r+jut+.5u+1<=lft x4'l-jut-xjut: inner_jut2=jut; + else: rt x3'r+inner_jut2+.5u+1=lft x4'l-inner_jut2-xjut; fi +% dish_serif(1',4,a,1/3,outer_jut,b,2/3,inner_jut1); % upper left serif + dish_serif(4',1,c,2/3,inner_jut2,d,1/3,outer_jut); % lower right serif +% dish_serif(2',3,e,2/3,inner_jut1+xjut,f,1/2,outer_jut+xjut)(dark); % upper right serif + dish_serif(3',2,g,1/2,outer_jut+xjut, + h,2/3,inner_jut2+xjut)(dark); fi % lower left serif +penlabels(0,1,2,3,4,5,6,7,8,9,10,12,13,24,34); endchar; + +lhchar "Lowercase Special letter Lz_dsc"; +cyrchar(Lz_dsc,8u#,x_height#,sbeak#); +italcorr x_height#*slant-.5serif_fit#-.3u#; +adjust_fit(0,.5serif_fit#); +numeric arm_thickness[],z_stem; +if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; + z_stem=.6[vair,stem]; +else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi +pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u; +top y1=h; y2=min(y1,h-2/3arm_thickness1); +bot y4=0; y3=max(y4,2/3arm_thickness2); +numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); +penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); +penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); +pair delta; delta=penoffset z3-z2 of currentpen; +fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l + ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r + ---cycle; % diagonal +pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); +top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; +arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak +% the beak is turning down +pos7(arm_thickness2,90); pos8(hair,0); %!!! +bot y7l=0; x7=x4; rt x8r=hround(w-.75u); +y8=good.y(y7l-beak/1.2)-eps; %!!! +arm(7,8,b,beak_darkness,.6beak_jut); % lower arm and beak +penlabels(1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter Lz_hcrs"; +cyrchar(Lz_hcrs,8u#,x_height#,0); +italcorr x_height#*slant-.5serif_fit#-.3u#; +adjust_fit(0,.5serif_fit#); +numeric arm_thickness[],z_stem; +if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; + z_stem=.6[vair,stem]; +else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi +pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u; +top y1=h; y2=min(y1,h-2/3arm_thickness1); +bot y4=0; y3=max(y4,2/3arm_thickness2); +numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); +penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); +penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); +pair delta; delta=penoffset z3-z2 of currentpen; +fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l + ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r + ---cycle; % diagonal +pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); +top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; +arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak +pos7(arm_thickness2,-90); pos8(hair,0); +bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps; +arm(7,8,b,beak_darkness,.6beak_jut); % lower arm and beak +% hstroke +bar_stroke(x6r,x8r); +penlabels(1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter Lz_dschcrs"; +cyrchar(Lz_dschcrs,8u#,x_height#,sbeak#); +italcorr x_height#*slant-.5serif_fit#-.3u#; +adjust_fit(0,.5serif_fit#); +numeric arm_thickness[],z_stem; +if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; + z_stem=.6[vair,stem]; +else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi +pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u; +top y1=h; y2=min(y1,h-2/3arm_thickness1); +bot y4=0; y3=max(y4,2/3arm_thickness2); +numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); +penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); +penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); +pair delta; delta=penoffset z3-z2 of currentpen; +fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l + ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r + ---cycle; % diagonal +pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); +top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; +arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak +% the beak is turning down +pos7(arm_thickness2,90); pos8(hair,0); %!!! +bot y7l=0; x7=x4; rt x8r=hround(w-.75u); +y8=good.y(y7l-beak/1.2)-eps; %!!! +arm(7,8,b,beak_darkness,.6beak_jut); % lower arm and beak +% hstroke +bar_stroke(x6r,x8r); +penlabels(1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter Lz_lcom"; +cyrchar(Lz_lcom,8u#,x_height#,1.25desc_depth#); +italcorr x_height#*slant-.5serif_fit#-.3u#; +adjust_fit(0,.5serif_fit#); +numeric arm_thickness[],z_stem; +if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; + z_stem=.6[vair,stem]; +else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi +pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u; +top y1=h; y2=min(y1,h-2/3arm_thickness1); +bot y4=0; y3=max(y4,2/3arm_thickness2); +numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); +penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); +penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); +pair delta; delta=penoffset z3-z2 of currentpen; +fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l + ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r + ---cycle; % diagonal +pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); +top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; +arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak +pos7(arm_thickness2,-90); pos8(hair,0); +bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps; +arm(7,8,b,beak_darkness,.6beak_jut); % lower arm and beak +% the accent +%ac_comma(0,0,1.25desc_depth, 9,10,11,12,13); + x_move:=0; y_move:=0; depth:=1.25desc_depth; + _zero:=9; _one:=10; _two:=11; _three:=12; _four:=13; + numeric height,bulb_diam; + height=if serifs: depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + % comma below letter as sans serif cedilla + top y[_one]=-o-2; bot y[_two]=-d-o; + x[_two]=x[_one]-1.25u=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=-d+y_move+height; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(1,2,3,4,5,6,7,8); endchar; + +endinput; +%end of file diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgberstc.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgberstc.mf new file mode 100644 index 00000000000..3ab8f5338e7 --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgberstc.mf @@ -0,0 +1,1105 @@ +% +% lgberstc.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Lowercase letters used in files beresta(r/e): file #3 +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames +% +% Lflap +% Lengma +% Lesh +% LVphi +% Lchi +% LVtheta +% Ltau +% Llig_ue +% Llig_uo +% Lnb +% Leth +% Lenya +% Lketen +%%% +% Cdej +% Cz_mtI +% Cz_mtII +% Cz_mtIII +% Cz_dsc +% Cl_mtl +% Cn_mtl +% Cn_bartl +% +% Cs_mtl +% Ct_mtl +% Ct_v +% Ctch +% Cchit +% Cc_tl +% Csh_lngst +% + +LHver_check(3,4); % like |version_check| in ec + +lhchar "Lowercase Special letter Lflap"; +numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#]; +define_whole_blacker_pixels(r_flare); +cyrchar(Lflap,if serifs:max(7u#,5.5u#+r_flare#) else:6.5u# fi,x_height#,0); +italcorr x_height#*slant if not serifs: +.25u# fi; +adjust_fit(serif_fit#,0); +pickup fine.nib; top y4r=h+oo; +if serifs: pos4(vair,90); pos5(hair,0); + x4=w-max(1.75u,.25u+r_flare); + rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,h]+oo; + pos6(r_flare,0); bulb(4,5,6); % bulb +else: pos4(r_flare,90); rt x4=hround(w-.25u); fi +pos0'(hround(stem-3stem_corr),180); +rt x0'l=hround(2.5u-.5stem')+stem'; top y0'=bar_height; +filldraw stroke z0'e{up}...{right}z4e; % arc +pickup tiny.nib; pos0(stem',0); pos2(stem',0); +pos1(hround(stem-3stem_corr),0); top y1=h+min(oo,serif_drop); +%pos0'(hround(stem-3stem_corr),0); +y0=y0'; x1l=x0l=x2l; +lft x1l=hround(2.5u-.5stem'); bot y2=0; +filldraw stroke z0e--z2e; % stem +if serifs: dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi % lower serif +penlabels(1,2,0',4,5,6); endchar; + +lhchar "Lowercase Special letter Lengma"; +cyrchar(Lengma,10u#,x_height#,desc_depth#); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); +pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif +% dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +x8=x4; bot y8=-1/3d; penpos8(x3r-x3l,0); % stuff added +pickup tiny.nib; filldraw stroke z4e--z8e; % right stem continuation +pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); + x5=.5[x8,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; + if monospace: lft x6r=0; else: z6r=z7r; lft x7r= rt x2r; fi + (x,y5r)=whatever[z5l,z8l]; x5r:=max(x,.5[x6r,x5]); + filldraw stroke z8e{down}...z5e{left}; bulb(5,6,7); fi % arc and bulb +penlabels(1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter Lesh"; +numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); +cyrchar(Lesh,5.5u#,asc_height#,desc_depth#); +define_whole_blacker_pixels(dot_diam); +italcorr h#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+2stem_shift# if monospace:+\\.5u# fi, + serif_fit#-2stem_shift# if monospace:-.5u# fi); +numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); +pickup tiny.nib; pos0(stem',0); pos1(shaved_stem,0); +x0=x1; +x1=.5w; +top y0=x_height if serifs: +min(oo,serif_drop) fi; +bot y1=-1/3d; +pickup fine.nib; numeric bulb_diam; +if serifs: + pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); + x5=.5[x1,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; + if monospace: lft x6r=0 else: z6r=z7r; rt x7l=floor .75u fi; + (x,y5r)=whatever[z5l,z1l]; x5r:=max(x,.5[x6r,x5]); + filldraw stroke z1e{down}...z5e{left}; bulb(5,6,7); % lower arc and bulb + bulb_diam=hround .8[stem,flare]; + pos2(bulb_diam,0); y2+.5bulb_diam=.9[x_height,h+oo]; + if monospace: rt x2r=hround(w-.5u)+1 else: lft x2l=hround(w-.75u+.5) fi; +else: pickup fine.nib; pos1'(stem',0); z1'=z1; + pos6(.2[vair,stem'],-90); pos7(vair,-90); + lft x7r=hround -.75u; bot y7r=vround 5/6(-d-oo); + (x,y7l)=whatever[z7r,(x1,min(h,asc_height))]; x7l:=x; + z5r=z1'r; (x1'l,y5l)=whatever[z7l,z5r]; x5l=x1'l; y5=y5r; + x6r=.5[x7r,x5r]; x6l:=.5[x7l,x5l]; bot y6r=-d-oo; + filldraw stroke z1'e..{down}z5e & super_arc.e(5,6) + & z6e{left}..z7e; % arc and terminal + pos2(5/7[vair,flare],90); top y2r=h; + rt x2=hround(if monospace:w-.5u else:w+.75u fi); fi +pickup tiny.nib; +penpos3(x1r-x1l,0); x3l=x1l; top y3=x_height; +filldraw stroke z1e--z3e; % stem +pickup fine.nib; pos3'(x1r-x1l-(hround stem_corr)+tiny,180); +y3'=y3; lft x3'r=tiny.lft x1l; +penpos4(x3'l-x3'r,180); x4=x3'; y4+.5vair=.5[x_height,h]; +pos8(vair,90); top y8r=h+oo; +if serifs: x8=.5[x4,x2r]; (xa,y8r)=whatever[z8l,z4l]; + x8r:=min(xa,.5[x8,x2r]); pos9(hair,0); bulb(8,9,2); % bulb + filldraw stroke z3'e--z4e & super_arc.e(4,8); % arc +else: x8=.6[x4,x2]; y4l:=1/3[y4l,y8l]; + filldraw stroke z3'e--z4e & super_arc.e(4,8) + & term.e(8,2,right,.9,4); fi % arc and terminal +penlabels(1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter LVphi"; +cyrchar(LVphi,11u#,x_height#,desc_depth#); +italcorr .7x_height#*slant; +adjust_fit(0,0); pickup fine.nib; +pos1(hair,-180); x1=x2+.75u; top y1=h; +pos2(hair,-180); lft x2r=hround .5u; y2=bar_height; +pos3(vstem,-90); x3=.5(w+u); bot y3r=-oo; +pos4(hair,0); rt x4r=hround(w-.5u); y4=y2; +pos5(vstem,90); x5=.52[x6,x4]; top y5r=h+oo; +pos6(hair,180); x6=x7; y6=1/3h; +pos7(stem,180); lft x7r=hround(.5w-.5u-.5stem); y7-.5stem=-d-o; +filldraw circ_stroke z7e---z6e...{right}z5e...{down}z4e...{left}z3e + ...{up}z2e...{3(x1-x2),y1-y2}z1e; % bowl and stem +penlabels(1,2,3,4,5,6,7); endchar; + +lhchar "Lowercase Special letter Lchi"; +cyrchar(Lchi,11u#,x_height#,desc_depth#); +italcorr x_height#*slant+.5hair#-1.5u#; +adjust_fit(0,0); pickup fine.nib; +pos1(hair,180); pos2(vair,80); pos5(vair,80); pos6(hair,180); +x1-.5hair=hround-.5hair; x6=w-x1; x2=w-x5=u; +y1=y2l-h/8; top y2r=h+oo; bot y5l=-d-oo; y6=y5r+h/8; +z0=.5[z2,z5]; z2'=z2l+(.5u,0); z5'=z5r-(.5u,0); +numeric theta; theta=angle(z5'-z2')+90; +pos3(stem,theta); pos4(stem,theta); +y3r=y2r-h/8; y4l=y5l+h/8; z3l=whatever[z2',z0]; z4r=whatever[z0,z5']; +filldraw stroke z1e{up}...z2e{right}...z3e{z4r-z3l} + ..z4e{z4r-z3l}...{right}z5e...{up}z6e; % major diagonal and hooks +x8=w-x7=2u; y7+.5hair=h; y8-.5hair=-d; +numeric theta; theta=angle(z7-z8)-90; +pos7(hair,theta); pos8(hair,theta); +filldraw z7l---z8l..z8r---z7r..cycle; % minor diagonal +penlabels(0,1,2,2',3,4,5',5,6,7,8); endchar; + +lhchar "Lowercase Special letter LVtheta"; +cyrchar(LVtheta,9u#,asc_height#,0); +italcorr .5[bar_height#,x_height#]*slant+.5vair#+.5u#; +adjust_fit(0,0); pickup fine.nib; +numeric light_curve; light_curve=hround .5[stem,curve]; +x0=0; x2-.5stem=hround(2.5u-.5stem); hook_in(0,1,2); % opening hook +pos2'(stem,-180); z2'=z2; pos3(stem,-180); pos4(vair,-90); +pos5(light_curve,0); pos6(vair,90); pos7(hair,180); pos8(vair,270); +x3=x2; x4=x6=.5[x3,x5]; rt x5r=hround(w-1.5u+.5light_curve); +lft x7r=hround(3.25u-.5hair); x8+.5vair=hround(w+.5vair-epsilon); +y3=.4x_height; bot y4r=-oo; y5=.5[y4,y6]; top y6r=h+oo; +y7=.5[x_height,h]; y8=.5[bar_height,x_height]; +filldraw stroke z2'e..{{interim superness:=hein_super; super_arc.e(3,4)}} + & pulled_arc.e(4,5) & pulled_arc.e(5,6) + ...{down}z7e...{4(x8-x7),y8-y7}z8e; % bowl and loop +penlabels(0,a,1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Special letter Ltau"; +cyrchar(Ltau,9u#,x_height#,0); +italcorr x_height#*slant+.5stem#-u#; +adjust_fit(0,0); pi_stroke; % hook and bar +pos4(hair,0); pos5(stem,0); +x4=x5; x5-.5stem=hround(.5w-.5u-.5stem); y4=y2; y5-.5stem=-oo; +filldraw circ_stroke z5e--z4e; % stem +penlabels(1,2,3,4,5); endchar; + +lhchar "Lowercase Special letter Llig_ue"; +cyrchar(Llig_ue,7.25u#+max(.75u#,.5curve#),x_height#,0); +italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); +adjust_fit(5.5u#, if monospace:.5u# else: 0 fi); +numeric left_curve,right_curve; +left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; +if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; pos1(right_curve,0); +pos2(vair,90); pos3(left_curve,180); +y1=good.y bar_height; top y2r=h+vround 1.5oo; y0l=bot y1; +rt x1r=hround min(w-.5u,w-u+.5right_curve); +lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; +if serifs: pos4(vair',270); pos5(hair,360); + y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; + (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal +else: pos4(vair,270); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,270); z4=z4'; + pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke term.e(4',5,right,1,4); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: + x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +%u +numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; +if light_vair<fine.breadth: light_vair:=fine.breadth; fi +pickup tiny.nib; pos10(stem,0); pos20(stem,0); +lft x10l=l+letter_fit+hround(2.5u-.5stem); x10=x20; +if serifs: top y10=h+min(oo,serif_drop); else: top y10=h; fi +penpos20'(stem-fine,-180); z20'=z20; y20=.5bar_height; +penpos50(max(eps,light_vair-fine),-90); penpos60(thin_join-fine,0); +y60=2/3bar_height; x.b0=x10+5u-.5stem; lft x60l=tiny.lft x.b0; +filldraw stroke z10e--z20e; % left stem +pickup fine.nib; bot y50r=-oo; x50l=x10+2.25u; +(s,y50r)=whatever[z50l,z60l]; x50r:=max(s,.5[x50,x20'r]); +path upath.r,upath.l; numeric upoint.r,upoint.l; +forsuffixes e=l,r: upath.e=z50e{right}...{up}z60e; +upoint.e=ypart((super_arc.r(3,4)) intersectiontimes upath.e); endfor; +filldraw stroke {{interim superness:=hein_super; + pulled_arc.e(20',50)}} & subpath(0,upoint.e) of upath.e; % arc +if serifs: sloped_serif.l(10,20,a,1/3,jut,serif_drop); fi % upper left serif +penlabels(0,1,2,3,4,510,20,20',50,60); endchar; + +lhchar "Lowercase Special letter Llig_uo"; +cyrchar(Llig_uo,9u#,x_height#,0); +italcorr .7x_height#*slant; +%adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +adjust_fit(5.5u#,if monospace: .5u# else: 0 fi); +penpos1(vair,90); penpos3(vair',-90); +penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +%u +numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; +if light_vair<fine.breadth: light_vair:=fine.breadth; fi +pickup tiny.nib; pos10(stem,0); pos20(stem,0); +lft x10l=l+letter_fit+hround(2.5u-.5stem); x10=x20; +if serifs: top y10=h+min(oo,serif_drop); else: top y10=h; fi +penpos20'(stem-fine,-180); z20'=z20; y20=.5bar_height; +penpos50(max(eps,light_vair-fine),-90); penpos60(thin_join-fine,0); +y60=2/3bar_height; x.b0=x10+5u-.5stem; lft x60l=tiny.lft x.b0; +filldraw stroke z10e--z20e; % left stem +pickup fine.nib; bot y50r=-oo; x50l=x10+2.25u; +(q,y50r)=whatever[z50l,z60l]; x50r:=max(q,.5[x50,x20'r]); +path upath.r,upath.l; numeric upoint.r,upoint.l; +forsuffixes e=l,r: upath.e=z50e{right}...{up}z60e; +upoint.e=ypart((pulled_arc.r(2,3)) intersectiontimes upath.e); endfor; +filldraw stroke {{interim superness:=hein_super; + pulled_arc.e(20',50)}} & subpath(0,upoint.e) of upath.e; % arc +if serifs: sloped_serif.l(10,20,a,1/3,jut,serif_drop); fi % upper left serif +penlabels(1,2,3,4,10,20,20',50,60); endchar; + +lhchar "Lowercase Special letter Lnb - like italic yat"; +cyrchar(Lnb,13u#,x_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(0,0); full_w:=w; w:=10u; +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 z2e--z1e; % left stem +pickup fine.nib; +x4+.5stem=hround(w-2.5u+.5stem); x5=x4; ital_arch(2,3,4); % arch +y5=.5bar_height; pos5(stem,0); +filldraw stroke z4e{down}..z5e; % right stem +w:=full_w; +x23=x25=.5[x5,x24]; rt x24r=hround(w-u+.5curve); +bot y23r=-oo; top y25r=1.2bar_height+oo; y24=.5[y23,y25]; %y24=y5; +z7'=z5; pos7'(stem,-180); +z20=z5; pos20(hair,180); pos23(vair,-90); pos24(curve,0); pos25(vair,90); +filldraw stroke pulled_arc.e(7',23) & pulled_arc.e(23,24) + & pulled_arc.e(24,25) & super_arc.e(25,20); % bowl +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif +dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower left serif +endchar; + +lhchar "Lowercase Special letter Leth"; +cyrchar(Leth,9u#,asc_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +penpos1(vair,90); penpos3(vair',-90); +penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=x_height; +y3r=-oo; +y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +penpos5(hair/(sind 45),45); penpos4'(stem,0); +x4r=x4'r; y4=y4'; +top y5r=h+oo; x5=x2; +penstroke pulled_arc.e(4',5); +penpos6(bar+stem_corr,120); penpos7(bar+stem_corr,120); +y6=.35[y1,y5]; y7r=h+oo; +x7r=rt x4; x6l=rt x2l; +filldraw stroke z6e--z7e; +penlabels(1,2,3,4,5,6,7); endchar; + +lhchar "Lowercase Special letter Lenya"; +cyrchar(Lenya,10.5u#,x_height#,desc_depth#); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); pos8(stem',0); +numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); +pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); +lft x1l=hround(3u-.5stem); x1l=x1'l=x2l=x2'l=x8l; x3=w+.5u-x1; +top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; +bot y8=-1/3d; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(8,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +if serifs: + pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); + x5=.5[x8,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; + if monospace: lft x6r=0 else: z6r=z7r; rt x7l=floor .75u fi; + (x,y5r)=whatever[z5l,z8l]; x5r:=max(x,.5[x6r,x5]); + filldraw stroke z8e{down}...z5e{left}; bulb(5,6,7); % arc and bulb +else: pickup fine.nib; pos8'(stem',0); z8'=z8; + pos6(.2[vair,stem'],-90); pos7(vair,-90); + lft x7r=hround -.75u; bot y7r=vround 5/6(-d-oo); + (x,y7l)=whatever[z7r,z3]; x7l:=x; + z5r=z8'r; (x8'l,y5l)=whatever[z7l,z5r]; x5l=x8'l; y5=y5r; + x6r=.5[x7r,x5r]; x6l:=.5[x7l,x5l]; bot y6r=-d-oo; + filldraw stroke z8'e..{down}z5e & super_arc.e(5,6) + & z6e{left}..z7e; fi % arc and terminal +penlabels(1,2,3,4,5,6,7,8); endchar; + +if unknown italic: boolean italic; italic=false; fi +iff not italic:% +lhchar "Lowercase Special letter Lketen"; +cyrchar(Lketen,10u#,x_height#,desc_depth#); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); +pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); fi % lower left serif +% dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +% stuff added +z4'=z4; x8=x4; bot y8=-1/3d; +penpos8(rt x4r-lft x4l,0); penpos4'(rt x4r-lft x4l,0); +pickup tiny.nib; fill stroke z4'e--z8e; % right stem continuation + penpos5(vair,-90); penpos6(.7[hair,stem],-180); + penpos7(.7[thin_join,vair],-270); + x5=.5[x8,x6r]; y5r=-d-oo; y6=-2/3d; + x6=hround (x8-min(2.65u,2u+.65stem)); z7=(x4'l,-.5vair); + fill stroke pulled_arc.e(8,5) + ...z6e{up}...{right}z7e; % arc and bulb +penlabels(1,2,3,4,5,6,7,8); endchar; + +iff italic:% +lhchar "Italic Special letter Lketen"; +cyrchar(Lketen,10u#,x_height#,desc_depth#); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(0,0); pickup fine.nib; +x0=0; x1=x2; pos2(stem,0); lft x2l=hround(2.5u-.5stem); y2-.5stem=-oo; +hook_in(0,a,1); % opening hook +filldraw circ_stroke z2e--z1e; % left stem +x4+.5stem=hround(w-2.5u+.5stem); ital_arch(2,3,4); % arch +% stuff added +z4'=z4; x8=x4; bot y8=-1/3d; +penpos8(rt x4r-lft x4l,0); penpos4'(rt x4r-lft x4l,0); +pickup tiny.nib; fill stroke z4'e--z8e; % right stem continuation + penpos5(vair,-90); penpos6(.7[hair,stem],-180); + penpos7(.7[thin_join,vair],-270); + x5=.5[x8,x6r]; y5r=-d-oo; y6=-2/3d; + x6=hround (x8-min(2.65u,2u+.65stem)); z7=(x4'l,-.5vair); + fill stroke pulled_arc.e(8,5) + ...z6e{up}...{right}z7e; % arc and bulb +penlabels(0,a,1,2,3,4,5,6,7); endchar; + +lhchar "Lowercase Special letter Cdej"; +cyrchar(Cdej,10u# if not serifs:+.5width_adj# fi % d_width;n_width + ,x_height#,sbeak#); +italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut +adjust_fit(serif_fit# + if not serifs:+\\.5(stem#-u#),.5(stem#-u#)+ else:,fi\\ serif_fit#); %dl_adj +% lower_d; +pickup tiny.nib; pos1(fudged.stem,0); pos2(fudged.stem,0); +rt x1r=rt x2r=w-hround (2.5u-.5fudged.stem-eps); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; %stem +numeric light_hair,light_stem,outer_jut; +light_hair=if hefty:.5[vair,fudged.hair] else: fudged.hair fi; +light_stem=max(tiny.breadth+eps,min(fudged.stem,fudged.hair if hefty:-4stem_corr fi)); +outer_jut= + if serifs: max(limit_dist,1.1jut) else: hround (r-rt x2r-.5u) fi; +penpos3(light_hair,0); penpos0(light_hair,0); x0=x3-eps; y0=0; y3=h; +x3=1/3[w-rt x1r-1/8(outer_jut if not serifs:-.5(stem-u) fi),rt x1r] + if not serifs: -.5(stem-u) fi +eps; +x4l=w-rt x1r-1/3outer_jut-eps; y4l=vair; +x2'=x2; y2'=if serifs: 1/2 else: 2/3 fi h; +penpos4(light_hair,angle((y2',-x2')-(y4l,-x4l))); if y4r<0: y4r:=0; fi +fill z4l{z2'-z4}...{up}diag_end(0l,3l,1,1,3r,0){down} + ...{z4-z2'}z4r--cycle; %left stem +numeric inner_jut; inner_jut=min(.5(lft x1l-x3r)-eps,.5jut); +save slab; % lower.slab +if serifs: + prime_points_inside(3,0); + slab:=Vround(vair-vair_corr); % lower.slab + nodish_serif(3',0,a,1/3,jut,b,1/3,inner_jut); % upper left serif + nodish_serif(1,2,c,1/3,inner_jut,d,1/3,jut); % upper right serif + filldraw z.b0--z.b1--z.c1--z.c0--cycle; % upper inter_serif bar +else: + pos3'(vair,90); pos1'(vair,90); + lft x3'=x3l; top y3'r=top y1'r=h; rt x1'=x1; + filldraw stroke z3'e--z1'e; fi % upper bar +% lower descenders +slab:=vair; % lower.slab +%r_serif(2,1,e,1/3,inner_jut,f,1/3,beak_darkness,outer_jut,.6beak_jut); % right descender +%!!! +numeric light_stem; +light_stem=hround (max(tiny.breadth,fudged.hair if hefty:-4stem_corr fi)); +top y.f1-slab-eps=bot y.f4+eps=tiny.bot y2; +rt x.f1=hround (tiny.rt x2r+jut)+eps; +rt x.f2=lft x.f3+light_stem+eps=hround (rt x.f1+.6beak_jut)+eps; +x.f4=x2-.5(fudged.stem-3stem_corr-tiny)-eps; +%!!! +% lower de_serif +y5=y.f1; y0'=y.f4; x5=good.x(w-x.f1); y6=y7=y.f3; +x6=good.x(w-x.f2); x7=good.x(w-x.f3); +pair beak_corner; ypart beak_corner=y0'; beak_corner=z7+whatever*(z5-z6); +x8=good.x(w-x.f4); x0'=w-x.e1; y8=y0'; +filldraw z5--z6--z7{z5-z6}...beak_darkness[beak_corner,.5[z7,z8]] + ...{right}z8---z0'--(x0',y5)--cycle; % de_serif +filldraw z.e1--z.e0--z0'--(x0',y5)--cycle; % lower inter_serif bar +if serifs: + numeric bracket_height; + bracket_height=min(y2+bracket,y1); + if bracket_height>y4l: + path p.r,p.l; y5:=top y5; + p.r=(z4r{z2'-z4}...{up}z3r); p.l=(z4l{z2'-z4}...{up}z3l); + forsuffixes e=l,r: + z9e=((0,bracket_height)--(w,bracket_height)) intersectionpoint p.e; + endfor + vardef t (suffix @) = + angle direction directiontime z9@ of p.@ of p.@ enddef; + fill z9l{dir (t(l)+180)}...1/3[(x4l,y5),.5[z9l,z5]]{z5-z9l} + ...{left}z5--(x5,y0')--z0'--(x0',y5) + --(x8-1/6outer_jut-eps,y5){left} + ...{dir t(r)}z9r--cycle; % top part of de_serif + fi +fi +%%%%% +slab:=vair; % lower.slab +nodish_serif(2,1,g,1/3,inner_jut,h,1/3,jut); % lower right serif +d:=desc_depth; +% l_tail(17); +_zero:=17; rt x17r=rt x2r+jut; y17=y2; pos17(fudged.stem-2stem_corr,0); +_one:=11; _two:=12; _three:=13; _four:=14; _five:=15; +% +pickup fine.nib; +pos[_five](tiny.rt x[_zero]r-tiny.lft x[_zero]l,0); +pos[_one](tiny.rt x[_zero]r-tiny.lft x[_zero]l,0); +z[_five]=z[_zero]; x[_one]r=x[_five]r; +bot y[_one]=max(-1/3d,-d+vair'+eps); +if serifs: + numeric bulb_diam; + bulb_diam=max(currentbreadth+eps,min(.82d-1-eps,hround 7/8[hair,flare])); + pos[_two](vair',-90); pos[_three](hair,-180); + pos[_four](bulb_diam,-180); + x[_two]=.5[x[_one],x[_three]r]; + bot y[_two]r=-d-oo; y[_three]-.5bulb_diam=-.85d; + z[_three]r=z[_four]r; + rt x[_four]l=max(x[_zero]l-bulb_diam, + floor x[_zero]-2.5u if monospace: / expansion_factor fi); + (x,y[_two]r)=whatever[z[_two]l,z[_one]l]; + x[_two]r:=max(x,.5[x[_three]r,x[_two]]); + filldraw stroke z[_five]e--pulled_arc.e([_one],[_two]); + bulb([_two],[_three],[_four]); % bulb +else: + pos[_two](vair',-90); pos[_three](.6[vair',flare],-105); + rt x[_three]r=x[_zero]-3u; bot y[_three]r=-d; + bot y[_two]r=-d-oo; x[_two]=.4[x[_three]r,x[_zero]r]; + filldraw stroke z[_five]e--super_arc.e([_one],[_two]) + & term.e([_two],[_three],left,.8,4); fi +%%% +penlabels(0',1',1,2,3,4,5,6,9,10, 11,12,13,14,15,17); endchar; + +lhchar "Lowercase Special letter Cz_mtI"; +cyrchar(Cz_mtI,8u#,x_height#,0); +italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); %p +adjust_fit(if monospace: .5u# else:.1u# fi,max(2u#,1.5u#+.5stem#)); +numeric right_curve; if serifs: right_curve=curve-stem_corr; + else: right_curve=curve-3stem_corr; fi +penpos2(vair,90); penpos3(right_curve-stem_corr,0); +penpos7(right_curve,0); penpos8(vair',-90); +y2r=h+oo; x2=x6l=x6r=x8=.5[u,x7]; x7r=hround(w-.6u); +x3r=min(rt x7r-1,hround(w-u)); y3=.5[y4l,y2l]+eps; y8r=-oo; +set_bar_axis; y4l=y5r=y6r=y2.bh; y6l=y5l=y4r=y1.bh; y5=y6=y0.bh; +if serifs: lft x1r=lft x9r=hround.5u; + y1=min(bar_height+2vair'+2,.9[bar_height,h]-flare); + y9=max(good.y(.5bar_height-.9),y8l+vair'); pos1(hair,180); pos9(hair,-180); +else: lft x1r=hround.6u; lft x9r=hround.5u; + pos1(min(right_curve,1.2flare)-.2tiny,175); %hair + pos9(right_curve-stem_corr-.2tiny,-175); %hair + y1l=max(.76h,top y5r+eps); y9r=min(.25h,bot y5l-eps); fi +lft x5l=lft x5r=min(max(hround 2.2u,rt x1l+.5vair)+eps,lft x6l-fine); +y7=.5[y6l,y8l]; x4l=x4r=1/3[x5l,x3l]; +fill stroke super_arc.e(2,3) & super_arc.e(3,4); % upper bowl +fill stroke z5e..super_arc.e(6,7) & super_arc.e(7,8); % lower bowl +pickup fine.nib; +fill z5r.. + if bot y5r>top y5l:(lft x5r,bot y5r)--(lft x5l,top y5l) else: (lft x5r,y5) fi + ..z5l--cycle; % bar +pos2'(vair,90); z2'=z2; pos8'(vair',-90); z8'=z8; +filldraw stroke z1e{x2-x1,15(y2-y1)}....{right}z2'e; % tension atleast .95 upper bowl +if serifs: path upper_arc; +upper_arc=z1{x2-x1,15(y2-y1)}....{right}z2; % tension atleast .95 + pos20(.3[fine.breadth,hair],0); x20l=x1r; top y20=h+oo; + x1'-x1l=2curve; y1'=y1; + numeric t; t=xpart(upper_arc intersectiontimes (z20r--z1')); + filldraw z1r--z20l--z20r--subpath(t,0) of upper_arc--cycle; fi % upper serif +% misc tail +bar_stroke(x6l,hround (r-1/3u)); +penpos13(vair,90); penpos14(hair,180); penpos15(vair,90); +x15=x7r; y15=y13; z14=.5[z15,z11r]; z13l=z8r; +fill stroke z13e{right}...z15e{right}...z14e{up}...{right}z11e; +penlabels(0,1,2,3,4,5,6,7,8,9,10,13,14,15,20); endchar; + +lhchar "Lowercase Special letter Cz_mtII"; +cyrchar(Cz_mtII,8u#,x_height#,0); +italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); %p +adjust_fit(if monospace: .5u# else:.1u# fi,max(1.5u#,u#+.5stem#)); +numeric right_curve; if serifs: right_curve=curve-stem_corr; + else: right_curve=curve-3stem_corr; fi +penpos2(vair,90); penpos3(right_curve-stem_corr,0); +penpos7(right_curve,0); penpos8(vair',-90); +y2r=h+oo; x2=x6l=x6r=x8=.5[u,x7]; x7r=hround(w-.6u); +x3r=min(rt x7r-1,hround(w-u)); y3=.5[y4l,y2l]+eps; y8r=-oo; +set_bar_axis; y4l=y5r=y6r=y2.bh; y6l=y5l=y4r=y1.bh; y5=y6=y0.bh; +if serifs: lft x1r=lft x9r=hround.5u; + y1=min(bar_height+2vair'+2,.9[bar_height,h]-flare); + y9=max(good.y(.5bar_height-.9),y8l+vair'); pos1(hair,180); pos9(hair,-180); +else: lft x1r=hround.6u; lft x9r=hround.5u; + pos1(min(right_curve,1.2flare)-.2tiny,175); %hair + pos9(right_curve-stem_corr-.2tiny,-175); %hair + y1l=max(.76h,top y5r+eps); y9r=min(.25h,bot y5l-eps); fi +lft x5l=lft x5r=min(max(hround 2.2u,rt x1l+.5vair)+eps,lft x6l-fine); +y7=.5[y6l,y8l]; x4l=x4r=1/3[x5l,x3l]; +fill stroke super_arc.e(2,3) & super_arc.e(3,4); % upper bowl +fill stroke z5e..super_arc.e(6,7); % & super_arc.e(7,8); % lower bowl +pickup fine.nib; +z7'=z7; x8''=x7'; bot y8''=0; pos7'(right_curve,0); pos8''(right_curve,0); +filldraw stroke z7'e--z8''e; % stem +fill z5r.. + if bot y5r>top y5l:(lft x5r,bot y5r)--(lft x5l,top y5l) else: (lft x5r,y5) fi + ..z5l--cycle; % bar +pos2'(vair,90); z2'=z2; pos8'(vair',-90); z8'=z8; +filldraw stroke z1e{x2-x1,15(y2-y1)}....{right}z2'e; % tension atleast .95 upper bowl +if serifs: path upper_arc; +upper_arc=z1{x2-x1,15(y2-y1)}....{right}z2; % tension atleast .95 + pos20(.3[fine.breadth,hair],0); x20l=x1r; top y20=h+oo; + x1'-x1l=2curve; y1'=y1; + numeric t; t=xpart(upper_arc intersectiontimes (z20r--z1')); + filldraw z1r--z20l--z20r--subpath(t,0) of upper_arc--cycle; fi % upper serif +% misc_tail +bar_stroke(x6r,hround (r-1/3u)); +penpos13(vair,90); penpos14(hair,180); +x13r=x8''r; y13l=0; z14=.5[z13,z11r]; +fill stroke z13e{right}...z14e{up}...{right}z11e; +penlabels(0,1,2,3,4,5,6,7,8,9,10,20); endchar; + +lhchar "Lowercase Special letter Cz_mtIII"; +cyrchar(Cz_mtIII,8u#,x_height#,desc_depth#); +italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); %p +adjust_fit(if monospace: .5u#,.4u# else:.1u#,if serifs:0 else:-.2u# fi fi); +numeric right_curve; if serifs: right_curve=curve-stem_corr; + else: right_curve=curve-3stem_corr; fi +penpos2(vair,90); penpos3(right_curve-stem_corr,0); +penpos7(right_curve,0); penpos8(vair',-90); +y2r=h+oo; x2=x6l=x6r=x8=.5[u,x7]; x7r=hround(w-.6u); +x3r=min(rt x7r-1,hround(w-u)); y3=.5[y4l,y2l]+eps; y8r=-oo; +set_bar_axis; y4l=y5r=y6r=y2.bh; y6l=y5l=y4r=y1.bh; y5=y6=y0.bh; +if serifs: lft x1r=lft x9r=hround.5u; + y1=min(bar_height+2vair'+2,.9[bar_height,h]-flare); + y9=max(good.y(.5bar_height-.9),y8l+vair'); pos1(hair,180); pos9(hair,-180); +else: lft x1r=hround.6u; lft x9r=hround.5u; + pos1(min(right_curve,1.2flare)-.2tiny,175); %hair + pos9(right_curve-stem_corr-.2tiny,-175); %hair + y1l=max(.76h,top y5r+eps); y9r=min(.25h,bot y5l-eps); fi +lft x5l=lft x5r=min(max(hround 2.2u,rt x1l+.5vair)+eps,lft x6l-fine); +y7=.5[y6l,y8l]; x4l=x4r=1/3[x5l,x3l]; +fill stroke super_arc.e(2,3) & super_arc.e(3,4); % upper bowl +fill stroke z5e..super_arc.e(6,7) & super_arc.e(7,8); % lower bowl +pickup fine.nib; +fill z5r.. + if bot y5r>top y5l:(lft x5r,bot y5r)--(lft x5l,top y5l) else: (lft x5r,y5) fi + ..z5l--cycle; % bar +pos2'(vair,90); z2'=z2; pos8'(vair',-90); z8'=z8; +filldraw stroke z1e{x2-x1,15(y2-y1)}....{right}z2'e; % tension atleast .95 upper bowl +if serifs: path upper_arc; +upper_arc=z1{x2-x1,15(y2-y1)}....{right}z2; % tension atleast .95 + pos20(.3[fine.breadth,hair],0); x20l=x1r; top y20=h+oo; + x1'-x1l=2curve; y1'=y1; + numeric t; t=xpart(upper_arc intersectiontimes (z20r--z1')); + filldraw z1r--z20l--z20r--subpath(t,0) of upper_arc--cycle; fi % upper serif +% +penpos18(hair,0); penpos28(hair,90); penpos38(hair,90); +x28=x8; x38=fine.lft x7r; y28=y38=-1/3d; y18=.5[y8r,y28r]; x18r=x8-.5(y8r-y28r); +fill stroke z8e{left}...z18e{down}...{right}z28e--z38e; +filldraw (x38,y38)--(x38,-d)--(.67[x28,x38],y28)--cycle; +penlabels(0,1,2,3,4,5,6,7,8,9,10,20); endchar; + +lhchar "Lowercase Special letter Cz_dsc"; +cyrchar(Cz_dsc,8u#,x_height#,0); +italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); %p +adjust_fit(if monospace: .5u#,.4u# else:.1u#,if serifs:0 else:-.2u# fi fi); +numeric right_curve; +if serifs: right_curve=curve-stem_corr; + else: right_curve=curve-3stem_corr; fi +penpos2(vair,90); penpos3(right_curve-stem_corr,0); +penpos7(right_curve,0); penpos8(vair',-90); +y2r=h+oo; x2=x6l=x6r=x8=.5[u,x7]; x7r=hround(w-.6u); +x3r=min(rt x7r-1,hround(w-u)); y3=.5[y4l,y2l]+eps; y8r=-oo; +set_bar_axis; y4l=y5r=y6r=y2.bh; y6l=y5l=y4r=y1.bh; y5=y6=y0.bh; +if serifs: lft x1r=lft x9r=hround.5u; + y1=min(bar_height+2vair'+2,.9[bar_height,h]-flare); + y9=max(good.y(.5bar_height-.9),y8l+vair'); pos1(hair,180); pos9(hair,-180); +else: lft x1r=hround.6u; lft x9r=hround.5u; + pos1(min(right_curve,1.2flare)-.2tiny,175); %hair + pos9(right_curve-stem_corr-.2tiny,-175); %hair + y1l=max(.76h,top y5r+eps); y9r=min(.25h,bot y5l-eps); fi +lft x5l=lft x5r=min(max(hround 2.2u,rt x1l+.5vair)+eps,lft x6l-fine); +y7=.5[y6l,y8l]; x4l=x4r=1/3[x5l,x3l]; +fill stroke super_arc.e(2,3) & super_arc.e(3,4); % upper bowl +fill stroke z5e..super_arc.e(6,7) & super_arc.e(7,8); % lower bowl +pickup fine.nib; +fill z5r{left} + if bot y5r>top y5l:..(lft x5r,bot y5r)--(lft x5l,top y5l).. else: ... fi + {right}z5l--cycle; % bar +pos2'(vair,90); z2'=z2; pos8'(vair',-90); z8'=z8; +filldraw stroke z1e{x2-x1,15(y2-y1)}....{right}z2'e; % tension atleast .95 upper bowl +{{interim superness:=1.05superness; +filldraw stroke if serifs: super_arc.e(8',9) else: +z8'e{left}.. tension atleast .95 ..{x9-x8,15(y9-y8)}z9e fi}}; % lower bowl +if serifs: path upper_arc; +upper_arc=z1{x2-x1,15(y2-y1)}....{right}z2; % tension atleast .95 + pos20(.3[fine.breadth,hair],0); x20l=x1r; top y20=h+oo; + x1'-x1l=2curve; y1'=y1; + numeric t; t=xpart(upper_arc intersectiontimes (z20r--z1')); + filldraw z1r--z20l--z20r--subpath(t,0) of upper_arc--cycle; fi % upper serif +% +penpos14'(slab,0); x14'l=fine.lft x9r; y14'=-d; +path lower_arc; +lower_arc=if serifs: {{interim superness:=1.05superness; + super_arc.r(8',9)}} else: + z8'r{left}.. tension atleast .95 ..{x9-x8,15(y9-y8)}z9r fi; +fill (fine.lft x9r,y9r)---z14'l...z14'r---subpath(.67,1) of lower_arc--cycle; +penlabels(0,1,2,3,4,5,6,7,8,9,10,20); endchar; + +lhchar "Lowercase Special letter Cl_mtl"; +cyrchar(Cl_mtl,10u# % if not serifs:+.5width_adj# fi % dl_width;n_width + ,x_height#,0); +italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut +adjust_fit(serif_fit# if not serifs:+.5(stem#-u#) fi, %dl_adj + max(u#,.5u#+.5stem#)); % +% lower_l; +pickup tiny.nib; pos1(fudged.stem,0); pos2(fudged.stem,0); +rt x1r=rt x2r=w-hround (2.5u-.5fudged.stem-eps); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; %stem +numeric light_hair,bot_vair,bulb_diam,left_jut; +light_hair=if hefty:.5[vair,fudged.hair] else: fudged.hair fi; +bot_vair=Vround(.5[vair,light_hair]); +bulb_diam=hround 7/8[hair,flare]; +left_jut= + if serifs: max(limit_dist,1.1jut) else: hround (w+serif_fit-rt x2r-.5u) fi; +x3=1/3[w-rt x1r-(1/8left_jut),rt x1r] if not serifs: -.5(stem-u) fi +eps; +if serifs: + pos3(light_hair,0); pos4(light_hair,-90); + pos6(bulb_diam,-180); pos5(hair,-180); + top y3=h; y6-.5bulb_diam=.12desc_depth-eps; z6r=z5r; + lft x6r=l+letter_fit+hround(.35u-.5); + x4=max(lft x5r+.5bulb_diam,.4[lft x5r,rt x3r]); + bot y4r=-1.5oo-eps; {{less_tense; bulb(4,5,6)}}; %bulb + filldraw stroke z4e{right} + ..controls (min(15/16[x4,x3],max(x4,lft x6r+1.75bulb_diam))+(x3e-x3),y4e) + and (x3e,max(y4l,min(y6-.5,1/3h+eps))+1/3(y4e-y4))..{up}z3e; % left tail +else: + pos3'(vair,90); pos1'(vair,90); + lft x3'=x3-.5light_hair; rt x1'=x1r; top y3'r=top y1'r=h; + filldraw stroke z3'e--z1'e; % upper bar + pickup fine.nib; pos3(light_hair,0); pos4(bot_vair,-90); pos5(bot_vair,-90); + bot y5r=0; x4=.67[x3l,x5]; + lft x5=l+letter_fit+hround(.35u-.5); bot y4r=bot y5r; y3=y3'; + filldraw stroke z3e{down}..controls (x3e,y5e+.35h) + and (min(7/8[x4e,x3e],x4e+2light_hair)+eps,y4e-eps)..{left}z4e--z5e; fi % left stem +%%% +if serifs: + x0=x3; y0=0; + numeric inner_jut; inner_jut=min(.5(lft x1l-rt x3r)-eps,.5jut); + save slab; slab:=vair; % lower.slab + dish_serif(2,1,a,1/3,jut,b,1/3,jut); %lower right serif + slab:=Vround(vair-vair_corr); % lower.slab + nodish_serif(1,2,c,1/3,inner_jut,d,1/3,jut); %upper right serif + nodish_serif(3,0,e,1/3,1.05jut,f,1/3,inner_jut); % upper left serif + filldraw z.c0--z.c1--z.f1--z.f0--cycle; fi % upper inter_serif bar +%%%%% +% misc_tail +bar_stroke(x2r,hround (r-1/3u)); +penpos9(vair,90); penpos10(hair,180); +x9-jut=x2r; y9l=0; z10=.5[z9,z8r]; +fill stroke z9e{right}...z10e{up}...{right}z8e; +penlabels(1,2,3,4,5,6);endchar; + +lhchar "Lowercase Special letter Cn_mtl (looks like H)"; +cyrchar(Cn_mtl,10u# if serifs=false:+.5width_adj# fi,x_height#,0); % n_width +italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut +adjust_fit(serif_fit#,max(u#,.5u#+.5stem#)); +% lower_n; +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 +bar_stroke(x1,x3); % bar +%%% +if serifs: + numeric inner_jut; + 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(2,1,c,1/3,jut,d,1/3,inner_jut); % lower left serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,jut); fi % lower right serif +%%%%% +% misc tail +bar_stroke(x4r,hround (r-1/3u)); +penpos9(vair',90); penpos10(hair,180); +x9-jut=x4r; y9l=tiny.bot y4; z10=.5[z9,z8r]; +fill stroke z9e{right}...z10e{up}...{right}z8e; +penlabels(1,2,3,4,5,6); endchar; + +lhchar "Lowercase Special letter Cn_bartl"; +cyrchar(Cn_bartl,10u# if serifs=false:+.5width_adj# fi,x_height#,desc_depth#); % n_width +italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut +adjust_fit(serif_fit#, + if monospace:3.9u#else:if serifs:3.5u#else:3.3u#fi fi); %tail_adj +% lower_n; +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 +bar_stroke(x1,x3); % bar +%%% +if serifs: + numeric inner_jut[]; + if rt x1r+jut+.5u+1<=lft x3l-jut: inner_jut1=jut; + else: rt x1r+inner_jut1+.5u+1=lft x3l-inner_jut1; fi + save slab; slab:=Vround(vair-vair_corr); % lower.slab + dish_serif(1,2,a,1/3,jut,b,1/3,inner_jut1); % upper left serif + dish_serif(3,4,e,1/3,inner_jut1,f,1/3,jut); % upper right serif + slab:=vair; % lower.slab + dish_serif(2,1,c,1/3,jut,d,1/3,inner_jut1); % lower left serif + dish_serif(4,3,g,1/3,inner_jut1,h,1/3,.5jut); fi%!!!% lower right serif +%%%%% +w:=w+3.5u; +% tail_part(4); +_zero:=4; +_one:=7; _two:=8; _three:=9; _four:=10; _five:=11; +_six:=12; _seven:=13; _eight:=14; _nine:=15; +% +pickup tiny.nib; +numeric bulb_diam; +bulb_diam=max(currentbreadth+eps,min(.82d-1-eps,hround 7/8[hair,flare])); +set_bar_axis; y[_one]r=y[_two]r=y2.bh; y[_one]l=y[_two]l=y1.bh; +penpos[_three](max(currentbreadth+eps,curve if hefty:-3stem_corr fi),0); +y[_three]=.5[y[_one]r,-d]; +x[_two]l=x[_two]r=w-4.75u; x[_one]l=x[_one]r=x[_zero]; +x[_three]r=hround(w-u); x[_two]l:=x[_four]l:=x[_two]r-.25curve; +{{interim superness:=more_super; + fill stroke super_arc.e([_three],[_two])..z[_one]e}}; % lobe +if serifs: + z[_five]=z[_three]; pos[_five](curve if hefty:-3stem_corr fi,0); + pos[_six](vair,-90); bot y[_six]r=-d-oo; y[_seven]-.5flare=-.85d; + pos[_seven](hair,-180); pos[_eight](bulb_diam,-180); + rt x[_eight]l=max(lft x[_zero]l-jut+bulb_diam, + floor x[_three]-3.5u if monospace: / expansion_factor fi); + z[_seven]r=z[_eight]r; + x[_six]=max(rt x[_eight]l,.6[x[_five],x[_seven]r]); + (x,y[_six]r)=whatever[z[_six]l,z[_five]l]; + x[_six]r:=max(x,.5[x[_seven]r,x[_six]]); + filldraw stroke super_arc.e([_five],[_six]); + bulb([_six],[_seven],[_eight]); % bulb +else: + pickup fine.nib; z[_five]=z[_three]; + pos[_five](max(fine.breadth,curve if hefty:-3stem_corr fi),0); + pos[_nine](vair',-90); pos[_six](.6[vair',flare],-105); + rt x[_six]r=x[_three]-4.5u; bot y[_six]r=-d; + bot y[_nine]r=-d-oo; x[_nine]=.35[x[_six]r,x[_three]r]; + filldraw stroke super_arc.e([_five],[_nine]) + & term.e([_nine],[_six],left,.75,4); fi +%%% +if serifs: + if rt x2r+jut+.5u+1<=x[_three]r: inner_jut2=jut; + else: rt x2r+inner_jut2+.5u+1=x[_three]r; fi + save slab; slab:=vair; % lower.slab + dish_serif(4,3,i,1/3,inner_jut1,j,1/3,inner_jut2); fi % lower right serif +penlabels(1,2,3,4,5,6); endchar; + +lhchar "Lowercase Special letter Cs_mtl (looks like c)"; +cyrchar(Cs_mtl,8u#,x_height#,0); +italcorr x_height#*slant-.2u#; +adjust_fit(if monospace: .5u# else: -.1u# fi,max(u#,.5u#+.5stem#)); +pickup fine.nib; pos2(vair',90); pos4(vair',270); +x2=x4=.5(w+u); top y2r=vround(h+1.5oo); bot y4r=-oo; +pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5h; % eng +if serifs: pos1(hair,0); pos0(flare,0); + y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare); + rt x1r=hround(w-.7u); bulb(2,1,0); % bulb + pos5(hair,0); rt x5r=hround(w-.5u); + y5=max(good.y(.5bar_height-.9),y4l+vair'); + (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); + filldraw stroke 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 +else: pos1(4/7[vair',flare],80); + rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2,1,right,.8,4); % upper terminal + pos5(.6[vair',flare],275); rt x5r=hround(w-.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{right}..tension .9 and 1..z5e; + if angle direction 1 of p.e>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 +% +% misc tail +bar_stroke(x3,hround (r-1/3u)); +z5'=z5; if serifs: penpos5'(hair,180); else: penpos5'(.6[vair',flare],95); fi +fill stroke z5'e{if serifs: up else: dir 75 fi}...{right}z7e; +penlabels(0,1,2,3,4,5); endchar; + +lhchar "Lowercase Special letter Ct_mtl"; +cyrchar(Ct_mtl,9u#-width_adj#,x_height#,0); +italcorr x_height#*slant-beak_jut#-.25u#; +adjust_fit(0,max(u#,.5u#+.5stem#)); +if odd(stem-w): change_width; fi % symmetric & all three equal +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +lft x1l=lft x2l=hround(.5w-.5stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos3(vair,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); % right arm and beak +pos5(hair,180); x5=w-x4; y5=y4; +arm(3,5,f,beak_darkness,-.4beak_jut); % left arm and beak +if serifs: + save slab; slab:=vair; % lower.slab + dish_serif(2,1,c,1/3,1.414jut,d,1/3,1.414jut); % lower serif + slab:=Vround(vair-vair_corr); %lower.slab + nodish_serif(1,2,a,1/3,.5jut,b,1/3,.5jut); fi % upper bracketing +% +% misc tail +bar_stroke(x2r,hround (r-1/3u)); +penpos9(vair',90); penpos10(hair,180); +x9-1.414jut=x2r; y9l=0; z10=.5[z9,z7r]; +fill stroke z9e{right}...z10e{up}...{right}z7e; +penlabels(1,2,3,4,5,6); endchar; + +lhchar "Lowercase Special letter Ct_v"; +cyrchar(Ct_v,9u#-width_adj#,x_height#+acc_height#,0); +italcorr x_height#*slant-beak_jut#-.25u#; +adjust_fit(0,0); full_h:=h; h:=x_height; +if odd(stem-w): change_width; fi % symmetric & all three equal +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +lft x1l=lft x2l=hround(.5w-.5stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos3(vair,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); % right arm and beak +pos5(hair,180); x5=w-x4; y5=y4; +arm(3,5,f,beak_darkness,-.4beak_jut); % left arm and beak +if serifs: + save slab; slab:=vair; % lower.slab + dish_serif(2,1,c,1/3,1.414jut,d,1/3,1.414jut); % lower serif + slab:=Vround(vair-vair_corr); % lower.slab + nodish_serif(1,2,a,1/3,.5jut,b,1/3,.5jut); fi % upper bracketing +% hacheck from dc +h:=full_h; +_zero:=11; +_one:=7; _two:=8; _three:=9; _four:=10; +y_move:=if serifs:0 else: x_height-1/12[x_height,min(asc_height,2x_height)]-o fi; +x_center:=x5l+2/3beak_jut; +% +h':=vround x_height+acc_height; % height of circumflex being inverted +hx:=vround acc_height+.75[x_height,min(asc_height,2x_height)]; +if serifs: pickup crisp.nib; + pos[_two]'(.5[vair,curve],90); + top y[_two]'r=.75[x_height,min(asc_height,2x_height)]-x_height; + pos[_two](.5[vair,curve],90); + x[_two]=x_center; + x[_one]=good.x x[_two]-2.25u if monospace: /expansion_factor fi; + x[_three]=2x[_two]-x[_one]; + top y[_one]=top y[_three] + = x_height+.5y[_two]'r+.5(.5[vair,curve]); + y[_one]-y[_two]=.5y[_two]'r; + pos[_one](hair,angle(z[_two]-z[_one])+90); + pos[_three](hair,angle(z[_three]-z[_two])+90); + filldraw stroke z[_one]e--z[_two]e--z[_three]e; % diagonals +else: pickup fine.nib; pos[_one](vair,0); pos[_three](vair,0); + x[_two]-x[_one]=x[_three]-x[_two]; pos[_two](stem,0); + bot y[_two]=vround(y_move+1/12[x_height,min(asc_height,2x_height)]+o); + x[_two]=x_center; top y[_one]=top y[_three] + = y_move+.75[x_height,min(asc_height,2x_height)]+o; + lft x[_one]l=hround(rt x[_two]r-0.5vair + -3.25u if monospace: /expansion_factor fi); + z[_zero]=whatever[z[_one]r,z[_two]r]=whatever[z[_two]l,z[_three]l]; + y[_four]l=y[_four]r=y[_two]; + x[_four]l=good.x .2[x[_two]l,x[_two]]; + x[_four]r-x[_two]=x[_two]-x[_four]l; + filldraw z[_four]l--z[_one]l--z[_one]r--z[_zero]-- + z[_three]l--z[_three]r--z[_four]r--cycle; fi % diagonals +penlabels(1,2,3,4,5,6,[_one],[_two],[_three],[_four]); +endchar; + +lhchar "Lowercase Special letter Ctch"; +cyrchar(Ctch,11u# if serifs=false:+.5width_adj# fi,x_height#,0); % n_width +italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut +adjust_fit(1.5u#-.5width_adj#,serif_fit#); +% lower_ch; +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=.3[y6,h]; bot y4=0; x5l=1/3[x1,x3]; +y6=good.y (.48h if serifs:-.15(.5[hair,.7stem]) fi); +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e--z4e; % right stem +y5=y6; x6=x6'=x3; +if serifs: y6'=min(3/5h,y6-hair+1.05stem); fi +numeric middle_weight; middle_weight=.6[thin_join,vair]; +penpos2'(fudged.stem,0); z2'=z2; +penpos5(middle_weight,90); penpos6(middle_weight,90); penpos6'(middle_weight,90); +if serifs: + if((y6'-y6)>=middle_weight+1+eps): + fill stroke pulled_arc.e(2',5) & 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 +%%%%% +% T part +pickup crisp.nib; top y15r=h; x15=x1; pos15(vair,90); +pos16(hair,180); lft x16r=l+letter_fit+hround.45u; +y16=good.y(y15l-1/2beak)-eps; +pos17(hair,0); x15-x16=x17-x15; y17=y16; +arm(15,16,q,2/3beak_darkness,-1/3beak_jut); +arm(15,17,r,2/3beak_darkness,1/3beak_jut); +penlabels(1,2,3,4,5,6); endchar; + +lhchar "Lowercase Special letter Cchit"; +cyrchar(Cchit,9.5u#,x_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; +x0=0; x2=x3; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +hook_in(0,1,2)(skewed); % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); +x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook +y3=.7[y4,y5]; bot y4r=.75bar_height; y5=.75h; y6+.5stem=h; +filldraw stroke z2'e...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e--z7e; % right stem +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Lowercase Special letter Cc_tl"; +cyrchar(Cc_tl,10u# if serifs=false:+.5width_adj# fi,x_height#, % n_width + sbeak#); +italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut +adjust_fit(serif_fit#,serif_fit#); +% lower_c;tl +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 inner_jut,right_jut; +if serifs: + 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 + inner_jut:=min(.5(lft x3l-rt x1r)-eps,.5jut); + slab:=vair; % lower.slab + nodish_serif(2,1,c,1/3,jut,d,1/3,inner_jut); % lower left serif + nodish_serif(4,3,g,1/3,inner_jut,h,1/3,jut); % lower left serif + filldraw z.d0--z.d1--z.g1--z.g0--cycle; % lower inter_serif bar +else: + pos2'(vair',90); pos4'(vair',90); + lft x2'=lft x2l; bot y2'l=0; + rt x4'=rt x4r+(2/3fudged.stem-2stem_corr); y4'=y2'; + filldraw stroke z2'e--z4'e; fi +right_jut=if serifs:jut else:2/3 fudged.stem-2stem_corr fi; +pickup fine.nib; x4''r=x4r+right_jut; y4''=0; pos4''(fudged.stem,0); +pos5'(hair,0); y5'=-d; x5'=x1; +filldraw stroke z4''e{down}...z5'e{-1,-1}; +penlabels(1,2,3,4,5,6); endchar; + +lhchar "Lowercase Special letter Csh_lngst"; +cyrchar(Csh_lngst,14u#+.5width_adj#,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut +adjust_fit(serif_fit#,serif_fit#); +% lower_sh;longstem +if odd(fudged.stem-w): change_width; fi % symmetric & all three equal +pickup tiny.nib; +pos1(fudged.stem,0); pos2(fudged.stem,0); pos3(fudged.stem,0); +pos4(fudged.stem,0); pos4'(fudged.stem,0); pos5(fudged.stem,0); +pos6(fudged.stem,0); +lft x1l=lft x2l=hround(2.5u-.5fudged.stem-eps); x3=x4=x4'=w-x1; +top y1=top y3=h; bot y2=bot y4'=0; z5=.5[z1,z3]; z6=.5[z2,z4']; bot y4=-d; +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e--z4e; % right stem +filldraw stroke z5e--z6e; % center stem +if serifs: numeric inner_jut,fit; fit=.5u+1; + if rt x1r+jut+fit<=lft x5l-jut: inner_jut=jut; + else: rt x1r+inner_jut+fit=lft x5l-inner_jut; fi + save slab; slab:=vair; % lower.slab + dish_serif(1,2,a,1/3,jut,b,1/3,inner_jut); % upper left serif + dish_serif(5,6,i,1/3,inner_jut,j,1/3,inner_jut); % upper center serif + dish_serif(3,4,e,1/3,inner_jut,f,1/3,jut); % upper right serif + inner_jut:=min(.5(lft x3l-rt x1r)-eps,.5jut); + slab:=vair; % lower.slab + nodish_serif(2,1,c,1/3,jut,d,1/3,inner_jut); % lower left serif + nodish_serif(6,5,k,1/3,inner_jut,l,1/3,inner_jut); % lower center serif + serif(4',3,g,1/3,-inner_jut); % lower right serif + filldraw z.d0--z.d1--z.g1--z.g0--cycle; % lower inter_serif bar + dish_serif(4,3,m,1/3,inner_jut,n,1/3,jut); % lower right serif +else: pos2'(vair',90); pos4''(vair',90); + lft x2'= lft x2l; rt x4''=rt x4r; y4''=y2'=0; + filldraw stroke z2'e--z4''e; fi +penlabels(1,2,3,4,5,6); endchar; + +endinput; +%end of file diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgcacci.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgcacci.mf new file mode 100644 index 00000000000..ac33585cf81 --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgcacci.mf @@ -0,0 +1,951 @@ +% +% lgcacci.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Italic Cyrillic accented letters +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames +% +% a_bar +% o_bar +% o_lcom +% u_tld +% u_hat +% u_gr +% u_com +% ery_bar +% erev_uml +% erev_dot +% erev_bar +% yu_bar +% ya_bar +% otld_bar +% y_bar +% Vy (italic variant) +% Vy_bar (italic variant) +% eps_uml +% +% l_ldot +% n_ldot +% r_brv +% t_lcom +% ch_ldot +% +% Vg - Serbian italic variant +% Vp - Serbian italic variant +% Vt - Serbian italic variant +% + +LHver_check(3,4); % like |version_check| in ec + +lhchar "Italic Cyrillic letter a_bar"; +cyrchar(a_bar,9u#,lc_trema_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(if monospace:0 else:-.35u#fi,0); %Cyrillic adj +full_h:=h; h:=x_height; +% ital_a; +pickup fine.nib; +pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); +pos4(stem,0); x4=x0; y4+.5stem=vround .98h; +x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); +rt x4r=hround(w-2.5u+.5stem); +top y1r=h+oo; bot y3r=-oo; y0=y2=.5[y1,y3]; +filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2) + & pulled_arc.e(2,3) & super_arc.e(3,0); % bowl +x5=x4; x7=w; hook_out(5,6,7); % closing hook +filldraw circ_stroke z4e--z5e; % stem +% the accent +h:=full_h; +% low_bar(.5w,0, 8,9); +x_move:=.5w; y_move:=0; _one:=8; _two:=9; +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); endchar; + +lhchar "Italic Cyrillic letter o_bar"; +cyrchar(o_bar,9u#,lc_trema_height#,0); +italcorr .7asc_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; +adjust_fit(0,0); full_h:=h; h:=x_height; pickup fine.nib; +pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); +x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2; +top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; +filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl +% the accent +h:=full_h; +% low_bar(x1,0, 5,6); +x_move:=x1; y_move:=0; _one:=5; _two:=6; +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(1,2,3,4, 5,6); endchar; + +lhchar "Italic Cyrillic letter o_lcom - o lower comma"; +cyrchar(o_lcom,9u#,x_height#,1.25desc_depth#); +italcorr .7asc_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; +adjust_fit(0,0); pickup fine.nib; +pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); +x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2; +top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; +filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl +% the accent +%ac_comma(0,-oo,1.25desc_depth, 5,6,7,8,9); + x_move:=0; y_move:=-oo; depth:=1.25desc_depth; + _zero:=5; _one:=6; _two:=7; _three:=8; _four:=9; + numeric height,bulb_diam; + height=if serifs: depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + % comma below letter as sans serif cedilla + top y[_one]=-o-2; bot y[_two]=-d-o; + x[_two]=x[_one]-1.25u=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=-d+y_move+height; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(1,2,3,4, 5,6,7,8,9); endchar; + +lhchar "Italic Cyrillic letter u_tld - u tilde"; +cyrchar(u_tld,if monospace:8.5u# else:9u#fi,x_height#+acc_height#,desc_depth#); +italcorr x_height#*slant+.5stem#-u#; +adjust_fit(0,0); full_h:=h; h:=x_height; +% ital_u; +pickup fine.nib; interim superness:=more_super; +x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +% left shstem; +if monospace: pos0(vair,90); x0=good.x .5[0,x2]; top y0l=h; y2=2/3h; + pos2(stem,0); filldraw stroke z2e{u,x_height}...{left}z0e; % terminal +else: x0=0; hook_in(0,1,2)(skewed); fi % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-1.5u+.5stem); +pos7(stem,0); pos8(vair,-90); +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; +y7=0; bot y8r=-d-oo; x5=x6=x7; x8=.5w; +pos9(hair,-180); pos10(flare,-180); y9=-.5d; +lft x9r=hround(2.75u-.5flare); bulb(8,9,10); % bulb +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e---z7e...{left}z8e; % right stem and link +% the accent +h:=full_h; lowercase_tilde(0,0, 11,12,13,14,15); +penlabels(0,1,2,3,4,5,6,7,8,9,10, 11,12,13,14,15); endchar; + +lhchar "Italic Cyrillic letter u_hat - u hat"; +cyrchar(u_hat,if monospace:8.5u# else:9u#fi,x_height#+acc_height#,desc_depth#); +italcorr x_height#*slant+.5stem#-u#; +adjust_fit(0,0); full_h:=h; h:=x_height; +% ital_u; +pickup fine.nib; interim superness:=more_super; +x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +% left shstem; +if monospace: pos0(vair,90); x0=good.x .5[0,x2]; top y0l=h; y2=2/3h; + pos2(stem,0); filldraw stroke z2e{u,x_height}...{left}z0e; % terminal +else: x0=0; hook_in(0,1,2)(skewed); fi % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-1.5u+.5stem); +pos7(stem,0); pos8(vair,-90); +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; +y7=0; bot y8r=-d-oo; x5=x6=x7; x8=.5w; +pos9(hair,-180); pos10(flare,-180); y9=-.5d; +lft x9r=hround(2.75u-.5flare); bulb(8,9,10); % bulb +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e---z7e...{left}z8e; % right stem and link +% the accent +h:=full_h; lowercase_hat(.5[if monospace: x2 else: x1 fi,x6],0, 11,12,13,14,15); +penlabels(0,1,2,3,4,5,6,7,8,9,10, 11,12,13,14,15); endchar; + +lhchar "Italic Cyrillic letter u_gr - u grave"; +cyrchar_twice(u_gr,if monospace:8.5u# else:9u# fi,x_height#,desc_depth#); +italcorr x_height#*slant+.5stem#-u#; +adjust_fit(0,0); +% ital_u; +pickup fine.nib; interim superness:=more_super; +x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +% left shstem; +if monospace: pos0(vair,90); x0=good.x .5[0,x2]; top y0l=h; y2=2/3h; + pos2(stem,0); filldraw stroke z2e{u,x_height}...{left}z0e; % terminal +else: x0=0; hook_in(0,1,2)(skewed); fi % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-1.5u+.5stem); +pos7(stem,0); pos8(vair,-90); +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; +y7=0; bot y8r=-d-oo; x5=x6=x7; x8=.5w; +pos9(hair,-180); pos10(flare,-180); y9=-.5d; +lft x9r=hround(2.75u-.5flare); bulb(8,9,10); % bulb +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e---z7e...{left}z8e; % right stem and link +% the accent +put_gravis; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +lhchar "Italic Cyrillic letter u_com"; +cyrchar(u_com,if monospace:8.5u# else:9u#fi,x_height#+acc_height#,desc_depth#); +italcorr x_height#*slant+.5stem#-u#; +adjust_fit(0,0); full_h:=h; h:=x_height; +% ital_u; +pickup fine.nib; interim superness:=more_super; +x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +% left shstem; +if monospace: pos0(vair,90); x0=good.x .5[0,x2]; top y0l=h; y2=2/3h; + pos2(stem,0); filldraw stroke z2e{u,x_height}...{left}z0e; % terminal +else: x0=0; hook_in(0,1,2)(skewed); fi % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-1.5u+.5stem); +pos7(stem,0); pos8(vair,-90); +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; +y7=0; bot y8r=-d-oo; x5=x6=x7; x8=.5w; +pos9(hair,-180); pos10(flare,-180); y9=-.5d; +lft x9r=hround(2.75u-.5flare); bulb(8,9,10); % bulb +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e---z7e...{left}z8e; % right stem and link +% the accent +h:=full_h; +%ac_comma(0,0,1.25acc_height, 11,12,13,14,15)(above); + x_move:=0; y_move:=0; depth:=1.25acc_height; + _zero:=11; _one:=12; _two:=13; _three:=14; _four:=15; + numeric height,bulb_diam; + height=if serifs: + depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + %comma above letter: vertical + top y[_two]=h+y_move; + bot y[_one]=vround(y[_two]-height); + x[_two]=x[_one]=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=h+y_move; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(0,1,2,3,4,5,6,7,8,9,10, 11,12,13,14,15); endchar; + +lhchar "Italic Cyrillic letter ery_bar"; +cyrchar(ery_bar,8u#,lc_trema_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; %u +adjust_fit(if monospace:-2u#,2.5u# else:0,4u# fi); h:=x_height; +% ital_ery; +pickup tiny.nib; pos2(stem,0); y2=.6bar_height; +if monospace: x1=x2; pos1(stem,0); lft x1l=hround(2.5u-.5stem); top y1=h; +else: x1=x2+.25u; x0'=0; lft x2l=hround(2.5u-.5stem); + hook_in(0',a,1)(skewed); fi % opening hook +pickup fine.nib; pos1'(stem,-180); pos2'(stem,-180); pos3(vair,-90); +pos4(curve,0); pos5(vair,90); pos0(hair,180); +z1'=z1; z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-u+.5curve); +bot y3r=-oo; top y5r=1.2bar_height+oo; y4=y2; +filldraw stroke z1'e{-u,-x_height}...pulled_arc.e(2',3) & pulled_arc.e(3,4) + & pulled_arc.e(4,5) & super_arc.e(5,0); % bowl +% I +w:=w+4u; +pos6(stem,0); y6+.5stem=h; rt x6r=hround(w-2.5u+.5stem); x7=x6; +if monospace: pos9(vair,90); x9=good.x .5[x6,w]; bot y9l=0; y7=1/3h; + pos7(stem,0); filldraw stroke z7e{down}...{right}z9e; % terminal +else: x9=w; hook_out(7,8,9); fi % opening hook +filldraw circ_stroke z6e--z7e; % stem +% the accent +h:=full_h; +if monospace: +%low_bar(.5[l,r],oo, 11,12); + x_move:=.5[l,r]; y_move:=oo; _one:=11; _two:=12; + 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 +else: +% low_wbar(x1,w-x1,oo, 11,12); + x_left:=x1; x_right:=w-x1; y_move:=oo; _one:=11; _two:=12; + 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_left; x[_two]=x_right; + top y[_one]r=top y[_two]r=lc_trema_height+o; + filldraw stroke z[_one]e--z[_two]e; fi % bar +penlabels(0,1,1',2,3,4,5,6,7,8,9,10, 11,12); endchar; + +lhchar "Italic Cyrillic letter erev_uml - reverse e umlaut"; +cyrchar(erev_uml,8u#,lc_trema_height#,0); +italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; %o +adjust_fit(0,if monospace:0 else:-.35u# fi); %o +h:=x_height; +% ital_erev; +pickup fine.nib; +pos0(flare,180); pos1(hair,-180); pos2(vair,-90); +pos3(curve,0); pos4(vair,90); pos5(hair,140); +x2+.5u=x4=.5(w-u); lft x1r=min(lft x2,hround(.25u))-eps; +rt x3r=w-hround(1.5u-.5curve); lft x5r=good.x (lft x1r-eps); x6=x5; +y1-.5flare=.1h; bot y2r=-oo; bulb(2,1,0); % bulb +top y4r=h+oo; y3=.5[y2,y4]; top y5r=vround .5[bar_height,h]; +y6=bar_height; path p; p=z4{left}....z5..z6; +filldraw stroke pulled_arc.e(2,3) + & pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc +x7=x3; y7=bar_height; y8=y7; lft x8=hround min(lft x2-1-eps,rt x0l+eps); +pos7(vair,90); pos8(vair,90); +filldraw stroke z7e--z8e; +%%% +% the accent +h:=full_h; lowercase_umlaut(0,0, 9,10,11,12); +penlabels(0,1,2,3,4,5,6,7,8, 9,10,11,12); endchar; + +lhchar "Italic Cyrillic letter erev_dot - reverse e dot"; +cyrchar_twice(erev_dot,8u#,x_height#,0); +italcorr x_height#*slant-beak_jut#-.25u#; %o +adjust_fit(0,if monospace:0 else:-.35u# fi); %o +begingroup +% ital_erev; +pickup fine.nib; +pos0(flare,180); pos1(hair,-180); pos2(vair,-90); +pos3(curve,0); pos4(vair,90); pos5(hair,140); +x2+.5u=x4=.5(w-u); lft x1r=min(lft x2,hround(.25u))-eps; +rt x3r=w-hround(1.5u-.5curve); lft x5r=good.x (lft x1r-eps); x6=x5; +y1-.5flare=.1h; bot y2r=-oo; bulb(2,1,0); % bulb +top y4r=h+oo; y3=.5[y2,y4]; top y5r=vround .5[bar_height,h]; +y6=bar_height; path p; p=z4{left}....z5..z6; +filldraw stroke pulled_arc.e(2,3) + & pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc +x7=x3; y7=bar_height; y8=y7; lft x8=hround min(lft x2-1-eps,rt x0l+eps); +pos7(vair,90); pos8(vair,90); +filldraw stroke z7e--z8e; +%%% +% the accent +endgroup; put_dot(fine,flare#); repeat_once; +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +lhchar "Italic Cyrillic letter erev_bar - reverse e bar"; +cyrchar(erev_bar,8u#,lc_trema_height#,0); +italcorr x_height#*slant-beak_jut#-.25u#; %o +adjust_fit(0,if monospace:0 else:-.35u# fi); %o +full_h:=h; h:=x_height; +% ital_erev; +pickup fine.nib; +pos0(flare,180); pos1(hair,-180); pos2(vair,-90); +pos3(curve,0); pos4(vair,90); pos5(hair,140); +x2+.5u=x4=.5(w-u); lft x1r=min(lft x2,hround(.25u))-eps; +rt x3r=w-hround(1.5u-.5curve); lft x5r=good.x (lft x1r-eps); x6=x5; +y1-.5flare=.1h; bot y2r=-oo; bulb(2,1,0); % bulb +top y4r=h+oo; y3=.5[y2,y4]; top y5r=vround .5[bar_height,h]; +y6=bar_height; path p; p=z4{left}....z5..z6; +filldraw stroke pulled_arc.e(2,3) + & pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc +x7=x3; y7=bar_height; y8=y7; lft x8=hround min(lft x2-1-eps,rt x0l+eps); +pos7(vair,90); pos8(vair,90); +filldraw stroke z7e--z8e; +%%% +% the accent +h:=full_h; +% low_bar(.5w,oo, 9,10); +x_move:=.5w; y_move:=oo; _one:=9; _two:=10; +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); endchar; + +lhchar "Italic Cyrillic letter yu_bar (looks like io)"; +cyrchar(yu_bar,9u#,lc_trema_height#,0); +italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; +adjust_fit(if monospace:3u# else:4.5u# fi, + if monospace:-.75u# else:-.35u# fi); +full_h:=h; h:=x_height; +% ital_yu; +pickup fine.nib; +pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); +x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2; +top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; +filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl +% i half +_one:=5; _two:=6; _three:=7; _four:=8; _five:=9; _six:=10; +% +pos[_four](stem,0); +lft x[_four]l=l+letter_fit if not monospace: +hround(2.5u-.5stem) fi; +y[_four]-.5stem=-oo; x[_three]=x[_four]; +if monospace: + pos[_three](stem,0); top y[_three]=h; +else: + x[_one]=l+letter_fit; hook_in([_one],[_two],[_three]); fi % opening hook +filldraw circ_stroke z[_four]e--z[_three]e; % stem +pos[_five](vair,90); pos[_six](vair,90); %!!! +x[_five]=x[_four]; x[_six]=x2; y[_five]=y[_six]=bar_height; %!!! +filldraw stroke z[_five]e--z[_six]e; % bar %!!! +%%% +% the accent +h:=full_h; +if monospace: +% low_bar(.5[l,r],oo, 11,12); + x_move:=.5[l,r]; y_move:=oo; _one:=11; _two:=12; + 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 +else: +% low_wbar(x9,w-(x9-l),oo, 11,12); + x_left:=x9; x_right:=w-(x9-l); y_move:=oo; _one:=11; _two:=12; + 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_left; x[_two]=x_right; + top y[_one]r=top y[_two]r=lc_trema_height+o; + filldraw stroke z[_one]e--z[_two]e; fi % bar +penlabels(0,1,2,3,4,5,6,7,8,9,10, 11,12); endchar; + +lhchar "Italic Cyrillic letter ya_bar (looks like small backward R)"; +cyrchar(ya_bar,9u#,lc_trema_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(0,0); full_h:=h; h:=x_height; +% ital_ya; +pickup fine.nib; +rt x1r=rt x2r=hround(w-2.5u+.5stem); top y1=h; x4=w; +hook_out(2,3,4); % closing hook +pos1(stem,0); filldraw stroke z1e--z2e; % stem +pos5(vair,90); pos6(vair,90); pos7(curve,180); pos8(vair,270); pos9(vair,270); +x5=x9=x1; top y5r=top y6r=h; x6=x8=.5[x5,x7]; +lft x7l=hround(1.5u if not monospace:+.5curve fi); +y7=.5[y5,y9]; y8=y9=bar_height; +filldraw stroke z5e...pulled_arc.e(6,7) & pulled_arc.e(7,8)...z9e; % bowl +pos10(stem,0); pos11(vair,-90); +x10=.3[x11,x9]; y10=1/2y9; x11-flare=-.25u; bot y11r=-oo; +filldraw stroke z11e{right}...z10e{up}...{right}z9e; % lower diagonal +pos12(hair,180); pos13(flare,180); +lft x13r=-.25u; y13-.5flare=.1h; bulb(11,12,13); % bulb +%%% +% the accent +h:=full_h; +% low_bar(.5w,0, 14,15); +x_move:=.5w; y_move:=0; _one:=14; _two:=15; +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(1,2,3,4,5,6,7,8,8',9,10,11,12,13, 14,15); endchar; + +lhchar "Italic Cyrillic letter otld_bar (otld bar)"; +cyrchar(otld_bar,9u#,lc_trema_height#,0); +italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; +adjust_fit(0,0); full_h:=h; h:=x_height; pickup fine.nib; +% ital_o;tld +pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); +x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2; +top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; +filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl +%%% +% oltilde; +if (serifs=true) and (bar#<=.5curve#): + numeric bar[]; + set_bar_axis; + x5r=x2l; x6r=x4l; + y5r=y6r=y2.bh; y5l=y6l=y1.bh; x5r=x5l; x6l=x6r; + bar2=2/3[bar,fudged.stem]; + penpos7(bar2,45); z7=.5[z5l,z6l]; + fill stroke z6e{-2,-1}..{-2,1}z7e..{-2,-1}z5e; +else: + bar_stroke(x2l,x4l); +fi +%%%%% +% the accent +h:=full_h; +% low_bar(.5w,oo, 8,9); +x_move:=.5w; y_move:=oo; _one:=8; _two:=9; +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(1,2,3,4,6,7, 8,9); endchar; + +lhchar "Italic Cyrillic letter y_bar - straight u bar"; +cyrchar(y_bar,9.5u#,lc_trema_height#,desc_depth#); +italcorr x_height#*slant+.25u#; +adjust_fit(.25u#,max(u#,.5u#+.5flare#)); %izhy_adj +full_h:=h; h:=x_height; +% ital_y; +numeric left_stem,right_stem,outer_jut,dy,alpha; left_stem=stem-stem_corr; +right_stem=min(hair if hefty:-2stem_corr fi,left_stem); outer_jut=.75jut; +x1l=l+letter_fit+outer_jut+.25u; x4r=w-x1l; +x2l=x5l=hround(.5w-.5left_stem); x3r=x5r; y1=y4=h; +y2=y3=y5=0; dy=y1-y2; alpha=((x2l-x1l)++dy)/dy; +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); +penpos4(alpha*right_stem,0); penpos4'(alpha*right_stem,0); +penpos5(left_stem,0); penpos6(left_stem,0); +x5=x6; y6=-d; z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +penpos7(vair,90); penpos8(hair,0); penpos9(flare,0); +x7=.5[x4',rt x8r]; y7r=h+oo; +y4'=min(.9x_height,y7l-vair); z4'=whatever[z3,z4]; +rt x8r=hround(r-.5u-.5); +y8=max(vround(y7r-.5hair)-.5flare-1, + min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare)); +cyrbulb(7,8,9); % bulb +y1'=3/4x_height; z1'=whatever[z1,z2]; penpos1'(alpha*left_stem,0); +x10=l+letter_fit; x10:=hround(x10-.5hair)+.5hair; y10=2/3x_height; +penpos11(vair,90); top y11r=x_height+oo; x11=min(x1l-.5,x10+u); +if y0>y2+notch_cut: + y0:=y2+notch_cut; + fill z0+.5right{up}...{z4-z3}z4'l...{right}z7r--z7l{left} + ...{z5r-z4'r}z4'r--z5r--z6r--z6l--z5l-- + z1'l{z1-z2}...{left}z11l--z11r{right} + ..tension atleast .75 and 1..{z2-z1}z1'r + ...{down}z0+.5left--cycle; % diagonals and stem +else: fill z0--z4'l...{right}z7r--z7l{left} + ...z4'r--z5r--z6r--z6l--z5l-- + z1'l{z1-z2}...{left}z11l--z11r{right} + ..tension atleast .75 and 1..{z2-z1}z1'r + --cycle; fi % diagonals and stem +pickup fine.nib; +pos10(hair,180); pos11'(vair,90); z11'=z11; +filldraw stroke z10e{up}...z11'e{right}; % hook +pickup tiny.nib; prime_points_inside(6,5); +dish_serif(6',5,e,1/3,jut,f,1/3,jut); % lower serif +%%% +% the accent +h:=full_h; +% low_bar(.5w,0, 13,14); +x_move:=.5w; y_move:=0; _one:=13; _two:=14; +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,12, 13,14); endchar; + +% italic variants of straight u (like flipped h) +lhchar "Italic Cyrillic letter Vy - variant straight u (flipped h)"; % +cyrchar(Vy,if monospace:8.5u# else:9u#fi,x_height#,desc_depth#); +italcorr x_height#*slant+.5stem#-u#; +adjust_fit(0,0); +pickup fine.nib; interim superness:=more_super; +x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +hook_in(0,1,2)(skewed); % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-1.5u+.5stem); +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; x5=x6=x7; +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +pickup tiny.nib; y6+.5stem=h; z6'=z6; +pos6'(stem,0); pos7(stem,0); +bot y7=-d; filldraw circ_stroke z6e--z7e; % stem +dish_serif(7,6,a,1/3,jut,b,1/3,.75jut); % serif +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +lhchar "Italic Cyrillic letter Vy_bar - variant straight u macron"; % +cyrchar(Vy_bar,if monospace:8.5u# else:9u#fi,lc_trema_height#,desc_depth#); +italcorr x_height#*slant+.5stem#-u#; +adjust_fit(0,0); full_h:=h; h:=x_height; +pickup fine.nib; interim superness:=more_super; +x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +hook_in(0,1,2)(skewed); % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-1.5u+.5stem); +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; x5=x6=x7; +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +pickup tiny.nib; y6+.5stem=h; z6'=z6; +pos6'(stem,0); pos7(stem,0); +bot y7=-d; filldraw circ_stroke z6e--z7e; % stem +dish_serif(7,6,a,1/3,jut,b,1/3,.75jut); % serif +% the accent +h:=full_h; +% low_bar(.5w,0, 11,12); +x_move:=.5w; y_move:=0; _one:=11; _two:=12; +% +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,12); endchar; + +lhchar "Italic Cyrillic letter Vy_hcrs - variant cross straight u"; +cyrchar(Vy_hcrs,if monospace:8.5u# else:9u#fi,x_height#,desc_depth#); +italcorr x_height#*slant+.5stem#-u#; +adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; +x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +hook_in(0,1,2)(skewed); % opening hook +pos2'(stem,-180); z2'=z2; pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-1.5u+.5stem); +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; x5=x6=x7; +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +pickup tiny.nib; y6+.5stem=h; z6'=z6; +pos6'(stem,0); pos7(stem,0); +bot y7=-d; filldraw circ_stroke z6e--z7e; % stem +dish_serif(7,6,a,1/3,jut,b,1/3,.75jut); % serif +% bar +pickup fine.nib; numeric middle_weight; +middle_weight=max(fine.breadth,.6[thin_join,vair]); +y10=y11=hround min(bot y4-1,.5[bot y4,-d+vair'])-.5middle_weight; +x11=lft x7l-jut; x10=rt x7r+.75jut; pos11(middle_weight,90); pos10(middle_weight,90); +filldraw stroke z10e--z11e; +penlabels(0,1,2,3,4,5,6,7,8,9, 10,11); endchar; + +lhchar "Italic Cyrillic letter eps_uml - epsilon umlaut"; +cyrchar(eps_uml,if serifs:8u# else:7.5u# fi,lc_trema_height#,0); +italcorr x_height#*slant-.2u#; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +h:=x_height; +% ital_eps; +pickup fine.nib; pos0(flare,0); pos1(hair,0); pos2(vair,90); pos7(curve,180); +pos9(vair,270); pos3(vair,270); pos9'(vair,90); pos3'(vair,90); +pos8(curve,180); pos4(vair,270); pos5(hair,320); +x2=x4=.5(w+u); rt x1r=max(rt x2,hround(w-.25u))+eps; +x5r=good.x w-eps; x6=x5; +y1=.5[bar_height,h]; top y2r=h+oo; bulb(2,1,0); % bulb +lft x7r=hround(2u-.5curve); lft x8r=hround(1.5u-.5curve); +bot y4r=-oo; y7=.5[y2,y3]; y5r=y8=.5[y3,y4]; y6=bar_height; +x3=x2; rt x9=hround max(rt x2+1+eps,lft x0l-eps); y3=y9=bar_height; +z9'=z9; z3'=z3; +path p; p=z4{left}..(x5,15/16bar_height)..z6; +filldraw stroke z9e{left}...super_arc.e(3,7) & super_arc.e(7,2); % lower arc +filldraw stroke z9'e{left}...pulled_arc.e(3',8) & pulled_arc.e(8,4) + ...{direction 1 of p}z5e; % upper arc +%%% +% the accent +lowercase_umlaut(0,0, 10,11,12,13); +penlabels(0,1,2,3,4,5,6,7,8,9, 10,11,12,13); endchar; + +lhchar "Italic Cyrillic letter l_ldot - el lower dot"; +cyrchar(l_ldot,9u#,x_height#,desc_depth#); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(.5u#,0); +% ital_l; +pickup fine.nib; +pos1(vair,-90); pos2(stem,180); pos3(hair,0); pos10(stem,0); +pos4(vair,-90); pos5(hair,-180); pos6(flare,-180); +top y1l=h+oo; x1=.5[x3,x2]; +x3=3u; y3=.35h; +y6-.5flare=.1h; lft x6r=-.25u; z5r=z6r; +bot y4r=-oo; x4=max(.4[lft x6r,rt x3r],lft x6r+.5flare-eps); +y10=.8h; lft x10l=lft x7l=hround(w-2.5u-.5stem); z10=z2; +bulb(4,5,6); % bulb +filldraw stroke pulled_arc.e(4,3) + & super_arc.e(3,1) & super_arc.e(1,2); % left stem +x9=w; hook_out(7,8,9); % hook +filldraw stroke z10e--z7e; % right stem +%%% +% the accent +% lower_dot; +_one:=11; _two:=12; _center:=.5w; +% +numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); +define_whole_blacker_pixels(dot_diam); +pos[_one](dot_diam,0); pos[_two](dot_diam,90); +x[_one]=hround(_center); bot y[_two]l=vround(-d-1); +if 0-oo-top y[_two]r<slab: y[_one]r:=vround(max(y[_two]l+eps,-fine-slab)); fi +x[_one]=x[_two]; y[_one]=vround(.5[y[_two]l,y[_two]r]); +dot([_one],[_two]); % dot +penlabels(1,1',2,3,4,5,6,7,8,9,10, 11,12); endchar; + +lhchar "Italic Cyrillic letter n_ldot - en lower dot"; +cyrchar(n_ldot,10u#,x_height#,desc_depth#); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(0,0); +% ital_n; +pickup fine.nib; x2=x3; pos3(stem,0); lft x3l=hround(2.5u-.5stem); +%ihalfstem; +if monospace: pos2(stem,0); top y2=h; +else: x0=0; hook_in(0,1,2); fi % opening hook +y3-.5stem=-oo; +filldraw circ_stroke z3e--z2e; +x10=x3l; y10=y11=bar_height; pos10(vair,90); pos11(vair,90); +pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); y6+.5stem=h; +x7=x6; x9=w; hook_out(7,8,9); z7'=z7; pos7'(stem,0); +filldraw circ_stroke z6e--z7'e; x11=x6l; filldraw stroke z10e--z11e; +%%% +% the accent +% lower_dot; +_one:=12; _two:=13; _center:=.5w; +% +numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); +define_whole_blacker_pixels(dot_diam); +pos[_one](dot_diam,0); pos[_two](dot_diam,90); +x[_one]=hround(_center); bot y[_two]l=vround(-d-1); +if 0-oo-top y[_two]r<slab: y[_one]r:=vround(max(y[_two]l+eps,-fine-slab)); fi +x[_one]=x[_two]; y[_one]=vround(.5[y[_two]l,y[_two]r]); +dot([_one],[_two]); % dot +penlabels(0,1,2,3,4,5,6,7,8,9,10,11, 12,13); endchar; + +lhchar "Italic Cyrillic letter r_brv - r breve"; +cyrchar(r_brv,if monospace:9u#else:9.25u#fi,x_height#+acc_height#,desc_depth#); % the Russian width +italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; %p +adjust_fit(0,if monospace:0 else:-.35u#fi); full_h:=h; h:=x_height; +% ital_r; +pickup fine.nib; +x0=0; x2-.5stem=hround(2.5u-.5stem); hook_in(0,1,2); % opening hook +pos4(hair,-180); pos5(vair,-90); pos6(curve,0); pos7(vair,90); +x4=x2; rt x6r=hround(w-1.5u+.5curve); x5=x7=.5[x4,x6]; +bot y5r=-oo; top y7r=h+oo; y4=y6=.5[y5,y7]; +filldraw stroke super_arc.e(4,5) & pulled_arc.e(5,6) + & pulled_arc.e(6,7) & super_arc.e(7,4); % bowl +pickup tiny.nib; pos2'(stem,0); pos3(stem,0); +z2=z2'; x3=x2; bot y3=-d; filldraw stroke z2'e--z3e; % stem +dish_serif(3,2',a,1/3,.75jut,b,1/3,jut); % serif +%%% +% the accent +h:=full_h; lowercase_breve(.5w,0, 8,9,10); %x3 y3r-h +penlabels(0,1,2,3,4,5,6,7, 8,9,10); endchar; + +lhchar "Italic Cyrillic letter t_lcom - te lower comma"; +cyrchar(t_lcom,15u#,x_height#,1.25desc_depth#); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(if monospace:-1.5u#,-2u# else: 0,0 fi); +% ital_t; +pickup fine.nib; numeric shaved_stem; shaved_stem=mfudged.stem; +save stem; stem=shaved_stem; pos2(stem,0); x1=x2; +if monospace: pos1(stem,0); lft x1l=hround(2.5u-.5stem); top y1=h; +else: x0=0; lft x2l=hround(2.5u-.5stem); + hook_in(0,a,1); fi % opening hook +y2-.5stem=-oo; filldraw circ_stroke z2e--z1e; % left stem +x4+.5stem=hround(.5w+.5stem); ital_arch(2,3,4); % left arch +pos5(stem,0); y5=y2; x5=x4; +filldraw circ_stroke z5e--z4e; % middle stem +x7+.5stem=hround(w-2.5u+.5stem); +x8=x7-.25u; ital_arch(5,6,7); % right arch +if monospace: pos9(vair,90); x9=good.x .5[x8,w]; bot y9l=0; y8=1/3h; + pos8(stem,0); filldraw stroke z8e{-u,-x_height}...{right}z9e; % terminal +else: x9=w; hook_out(8,b,9)(skewed); fi % closing hook +filldraw stroke z7e{down}..{-u,-x_height}z8e; % right stem +% the accent +%ac_comma(0,0,1.25desc_depth, 10,11,12,13,14); + x_move:=0; y_move:=0; depth:=1.25desc_depth; + _zero:=10; _one:=11; _two:=12; _three:=13; _four:=14; + numeric height,bulb_diam; + height=if serifs: depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + % comma below letter as sans serif cedilla + top y[_one]=-o-2; bot y[_two]=-d-o; + x[_two]=x[_one]-1.25u=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=-d+y_move+height; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(0,a,1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Italic Cyrillic letter ch_ldot - che lower dot"; +cyrchar(ch_ldot,9.5u#,x_height#,desc_depth#); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(0,0); +% ital_ch; +pickup fine.nib; interim superness:=more_super; +x2=x3; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +% left shstem; +if monospace: + pos0(vair,90); x0=good.x .5[0,x2]; top y0l=h; y2=2/3h; pos2(stem,0); + filldraw stroke z2e{u,x_height}...{left}z0e; % terminal +else: + x0=0; hook_in(0,1,2)(skewed); fi % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); +x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook +bot y4r=.75bar_height; y5=.75h; y3=min(y2-eps,.7[y4,y5]); y6+.5stem=h; +filldraw stroke z2'e...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e--z7e; % right stem +%%% +% the accent +% lower_dot; +_center:=x8; +_one:=10; _two:=11; +% +numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); +define_whole_blacker_pixels(dot_diam); +pos[_one](dot_diam,0); pos[_two](dot_diam,90); +x[_one]=hround(_center); bot y[_two]l=vround(-d-1); +if 0-oo-top y[_two]r<slab: y[_one]r:=vround(max(y[_two]l+eps,-fine-slab)); fi +x[_one]=x[_two]; y[_one]=vround(.5[y[_two]l,y[_two]r]); +dot([_one],[_two]); % dot +penlabels(0,1,2,3,4,5,6,7, 8,9); endchar; +% +% variants of Serbian g p and t (not a serious experiment) +% +lhchar "Italic Cyrillic letter Vg - looks as dotless i bar"; +cyrchar(Vg,5u#,lc_trema_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib; +full_h:=h; h:=x_height; +x0=0; x5=w; x2=.5w+.25u; x3=.5w-.25u; +hook_in(0,1,2)(skewed); hook_out(3,4,5)(skewed); % hooks +filldraw stroke z2e--z3e; % stem +% the accent +h:=full_h; +% low_bar(.5w,0, 6,7); +x_move:=.5w; y_move:=0; _one:=6; _two:=7; +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); endchar; + +lhchar "Italic Cyrillic letter Vp - looks as Latin u bar"; +cyrchar(Vp,10u#,lc_trema_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(0,0); full_h:=h; h:=x_height; +pickup fine.nib; interim superness:=more_super; +x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +hook_in(0,1,2)(skewed); % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); +x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e--z7e; % right stem +% the accent +h:=full_h; +% low_bar(.5w,0, 10,11); +x_move:=.5w; 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); endchar; + +lhchar "Italic Cyrillic letter Vt - looks as Russian sh bar"; +cyrchar(Vt,15u#,lc_trema_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(if monospace:-2u#,-1.5u# else: 0,0 fi); full_h:=h; h:=x_height; +pickup fine.nib; interim superness:=more_super; +numeric shaved_stem; shaved_stem=mfudged.stem; save stem; stem=shaved_stem; +x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +if monospace: pos0(vair,90); x0=good.x .5[0,x2]; top y0l=h; y2=2/3h; + pos2(stem,0); filldraw stroke z2e{u,x_height}...{left}z0e; % terminal +else: x0=0; hook_in(0,1,2)(skewed); fi % opening hook +pos2'(stem,-180); z2'=z2; pos4(vair,-90); pos5(min(stem,hair),0); x4=.5[x3,x5]; x5=x7'; +pos5'(min(stem,hair),0); pos6'(vair,-90); pos7'(stem,-180); x5'=x7; y5'=y5; +pos8'(stem,-180); x8'=x7'; y8'+.5stem=h; +pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); +x6=x7; y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; +x7'+.5stem=hround(.5w+.5stem); +if monospace: bot y7=0; pos7(stem,0); else: x9=w; hook_out(7,8,9); fi +x6'=.6[x5',x7']; bot y6'r=bot y4r; y7'=.35x_height; +filldraw stroke super_arc.e(7',6')...{up}z5'e; %}}; middle stroke +filldraw circ_stroke z8'e--z7'e; % middle stem +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e--z7e; % right stem +% the accent +h:=full_h; +if monospace: +% low_bar(.5w,0, 10,11); + x_move:=.5w; 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 +else: +% low_wbar(x1,x7,0, 10,11); + x_left:=x1; x_right:=x7; y_move:=oo; _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_left; x[_two]=x_right; + top y[_one]r=top y[_two]r=lc_trema_height+o; + filldraw stroke z[_one]e--z[_two]e; fi % bar +penlabels(1,2,3,4,5,6,7,8,9, 10,11); endchar; + +endinput; +%end of file diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgcaccl.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgcaccl.mf new file mode 100644 index 00000000000..c565dd8f05b --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgcaccl.mf @@ -0,0 +1,1128 @@ +% +% lgcaccl.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Lowercase Cyrillic accented letters +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames +% +% a_bar +% o_bar +% o_lcom +% u_tld +% u_hat +% u_gr +% u_com +% ery_bar +% erev_uml +% erev_dot +% erev_bar +% yu_bar +% ya_bar +% otld_bar +% y_bar +% eps_uml +% +% l_ldot +% n_ldot +% r_brv +% t_lcom +% ch_ldot +% + +LHver_check(3,4); % like |version_check| in ec + +lhchar "Lowercase Cyrillic letter a_bar"; +cyrchar(a_bar,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; +% low_bar(.5w,0, 14,15); +x_move:=.5w; y_move:=0; _one:=14; _two:=15; +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(1,2,3,4,5,6,7,8,9,10,11,12,13, 14,15); endchar; + +lhchar "Lowercase Cyrillic letter o_bar"; +cyrchar(o_bar,9u#,lc_trema_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +full_h:=h; h:=x_height; +% lower_o; +penpos1(vair,90); penpos3(vair',-90); penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +%%%%% +% the accent +h:=full_h; +% low_bar(x1,0, 5,6); +x_move:=x1; y_move:=0; _one:=5; _two:=6; +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(1,2,3,4, 5,6); endchar; + +lhchar "Lowercase Cyrillic letter o_lcom - o lower comma"; +cyrchar(o_lcom,9u#,x_height#,1.25desc_depth#); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +penpos1(vair,90); penpos3(vair',-90); penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +% the accent +%ac_comma(0,-oo,1.25desc_depth, 5,6,7,8,9); + x_move:=0; y_move:=-oo; depth:=1.25desc_depth; + _zero:=5; _one:=6; _two:=7; _three:=8; _four:=9; + numeric height,bulb_diam; + height=if serifs: depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + % comma below letter as sans serif cedilla + top y[_one]=-o-2; bot y[_two]=-d-o; + x[_two]=x[_one]-1.25u=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=-d+y_move+height; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(1,2,3,4, 5,6,7,8,9); endchar; + +lhchar "Lowercase Cyrillic letter u_tld - u tilded"; +cyrchar(u_tld,if serifs:9.5u# else:9u# fi,x_height#+acc_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 alpha1<alpha2: + x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1; +else: + alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); +if y0>notch_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_tilde(0,0, 10,11,12,13,14); +penlabels(0,1,2,3,4,5,6,7,8,9, 10,11,12,13,14); endchar; + +lhchar "Lowercase Cyrillic letter u_hat - u hat"; +cyrchar(u_hat,if serifs:9.5u# else:9u# fi,x_height#+acc_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 alpha1<alpha2: + x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1; +else: + alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); +if y0>notch_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_hat(.5[x1,x4],0, 10,11,12,13,14); +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Lowercase Cyrillic letter u_gr - u grave"; +cyrchar_twice(u_gr,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 alpha1<alpha2: + x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1; +else: + alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); +if y0>notch_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 +hpos_corr=0.75u; put_gravis; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Lowercase Cyrillic letter u_com"; +cyrchar(u_com,if serifs:9.5u# else:9u# fi, + x_height#+1.25acc_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 alpha1<alpha2: + x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1; +else: + alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); +if y0>notch_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; +%ac_comma((.5[x1,x4]-.5w),0,1.25acc_height, 10,11,12,13,14)(above); + x_move:=(.5[x1,x4]-.5w); y_move:=0; depth:=1.25acc_height; + _zero:=10; _one:=11; _two:=12; _three:=13; _four:=14; + numeric height,bulb_diam; + height=if serifs: + depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + %comma above letter: vertical + top y[_two]=h+y_move; + bot y[_one]=vround(y[_two]-height); + x[_two]=x[_one]=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=h+y_move; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(0,1,2,3,4,5,6,7,8,9, 10,11,12,13,14); endchar; + +lhchar "Lowercase Cyrillic letter ery_bar"; +cyrchar(ery_bar,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 +if serifs: + save slab; 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; +if monospace: +% low_bar(.5[l,r],oo, 10,11); + x_move:=.5[l,r]; y_move:=oo; _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 +else: +% low_wbar(l+2.5u-.5stem,w-2.5u+.5stem,oo, 10,11); + x_left:=l+2.5u-.5stem; x_right:=w-2.5u+.5stem; y_move:=oo; _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_left; x[_two]=x_right; + top y[_one]r=top y[_two]r=lc_trema_height+o; + filldraw stroke z[_one]e--z[_two]e; fi % bar +penlabels(1,2,3,4,5,6,7,8,9, 10,11); 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 erev_dot - reverse e dot"; +cyrchar_twice(erev_dot,8u#,x_height#,0); % eng +italcorr x_height#*slant-.2u#; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +% 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 +put_dot(tiny,max(dot_size#,cap_curve#)); repeat_once; +penlabels(1,1',2,3,4,5,6,7,8,9); endchar; + +lhchar "Lowercase Cyrillic letter erev_bar - reverse e bar"; +cyrchar(erev_bar,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; +% low_bar(x2,oo, 10,11); +x_move:=x2; y_move:=oo; _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(1,1',2,3,4,5,6,7,8,9, 10,11); endchar; + +lhchar "Lowercase Cyrillic letter yu_bar (looks like IO)"; +cyrchar(yu_bar,9u#,lc_trema_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: 4u# else: 4.5u# fi +serif_fit#, %li_part_adj + if monospace: -.45u# else: 0 fi); +full_h:=h; h:=x_height; +% lower_yu; +penpos1(vair,90); penpos3(vair',-90); penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +save slab; % lower.slab +% barh_i_part(2); +_zero:=2; +_one:=5; _two:=6; +% +pickup tiny.nib; +pos[_one](stem,0); pos[_two](stem,0); +lft x[_one]l=lft x[_two]l= + l+letter_fit+if not monospace: serif_fit+ fi hround (2.5u-.5stem-eps); +top y[_one]=h; bot y[_two]=0; +filldraw stroke z[_one]e--z[_two]e; % stem +bar_stroke(x[_one],x[_zero]); % bar +if serifs: + slab:=Vround(vair-vair_corr); % lower.slab + dish_serif([_one],[_two],s,1/3,jut,t,1/3,jut); % upper serif + slab:=vair; % lower.slab + dish_serif([_two],[_one],u,1/3,jut,v,1/3,jut); % lower serif +fi +%%%%% +% the accent +h:=full_h; +if monospace: +% low_bar(.5[l,r],oo, 9,10); + x_move:=.5[l,r]; y_move:=oo; _one:=9; _two:=10; + 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 + else: +% low_wbar(l+2.5u-.5stem,w-2.5u+.5stem,oo, 9,10); + x_left:=l+2.5u-.5stem; x_right:=w-2.5u+.5stem; y_move:=oo; _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_left; x[_two]=x_right; + top y[_one]r=top y[_two]r=lc_trema_height+o; + filldraw stroke z[_one]e--z[_two]e; fi % bar +penlabels(1,2,3,4,5,6,7,8, 9,10); endchar; + +iff not specific:% +lhchar "Lowercase Cyrillic letter ya_bar (`roman')"; +cyrchar(ya_bar,if serifs: 9.75u# else: 10u# fi-.5width_adj#,lc_trema_height#,0); %ya (~n_width:10u) +italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut +adjust_fit(if serifs:serif_fit# else:0 fi,serif_fit#); +full_h:=h; h:=x_height; +% lowerr_ya; +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +rt x1r=rt x2r=hround(w-2.5u+.5stem'); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +penpos3(vair,90); penpos4(vair,90); penpos5(curve if hefty:-3stem_corr fi,180); +y6r=y7r=hround (if serifs:.52h else:.5h fi-.6[thin_join,vair]/2); +y6l=y7l=y6r+.6[thin_join,vair]; y6=y7=.5[y6l,y6r];% +z3r=top z1; y4=y3; y5=.52[y6r,y4r]+eps; +x7l=x7r=x2; x4+.25u=x6l=x6r; x4=.5w if serifs:+.25u else:-.25u fi; +x5r=hround min(1.25u,2u-.5curve)+eps; +x4l:=x4+.125curve; x6l:=x6l+.125curve; +fill stroke +{{interim superness:=more_super; z7e..pulled_arc.e(6,5) & + pulled_arc.e(5,4)..z3e}}; % lobe +numeric stem[],alpha,right_jut; +right_jut=if serifs:.6jut else:.4tiny fi; +stem1=max(tiny.breadth,hround(fudged.stem-3stem_corr)); +lft x9l=hround(l+letter_fit+.3u+right_jut)-eps; bot y9=0; +alpha=diag_ratio(1,.5(stem1-tiny),y1-y9,x9l-x1); +penpos9(alpha*(stem1-tiny),0); +x8=x6l-if serifs:.75u else:.25u fi; y8=y6; +forsuffixes $=l,r: y9'$=0; endfor +z9'r=z9r+penoffset z1-z9 of currentpen+whatever*(z1-z9); +z9'l=z9l+penoffset z9-z1 of currentpen+whatever*(z1-z9); +z8=z9'+whatever*(z1-z9); +penpos8(if serifs: x9'r-x9'l else: stem fi-2stem_corr,0); +fill z8l--diag_end(8l,9'l,1,.5,9'r,8r)--z8r--cycle; % diagonal +if serifs: + numeric inner_jut; + if lft x2l-jut-.5u+1>=rt x9r+jut: inner_jut=jut; + else: lft x2l-jut-.5u+1=rt x9r+inner_jut; fi + save slab; slab:=Vround(vair-vair_corr); % lower.slab + nodish_serif(1,2,a,1/3,.5jut,b,1/3,jut); % upper serif + slab:=vair; % lower.slab + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower serif + dish_serif(9,8,g,1/2,right_jut,h,1/3,inner_jut)(dark); fi % lower diagonal serif +%%%%% +the accent +h:=full_h; +% low_bar(.5[x1,x6r-.5curve],0, 10,11); +x_move:=.5[x1,x6r-.5curve]; 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 otld_bar (otld bar)"; +cyrchar(otld_bar,9u#,lc_trema_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); full_h:=h; h:=x_height; +% lower_o;tld +penpos1(vair,90); penpos3(vair',-90); penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +%%% +% oltilde; +if (serifs=true) and (bar#<=.5curve#): + numeric bar[]; + set_bar_axis; + x5r=x2l; x6r=x4l; + y5r=y6r=y2.bh; y5l=y6l=y1.bh; x5r=x5l; x6l=x6r; + bar2=2/3[bar,fudged.stem]; + penpos7(bar2,45); z7=.5[z5l,z6l]; + fill stroke z6e{-2,-1}..{-2,1}z7e..{-2,-1}z5e; +else: + bar_stroke(x2,x4); +fi +%%%%% +% the accent +h:=full_h; +% low_bar(.5w,oo, 8,9); +x_move:=.5w; y_move:=oo; _one:=8; _two:=9; +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(1,2,3,4,5,6,7, 8,9); endchar; + +lhchar "Lowercase Cyrillic letter y_bar - straight u bar"; +cyrchar(y_bar,if serifs: 9.5u# else: 9u# fi,lc_trema_height#,desc_depth#); +italcorr x_height#*slant+.25u#; +adjust_fit(serif_fit#,serif_fit#); full_h:=h; h:=x_height; +% lower_y; +numeric left_stem,right_stem,outer_jut,dy,alpha; left_stem=stem-stem_corr; +right_stem=min(hair if hefty:-2stem_corr fi,left_stem); outer_jut=.75jut; +x1l=w-x4r=l+letter_fit+outer_jut+.05u; +x2l=x5l=hround(.5w-.5left_stem); x3r=x5r; y1=y4=h; +y2=y3=y5=0; dy=y1-y2; alpha=((x2l-x1l)++dy)/dy; +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +penpos5(left_stem,0); penpos6(left_stem,0); x5=x6; y6=-d; +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0>y2+notch_cut: y0:=y2+notch_cut; + fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)--z5r + --diag_end(5r,6r,1,1,6l,5l)--z5l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0+.5left--cycle; % diagonals and stem +else: fill z0--diag_end(0,4l,1,1,4r,3r)--z5r + --diag_end(5r,6r,1,1,6l,5l)--z5l + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % diagonals and stem +if serifs: numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(4,3); prime_points_inside(6,5); + 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 + dish_serif(6',5,e,1/3,jut,f,1/3,jut); % lower serif + 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); fi % upper right serif +%%%%% +% the accent +h:=full_h; +% low_bar(.5w,0, 7,8); +x_move:=.5w; y_move:=0; _one:=7; _two:=8; +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); endchar; + +lhchar "Lowercase Cyrillic letter eps_uml - epsilon umlaut"; +cyrchar(eps_uml,if serifs:8u# else:7.5u# fi,lc_trema_height#,0); +italcorr x_height#*slant-.2u#; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +full_h:=h; h:=x_height; +% lower_eps; +numeric right_curve; right_curve=curve-stem_corr; pickup fine.nib; +penpos2(vair,90); penpos3(right_curve-stem_corr,180); +penpos7(right_curve,180); penpos8(vair',-90); +y2r=vround(h+1.5oo); x2=x6l=x6r=x8=.5[w-u,x7]; x7r=hround.6u; +x3r=max(lft x7r+1,hround .8u); y3=.5[y4l,y2l]-eps; y8r=-oo; +set_bar_axis; y4l=y5r=y6r=y2.bh; y6l=y5l=y4r=y1.bh; y5=y6=y0.bh; +pickup fine.nib; z2'=z2; pos2'(vair,90); pos8'(vair',-90); z8'=z8; +if serifs: pos1(hair,0); pos9(hair,0); pos0(flare,0); + y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare); + rt x1r=hround(w-.6u); bulb(2',1,0); % bulb + rt x9r=hround(w-.5u); y9=max(good.y(.5bar_height-.9),y8l+vair'); + filldraw stroke z8'e{right}..tension.9 and 1..{x9-x8,5(y9-y8)}z9e; % lower bowl +else: pos1(4/7[vair',flare],80); pos9(.6[vair',flare],275); + rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2',1,right,.8,4); % upper terminal + rt x9r=hround(w-.5u); + y9r=good.y(y9r+1/3bar_height-y9); y9l:=good.y y9l; x9l:=good.x x9l; + forsuffixes e=l,r: path p.e; p.e=z8'e{right}..tension .9 and 1..z9e; + if angle direction 1 of p.e>75: + p.e:=z8'e{right}..tension atleast.9 and 1..{dir 75}z9e; fi endfor + filldraw stroke p.e; fi % arc and lower terminal +rt x5l=rt x5r=max(min(w-2.2u, + lft x1l- if serifs:flare else:.5vair fi)-eps,rt x6l+fine); +y7=.5[y6l,y8l]; x4l=x4r=1/3[x5l,x3l]; +(x,y8l)=whatever[z8r,z9l]; x8l:=min(x,x8l+.5u); +if not serifs:x4r:=max(x5r,x4r-u); x6r:=max(x5r,x6r-.5u); fi +fill stroke {{interim superness:=hein_super; super_arc.e(2,3)}} + & pulled_super_arc.e(3,4)(.7superpull); % upper bowl +{{interim superness:=more_super; + fill stroke z5e..super_arc.e(6,7) & super_arc.e(7,8)}}; % lower bowl +fill z5l{right} if bot y5r>top y5l:..(rt x5l,top y5l)---(rt x5r,bot y5r).. + else: ... fi {left}z5r--cycle; % bar +%%%%% +% the accent +h:=full_h; lowercase_umlaut(0,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 l_ldot - el lower dot"; +cyrchar(l_ldot,10u# % if not serifs:+.5width_adj# fi % dl_width;n_width + ,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut +adjust_fit(serif_fit# if not serifs:+.5(stem#-u#) fi, %dl_adj + serif_fit#); % +% lower_l; +pickup tiny.nib; pos1(fudged.stem,0); pos2(fudged.stem,0); +rt x1r=rt x2r=w-hround (2.5u-.5fudged.stem-eps); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; %stem +numeric light_hair,bot_vair,bulb_diam,left_jut; +light_hair=if hefty:.5[vair,fudged.hair] else: fudged.hair fi; +bot_vair=Vround(.5[vair,light_hair]); +bulb_diam=hround 7/8[hair,flare]; +left_jut= + if serifs: max(limit_dist,1.1jut) else: hround (w+serif_fit-rt x2r-.5u) fi; +x3=1/3[w-rt x1r-(1/8left_jut),rt x1r] if not serifs: -.5(stem-u) fi +eps; +if serifs: + pos3(light_hair,0); pos4(light_hair,-90); + pos6(bulb_diam,-180); pos5(hair,-180); + top y3=h; y6-.5bulb_diam=.12desc_depth-eps; z6r=z5r; + lft x6r=l+letter_fit+hround(.35u-.5); + x4=max(lft x5r+.5bulb_diam,.4[lft x5r,rt x3r]); + bot y4r=-1.5oo-eps; {{less_tense; bulb(4,5,6)}}; %bulb + filldraw stroke z4e{right} + ..controls (min(15/16[x4,x3],max(x4,lft x6r+1.75bulb_diam))+(x3e-x3),y4e) + and (x3e,max(y4l,min(y6-.5,1/3h+eps))+1/3(y4e-y4))..{up}z3e; % left tail +else: + pos3'(vair,90); pos1'(vair,90); + lft x3'=x3-.5light_hair; rt x1'=x1r; top y3'r=top y1'r=h; + filldraw stroke z3'e--z1'e; % upper bar + pickup fine.nib; pos3(light_hair,0); pos4(bot_vair,-90); pos5(bot_vair,-90); + bot y5r=0; x4=.67[x3l,x5]; + lft x5=l+letter_fit+hround(.35u-.5); bot y4r=bot y5r; y3=y3'; + filldraw stroke z3e{down}..controls (x3e,y5e+.35h) + and (min(7/8[x4e,x3e],x4e+2light_hair)+eps,y4e-eps)..{left}z4e--z5e; fi % left stem +%%% +if serifs: + x0=x3; y0=0; + numeric inner_jut; inner_jut=min(.5(lft x1l-rt x3r)-eps,.5jut); + save slab; slab:=vair; % lower.slab + dish_serif(2,1,a,1/3,jut,b,1/3,jut); %lower right serif + slab:=Vround(vair-vair_corr); %lower.slab + nodish_serif(1,2,c,1/3,inner_jut,d,1/3,jut); % upper right serif + nodish_serif(3,0,e,1/3,1.05jut,f,1/3,inner_jut); % upper left serif + filldraw z.c0--z.c1--z.f1--z.f0--cycle; fi % upper inter_serif bar +%%%%% +% the accent +% lower_dot; +_one:=7; _two:=8; _center:=.5w; +% +numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); +define_whole_blacker_pixels(dot_diam); +pos[_one](dot_diam,0); pos[_two](dot_diam,90); +x[_one]=hround(_center); bot y[_two]l=vround(-d-1); +if 0-oo-top y[_two]r<slab: y[_one]r:=vround(max(y[_two]l+eps,-fine-slab)); fi +x[_one]=x[_two]; y[_one]=vround(.5[y[_two]l,y[_two]r]); +dot([_one],[_two]); % dot +penlabels(1,2,3,4,5,6,7,8);endchar; + +lhchar "Lowercase Cyrillic letter n_ldot - n lower dot"; +cyrchar(n_ldot,10u# if not serifs:+.5width_adj# fi,x_height#,desc_depth#); % n_width +italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut +adjust_fit(serif_fit#,serif_fit#); +% lower_n; +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 +bar_stroke(x1,x3); % bar +%%% +if serifs: numeric inner_jut; + 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(2,1,c,1/3,jut,d,1/3,inner_jut); % lower left serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,jut); fi % lower right serif +%%%%% +% the accent +% lower_dot; +_one:=7; _two:=8; _center:=.5w; +% +numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); +define_whole_blacker_pixels(dot_diam); +pos[_one](dot_diam,0); pos[_two](dot_diam,90); +x[_one]=hround(_center); bot y[_two]l=vround(-d-1); +if 0-oo-top y[_two]r<slab: y[_one]r:=vround(max(y[_two]l+eps,-fine-slab)); fi +x[_one]=x[_two]; y[_one]=vround(.5[y[_two]l,y[_two]r]); +dot([_one],[_two]); % dot +penlabels(1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Cyrillic letter r_brv (looks like p)"; +cyrchar(r_brv,10u#+serif_fit#,x_height#+acc_height#,desc_depth#); +italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); %p +adjust_fit(serif_fit#,0); full_h:=h; h:=x_height; +% lower_r; +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; +lft x1l=hround(2.5u-.5stem'); top y1=h if serifs: +min(oo,serif_drop) fi; +numeric edge; edge=rt x2r; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); +pos4(vair',90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); +rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l), 1/3[rt x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; +rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{left}...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); +pickup tiny.nib; bot y2=-d; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; pos8(hair,0); pos7'(stem,0); +z7'=z2; x8l=x7'l; bot y8=0; +filldraw stroke z7'e--z8e; % point +if serifs: + sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif +%%%%% +% the accent +h:=full_h; lowercase_breve(.5w,0, 9,10,11); %x3 y3r-h +penlabels(0,1,2,3,4,5,6,7,8, 9,10,11); endchar; + +lhchar "Lowercase Cyrillic letter t_lcom - te lower comma"; +cyrchar(t_lcom,9u#-width_adj#,x_height#,1.25desc_depth#); +italcorr x_height#*slant-beak_jut#+.35u#; %Gamma->x_height+.65u# +adjust_fit(0,0); +% lower_t; +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +lft x1l=lft x2l=hround(.5w-.5stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos3(vair,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); % right arm and beak +pos5(hair,180); x5=w-x4; y5=y4; +arm(3,5,f,beak_darkness,-.4beak_jut); % left arm and beak +%%% +if serifs: + save slab; slab:=vair; % lower.slab + dish_serif(2,1,c,1/3,1.414jut,d,1/3,1.414jut); % lower serif + slab:=Vround(vair-vair_corr); % lower.slab + nodish_serif(1,2,a,1/3,.5jut,b,1/3,.5jut); fi % upper bracketing +%%%%% +% the accent +%ac_comma(0,0,1.25desc_depth, 6,7,8,9,10); + x_move:=0; y_move:=0; depth:=1.25desc_depth; + _zero:=6; _one:=7; _two:=8; _three:=9; _four:=10; + numeric height,bulb_diam; + height=if serifs: depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + % comma below letter as sans serif cedilla + top y[_one]=-o-2; bot y[_two]=-d-o; + x[_two]=x[_one]-1.25u=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=-d+y_move+height; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(1,2,3,4,5, 6,7,8,9,10); endchar; + +lhchar "Lowercase Cyrillic letter ch_ldot - che lower dot"; +cyrchar(ch_ldot,10u# if not serifs:+.5width_adj# fi,x_height#,desc_depth#); % n_width +italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut +adjust_fit(serif_fit#,serif_fit#); +% 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 +_one:=7; _two:=8; _center:=x4; +% +numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); +define_whole_blacker_pixels(dot_diam); +pos[_one](dot_diam,0); pos[_two](dot_diam,90); +x[_one]=hround(_center); bot y[_two]l=vround(-d-1); +if 0-oo-top y[_two]r<slab: y[_one]r:=vround(max(y[_two]l+eps,-fine-slab)); fi +x[_one]=x[_two]; y[_one]=vround(.5[y[_two]l,y[_two]r]); +dot([_one],[_two]); % dot +penlabels(1,2,3,4,5,6, 7,8); endchar; + +endinput; +%end of file diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgcaccu.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgcaccu.mf new file mode 100644 index 00000000000..73a226d11d5 --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgcaccu.mf @@ -0,0 +1,1240 @@ +% +% lgcaccu.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Uppercase Cyrillic accented letters +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames +% +% A_bar +% LAT_I_dot +% O_bar +% O_lcom +% U_hat +% U_tld +% U_gr +% U_com +% ERY_bar +% EREV_uml +% EREV_dot +% EREV_bar +% YU_bar +% YA_bar +% OTLD_bar +% Y_bar +% EPS_uml +% +% L_ldot +% N_ldot +% R_brv +% T_lcom +% CH_ldot +% + +LHver_check(3,4); % like |version_check| in ec + +lhchar "Uppercase Cyrillic letter A_bar"; +cyrchar(A_bar,13u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(a_bar); fi +adjust_fit(cap_serif_fit#,cap_serif_fit#); full_h:=h; h:=cap_height; +% upper_a; +numeric left_stem,right_stem,outer_jut,alpha; outer_jut=.8cap_jut; +x1l=w-x4r=l+letter_fit+outer_jut+.5u; +right_stem=cap_stem-stem_corr; +left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem); +y1=y4=0; x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=h+apex_o+apex_oo; +alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr); +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0<h-cap_notch_cut: y0:=h-cap_notch_cut; + fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r) + --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{up}z0+.5left--cycle; % left and right diagonals +else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l) + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals +penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2]; +penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5; +if hefty: y5r else: y5 fi =5/12y0; +y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line +if serifs: numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(4,3); + if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark); % left serif + dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi % right serif +% the accent +h:=full_h; +% up_bar(x2,o, 7,8); +x_move:=x2; y_move:=o; _one:=7; _two:=8; +numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; +pickup if serifs: crisp.nib else: fine.nib fi; +pos[_one](macron_breadth,90); pos[_two](macron_breadth,90); +x[_one]=x_move+hround(2.75u if monospace:/expansion_factor fi+.5vair); +top y[_one]r=top y[_two]r=vround(cap_height+dot_height#*hppp); +x[_two]=x_move-hround(2.75u 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); endchar; + +iff not is_small_cap:% +lhchar "Uppercase Cyrillic letter LAT_I_dot - Ukrainian I dot"; +cyrchar_twice(LAT_I_dot,max(6u#,4u#+cap_stem#),cap_height#+acc_height#,0); +%if is_small_cap: getcharcode(lat_i_dot); fi % that's `i' +italcorr cap_height#*slant-.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); +% upper_ukri; - borrowed from ec +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=cap_height; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs or monospace: + dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut); % upper serif + dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut); fi % lower serif +if slitex: + pickup crisp.nib; % arms based on proportions of uppercase E + pos3(slab,90); pos4(slab if not serifs:+2stem_corr fi,-90); + x3=x4=x1; top y3r=h; bot y4r=0; + pos5(hair,0); pos6(hair,0); % top and bottom right arms + rt x5r=rt x6r=hround(w-u); + pos7(hair,180); pos8(hair,180); % top and bottom left arms + lft x7r=lft x8r=hround(u); + y5=y7=good.y(y3l-beak)-eps; % beak in case we ever want a beaked serif! + y6=y8=good.y(y4l+beak)+eps; % watch that this doesn't get too heavy + arm(3,5,a,darkness,jut); arm(3,7,b,darkness,jut); % top left and right arms + arm(4,6,c,darkness,jut); arm(4,8,d,darkness,jut); % bottom left and right +fi +%%%%% +% the accent +put_dot(tiny,max(dot_size#,cap_curve#))(cyrcaph); repeat_once; +penlabels(1,2,3,4,5,6); endchar; + +lhchar "Uppercase Cyrillic letter O_bar"; +cyrchar(O_bar,14u#-width_adj#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(o_bar); fi +italcorr .7cap_height#*slant-.5u#; +adjust_fit(0,0); full_h:=h; h:=cap_height; +penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90); +penpos2(cap_curve,180); penpos4(cap_curve,0); +if monospace: x2r=hround 1.5u; + interim superness:=sqrt superness; % make |"O"|, not |"0"| +else: x2r=hround u; fi +x4r=w-x2r; x1=x3=.5w; y1r=h+o; y3r=-o; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_super_arc.e(1,2)(.5superpull) + & pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull) + & pulled_super_arc.e(4,1)(.5superpull) & cycle; % bowl +% the accent +h:=full_h; +% up_bar(x1,0, 5,6); +x_move:=x1; y_move:=0; _one:=5; _two:=6; +numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; +pickup if serifs: crisp.nib else: fine.nib fi; +pos[_one](macron_breadth,90); pos[_two](macron_breadth,90); +x[_one]=x_move+hround(2.75u if monospace:/expansion_factor fi+.5vair); +top y[_one]r=top y[_two]r=vround(cap_height+dot_height#*hppp); +x[_two]=x_move-hround(2.75u if monospace:/expansion_factor fi+.5vair); +filldraw stroke z[_one]e--z[_two]e; % bar +penlabels(1,2,3,4, 5,6); endchar; + +lhchar "Uppercase Cyrillic letter O_lcom - O lower comma"; +cyrchar(O_lcom,14u#-width_adj#,cap_height#,1.25desc_depth#); +if is_small_cap: getcharcode(o_lcom); fi +italcorr .7cap_height#*slant-.5u#; +adjust_fit(0,0); +penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90); +penpos2(cap_curve,180); penpos4(cap_curve,0); +if monospace: x2r=hround 1.5u; + interim superness:=sqrt superness; % make |"O"|, not |"0"| +else: x2r=hround u; fi +x4r=w-x2r; x1=x3=.5w; y1r=h+o; y3r=-o; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_super_arc.e(1,2)(.5superpull) + & pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull) + & pulled_super_arc.e(4,1)(.5superpull) & cycle; % bowl +% the accent +%ac_comma(0,-o,1.25desc_depth, 5,6,7,8,9); + x_move:=0; y_move:=-o; depth:=1.25desc_depth; + _zero:=5; _one:=6; _two:=7; _three:=8; _four:=9; + numeric height,bulb_diam; + height=if serifs: depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + % comma below letter as sans serif cedilla + top y[_one]=-o-2; bot y[_two]=-d-o; + x[_two]=x[_one]-1.25u=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=-d+y_move+height; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(1,2,3,4, 5,6,7,8,9); endchar; + +lhchar "Uppercase Cyrillic letter U_hat - U hat"; +cyrchar(U_hat,13u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(u_hat); fi +italcorr x_height#*slant+.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); full_h:=h; h:=cap_height; +% upper_u; +numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; +left_stem=cap_stem-stem_corr; +right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_vair=Vround(if serifs:.5[vair',bot_stem] else:slab fi); +outer_jut=.7cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; % W jut +y1=y4r=h; x2l=x3l; +if monospace: y2=y3=.3h; else: y2=y3=max(if not serifs:1.095 fi stem,1/6h); fi +numeric alpha; x9=.5w-1/2(.5[bot_stem,right_stem]); y9=-o; +alpha=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-2apex_corr); +numeric u_ratio; u_ratio=(y3-y9)/(y1-y9); +x2l-x1l=x4r-x3r+ + if monospace: 2apex_corr else: if serifs: 2 fi (u_ratio*.5[x1l,x4r]) fi; +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +numeric alpha[]; alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0l=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); penpos0(alpha*bot_stem,0); +z0'=whatever[rt z3r,rt z4r]; y0'=bot y6r=if serifs:-o else: 0 fi; +penpos6(bot_vair,-90); x6r=if serifs:.6 else:.5 fi[x3r,x1]; +numeric t; t=if monospace: 1.25right_stem else: (x3r-x0')++(y3r-y0') fi; +penpos5(bot_vair,.5[angle(z4r-z6r),angle(z4r-z3r)]-90); +path p; numeric tau; p=z0r{z3r-z4r}....{left}z6r; +z5r=p intersectionpoint ((0,y2l-.5bot_vair)--(w,y2l-.5bot_vair)); +tau=xpart(p intersectiontimes (z2l--z2r)); +if y0>notch_cut+y2: + y0l:=notch_cut+y2; % +y2 added for sanserif face + fill z0l+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) + --subpath(0,tau) of p--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0l+.5left--cycle; % left and right diagonals +else: + fill z0l--diag_end(0,4l,1,1,4r,3r)--subpath(0,tau) of p + --z2l--diag_end(2l,1l,1,1,1r,0)--cycle; % left and right diagonals +fi +fill p--z6l{right}...{-direction tau of p} + if x5l>x2l: z2l else: z5l fi..{z4r-z3r}z0l--cycle; +pickup fine.nib; +if serifs: + numeric bulb_diam; bulb_diam=flare+(cap_stem-stem); + pos6'(bot_vair,-90); z6'=z6; pos7(hair,-180); pos8(bulb_diam,-180); + y8=1/6h; z7r=z8r; lft x8r=x1; + cyrbulb(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=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif + dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif +else: + top z6'l=z6l; bot z6'r=z6r; + pos7(bot_vair,-90); lft x7l=max(3.5u,rt x6r-t); bot y7r=bot y6'r; + filldraw stroke z6'e--z7e; fi % arc +%%%%% +% the accent +if unknown accent_gap: jj:=10; +if serifs: y[jj]'=h-.5mid_stem+eps-max(2/3[h,hi.x_height],hi.x_height+o+hair); + accent_gap=a_ht-(y[jj]'+.5mid_stem)-hi.x_height; +else: top y[jj]'=h-vround(2/3[h,hi.x_height]); + accent_gap=a_ht-y[jj]'-hi.x_height; +fi fi +h:=full_h; uppercase_hat(.5[x1,x4],0, 10,11,12,13,14); +penlabels(0,1,2,3,4,5,6,7,8,9, 10,11,12,13,14); endchar; + +lhchar "Uppercase Cyrillic letter U_tld - U tilded"; +cyrchar(U_tld,13u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(u_tld); fi +italcorr x_height#*slant+.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); full_h:=h; h:=cap_height; +% upper_u; +numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; +left_stem=cap_stem-stem_corr; +right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_vair=Vround(if serifs:.5[vair',bot_stem] else:slab fi); +outer_jut=.7cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; % W jut +y1=y4r=h; x2l=x3l; +if monospace: y2=y3=.3h; else: y2=y3=max(if not serifs:1.095 fi stem,1/6h); fi +numeric alpha; x9=.5w-1/2(.5[bot_stem,right_stem]); y9=-o; +alpha=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-2apex_corr); +numeric u_ratio; u_ratio=(y3-y9)/(y1-y9); +x2l-x1l=x4r-x3r+ + if monospace: 2apex_corr else: if serifs: 2 fi (u_ratio*.5[x1l,x4r]) fi; +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +numeric alpha[]; alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0l=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); penpos0(alpha*bot_stem,0); +z0'=whatever[rt z3r,rt z4r]; y0'=bot y6r=if serifs:-o else: 0 fi; +penpos6(bot_vair,-90); x6r=if serifs:.6 else:.5 fi[x3r,x1]; +numeric t; t=if monospace: 1.25right_stem else: (x3r-x0')++(y3r-y0') fi; +penpos5(bot_vair,.5[angle(z4r-z6r),angle(z4r-z3r)]-90); +path p; numeric tau; p=z0r{z3r-z4r}....{left}z6r; +z5r=p intersectionpoint ((0,y2l-.5bot_vair)--(w,y2l-.5bot_vair)); +tau=xpart(p intersectiontimes (z2l--z2r)); +if y0>notch_cut+y2: + y0l:=notch_cut+y2; % +y2 added for sanserif face + fill z0l+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) + --subpath(0,tau) of p--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0l+.5left--cycle; % left and right diagonals +else: + fill z0l--diag_end(0,4l,1,1,4r,3r)--subpath(0,tau) of p + --z2l--diag_end(2l,1l,1,1,1r,0)--cycle; % left and right diagonals +fi +fill p--z6l{right}...{-direction tau of p} + if x5l>x2l: z2l else: z5l fi..{z4r-z3r}z0l--cycle; +pickup fine.nib; +if serifs: + numeric bulb_diam; bulb_diam=flare+(cap_stem-stem); + pos6'(bot_vair,-90); z6'=z6; pos7(hair,-180); pos8(bulb_diam,-180); + y8=1/6h; z7r=z8r; lft x8r=x1; + cyrbulb(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=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif + dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif +else: + top z6'l=z6l; bot z6'r=z6r; + pos7(bot_vair,-90); lft x7l=max(3.5u,rt x6r-t); bot y7r=bot y6'r; + filldraw stroke z6'e--z7e; fi % arc +%%%%% +% the accent +h:=full_h; uppercase_tilde(.5w-.5[x1,x4],0, 10,11,12,13,14); +penlabels(0,1,2,3,4,5,6,7,8,9, 10,11,12,13,14); endchar; + +lhchar "Uppercase Cyrillic letter U_gr - U grave"; +cyrchar_twice(U_gr,13u#,cap_height#,0); +if is_small_cap: getcharcode(u_gr); fi +italcorr x_height#*slant+.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); +% upper_u; +numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; +left_stem=cap_stem-stem_corr; +right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_vair=Vround(if serifs:.5[vair',bot_stem] else:slab fi); +outer_jut=.7cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; % W jut +y1=y4r=h; x2l=x3l; +if monospace: y2=y3=.3h; else: y2=y3=max(if not serifs:1.095 fi stem,1/6h); fi +numeric alpha; x9=.5w-1/2(.5[bot_stem,right_stem]); y9=-o; +alpha=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-2apex_corr); +numeric u_ratio; u_ratio=(y3-y9)/(y1-y9); +x2l-x1l=x4r-x3r+ + if monospace: 2apex_corr else: if serifs: 2 fi (u_ratio*.5[x1l,x4r]) fi; +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +numeric alpha[]; alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0l=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); penpos0(alpha*bot_stem,0); +z0'=whatever[rt z3r,rt z4r]; y0'=bot y6r=if serifs:-o else: 0 fi; +penpos6(bot_vair,-90); x6r=if serifs:.6 else:.5 fi[x3r,x1]; +numeric t; t=if monospace: 1.25right_stem else: (x3r-x0')++(y3r-y0') fi; +penpos5(bot_vair,.5[angle(z4r-z6r),angle(z4r-z3r)]-90); +path p; numeric tau; p=z0r{z3r-z4r}....{left}z6r; +z5r=p intersectionpoint ((0,y2l-.5bot_vair)--(w,y2l-.5bot_vair)); +tau=xpart(p intersectiontimes (z2l--z2r)); +if y0>notch_cut+y2: + y0l:=notch_cut+y2; % +y2 added for sanserif face + fill z0l+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) + --subpath(0,tau) of p--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0l+.5left--cycle; % left and right diagonals +else: + fill z0l--diag_end(0,4l,1,1,4r,3r)--subpath(0,tau) of p + --z2l--diag_end(2l,1l,1,1,1r,0)--cycle; % left and right diagonals +fi +fill p--z6l{right}...{-direction tau of p} + if x5l>x2l: z2l else: z5l fi..{z4r-z3r}z0l--cycle; +pickup fine.nib; +if serifs: + numeric bulb_diam; bulb_diam=flare+(cap_stem-stem); + pos6'(bot_vair,-90); z6'=z6; pos7(hair,-180); pos8(bulb_diam,-180); + y8=1/6h; z7r=z8r; lft x8r=x1; + cyrbulb(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=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif + dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif +else: + top z6'l=z6l; bot z6'r=z6r; + pos7(bot_vair,-90); lft x7l=max(3.5u,rt x6r-t); bot y7r=bot y6'r; + filldraw stroke z6'e--z7e; fi % arc +%%%%% +% the accent +hpos_corr=.75u; put_gravis(cyrcaph); repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Uppercase Cyrillic letter U_com"; +cyrchar(U_com,13u#,cap_height#+1.25acc_height#,0); +if is_small_cap: getcharcode(u_com); fi +italcorr x_height#*slant+.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); full_h:=h; h:=cap_height; +% upper_u; +numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; +left_stem=cap_stem-stem_corr; +right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_vair=Vround(if serifs:.5[vair',bot_stem] else:slab fi); +outer_jut=.7cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; % W jut +y1=y4r=h; x2l=x3l; +if monospace: y2=y3=.3h; else: y2=y3=max(if not serifs:1.095 fi stem,1/6h); fi +numeric alpha; x9=.5w-1/2(.5[bot_stem,right_stem]); y9=-o; +alpha=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-2apex_corr); +numeric u_ratio; u_ratio=(y3-y9)/(y1-y9); +x2l-x1l=x4r-x3r+ + if monospace: 2apex_corr else: if serifs: 2 fi (u_ratio*.5[x1l,x4r]) fi; +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +numeric alpha[]; alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0l=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); penpos0(alpha*bot_stem,0); +z0'=whatever[rt z3r,rt z4r]; y0'=bot y6r=if serifs:-o else: 0 fi; +penpos6(bot_vair,-90); x6r=if serifs:.6 else:.5 fi[x3r,x1]; +numeric t; t=if monospace: 1.25right_stem else: (x3r-x0')++(y3r-y0') fi; +penpos5(bot_vair,.5[angle(z4r-z6r),angle(z4r-z3r)]-90); +path p; numeric tau; p=z0r{z3r-z4r}....{left}z6r; +z5r=p intersectionpoint ((0,y2l-.5bot_vair)--(w,y2l-.5bot_vair)); +tau=xpart(p intersectiontimes (z2l--z2r)); +if y0>notch_cut+y2: + y0l:=notch_cut+y2; % +y2 added for sanserif face + fill z0l+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) + --subpath(0,tau) of p--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0l+.5left--cycle; % left and right diagonals +else: + fill z0l--diag_end(0,4l,1,1,4r,3r)--subpath(0,tau) of p + --z2l--diag_end(2l,1l,1,1,1r,0)--cycle; % left and right diagonals +fi +fill p--z6l{right}...{-direction tau of p} + if x5l>x2l: z2l else: z5l fi..{z4r-z3r}z0l--cycle; +pickup fine.nib; +if serifs: + numeric bulb_diam; bulb_diam=flare+(cap_stem-stem); + pos6'(bot_vair,-90); z6'=z6; pos7(hair,-180); pos8(bulb_diam,-180); + y8=1/6h; z7r=z8r; lft x8r=x1; + cyrbulb(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=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif + dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif +else: + top z6'l=z6l; bot z6'r=z6r; + pos7(bot_vair,-90); lft x7l=max(3.5u,rt x6r-t); bot y7r=bot y6'r; + filldraw stroke z6'e--z7e; fi % arc +%%%%% +% the accent +h:=full_h; +%ac_comma((.5[x1,x4]-.5w),0,1.25acc_height, 10,11,12,13,14)(above); + x_move:=(.5[x1,x4]-.5w); y_move:=0; depth:=1.25acc_height; + _zero:=10; _one:=11; _two:=12; _three:=13; _four:=14; + numeric height,bulb_diam; + height=if serifs: + depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + %comma above letter: vertical + top y[_two]=h+y_move; + bot y[_one]=vround(y[_two]-height); + x[_two]=x[_one]=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=h+y_move; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(0,1,2,3,4,5,6,7,8,9, 10,11,12,13,14); endchar; + +lhchar "Uppercase Cyrillic letter ERY_bar"; +cyrchar(ERY_bar,12.5u#,cap_height#+acc_height#,0); %V_width#=12.5u# +if is_small_cap: getcharcode(ery_bar); fi +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(if monospace: 0,0 else: cap_serif_fit#,cap_serif_fit# fi %uwlett_adj + +4.5u#); %ERYadj +full_h:=h; h:=cap_height; +% upper_ery; +numeric left_stem; left_stem=cap_stem-hround 2stem_corr; +pickup tiny.nib; pos1(left_stem,0); pos2(left_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5left_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % upper serif + nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif +% usftsn_bowl(2); +_zero:=2; +_one:=3; _two:=4; _three:=5; _four:=6; _five:=7; +% +pickup tiny.nib; +penpos[_one](cap_bar,90); +penpos[_three](cap_curve if hefty:-3stem_corr fi,0); +penpos[_four](cap_band,-90); penpos[_five](cap_band,-90); +z[_five]r=bot z[_zero]; y[_four]=y[_five]; +y[_three]=.5[y[_four],y[_two]]; +x[_one]=x[_zero]r; x[_three]r=hround(w-u); +if (serifs=false) or (cap_bar#>.5cap_curve#) or (cap_bar<3): + penpos[_two](cap_bar,90); + x[_four]=.5[x[_zero],w-if serifs:1.5u else:2.5u fi]+.5u; + y[_one]=y[_two]=.52h; x[_two]=x[_four]; +else: penpos[_two](1/18[cap_bar,cap_curve],90); + x[_four]=.5[x[_zero],w-1.5u]+.5u; + y[_one]l=y[_two]l-.35cap_bar=.52h-.5cap_bar; + x[_two]=x[_four]-.35u; fi +x[_two]l:=x[_two]l-.5u; x[_four]l:=x[_four]l-.5u; +fill stroke z[_five]e..super_arc.e([_four],[_three]) + & super_arc.e([_three],[_two])..z[_one]e; % lobe +%%% +% I +w:=w+4.5u; pickup tiny.nib; rt x8r=rt x9r=w-hround max(2u,3u-.5stem); +top y8=h; bot y9=0; pos8(cap_stem,0); pos9(cap_stem,0); +filldraw stroke z8e--z9e; +if serifs: dish_serif(8,9,e,1/3,cap_jut,f,1/3,cap_jut); + dish_serif(9,8,g,1/3,cap_jut,h,1/3,cap_jut); fi +%%%%% +% the accent +h:=full_h; +if monospace: +% up_bar(.5[l,r],o, 10,11); +x_move:=.5[l,r]; y_move:=o; _one:=10; _two:=11; +numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; +pickup if serifs: crisp.nib else: fine.nib fi; +pos[_one](macron_breadth,90); pos[_two](macron_breadth,90); +x[_one]=x_move+hround(2.75u if monospace:/expansion_factor fi+.5vair); +top y[_one]r=top y[_two]r=vround(cap_height+dot_height#*hppp); +x[_two]=x_move-hround(2.75u if monospace:/expansion_factor fi+.5vair); +filldraw stroke z[_one]e--z[_two]e; % bar +else: +% up_wbar(l+max(2u+.5cap_stem,3u),w-max(2u+.5cap_stem,3u),o, 10,11); + x_left:=l+max(2u+.5cap_stem,3u); x_right:=w-max(2u+.5cap_stem,3u); + y_move:=o; _one:=10; _two:=11; + numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; + pickup if serifs: crisp.nib else: fine.nib fi; + pos[_one](macron_breadth,90); pos[_two](macron_breadth,90); + x[_one]=x_left; x[_two]=x_right; + top y[_one]r=top y[_two]r=vround(cap_height+dot_height#*hppp); + filldraw stroke z[_one]e--z[_two]e; fi % bar +penlabels(1,2,3,4,5,6,7,8,9, 10,11); endchar; + +iff serifs:% +lhchar "Uppercase Cyrillic letter EREV_uml - Reverse E umlaut"; +cyrchar(EREV_uml,13u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(erev_uml); fi +italcorr cap_height#*slant-.5u#; +adjust_fit(0,0); full_h:=h; h:=cap_height; +% upper_erev; + pickup fine.nib; pos1(cap_hair,180); pos2(cap_band,90); + pos3(cap_curve,0); pos4(cap_band,-90); pos5(hair,-180); + lft x1r=lft x5r=hround u; + rt x3r=hround(w-u); x2=x4=.55[x3,x1]; + top y2r=h+o; bot y4r=-o; y3=.5h-vair_corr; y3l:=.52h; + bot y1=min(vround.675h,bot y2l-eps); y5=max(good.y .95(h-y1),y4l+eps); + (x2l',y2l)=whatever[z2r,z1l]; x2l:=max(x2l',x2l-.5u); + (x4l',y4l)=whatever[z4r,z5l]; x4l:=max(x4l',x4l-.5u); + filldraw stroke z1e{x2-x1,10(y2-y1)}...pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull)...{up}z5e; % arc + pos6(.3[fine.breadth,cap_hair],180); x6r=x1r; top y6=h+o; + x1'-x1r=2cap_curve-fine; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,10(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 +%%% +%%% uerev_bar; +numeric bar[]; y8=y7=y3; +x8=x3l; x7=max(rt x1l+.5hair,0.85[x3l,x1l]); +if (bar#<=.5curve#): + penpos7(cap_bar,90); penpos8(cap_bar,90); + bar2=7/8[cap_bar,fudged.cap_stem-3stem_corr]; + penpos9(bar2,45); z9=.475[z7l,z8l]; + fill circ_stroke z7e{2,1}..{2,-1}z9e..{2,1}z8e; % curve /\/ +else: + pickup fine.nib; pos7(cap_bar,90); pos8(cap_bar,90); + filldraw stroke z7e--z8e; % bar -- +fi +%%% +% the accent +h:=full_h; uppercase_umlaut(x2-.5w,0, 10,11,12,13); +penlabels(1,1',2,3,4,5,6,7,8,9, 10,11,12,13); endchar; + +iff not serifs:% +lhchar "Uppercase Cyrillic letter EREV_uml - Reverse E umlaut"; +cyrchar(EREV_uml,11.5u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(erev_uml); fi +italcorr cap_height#*slant-.5u#; +adjust_fit(0,0); full_h:=h; h:=cap_height; +% uppers_erev; + pickup fine.nib; pos1(1.2flare,100); pos2(slab,90); + pos3(cap_curve,0); pos4(slab,-90); pos5(flare,-95); + lft x1r=hround1.1u; x2=x4=w-(.5w+1.25u); + rt x3r=w-hround max(u,2u-.5cap_curve); + lft x5r=hround.9u; + top y1r=vround .95h+o; top y2r=h+o; y3=.5h; + bot y4r=-o; bot y5r=vround .08h-o; y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke rterm.e(2,1,left,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,left,.8,4); +%%% +% urevs_bar; +pickup fine.nib; numeric bar[]; +bar1=if is_small_cap: max(fine.breadth+eps,.6[thin_join,vair]) + else: cap_bar fi; +pos6(bar1,90); pos7(bar1,90); +y7=y6=y3; x7=x3l; x6=max(rt x1l+.5hair,0.85[x3l,x1l]); +filldraw stroke z6e--z7e; % bar -- +%%%%% +% the accent +h:=full_h; uppercase_umlaut(x2-.5w,0, 8,9,10,11); +penlabels(1,1',2,3,4,5,6,7, 8,9,10,11); endchar; + +iff serifs:% +lhchar "Uppercase Cyrillic letter EREV_dot - Reverse E dot"; +cyrchar_twice(EREV_dot,13u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(erev_dot); fi +italcorr cap_height#*slant-.5u#; +adjust_fit(0,0); full_h:=h; h:=cap_height; +% upper_erev; + pickup fine.nib; pos1(cap_hair,180); pos2(cap_band,90); + pos3(cap_curve,0); pos4(cap_band,-90); pos5(hair,-180); + lft x1r=lft x5r=hround u; + rt x3r=hround(w-u); x2=x4=.55[x3,x1]; + top y2r=h+o; bot y4r=-o; y3=.5h-vair_corr; y3l:=.52h; + bot y1=min(vround.675h,bot y2l-eps); y5=max(good.y .95(h-y1),y4l+eps); + (x2l',y2l)=whatever[z2r,z1l]; x2l:=max(x2l',x2l-.5u); + (x4l',y4l)=whatever[z4r,z5l]; x4l:=max(x4l',x4l-.5u); + filldraw stroke z1e{x2-x1,10(y2-y1)}...pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull)...{up}z5e; % arc + pos6(.3[fine.breadth,cap_hair],180); x6r=x1r; top y6=h+o; + x1'-x1r=2cap_curve-fine; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,10(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 +%%% +%%% uerev_bar; +numeric bar[]; y8=y7=y3; +x8=x3l; x7=max(rt x1l+.5hair,0.85[x3l,x1l]); +if (bar#<=.5curve#): + penpos7(cap_bar,90); penpos8(cap_bar,90); + bar2=7/8[cap_bar,fudged.cap_stem-3stem_corr]; + penpos9(bar2,45); z9=.475[z7l,z8l]; + fill circ_stroke z7e{2,1}..{2,-1}z9e..{2,1}z8e; % curve /\/ +else: + pickup fine.nib; pos7(cap_bar,90); pos8(cap_bar,90); + filldraw stroke z7e--z8e; % bar -- +fi +%%% +% the accent +put_dot(tiny,max(dot_size#,cap_curve#))(cyrcaph); repeat_once; +penlabels(1,1',2,3,4,5,6,7,8,9); endchar; + +iff not serifs:% +lhchar "Uppercase Cyrillic letter EREV_dot - Reverse E dot"; +cyrchar_twice(EREV_dot,11.5u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(erev_dot); fi +italcorr cap_height#*slant-.5u#; +adjust_fit(0,0); full_h:=h; h:=cap_height; +% uppers_erev; + pickup fine.nib; pos1(1.2flare,100); pos2(slab,90); + pos3(cap_curve,0); pos4(slab,-90); pos5(flare,-95); + lft x1r=hround1.1u; x2=x4=w-(.5w+1.25u); + rt x3r=w-hround max(u,2u-.5cap_curve); + lft x5r=hround.9u; + top y1r=vround .95h+o; top y2r=h+o; y3=.5h; + bot y4r=-o; bot y5r=vround .08h-o; y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke rterm.e(2,1,left,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,left,.8,4); +%%% +% urevs_bar; +pickup fine.nib; numeric bar[]; +bar1=if is_small_cap: max(fine.breadth+eps,.6[thin_join,vair]) + else: cap_bar fi; +pos6(bar1,90); pos7(bar1,90); +y7=y6=y3; x7=x3l; x6=max(rt x1l+.5hair,0.85[x3l,x1l]); +filldraw stroke z6e--z7e; % bar -- +%%%%% +% the accent +put_dot(tiny,max(dot_size#,cap_curve#))(cyrcaph); repeat_once; +penlabels(1,1',2,3,4,5,6,7); endchar; + +iff serifs:% +lhchar "Uppercase Cyrillic letter EREV_bar - Reverse E bar"; +cyrchar(EREV_bar,13u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(erev_bar); fi +italcorr cap_height#*slant-.5u#; +adjust_fit(0,0); full_h:=h; h:=cap_height; +% upper_erev; + pickup fine.nib; pos1(cap_hair,180); pos2(cap_band,90); + pos3(cap_curve,0); pos4(cap_band,-90); pos5(hair,-180); + lft x1r=lft x5r=hround u; + rt x3r=hround(w-u); x2=x4=.55[x3,x1]; + top y2r=h+o; bot y4r=-o; y3=.5h-vair_corr; y3l:=.52h; + bot y1=min(vround.675h,bot y2l-eps); y5=max(good.y .95(h-y1),y4l+eps); + (x2l',y2l)=whatever[z2r,z1l]; x2l:=max(x2l',x2l-.5u); + (x4l',y4l)=whatever[z4r,z5l]; x4l:=max(x4l',x4l-.5u); + filldraw stroke z1e{x2-x1,10(y2-y1)}...pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull)...{up}z5e; % arc + pos6(.3[fine.breadth,cap_hair],180); x6r=x1r; top y6=h+o; + x1'-x1r=2cap_curve-fine; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,10(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 +%%% +%%% uerev_bar; +numeric bar[]; y8=y7=y3; +x8=x3l; x7=max(rt x1l+.5hair,0.85[x3l,x1l]); +if (bar#<=.5curve#): + penpos7(cap_bar,90); penpos8(cap_bar,90); + bar2=7/8[cap_bar,fudged.cap_stem-3stem_corr]; + penpos9(bar2,45); z9=.475[z7l,z8l]; + fill circ_stroke z7e{2,1}..{2,-1}z9e..{2,1}z8e; % curve /\/ +else: + pickup fine.nib; pos7(cap_bar,90); pos8(cap_bar,90); + filldraw stroke z7e--z8e; % bar -- +fi +%%% +% the accent +h:=full_h; +% up_bar(x2,o, 10,11); +x_move:=x2; y_move:=o; _one:=10; _two:=11; +numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; +pickup if serifs: crisp.nib else: fine.nib fi; +pos[_one](macron_breadth,90); pos[_two](macron_breadth,90); +x[_one]=x_move+hround(2.75u if monospace:/expansion_factor fi+.5vair); +top y[_one]r=top y[_two]r=vround(cap_height+dot_height#*hppp); +x[_two]=x_move-hround(2.75u if monospace:/expansion_factor fi+.5vair); +filldraw stroke z[_one]e--z[_two]e; % bar +penlabels(1,1',2,3,4,5,6,7,8,9, ,10,11); endchar; + +iff not serifs:% +lhchar "Uppercase Cyrillic letter EREV_bar - Reverse E bar"; +cyrchar(EREV_bar,11.5u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(erev_bar); fi +italcorr cap_height#*slant-.5u#; +adjust_fit(0,0); full_h:=h; h:=cap_height; +% uppers_erev; + pickup fine.nib; pos1(1.2flare,100); pos2(slab,90); + pos3(cap_curve,0); pos4(slab,-90); pos5(flare,-95); + lft x1r=hround1.1u; x2=x4=w-(.5w+1.25u); + rt x3r=w-hround max(u,2u-.5cap_curve); + lft x5r=hround.9u; + top y1r=vround .95h+o; top y2r=h+o; y3=.5h; + bot y4r=-o; bot y5r=vround .08h-o; y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke rterm.e(2,1,left,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,left,.8,4); +%%% +% urevs_bar; +pickup fine.nib; numeric bar[]; +bar1=if is_small_cap: max(fine.breadth+eps,.6[thin_join,vair]) + else: cap_bar fi; +pos6(bar1,90); pos7(bar1,90); +y7=y6=y3; x7=x3l; x6=max(rt x1l+.5hair,0.85[x3l,x1l]); +filldraw stroke z6e--z7e; % bar -- +%%%%% +% the accent +h:=full_h; +% up_bar(x2,o, 8,9); +x_move:=x2; y_move:=o; _one:=8; _two:=9; +numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; +pickup if serifs: crisp.nib else: fine.nib fi; +pos[_one](macron_breadth,90); pos[_two](macron_breadth,90); +x[_one]=x_move+hround(2.75u if monospace:/expansion_factor fi+.5vair); +top y[_one]r=top y[_two]r=vround(cap_height+dot_height#*hppp); +x[_two]=x_move-hround(2.75u if monospace:/expansion_factor fi+.5vair); +filldraw stroke z[_one]e--z[_two]e; % bar +penlabels(1,1',2,3,4,5,6,7, 8,9); endchar; + +lhchar "Uppercase Cyrillic letter YU_bar (looks like IO)"; +cyrchar(YU_bar,14u#-width_adj#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(yu_bar); fi +italcorr .7cap_height#*slant-.5u#; +adjust_fit(if monospace: 6.5u# else: + max(5u#+.5cap_stem#,6u#)+cap_serif_fit# fi, %Ipart_adj + if monospace:-1.25u# else: 0 fi); +full_h:=h; h:=cap_height; +% upper_yu; +penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90); +penpos2(cap_curve,180); penpos4(cap_curve,0); +if monospace: x2r=hround 1.5u; + interim superness:=sqrt superness; % make |"O"|, not |"0"| + else: x2r=hround u; fi +x4r=w-x2r; x1=x3=.5w; y1r=h+o; y3r=-o; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_super_arc.e(1,2)(.5superpull) + & pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull) + & pulled_super_arc.e(4,1)(.5superpull) & cycle; % bowl +%I_part(2); +_zero:=2; +_one:=5; _two:=6; _three:=7; _four:=8; +% +pickup tiny.nib; pos[_one](cap_stem,0); pos[_two](cap_stem,0);%pos +lft x[_one]l=lft x[_two]l= + l+letter_fit+if monospace:-.35u else: cap_serif_fit fi + +hround max(2u,3u-.5cap_stem); +top y[_one]=h; bot y[_two]=0; +filldraw stroke z[_one]e--z[_two]e; % stem +x[_three]=x[_one]; y[_three]=y[_zero]; +x[_four]=x[_zero]; y[_four]=y[_three]; +pos[_three](cap_bar,90); pos[_four](cap_bar,90); +filldraw stroke z[_three]e--z[_four]e; % bar +if serifs: dish_serif([_one],[_two],s,1/3,cap_jut,t,1/3,cap_jut); + dish_serif([_two],[_one],u,1/3,cap_jut,v,1/3,cap_jut); fi +%%%%% +% the accent +h:=full_h; +if monospace: +% up_bar(.5[l,r],o, 9,10); + x_move:=.5[l,r]; y_move:=o; _one:=9; _two:=10; + numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; + pickup if serifs: crisp.nib else: fine.nib fi; + pos[_one](macron_breadth,90); pos[_two](macron_breadth,90); + x[_one]=x_move+hround(2.75u if monospace:/expansion_factor fi+.5vair); + top y[_one]r=top y[_two]r=vround(cap_height+dot_height#*hppp); + x[_two]=x_move-hround(2.75u if monospace:/expansion_factor fi+.5vair); + filldraw stroke z[_one]e--z[_two]e; % bar +else: +% up_wbar(l+max(2u+.5cap_stem,3u),w-max(2u+.5cap_stem,3u),o,9,10); + x_left:=l+max(2u+.5cap_stem,3u); x_right:=w-max(2u+.5cap_stem,3u); + y_move:=o; _one:=9; _two:=10; + numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; + pickup if serifs: crisp.nib else: fine.nib fi; + pos[_one](macron_breadth,90); pos[_two](macron_breadth,90); + x[_one]=x_left; x[_two]=x_right; + top y[_one]r=top y[_two]r=vround(cap_height+dot_height#*hppp); + filldraw stroke z[_one]e--z[_two]e; fi % bar +penlabels(1,2,3,4,5,6,7,8, 9,10); endchar; + +iff not specific:% +lhchar "Uppercase Cyrillic letter YA_bar (`roman')"; +cyrchar(YA_bar,if serifs:13.5u# else:12.5u#-.5width_adj# fi %N_width; upss R + ,cap_height#+acc_height#,0); % N_width % +if is_small_cap: getcharcode(ya_bar); fi +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(if serifs: cap_serif_fit# else: 0 fi,cap_serif_fit#); +full_h:=h; h:=cap_height; +% upperr_ya; +pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); +rt x1r=rt x2r=hround(w-max(2u,3u-.5cap_stem')); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +penpos3(cap_band,90); penpos4(cap_band,90); +penpos5(cap_curve if hefty:-3stem_corr fi,180); +numeric middle_weight; middle_weight=.5[vair,cap_band]; +penpos6(middle_weight,-90); penpos7(middle_weight,-90); +z3r=top z1; y4=y3; y5=.52[y6l,y4l]; y6=y7; +x7=x2; y7l=vround(.5h+.5vair); x4=x6; +if serifs: x4=.5w+.5u; x5r=hround (2u); + else: x4=.5w-.5u; x5r=hround u; fi +x4l:=x6l:=x4+.125cap_curve; +fill stroke z7e..pulled_arc.e(6,5) & pulled_arc.e(5,4)..z3e; % lobe +pickup tiny.nib; numeric stem[],alpha,right_jut; +right_jut=if serifs:.6cap_jut else:.4tiny fi; +if serifs: bot y9=bot y2; else: y9=0; fi +lft x9l=hround(if serifs:l+letter_fit+.75u+right_jut else:.5u fi); y8=y6; +stem1=max(tiny.breadth,fudged.cap_stem-3stem_corr); +alpha=diag_ratio(1,.5(stem1-tiny),y1-y9,x9l-x1); +penpos9(alpha*(stem1-tiny),0); +forsuffixes $=l,r: y9'$=0; endfor +z9'r=z9r+penoffset z1-z9 of currentpen+whatever*(z1-z9); +z9'l=z9l+penoffset z9-z1 of currentpen+whatever*(z1-z9); +if serifs: z8r=z9'r+whatever*(z1r-z9); else: x8=x6+.5u; fi +penpos8(if serifs:x9'r-x9'l else: cap_stem-2stem_corr fi,0); +fill z8l--diag_end(8l,9'l,1,.5,9'r,8r)--z8r--cycle; % diagonal +numeric inner_jut; +if lft x2l-cap_jut-.5u+1>=rt x9r+cap_jut: inner_jut=cap_jut; + else: lft x2r-cap_jut-.5u+1=rt x9r+inner_jut; fi +if serifs: + nodish_serif(1,2,a,1/3,.5cap_jut,b,1/3,cap_jut); % upper serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower serif + dish_serif(9,8,g,1/2,right_jut,h,1/3,inner_jut)(dark); fi % lower diagonal serif +%%%%% +% the accent +h:=full_h; +% up_bar(.5[x1,x6-.5cap_curve],0, 11,12); +x_move:=.5[x1,x6-.5cap_curve]; y_move:=0; _one:=11; _two:=12; +numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; +pickup if serifs: crisp.nib else: fine.nib fi; +pos[_one](macron_breadth,90); pos[_two](macron_breadth,90); +x[_one]=x_move+hround(2.75u if monospace:/expansion_factor fi+.5vair); +top y[_one]r=top y[_two]r=vround(cap_height+dot_height#*hppp); +x[_two]=x_move-hround(2.75u 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,12); endchar; + +lhchar "Uppercase Cyrillic letter OTLD_bar (OTLD bar)"; +cyrchar(OTLD_bar,14u#-width_adj#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(otld_bar); fi +italcorr .7cap_height#*slant-.5u#; +adjust_fit(0,0); full_h:=h; h:=cap_height; +% upper_o;tld +penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90); +penpos2(cap_curve,180); penpos4(cap_curve,0); +if monospace: x2r=hround 1.5u; + interim superness:=sqrt superness; % make |"O"|, not |"0"| +else: x2r=hround u; fi +x4r=w-x2r; x1=x3=.5w; y1r=h+o; y3r=-o; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_super_arc.e(1,2)(.5superpull) + & pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull) + & pulled_super_arc.e(4,1)(.5superpull) & cycle; % bowl +%%%%% +% outilde; +z5=z2l; z6=z4l; penpos5(cap_bar,90); penpos6(cap_bar,90); +if (serifs) and (bar#<=.5curve#): numeric bar[]; + bar2=2/3[cap_bar,fudged.cap_stem]; penpos7(bar2,45); z7=.5[z5,z6]; + fill stroke z5e{2,1}..{2,-1}z7e..{2,1}z6e; +else: fill stroke z5e--z6e; fi +%%%%% +% the accent +h:=full_h; +% up_bar(.5w,o, 8,9); +x_move:=.5w; y_move:=o; _one:=8; _two:=9; +numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; +pickup if serifs: crisp.nib else: fine.nib fi; +pos[_one](macron_breadth,90); pos[_two](macron_breadth,90); +x[_one]=x_move+hround(2.75u if monospace:/expansion_factor fi+.5vair); +top y[_one]r=top y[_two]r=vround(cap_height+dot_height#*hppp); +x[_two]=x_move-hround(2.75u if monospace:/expansion_factor fi+.5vair); +filldraw stroke z[_one]e--z[_two]e; % bar +penlabels(1,2,3,4,6,7, 8,9); endchar; + +lhchar "Uppercase Cyrillic letter Y_bar - straight u bar"; +cyrchar(Y_bar,13u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(y_bar); fi +italcorr cap_height#*slant+.45u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); full_h:=h; h:=cap_height; +% upper_y; +numeric left_stem,right_stem,outer_jut,dy,alpha; +left_stem=cap_stem-stem_corr; +right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +outer_jut=.75cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.05u; +x2l=x5l=hround(.5w-.5left_stem); x3r=x5r; y1=y4=h; y2=y3=y5=.4h; +dy=y1-y2; alpha=((x2l-x1l)++dy)/dy; +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +penpos5(left_stem,0); penpos6(left_stem,0); x5=x6; y6=0; +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0>y2+cap_notch_cut: y0:=y2+cap_notch_cut; + fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)--z5r + --diag_end(5r,6r,1,1,6l,5l)--z5l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0+.5left--cycle; % diagonals and stem +else: fill z0--diag_end(0,4l,1,1,4r,3r)--z5r + --diag_end(5r,6r,1,1,6l,5l)--z5l + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % diagonals and stem +if serifs: numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(4,3); prime_points_inside(6,5); + if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + 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 + dish_serif(6',5,e,1/3,cap_jut,f,1/3,cap_jut); fi % lower serif +% the accent +h:=full_h; +% up_bar(.5w,0, 7,8); +x_move:=.5w; y_move:=0; _one:=7; _two:=8; +numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; +pickup if serifs: crisp.nib else: fine.nib fi; +pos[_one](macron_breadth,90); pos[_two](macron_breadth,90); +x[_one]=x_move+hround(2.75u if monospace:/expansion_factor fi+.5vair); +top y[_one]r=top y[_two]r=vround(cap_height+dot_height#*hppp); +x[_two]=x_move-hround(2.75u 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); endchar; + +lhchar "Uppercase Cyrillic letter EPS_uml - EPSILON umlaut"; +cyrchar(EPS_uml,if serifs:11u#else:10u#fi,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(eps_uml); fi +italcorr .75cap_height#*slant-.5u#; %B +adjust_fit(if monospace:.35u#,.25u# else: 0,0 fi); +full_h:=h; h:=cap_height; +% upper_eps; +pickup fine.nib; pos2(slab,90); top y2r=h+o; +numeric right_curve,middle_weight; +right_curve=max(currentbreadth+eps,cap_curve-3stem_corr); +middle_weight=max(fine.breadth+eps,.6vair+.5); +pos4(middle_weight,-90); pos5(middle_weight,-90); +pos6(middle_weight,90); pos5'(middle_weight,90); +pos7(right_curve,180); +x2-.5u=x6=x8=.5[w-1.5u,x7]; lft x7r=hround.75u; +pos3(max(currentbreadth+eps,right_curve-stem_corr),180); lft x3r=hround 1.25u; +pos8(slab,270); bot y8r=-o; y7=.5[y6l,y8l]; +y3=.5[y4l,y2l]; x4=1/3[x5,x3l]; y4=y5; y5'=y6; +top y5l-bot y5'l=vair; .5[y5l,y5'l]=.52h; +rt x5=rt x5'=max(hround (w-3.5u),rt x6)+eps; +if serifs: + pos1(cap_hair,0); pos9(hair,360); + lft x1r=w-hround u; lft x9r=w-hround.9u; + y1=good.y(max(.52[y5l,y2l],top y5l+.5flare+.5)-eps); + y9=max(.52[top y8l,bot y5'l],y7+1); + pos0(flare,0); z0r=z1r; bulb(2,1,0); % bulb + filldraw stroke z8e{right}...{up}z9e; % arc +else: + pickup fine.nib; pos1(1.2flare,80); pos9(flare,275); + rt x1r=hround(w-1.1u); rt x9r=hround(w-.9u); + top y1r=vround .95h+o; bot y9r=vround .08h-o; y9l:=good.y y9l; x9l:=good.x x9l; + filldraw stroke rterm.e(2,1,right,.9,4); % upper arc + filldraw stroke term.e(8,9,right,.8,4); fi % arc and terminals +if not serifs: interim superness:=more_super; fi +filldraw stroke + z5e..super_arc.e(4,3) & + {{if not serifs:interim superness:=hein_super; fi + super_arc.e(3,2)}}; % upper bowl +filldraw stroke super_arc.e(8,7) & super_arc.e(7,6)..z5'e; % lower bowl +%%%%% +h:=full_h; uppercase_umlaut(x2-.5w,0, 10,11,12,13); +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Uppercase Cyrillic letter L_ldot - EL lower dot"; +cyrchar(L_ldot,13.5u#,cap_height#,desc_depth#); % DL_width:N_width +if is_small_cap: getcharcode(l_ldot); fi +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(cap_serif_fit# if not serifs:+.5(cap_stem#-u#) fi, %DL_adj + cap_serif_fit#); % +% upper_l; +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +rt x1r=rt x2r=w-hround max(2u,3u-.5cap_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; %stem +numeric bulb_diam; bulb_diam=flare+(cap_stem-stem); +numeric light_hair,bot_vair,left_jut; +light_hair=max(tiny.breadth,fudged.hair if hefty:-4stem_corr fi); +left_jut= + if serifs: max(limit_dist,1.1cap_jut) + else: hround (w+cap_serif_fit-rt x2r-.65u) fi; +bot_vair=Vround(.5[vair,light_hair]); +x3=1/3[w-rt x1r-(1/6left_jut),rt x1r] if not serifs:-.5(cap_stem-u) fi+eps; +if serifs: + pos3(light_hair,0); pos4(light_hair,-90); + pos6(bulb_diam,-180); pos5(cap_hair,-180); + top y3=h; y6=1/6h-max(0,flare-stem-2vair_corr-.5); z6r=z5r; + lft x6r=l+letter_fit+hround(.5u-.5); + x4=max(lft x5r+.5bulb_diam,.4[lft x5r,rt x3r]); bot y4r=-o; + filldraw stroke z4e{right}.. + controls (min(15/16[x4,x3],max(x4,lft x6r+2flare))+(x3e-x3)+eps,y4e) + and (x3e,good.y(min(y6-.5,1/3h)+1/3(y4e-y4))-eps)..z3e; % left tail + {{less_tense; bulb(4,5,6)}}; +else: + pos3'(slab,90); pos1'(slab,90); + lft x3'=x3-.5light_hair; rt x1'=x1r; top y3'r=top y1'r=h; + filldraw stroke z3'e--z1'e; + pickup fine.nib; pos3(max(fine.breadth,light_hair),0); pos4(bot_vair,-90); pos5(bot_vair,-90); + bot y5r=0; x4=2/3[x3l,x5r]; lft x5=l+letter_fit+hround(.35u-.5); + bot y4r=bot y5r; y3=y3'; x4l:=.25[x4,x5]; + path p; + p=stroke z3{down} + ..controls (x3,y5+.35h-eps) and (min(7/8[x4,x3],x5+2.5light_hair+.5u),y4) + ..{left}z4--z5; + z6=point .35 of p; + pos6(max(fine.breadth,7/8[bot_vair,light_hair]),angle(direction .35 of p)+90); + filldraw stroke z3e{down}...z6e{direction .35 of p}...{left}z4e--z5e; fi % arc +%%% +if serifs: + x0=x3; y0=0; + numeric inner_jut; inner_jut=min(.5(lft x1l-rt x3r)-eps,.5cap_jut); + dish_serif(2,1,a,1/3,cap_jut,b,1/3,cap_jut); %lower right serif + nodish_serif(1,2,c,1/3,inner_jut,d,1/3,cap_jut); %upper right serif + nodish_serif(3,0,e,1/3,1.05cap_jut,f,1/3,inner_jut); %upper left serif + filldraw z.c0--z.c1--z.f1--z.f0--cycle; fi % upper inter_serif bar +%%%%% +% upper_dot; +_one:=7; _two:=8; _center:=.5w; +% +numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); +define_whole_blacker_pixels(dot_diam); +pos[_one](dot_diam,0); pos[_two](dot_diam,90); +x[_one]=hround(_center); bot y[_two]l=vround(-d-1); +if 0-o-top y[_two]r<slab: y[_two]r:=vround(max(y[_two]l+eps,-fine-slab)); fi +x[_one]=x[_two]; y[_one]=vround(.5[y[_two]l,y[_two]r]); +dot([_one],[_two]); % dot +penlabels(1,2,3,4,5,6, 7,8,); endchar; + +lhchar "Uppercase Cyrillic letter N_ldot - EN lower dot"; +cyrchar(N_ldot,13.5u#,cap_height#,cap_sbeak#); +if is_small_cap: getcharcode(n_ldot); fi +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(cap_serif_fit#,cap_serif_fit#); +% upper_n; +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +pos3(cap_stem,0); pos4(cap_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); 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 +penpos5(cap_bar,90); penpos6(cap_bar,90); +x5=x1; x6=x3; y5=y6=.52h; +fill stroke z5e--z6e; % bar +%%% +if serifs: numeric inner_jut; + if rt x1r+cap_jut+.5u+1<=lft x3l-cap_jut: inner_jut=cap_jut; + else: rt x1r+inner_jut+.5u+1=lft x3l-inner_jut; fi + dish_serif(1,2,a,1/3,cap_jut,b,1/3,inner_jut); % upper left serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,inner_jut); % lower left serif + dish_serif(3,4,e,1/3,inner_jut,f,1/3,cap_jut); % upper right serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,cap_jut); fi % lower right serif +%%%%% +% dot +% upper_dot; +_one:=7; _two:=8; _center:=.5w; +% +numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); +define_whole_blacker_pixels(dot_diam); +pos[_one](dot_diam,0); pos[_two](dot_diam,90); +x[_one]=hround(_center); bot y[_two]l=vround(-d-1); +if 0-o-top y[_two]r<slab: y[_two]r:=vround(max(y[_two]l+eps,-fine-slab)); fi +x[_one]=x[_two]; y[_one]=vround(.5[y[_two]l,y[_two]r]); +dot([_one],[_two]); % dot +penlabels(1,2,3,4,5,6, 7,8); endchar; + +lhchar "Uppercase Cyrillic letter R_brv (looks like P)"; +cyrchar(R_brv,12u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(r_brv); fi +italcorr .75cap_height#*slant-.5u#; +adjust_fit(cap_serif_fit#,0); full_h:=h; h:=cap_height; +% upper_r; +pickup tiny.nib; penpos1(cap_stem'-tiny,0); penpos2(cap_stem-tiny,0); +pos0(cap_stem',0); pos0'(cap_stem,0); +lft x1l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0; +x1l=x2l=x0l=x0'l; y0=y0'=y7; +penpos3(cap_band,90); penpos4(cap_band,90); +penpos5(cap_curve if hefty:-3stem_corr fi,0); +penpos6(.5[vair,cap_band],-90); penpos7(.5[vair,cap_band],-90); +z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7; +x7=x2; y7l=vround .5h; x4=x6=.5w+.75u; x5r=hround(w-u); +x4l:=x6l:=x4-.25cap_curve; +filldraw stroke z1e--z0e--z0'e--z2e; % stem +fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe +%%% +if serifs: nodish_serif(1,0,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + dish_serif(2,0',c,1/3,cap_jut,d,1/3,cap_jut); fi % lower serif +%%%%% +% the accent +h:=full_h; uppercase_breve(.5w,0, 8,9,10); +penlabels(0,1,2,3,4,5,6,7, 8,9,10); endchar; + +lhchar "Uppercase Cyrillic letter T_lcom - TE lower comma"; +cyrchar(T_lcom,13u#-width_adj#,cap_height#,1.25desc_depth#); +if is_small_cap: getcharcode(t_lcom); fi +italcorr cap_height#*slant-beak_jut#-.25u#; +adjust_fit(0,0); +% upper_t; +if odd(cap_stem-w): change_width; fi % symmetric & all three equal +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos3(slab,90); pos4(hair,0); +top y3r=h; x3=x1; rt x4r=hround(w-.65u); y4=good.y(y3l-beak)-eps; +arm(3,4,e,beak_darkness,.7beak_jut); % right arm and beak +pos5(hair,180); x5=w-x4; y5=y4; +arm(3,5,f,beak_darkness,-.7beak_jut); % left arm and beak +%%% +if serifs: dish_serif(2,1,c,1/3,1.414cap_jut,d,1/3,1.414cap_jut); % lower serif + nodish_serif(1,2,a,1/3,.5cap_jut,b,1/3,.5cap_jut); fi % upper bracketing +%%%%% +% the accent +%ac_comma(0,0,1.25desc_depth, 7,8,9,10,11); + x_move:=0; y_move:=0; depth:=1.25desc_depth; + _zero:=7; _one:=8; _two:=9; _three:=10; _four:=11; + numeric height,bulb_diam; + height=if serifs: depth+.5fine-max(.27depth,o+hair) else:.68depth fi; + bulb_diam=max(fine.breadth,min(dot_size,floor(.56height))); + if square_dots: pickup fine.nib; pos[_one](vair,0); + pos[_two](.5[vair,stem],0); + % comma below letter as sans serif cedilla + top y[_one]=-o-2; bot y[_two]=-d-o; + x[_two]=x[_one]-1.25u=.5w+x_move; + filldraw stroke z[_one]e--z[_two]e; % diagonal + else: pickup fine.nib; + x[_four]-.5bulb_diam=hround(.5w+x_move-.5bulb_diam); + y[_four]+.5bulb_diam=-d+y_move+height; + pos[_four](bulb_diam,90); + pos[_one](vair,90); pos[_two](vair,0); pos[_three](vair,-45); + z[_one]r=z[_four]r; rt x[_two]r=hround(x[_four]+.5bulb_diam + +if monospace:.28u / expansion_factor else:.25u fi)+2eps; + x[_three]=x[_four]-.5u if monospace: /expansion_factor fi; + y[_two]=1/3[y[_one],y[_three]]; + bot y[_three]r=vround(y[_four]-(height-.5bulb_diam)); + y_:=ypart((z[_one]{right}...z[_two]{down}...z[_three]) + intersectiontimes (z[_four]l{right}..{left}z[_four]r)); + if y_<0: y_:=1; fi + filldraw z[_four]r{left}..subpath (0,y_) + of (z[_four]l{right}..{left}z[_four]r)--cycle; % dot + filldraw stroke z[_one]e{right}...z[_two]e{down}...z[_three]e; fi % tail + penlabels([_zero],[_one],[_two],[_three],[_four]); +penlabels(1,2,3,4,5,6, 7,8,9,10,11); endchar; + +lhchar "Uppercase Cyrillic letter CH_ldot - CHE lower dot"; +cyrchar(CH_ldot,13.5u#,cap_height#,desc_depth#); +if is_small_cap: getcharcode(ch_ldot); fi +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(cap_serif_fit#,cap_serif_fit#); +% upper_ch; +pickup tiny.nib; +pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_stem,0); pos4(cap_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); x3=x4=w-x1; +top y1=top y3=h; bot y2=.3[y6,h]; bot y4=0; +x5l=1/3[x1,x3]; y5=y6; if serifs: y6'=y6-cap_hair+1.05cap_stem; fi +x6=x6'=x3; y6=good.y (h-.52h if serifs: -.35(.5[cap_hair,.7cap_stem]) fi); +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e--z4e; % right stem +clearpen; penpos2'(cap_stem,0); z2'=z2; +numeric middle_weight; middle_weight=.5[vair,cap_band]; +penpos5(middle_weight,90); penpos6(middle_weight,90); penpos6'(middle_weight,90); +if serifs: if((y6'-y6)>=middle_weight+1+eps): + fill stroke pulled_arc.e(2',5) & z5e{right}...{.75(z5-z6)+z6'}z6'e; + else: fill stroke pulled_arc.e(2',5) & z5e--z6e; fi % arc + numeric inner_jut; pickup tiny.nib; + if rt x1r+cap_jut+.5u+1<=lft x3l-cap_jut: inner_jut=cap_jut; + else: rt x1r+inner_jut+.5u+1=lft x3l-inner_jut; fi +%%% + dish_serif(1,2,a,1/3,cap_jut,b,1/3,inner_jut); % upper left serif + dish_serif(3,4,e,1/3,inner_jut,f,1/3,cap_jut); % upper right serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,cap_jut); % lower right serif +else: filldraw stroke pulled_arc.e(2',5) & z5e--z6e; fi % arc +%%%%% +% dot +% upper_dot; +_one:=7; _two:=8; _center:=x4; +% +numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); +define_whole_blacker_pixels(dot_diam); +pos[_one](dot_diam,0); pos[_two](dot_diam,90); +x[_one]=hround(_center); bot y[_two]l=vround(-d-1); +if 0-o-top y[_two]r<slab: y[_two]r:=vround(max(y[_two]l+eps,-fine-slab)); fi +x[_one]=x[_two]; y[_one]=vround(.5[y[_two]l,y[_two]r]); +dot([_one],[_two]); % dot +penlabels(1,2,3,4,5,6, 7,8); endchar; + +endinput; +%end of file diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgcmodi.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgcmodi.mf new file mode 100644 index 00000000000..1161b6feab0 --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgcmodi.mf @@ -0,0 +1,104 @@ +% +% lgcmodi.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Italic Cyrillic modified letters and variants +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames +% +% Modified +% +% Vg_hcrs +% lat_i_dsc +% Vdzhe +% + +LHver_check(3,4); % like |version_check| in ec + +lhchar "Italic Cyrillic letter Vg_hcrs - Variant ghe hcrossed"; % not italic shape +cyrchar(Vg_hcrs,8u#-.5width_adj#,x_height#,0); +italcorr x_height#*slant+.5stem#-u#; +adjust_fit(serif_fit#,-.25u#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +lft x1l=lft x2l=hround (2.5u-.5stem); top y1=h; y2-.5stem=0; +filldraw circ_stroke z2e--z1e; % stem +pickup crisp.nib; pos3(vair,90); pos4(vair,90); +top y3r=top y4r=h; x3=x1; rt x4r=hround(w-.5u); +filldraw stroke z3e--z4e; % upper bar +% hstroke +bar_stroke(x1,x1r+1.7u); +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Italic Cyrillic letter lat_i_dsc - Ukrainian i descender"; +cyrchar(lat_i_dsc,5u#,min(asc_height#,10/7x_height#+.5flare#),desc_depth#); +italcorr max(1/3x_height#*slant+.5hair#+.5u#,h#*slant+.5flare#-2u#); +adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib; +x0=0; x2=.5w+.25u; x3=.5w-.25u; +hook_in(0,1,2)(skewed); % hook +pos3(stem,0); pos4(vair,90); pos5(vair,180); +x5=w; y5=.4bar_height; x4=.5[x3,x5]; bot y4l=-oo; y3=1/3x_height; +filldraw stroke z3e{-u,-x_height}...z4e{right}...{up}z5e; % hook (3,4,5) +%hook_out(3,4,5)(skewed); % hook +filldraw stroke z2e--z3e; % stem +pos6(flare,0); pos7(flare,90); +x6=.5w if not monospace:-.4(h-x_height)*slant fi; top y7r=h+1; +if bot y7l-top y1<slab: y7l:=min(y7r-eps,y1+fine+slab); fi +x6=x7; y6=.5[y7l,y7r]; dot(6,7); % dot +% italic descender/ogonek +if is_ogonek: + def the_pen= + if known ogonek_pen: ogonek_pen else: fine fi + enddef; + p.l=z3l{-u,-x_height}...z4l{right}...{up}z5l; + ogonek_breadth:=xvair; + numeric tt; % the time... + tt=if hefty: 2.8 else: 2.6 fi; + ogonek_pos=point .9 of p.l; + easy_ogonek(the_pen,7,8,9); % ogonek +else: + z8=z5; pos8(hair,180); i_serif(8,x); +fi +penlabels(0,1,2,3,4,5,6,7); endchar; + +lhchar "Italic Cyrillic letter Vdzhe - te tail"; +cyrchar(Vdzhe,17u#,x_height#,desc_depth#); %15m+2u +italcorr (-.3x_height#+bar_height#)*slant; %o:.7h-(h-bar_height) +adjust_fit(if monospace:-1.5u#,-1.5u# else: 0,0 fi); +pickup fine.nib; numeric shaved_stem; shaved_stem=mfudged.stem; +save stem; stem=shaved_stem; pos2(stem,0); x1=x2; +if monospace: pos1(stem,0); lft x1l=hround(2.5u-.5stem); top y1=h; +else: x0=0; lft x2l=hround(2.5u-.5stem); hook_in(0,a,1); fi % opening hook +y2-.5stem=-oo; filldraw circ_stroke z2e--z1e; % left stem +x4+.5stem=hround(7u+.5stem); ital_arch(2,3,4); % left arch +pos5(stem,0); y5=y2; x5=x4; +filldraw circ_stroke z5e--z4e; % middle stem +x7+.5stem=hround(11.5u+.5stem); ital_arch(5,6,7); % right arch +pos8(stem,0); y8=y2; x8=x7; +filldraw circ_stroke z8e--z7e; % right stem +% hook +pos8'(vair,90); x8'=x7; y8'=bar_height; +lft x9l=hround(w-1.5u-.5stem); y9=.45y8'; pos9(stem,0); +pos10(vair,-90); pos11(hair,-180); pos12(flare,-180); +pos13(stem,0); x13=x9; +bot y13=-1/3d; bot y10r=-d-oo; y12-.5flare=-vround.9d; +x10=w-11/3u; lft x11r=min(x9-4u,lft x11r+x10-x11l+4u-eps); +filldraw stroke z8'e{right}...z9e{down}---z13e...{left}z10e; +bulb(10,11,12); % bulb +penlabels(0,a,1,2,3,4,5,6,7,8,9); endchar; + +endinput; +%end of file diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgcmodl.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgcmodl.mf new file mode 100644 index 00000000000..dc04fb84654 --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgcmodl.mf @@ -0,0 +1,160 @@ +% +% lgcmodl.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Lowercase Cyrillic modified letters and variants +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames +% +% Modified +% +% Vg_hcrs +% lat_i_dsc +% Vdzhe +% + +LHver_check(3,4); % like |version_check| in ec + +lhchar "Lowercase Cyrillic letter Vg_hcrs - Variant ghe hcrossed"; +cyrchar(Vg_hcrs,8u#-.5width_adj#,x_height#,0); +italcorr x_height#*slant-beak_jut#+.25u#; %Gamma->x_height+.5u# +adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ -.25u#); +% 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 +%%%%% +bar_stroke(x1,x1r+1.7u); +penlabels(1,2,3,4); endchar; + +lhchar "Lowercase Cyrillic letter lat_i_dsc - Ukrainian i descender"; +%numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); +cyrchar(lat_i_dsc,5u#,min(asc_height#,10/7x_height#+.5idot_diam#), %!!!from ec + if is_ogonek: desc_depth# else: sbeak# fi); %ldesc/og_depth +%define_whole_blacker_pixels(idot_diam); +italcorr h#*slant-serif_fit#+.5idot_diam#-2u#;%!!!from ec +adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi, + if serifs: serif_fit# else: 0 fi % lr_serif_adj + -stem_shift#); +begingroup +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; +filldraw stroke z1e--z2e; % stem +pos3(idot_diam,0); pos4(idot_diam,90); %!!!from ec +if serifs: x3r=max(x1r,x1+.5(idot_diam-tiny)-.2jut) else: x3=x1-.5 fi; %!!!from ec +top y4r=h+1; if bot y4l-top y1<slab: y4l:=min(y4r-eps,y1+tiny+slab); fi +x3=x4; y3=.5[y4l,y4r]; dot(3,4); % dot +if serifs: sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif + if is_ogonek: + save slab; slab:=vair; % lower.slab + dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi %!!! % lower serif +fi +% lowercase descender/ogonek +if is_ogonek: + endgroup; + def the_pen= + if known ogonek_pen: ogonek_pen elseif serifs: tiny else: fine fi + enddef; + % |stem| was drawn by |tiny| pen, hence |tiny| in the following equation: + ogonek_pos=(x2 if not serifs: l fi,.5the_pen) + if serifs and not is_egyptian: +(.5xvair,0) fi; + easy_ogonek(the_pen,5,6,7); % ogonek +else: + save slab; slab:=vair; % lower.slab + numeric right_jut; + right_jut=if serifs: 1.414jut else: hround (r-rt x2r-.5u) fi; + r_serif(2,1,o,1/3,jut,p,1/3,beak_darkness,right_jut,.6beak_jut); % lower right descender + endgroup; +fi +penlabels(1,2,3,4, 5,6,7); endchar; + +lhchar "Lowercase Cyrillic letter Vdzhe"; +cyrchar(Vdzhe,9u#-width_adj#,x_height#,desc_depth#); +italcorr x_height#*slant-beak_jut#+.35u#; %Gamma->x_height+.65u# +adjust_fit(0,1.7u#); if odd(stem-w): change_width; fi % symmetric & all three equal +% lower_t; +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +lft x1l=lft x2l=hround(.5w-.5stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos3(vair,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); % right arm and beak +pos5(hair,180); x5=w-x4; y5=y4; +arm(3,5,f,beak_darkness,-.4beak_jut); % left arm and beak +%%% +if serifs: + save slab; slab:=vair; % lower.slab + %dish_serif(2,1,c,1/3,1.414jut,d,1/3,1.414jut); % lower serif + slab:=Vround(vair-vair_corr); % lower.slab + nodish_serif(1,2,a,1/3,.5jut,b,1/3,.5jut); fi % upper bracketing +%%%%% +w:=w+1.7u; +% tail_part(2); +_zero:=2; +_one:=6; _two:=7; _three:=8; _four:=9; _five:=10; +_six:=11; _seven:=12; _eight:=13; _nine:=14; +% +pickup tiny.nib; +numeric bulb_diam; +bulb_diam=max(currentbreadth+eps,min(.82d-1-eps,hround 7/8[hair,flare])); +set_bar_axis; y[_one]r=y[_two]r=y2.bh; y[_one]l=y[_two]l=y1.bh; +penpos[_three](max(currentbreadth+eps,curve if hefty:-3stem_corr fi),0); +y[_three]=.5[y[_one]r,-d]; +x[_two]l=x[_two]r=w-4.75u; x[_one]l=x[_one]r=x[_zero]; +x[_three]r=hround(w-u); x[_two]l:=x[_four]l:=x[_two]r-.25curve; +{{interim superness:=more_super; + fill stroke super_arc.e([_three],[_two])..z[_one]e}}; % lobe +if serifs: z[_five]=z[_three]; pos[_five](curve if hefty:-3stem_corr fi,0); + pos[_six](vair,-90); bot y[_six]r=-d-oo; y[_seven]-.5flare=-.85d; + pos[_seven](hair,-180); pos[_eight](bulb_diam,-180); + rt x[_eight]l=max(lft x[_zero]l-jut+bulb_diam, + floor x[_three]-3.5u if monospace: / expansion_factor fi); + z[_seven]r=z[_eight]r; + x[_six]=max(rt x[_eight]l,.6[x[_five],x[_seven]r]); + (x,y[_six]r)=whatever[z[_six]l,z[_five]l]; + x[_six]r:=max(x,.5[x[_seven]r,x[_six]]); + filldraw stroke super_arc.e([_five],[_six]); + bulb([_six],[_seven],[_eight]); % bulb +else: + pickup fine.nib; z[_five]=z[_three]; + pos[_five](max(fine.breadth,curve if hefty:-3stem_corr fi),0); + pos[_nine](vair',-90); pos[_six](.6[vair',flare],-105); + rt x[_six]r=x[_three]-4.5u; bot y[_six]r=-d; + bot y[_nine]r=-d-oo; x[_nine]=.35[x[_six]r,x[_three]r]; + filldraw stroke super_arc.e([_five],[_nine]) + & term.e([_nine],[_six],left,.75,4); fi +%%% +if serifs: numeric inner_jut; + if rt x2r+jut+.5u+1<=x[_three]r: inner_jut=jut; + else: rt x2r+inner_jut+.5u+1=x[_three]r; fi + slab:=vair; % lower.slab + dish_serif(2,1,c,1/3,1.414jut,d,1/3,inner_jut); fi % lower serif +%%%%% +penlabels(1,2,3,4,5, 6,7,8,9,10,11,12,13,14); endchar; + +endinput; +%end of file diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgcmodu.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgcmodu.mf new file mode 100644 index 00000000000..05cdccb4399 --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgcmodu.mf @@ -0,0 +1,167 @@ +% +% lgcmodu.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Uppercase Cyrillic modified letters and variants +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames +% +% Modified +% +% VG_hcrs +% LAT_I_dsc +% VDZHE +% + +LHver_check(3,4); % like |version_check| in ec + +lhchar "Uppercase Cyrillic letter VG_hcrs - Variant GHE hcrossed"; +cyrchar(VG_hcrs,if monospace: 9u# else: 11u# fi-width_adj#, %G_width + cap_height#,0); +if is_small_cap: getcharcode(Vg_hcrs); fi +italcorr cap_height#*slant-beak_jut#-.25u#; +adjust_fit(cap_serif_fit#,0); +% upper_g; +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +lft x1l=lft x2l=hround max(2u ,3u-.5cap_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos3(slab,90); pos4(hair,0); +top y3r=h; x3=x1; rt x4r=hround(w-.75u); y4=good.y(y3l-beak)-eps; +arm(3,4,e,beak_darkness,beak_jut); % upper arm and beak +if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,1.25cap_jut); fi % lower serif +%%%%% +% hcross +pickup fine.nib; numeric outer_jut; +outer_jut=if serifs: max(limit_dist,1.1cap_jut) else: 1.8u fi; +pos5(bar,90); pos6(bar,90); +top y5r=top y6r=vround (.52h+.5bar)+eps; +x6=min(x1r+2outer_jut,lft x4l-1); x5=x1; +filldraw stroke z5e--z6e; +penlabels(0,1,2,3,4,5,6); endchar; + +lhchar "Uppercase Cyrillic letter LAT_I_dsc - Ukrainian I descender"; +cyrchar(LAT_I_dsc,max(6u#,4u#+cap_stem#),cap_height#,cap_sbeak#); +if is_small_cap: getcharcode(lat_i_dsc); fi +italcorr cap_height#*slant-.25u#; +adjust_fit(cap_serif_fit#, + if serifs: cap_serif_fit# else:0 fi); %ur_serif_adj +% upper_ukri; - borrowed from ec +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=cap_height; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs or monospace: + dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut); % upper serif + dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut); fi % lower serif +if slitex: + pickup crisp.nib; % arms based on proportions of uppercase E + pos3(slab,90); pos4(slab if not serifs:+2stem_corr fi,-90); + x3=x4=x1; top y3r=h; bot y4r=0; + pos5(hair,0); pos6(hair,0); % top and bottom right arms + rt x5r=rt x6r=hround(w-u); + pos7(hair,180); pos8(hair,180); % top and bottom left arms + lft x7r=lft x8r=hround(u); + y5=y7=good.y(y3l-beak)-eps; % beak in case we ever want a beaked serif! + y6=y8=good.y(y4l+beak)+eps; % watch that this doesn't get too heavy + arm(3,5,a,darkness,jut); arm(3,7,b,darkness,jut); % top left and right arms + arm(4,6,c,darkness,jut); %arm(4,8,d,darkness,jut); %!!! % bottom left and right +fi +%%%%% +% uppercase descender/ogonek +if is_ogonek: + def the_pen=if known ogonek_pen: ogonek_pen + elseif serifs: tiny elseif is_bold: fisp else: fine fi + enddef; + % |stem| is drawn |tiny| pen, hence |tiny| in the following equation: + ogonek_pos=(if slitex: x8 else: x2 + if not serifs: l if is_bold: +.75tiny fi\\fi\\fi,.5the_pen) + if serifs and not is_egyptian: +(.5xvair,0) fi; + easy_ogonek(the_pen,7,8,9); % ogonek +else: + numeric right_jut; + right_jut=if serifs: 1.414cap_jut + else: hround if slitex: max(r-rt x2r-.65u,rt x6r-x1) + else: (r-rt x2r-.65u) + fi fi; + if not serifs: + numeric arm_thickness; arm_thickness=vround(slab-vair_corr); + save slab; slab:=arm_thickness; fi % bottom.desc.slab + r_serif(2,1,x,1/3,cap_jut,y,1/3,beak_darkness,right_jut,beak_jut); % lower right descender +fi +penlabels(1,2,3,4,5,6); endchar; + +lhchar "Uppercase Cyrillic letter VDZHE - T with tail"; +cyrchar(VDZHE,13u#-width_adj#,cap_height#,desc_depth#); +if is_small_cap: getcharcode(Vdzhe); fi +italcorr cap_height#*slant-beak_jut#-.25u#; +adjust_fit(0,2.5u#); if odd(cap_stem-w): change_width; fi % symmetric +% upper_t; +if odd(cap_stem-w): change_width; fi % symmetric & all three equal +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos3(slab,90); pos4(hair,0); +top y3r=h; x3=x1; rt x4r=hround(w-.65u); y4=good.y(y3l-beak)-eps; +arm(3,4,e,beak_darkness,.7beak_jut); % right arm and beak +pos5(hair,180); x5=w-x4; y5=y4; +arm(3,5,f,beak_darkness,-.7beak_jut); % left arm and beak +%%% +if serifs: dish_serif(2,1,c,1/3,1.414cap_jut,d,1/3,cap_jut); %!!!% lower serif + nodish_serif(1,2,a,1/3,.5cap_jut,b,1/3,.5cap_jut); fi % upper bracketing +%%%%% +w:=w+2.5u; +% Tail_part(2); +_zero:=2; +_one:=6; _two:=7; _three:=8; +_four:=9; _five:=10; _six:=11; _seven:=12; _eight:=13; +% +pickup tiny.nib; +numeric bulb_diam; +bulb_diam=max(currentbreadth+eps,min(.82d-1-eps,flare+(cap_stem-stem))); +penpos[_one](vair,90); penpos[_two](vair,90); +penpos[_three](cap_curve if hefty:-3stem_corr fi,0); +y[_three]=.5[y[_one],-d]; x[_two]=max(.5w-.25u,w-7u); +x[_one]=x[_zero]; x[_three]r=hround(w-u); +x[_two]l:=x[_two]-.25cap_curve; y[_one]=y[_two]=.52h; +{{interim superness:=more_super; + fill stroke super_arc.e([_three],[_two])..z[_one]e}}; % lobe +if serifs: z[_four]=z[_three]; + pos[_four](cap_curve if hefty:-3stem_corr fi,0); + pos[_five](vair',-90); bot y[_five]r=-d-oo; y[_six]-.5flare=-.85d; + pos[_six](cap_hair,-180); pos[_seven](bulb_diam,-180); + rt x[_seven]l=max(lft x[_zero]l-jut+bulb_diam, + floor x[_three]-3.5u if monospace: / expansion_factor fi); + z[_six]r=z[_seven]r; + x[_five]=max(rt x[_seven]l,.6[x[_four],x[_seven]r]); + (x,y[_five]r)=whatever[z[_five]l,z[_four]l]; + x[_five]r:=max(x,.5[x[_six]r,x[_five]]); + filldraw stroke super_arc.e([_four],[_five]); + bulb([_five],[_six],[_seven]); % bulb +else: + pickup fine.nib; z[_four]=z[_three]; + pos[_four](max(fine.breadth,cap_curve if hefty:-3stem_corr fi),0); + pos[_eight](vair,-90); pos[_five](flare,-105); + rt x[_five]r=x[_three]-6u; bot y[_five]r=-d; + y[_five]l:=good.y y[_five]l; x[_five]l:=good.y x[_five]l; + bot y[_eight]r=-d-o; x[_eight]=.35[lft x[_five]r,x[_three]r]; + filldraw stroke super_arc.e([_four],[_eight]) + & term.e([_eight],[_five],left,.75,4); fi +%%% +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; + +endinput; +%end of file diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgcvaci.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgcvaci.mf new file mode 100644 index 00000000000..7d24b549cae --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgcvaci.mf @@ -0,0 +1,861 @@ +% +% lgcvaci.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Italic Cyrillic acuted vowels +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames +% +% a_ac +% e_ac +% yo_ac +% ukr_e_ac +% i_ac +% lat_i_ac +% ukr_i_ac +% o_ac +% ery_ac +% hrdsn_ac +% erev_ac +% yu_ac +% ya_ac +% yat_ac +% izh_ac +% b_yus_ac +% l_yus_ac +% il_yus_ac +% ib_yus_ac +% i_e_ac +% uk_ac +% y_ac +% ae_ac +% schwa_ac +% otld_ac +% dje_ac +% + +LHver_check(3,4); % like |version_check| in ec + +lhchar "Italic Cyrillic letter a_ac - a acute"; +cyrchar_twice(a_ac,9u#,x_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(if monospace:0 else:-.35u#fi,0); %cyradj +% ital_a; +pickup fine.nib; +pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); +pos4(stem,0); x4=x0; y4+.5stem=vround .98h; +x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); +rt x4r=hround(w-2.5u+.5stem); +top y1r=h+oo; bot y3r=-oo; y0=y2=.5[y1,y3]; +filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2) + & pulled_arc.e(2,3) & super_arc.e(3,0); % bowl +x5=x4; x7=w; hook_out(5,6,7); % closing hook +filldraw circ_stroke z4e--z5e; % stem +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7); endchar; + +lhchar "Italic Cyrillic letter e_ac - e acute"; +cyrchar_twice(e_ac,8u#,x_height#,0); +italcorr max(1/3x_height#*slant,x_height#*slant+.5(.2[hair#,stem#])-u#); %e +adjust_fit(if monospace:0 else:-.35u#fi,0); +% ital_e; +pickup fine.nib; %numeric heavy_hair; heavy_hair=hround .2[hair,stem];%defined in lxpseudo +pos0(vair,-90); pos1(heavy_hair,0); pos2(vair,90); +pos3(curve,180); pos4(vair,270); pos5(hair,320); +x0=rt x3l; rt x1r=hround(w-1.5u+.5heavy_hair); x2=x4=.5(w+u); +lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5; +y0=y3=y6=bar_height; y1=.5[y0,y2]; top y2r=h+oo; bot y4r=-oo; +top y5l=vround .5bar_height; path p; p=z4{right}..z5..z6; +filldraw stroke z0e{right}...z1e{up}...pulled_arc.e(2,3) + & pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6); endchar; + +lhchar "Italic Cyrillic letter yo_ac - yo acute"; +cyrchar_twice(yo_ac,8u#,x_height#,0); +italcorr max(1/3x_height#*slant,x_height#*slant+.5(.2[hair#,stem#])-u#); +adjust_fit(if monospace:0 else:-.35u# fi,0); +% ital_e; +pickup fine.nib; %numeric heavy_hair; heavy_hair=hround .2[hair,stem];%defined in lxpseudo +pos0(vair,-90); pos1(heavy_hair,0); pos2(vair,90); +pos3(curve,180); pos4(vair,270); pos5(hair,320); +x0=rt x3l; rt x1r=hround(w-1.5u+.5heavy_hair); x2=x4=.5(w+u); +lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5; +y0=y3=y6=bar_height; y1=.5[y0,y2]; top y2r=h+oo; bot y4r=-oo; +top y5l=vround .5bar_height; path p; p=z4{right}..z5..z6; +filldraw stroke z0e{right}...z1e{up}...pulled_arc.e(2,3) + & pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc +% the accents +lowercase_umlaut(0,0, 7,8,9,10); +hpos_corr=-u; put_accent(cyrcaph); repeat_once; +penlabels(0,1,2,3,4,5,6); endchar; + +lhchar "Italic Cyrillic letter ukr_e_ac - Ukrainian e acute"; +cyrchar_twice(ukr_e_ac,8u#,x_height#,0); +italcorr if math_fitting:1/3x_height#*slant else:x_height#*slant-.5u# fi; %c+.5u +adjust_fit(if monospace:0 else:-.35u# fi,0); %c +% ital_ukre; +pickup fine.nib; pos0(flare,0); pos1(hair,0); pos2(vair,90); +pos3(curve,180); pos4(vair,270); pos5(hair,320); +x2=x4=.5(w+u); rt x1r=max(rt x2,hround(w-.5u))+eps; +lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5; +y1=.5[bar_height,h]; top y2r=h+oo; bulb(2,1,0); % bulb +bot y4r=-oo; y3=.5[y2,y4]; top y5l=vround .5bar_height; y6=bar_height; +path p; p=z4{right}..z5..z6; +filldraw stroke pulled_arc.e(2,3) + & pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc +pos7(vair,90); pos8(vair,90); +y7=bar_height; rt x7=hround max(rt x2+1+eps,lft x0l-eps); x8=x3; y7=y8; +filldraw stroke z7e--z8e; % bar +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7,8); endchar; + +lhchar "Italic Cyrillic letter i_ac - i acute"; +cyrchar_twice(i_ac,10u#,x_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(0,0); +% ital_i; +pickup fine.nib; interim superness:=more_super; +x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +% left skewstem; +if monospace: pos0(vair,90); x0=good.x .5[0,x2]; top y0l=h; y2=2/3h; + pos2(stem,0); filldraw stroke z2e{u,x_height}...{left}z0e; % terminal +else: x0=0; hook_in(0,1,2)(skewed); fi % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); +x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e--z7e; % right stem +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Italic Cyrillic letter lat_i_ac - Ukrainian i acute"; +cyrchar_twice(lat_i_ac,5u#,x_height#,0); +italcorr max(1/3x_height#*slant+.5hair#+.5u#,h#*slant+.5flare#-2u#); +adjust_fit(if monospace:u#,u# else: 0,0 fi); +pickup fine.nib; x0=0; x5=w; x2=.5w+.25u; x3=.5w-.25u; +hook_in(0,1,2)(skewed); hook_out(3,4,5)(skewed); %hooks +filldraw stroke z2e--z3e; % stem +pos8(flare,0); pos9(flare,90); x8=.5w if not +monospace:-.4(h-x_height)*slant fi; top y9r=h+1; if +bot y9l-top y1<slab: y9l:=min(y9r-eps,y1+fine+slab); +fi x8=x9; y8=.5[y9l,y9r]; %dot(8,9); % dot +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Italic Cyrillic letter ukr_i_ac - yi acute"; +cyrchar_twice(ukr_i_ac,5u#,x_height#,0);% +italcorr max(1/3x_height#*slant+.5hair#+.5u#,h#*slant+.5flare#-2u#); +adjust_fit(if monospace:u#,u# else: 0,0 fi); +pickup fine.nib; +x0=0; x5=w; x2=.5w+.25u; x3=.5w-.25u; +hook_in(0,1,2)(skewed); hook_out(3,4,5)(skewed); % hooks +filldraw stroke z2e--z3e; % stem +% the accents +lowercase_umlaut(0,0, 6,7,8,9); %old_u:=u; u:=0.5u; +hpos_corr=-u; put_accent(cyrcaph); repeat_once; +penlabels(0,1,2,3,4,5, 6,7,8,9); endchar; + +lhchar "Italic Cyrillic letter o_ac - o acute"; +cyrchar_twice(o_ac,9u#,x_height#,0); +italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; +adjust_fit(0,0); pickup fine.nib; +pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); +x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2; +top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; +filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4); endchar; + +lhchar "Italic Cyrillic letter u_ac - u acute"; +cyrchar_twice(u_ac,if monospace:8.5u# else:9u# fi,x_height#,desc_depth#); +italcorr x_height#*slant+.5stem#-u#; +adjust_fit(0,0); +% ital_u; +pickup fine.nib; interim superness:=more_super; +x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +% left shstem; +if monospace: pos0(vair,90); x0=good.x .5[0,x2]; top y0l=h; y2=2/3h; + pos2(stem,0); filldraw stroke z2e{u,x_height}...{left}z0e; % terminal +else: x0=0; hook_in(0,1,2)(skewed); fi % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-1.5u+.5stem); +pos7(stem,0); pos8(vair,-90); +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; +y7=0; bot y8r=-d-oo; x5=x6=x7; x8=.5w; +pos9(hair,-180); pos10(flare,-180); y9=-.5d; +lft x9r=hround(2.75u-.5flare); bulb(8,9,10); % bulb +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e---z7e...{left}z8e; % right stem and link +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +lhchar "Italic Cyrillic letter ery_ac - ery acute"; +cyrchar_twice(ery_ac,8u#,x_height#,0); +adjust_fit(if monospace:-2u# else:0 fi,if monospace:2.5u# else:4u# fi); +% ital_ery; +pickup tiny.nib; pos2(stem,0); y2=.6bar_height; +if monospace: x1=x2; pos1(stem,0); lft x1l=hround(2.5u-.5stem); top y1=h; +else: x1=x2+.25u; x0'=0; lft x2l=hround(2.5u-.5stem); + hook_in(0',a,1)(skewed); fi % opening hook +pickup fine.nib; pos1'(stem,-180); pos2'(stem,-180); pos3(vair,-90); +pos4(curve,0); pos5(vair,90); pos0(hair,180); +z1'=z1; z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-u+.5curve); +bot y3r=-oo; top y5r=1.2bar_height+oo; y4=y2; +filldraw stroke z1'e{-u,-x_height}...pulled_arc.e(2',3) & pulled_arc.e(3,4) + & pulled_arc.e(4,5) & super_arc.e(5,0); % bowl +% I +w:=w+4u; +pos6(stem,0); y6+.5stem=h; rt x6r=hround(w-2.5u+.5stem); x7=x6; +if monospace: pos9(vair,90); x9=good.x .5[x6,w]; bot y9l=0; y7=1/3h; + pos7(stem,0); filldraw stroke z7e{down}...{right}z9e; % terminal +else: x9=w; hook_out(7,8,9); fi % opening hook +filldraw circ_stroke z6e--z7e; % stem +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,1',2,3,4,5,6,7,8,9,10); endchar; + +lhchar "Italic Cyrillic letter hrdsn_ac - hard sign acute"; +cyrchar_twice(hrdsn_ac,if monospace: 6u# else:7.5u#fi, + x_height#,0); +italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; +adjust_fit(u#,0); +% ital_hrdsn; +pickup tiny.nib; +pos1(hair,0); pos1'(hair,-45); pos2(hair,0); +rt x1r=hround(w-2u-eps); top y1=h; +lft x2l=hround(u-.5stem); y2=.6bar_height; +z1'=(.35[x1,x2],.65[y1,1.2bar_height+oo]); +filldraw stroke z2e{up}....{2(x1-x2),(y1-1.2bar_height)}z1'e..{up}z1e; % stem +% italic_beak(1,x); +pos6(hair,180); pos7(.6[hair,curve],60); pos8(hair,90); +z8r=z1r; x6=-u; y6=3/4x_height; x7=.5[x6,x8]; +top y7r=top y8r; +filldraw stroke z6e{up}...{5,-1}z7e...{1,1}z8e; % fillip +pickup fine.nib; pos2'(stem,-180); pos3(vair,-90); +pos4(curve,0); pos5(vair,90); +lft x2'r=tiny.lft x2l; +y2'=y2; x3=x5=.5[x2,x4]; rt x4r=hround(w-u+.5curve); +bot y3r=-oo; top y5r=1.2bar_height+oo; y4=y2; +filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4) + & pulled_arc.e(4,5) & pulled_arc.e(5,2'); % bowl +%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,2',3,4,5,6,7,8); endchar; + +lhchar "Italic Cyrillic letter erev_ac - reverse e acute"; +cyrchar_twice(erev_ac,8u#,x_height#,0); +italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; %o +adjust_fit(0,if monospace:0 else:-.35u# fi); %o +% ital_erev; +pickup fine.nib; +pos0(flare,180); pos1(hair,-180); pos2(vair,-90); +pos3(curve,0); pos4(vair,90); pos5(hair,140); +x2+.5u=x4=.5(w-u); lft x1r=min(lft x2,hround(.25u))-eps; +rt x3r=w-hround(1.5u-.5curve); lft x5r=good.x (lft x1r-eps); x6=x5; +y1-.5flare=.1h; bot y2r=-oo; bulb(2,1,0); % bulb +top y4r=h+oo; y3=.5[y2,y4]; top y5r=vround .5[bar_height,h]; +y6=bar_height; path p; p=z4{left}....z5..z6; +filldraw stroke pulled_arc.e(2,3) + & pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc +x7=x3; y7=bar_height; y8=y7; lft x8=hround min(lft x2-1-eps,rt x0l+eps); +pos7(vair,90); pos8(vair,90); +filldraw stroke z7e--z8e; +%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7,8); endchar; + +lhchar "Italic Cyrillic letter yu_ac - yu acute"; +cyrchar_twice(yu_ac,9u#,x_height#,0); +italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; +adjust_fit(if monospace:3u# else:4.5u# fi, + if monospace:-.75u# else:-.35u# fi); +% ital_yu; +pickup fine.nib; +pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); +x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2; +top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; +filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl +% i half +_one:=5; _two:=6; _three:=7; _four:=8; _five:=9; _six:=10; +% +pos[_four](stem,0); +lft x[_four]l=l+letter_fit if not monospace: +hround(2.5u-.5stem) fi; +y[_four]-.5stem=-oo; x[_three]=x[_four]; +if monospace: + pos[_three](stem,0); top y[_three]=h; +else: + x[_one]=l+letter_fit; hook_in([_one],[_two],[_three]); fi % opening hook +filldraw circ_stroke z[_four]e--z[_three]e; % stem +pos[_five](vair,90); pos[_six](vair,90); %!!! +x[_five]=x[_four]; x[_six]=x2; y[_five]=y[_six]=bar_height; %!!! +filldraw stroke z[_five]e--z[_six]e; % bar %!!! +%%% +% the accent +hpos_corr=u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +lhchar "Italic Cyrillic letter ya_ac - ya acute"; +cyrchar_twice(ya_ac,9u#,x_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(.5u#,0); +% ital_ya; +pickup fine.nib; +rt x1r=rt x2r=hround(w-2.5u+.5stem); top y1=h; x4=w; +hook_out(2,3,4); % closing hook +pos1(stem,0); filldraw stroke z1e--z2e; % stem +pos5(vair,90); pos6(vair,90); pos7(curve,180); pos8(vair,270); pos9(vair,270); +x5=x9=x1; top y5r=top y6r=h; x6=x8=.5[x5,x7]; +lft x7l=hround(1.5u if not monospace:+.5curve fi); +y7=.5[y5,y9]; y8=y9=bar_height; +filldraw stroke z5e...pulled_arc.e(6,7) & pulled_arc.e(7,8)...z9e; % bowl +pos10(stem,0); pos11(vair,-90); +x10=.3[x11,x9]; y10=1/2y9; x11-flare=-.25u; bot y11r=-oo; +filldraw stroke z11e{right}...z10e{up}...{right}z9e; % lower diagonal +pos12(hair,180); pos13(flare,180); +lft x13r=-.25u; y13-.5flare=.1h; bulb(11,12,13); % bulb +%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7,8,8',9,10,11,12,13,14,15,16,17,18); endchar; + +lhchar "Italic Cyrillic letter yat_ac - yat acute"; +cyrchar_twice(yat_ac,13u#,x_height#,0); +italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; %"Weierstrass p" +adjust_fit(if monospace:-1.5u#,-.35u# else:0,0 fi); full_w:=w; w:=10u; +% ital_yat; +pickup fine.nib; x1=x2; pos2(stem,0); +if monospace: pos1(stem,0); lft x1l=hround(2.5u-.5stem); top y1=h; +else: x0=0; lft x2l=hround(2.5u-.5stem); + hook_in(0,a,1); fi % opening hook +y2-.5stem=-oo; +filldraw circ_stroke z2e--z1e; % left stem +x4+.5stem=hround(w-2.5u+.5stem); x5=x4; ital_arch(2,3,4); % arch +y5=.5bar_height; pos5(stem,0); +filldraw stroke z4e{down}..z5e; % right stem +w:=full_w; +pos6(stem,-180); pos10(hair,180); z6=z5; z10=z5; +pos7(vair,-90); pos8(curve,0); pos9(vair,90); +x7=x9=.5[x5,x8]; rt x8r=hround(w-u+.5curve); +bot y7r=-oo; top y9r=1.2bar_height+oo; y8=y5; +filldraw stroke pulled_arc.e(6,7) & pulled_arc.e(7,8) + & pulled_arc.e(8,9) & super_arc.e(9,10); % bowl +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Italic Cyrillic letter izh_ac - izhitsa acute"; +cyrchar_twice(izh_ac,9.5u#,x_height#,0); +italcorr x_height#*slant+.25u#; +adjust_fit(.25u#,max(u#,.5u#+.5flare#)); %izhy_adj +% ital_izh; +numeric left_stem,right_stem,outer_jut,alpha,bulb_diam; +left_stem=stem-stem_corr; bulb_diam=7/8[hair,flare]; +right_stem=min(hair if hefty:-2stem_corr fi,left_stem); +outer_jut=.75jut; x1l=l+letter_fit+outer_jut+.25u; x4r=w-x1l; y1=y4=h; +x2-x1=x4-x3; x2l+apex_corr=x3l; y2=y3=-apex_o; +alpha=diag_ratio(2,right_stem,y1-y2,x4r-x1l-apex_corr); +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +penpos4''(alpha*right_stem,0); +penpos5(vair,90); penpos6(hair,0); penpos7(flare,0); +x5=if serifs:.5[x4'',rt x6r] else: rt x6r fi; top y5r=h+oo; +y4''=min(.9x_height,y5l-vair); z4''=whatever[z3,z4]; +rt x6r=hround(r-.5u-.5); +y6=max(vround(top y5r-.5hair)-1-.5flare, + min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare)); +cyrbulb(5,6,7); % bulb +penpos1'(alpha*left_stem,0); y1'=3/4x_height; z1'=whatever[z1,z2]; +x10=l+letter_fit; x10:=hround(x10-.5hair)+.5hair; y10=2/3x_height; +penpos9(vair,90); y9r=x_height+oo; x9=min(x1l-.5,x10+u); +if y0>cap_notch_cut: + y0:=cap_notch_cut; + fill z0+.5right{up}...{z4-z3}z4''l...{right}z5r--z5l{left} + ...z4''r{z3-z4}--diag_end(4r,3r,1,1,2l,1l)-- + z1'l{z1-z2}...{left}z9l--z9r{right} + ..tension atleast .75 and 1..{z2-z1}z1'r + ...{down}z0+.5left--cycle; % left and right diagonals +else: + pickup pencircle scaled1; + fill z0--z4''l{z4-z3}...{right}z5r--z5l{left}...{z3-z4}z4''r + --diag_end(4r,3r,1,1,2l,1l)-- + z1'l{z1-z2}...{left}z9l--z9r{right} + ..tension atleast .75 and 1..{z2-z1}z1'r + --cycle; fi % left and right diagonals +pickup fine.nib; +pos9'(vair,90); z9'=z9; pos10(hair,180); +filldraw stroke z10e{up}...z9'e{right}; +%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +lhchar "Italic Cyrillic letter b_yus_ac - big yus acute"; +cyrchar_twice(b_yus_ac,9u#,x_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; %h +adjust_fit(w# -5u# if monospace:-1.5u# fi,if monospace:-1.5u# else:0 fi); +% ital_yus; +% itop_yus; +pickup fine.nib; +penpos1(fudged.stem,0); penpos2(fudged.hair,0); +penpos3(fudged.stem,0); penpos4(fudged.hair,0); +w-x2r=.24w; x2-x3=x3-x1; y1=h; y2=y1; y3=y4=bar_height; +x3l=hround(2.5u-.5stem); x3r=x4r; +z0=whatever[z4l,z2l]=whatever[z1r,z3r]; +if hefty: + y0:=bar_height+.5fine; + fill z3l--diag_end(3l,1l,1,1,1r,3r){z3r-z1r} + ...{down}(x0-.5,y0)..(x0+.5,y0){up}... + {z2l-z4l}diag_end(4l,2l,1,1,2r,4r)--z4r--cycle; % diagonals +else: + fill z3l--diag_end(3l,1l,1,1,1r,3r)--z0-- + diag_end(4l,2l,1,1,2r,4r)--z4r--cycle; fi % diagonals +penpos5(fudged.stem,0); x5=x3; y5-.5stem=-oo; +fill circ_stroke z5e--z3e; %middle stem +z6=whatever[z4,z2]; z7=whatever[z1,z3]; y6=y7=good.y(y1-vair); +fill z1--z7--z6--z2--cycle; % upper bar +% bowls +pos8(vair,90); pos9(stem,0); pos10(vair,90); pos11(hair,180); +pos12(stem,180); pos13(vair,90); pos14(hair,0); z8=z3; +x11=hround(w+.5hair-eps)-.5hair; x11-x3=x3-x14; y11=y14=1/3x_height; +lft x9l=hround(w-2.75u-.5stem); x9-x3=x3-x12; y9=y12=1/2y8; +x10=hround(w-1.2u); x10-x3=x3-x13; bot y10l=bot y13l=-oo; +filldraw stroke if not monospace:z14e{down}... fi + z13e{right}...z12e{up}...z8e{right}...z9e{down}...z10e{right} + if not monospace:...{up}z11e fi; % left lower diagonal +%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7,8,9); endchar; +let k_bowl = undefined; + +lhchar "Italic Cyrillic letter l_yus_ac - little yus acute"; +cyrchar_twice(l_yus_ac,11u#,x_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(if monospace:-.5u# else:.5u# fi, %wbulb_adj + 0); +% ital_amod; +pickup fine.nib; pos1(vair,-90); pos2(hair,0); pos3(hair,0); pos4(vair,-90); +pos5(hair,-180); pos6(flare,-180); +pos1'(stem,180); pos10(stem,0); +top y1l=h+oo; x1=.5[x3,x1']; x2=x3=3u; y3=.35h; y2=.75h; +bot y4r=-oo; x4=lft x6r+flare; y6-.5flare=.1h; lft x6r=-.25u; z5r=z6r; +y1'=.8h; x1'=x7; z10=z1'; +rt x7r=hround(w-2.5u+.5stem); +bulb(4,5,6); % bulb +x9=w; hook_out(7,8,9); % closing hook +filldraw stroke z10e--z7e; % tie +filldraw stroke pulled_arc.e(4,3) & super_arc.e(3,1) + & super_arc.e(1,1'); % right stem +% stem&bar +y11=y12=bar_height; pos11(vair,90); pos12(vair,90); + z11=((l,y11)..(w,y11)) intersectionpoint + (pulled_arc.r(4,3) & super_arc.r(3,1)); + z12=((0,y12)..(w-u,y12)) intersectionpoint (z10l..z7l); +filldraw stroke z11e--z12e; % bar +numeric stem[]; stem1=max(fine.breadth+eps,.7[thin_join,stem]); +pos13(stem1,0); pos14(stem1,0); +x13=x14=.5[x11,x12]; y13=y12; y14-.5stem1=0; +filldraw circ_stroke z14e--z13e; % stem +%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,1',2,3,4,5,6,7,8,9,11,12,13,14); endchar; + +lhchar "Italic Cyrillic letter il_yus_ac - iot little yus acute"; +cyrchar_twice(il_yus_ac,11u#,x_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(if monospace: 3.5u#+else: 4.5u#+fi.5u#, + if monospace:-1.5u# else:0 fi); %rstem_adj +% ital_amod;iot +pickup fine.nib; pos1(vair,-90); pos2(hair,0); pos3(hair,0); pos4(vair,-90); +pos5(hair,-180); pos6(flare,-180); +pos1'(stem,180); pos10(stem,0); +top y1l=h+oo; x1=.5[x3,x1']; x2=x3=3u; y3=.35h; y2=.75h; +bot y4r=-oo; x4=lft x6r+flare; y6-.5flare=.1h; lft x6r=-.25u; z5r=z6r; +y1'=.8h; x1'=x7; z10=z1'; +rt x7r=hround(w-2.5u+.5stem); +bulb(4,5,6); % bulb +% right_stem; +_one:=7; _two:=8; _three:=9; +if monospace: pos[_three](vair,90); pos[_one](stem,0); + x[_three]=good.x .5[x[_one],w]; bot y[_three]l=0; y[_one]=1/3h; + filldraw stroke z[_one]e{down}...{right}z[_three]e; % terminal +else: x[_three]=w; hook_out([_one],[_two],[_three]); fi % opening hook +filldraw stroke z10e--z7e; % tie +filldraw stroke pulled_arc.e(4,3) & super_arc.e(3,1) + & super_arc.e(1,1'); % right stem +% stem&bar +y11=y12=bar_height; pos11(vair,90); pos12(vair,90); + z11=((l,y11)..(w,y11)) intersectionpoint + (pulled_arc.r(4,3) & super_arc.r(3,1)); + z12=((0,y12)..(w-u,y12)) intersectionpoint (z10l..z7l); +filldraw stroke z11e--z12e; % bar +numeric stem[]; stem1=max(fine.breadth+eps,.7[thin_join,stem]); +pos13(stem1,0); pos14(stem1,0); +x13=x14=.5[x11,x12]; y13=y12; y14-.5stem1=0; +filldraw circ_stroke z14e--z13e; % stem +%%% +% i half +_one:=15; _two:=16; _three:=17; _four:=18; _five:=19; _six:=20; +% +pos[_four](stem,0); +lft x[_four]l=l+letter_fit if not monospace: +hround(2.5u-.5stem) fi; +y[_four]-.5stem=-oo; x[_three]=x[_four]; +if monospace: + pos[_three](stem,0); top y[_three]=h; +else: + x[_one]=l+letter_fit; hook_in([_one],[_two],[_three]); fi % opening hook +filldraw circ_stroke z[_four]e--z[_three]e; % stem +pos[_five](vair,90); pos[_six](vair,90); %!!! +x[_five]=x[_four]; x[_six]=x11; y[_five]=y[_six]=bar_height; %!!! +filldraw stroke z[_five]e--z[_six]e; % bar %!!! +%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,1',2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,20); endchar; + +lhchar "Italic Cyrillic letter ib_yus_ac - iot big yus acute"; +cyrchar_twice(ib_yus_ac,9u#,x_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; %h +adjust_fit(if monospace: 4u#+else: 5u#+fi w#-5u#, + if monospace:-1.5u# else:0 fi); %rstem_adj +% ital_yus;iot +% itop_yus; +pickup fine.nib; +penpos1(fudged.stem,0); penpos2(fudged.hair,0); +penpos3(fudged.stem,0); penpos4(fudged.hair,0); +w-x2r=.24w; x2-x3=x3-x1; y1=h; y2=y1; y3=y4=bar_height; +x3l=hround(2.5u-.5stem); x3r=x4r; +z0=whatever[z4l,z2l]=whatever[z1r,z3r]; +if hefty: + y0:=bar_height+.5fine; + fill z3l--diag_end(3l,1l,1,1,1r,3r){z3r-z1r} + ...{down}(x0-.5,y0)..(x0+.5,y0){up}... + {z2l-z4l}diag_end(4l,2l,1,1,2r,4r)--z4r--cycle; % diagonals +else: + fill z3l--diag_end(3l,1l,1,1,1r,3r)--z0-- + diag_end(4l,2l,1,1,2r,4r)--z4r--cycle; fi % diagonals +penpos5(fudged.stem,0); x5=x3; y5-.5stem=-oo; +fill circ_stroke z5e--z3e; %middle stem +z6=whatever[z4,z2]; z7=whatever[z1,z3]; y6=y7=good.y(y1-vair); +fill z1--z7--z6--z2--cycle; % upper bar +% bowls +pos8(vair,90); pos9(stem,0); pos10(vair,90); pos11(hair,180); +pos12(stem,180); pos13(vair,90); pos14(hair,0); z8=z3; +x11=hround(w+.5hair-eps)-.5hair; x11-x3=x3-x14; y11=y14=1/3x_height; +lft x9l=hround(w-2.75u-.5stem); x9-x3=x3-x12; y9=y12=1/2y8; +x10=hround(w-1.2u); x10-x3=x3-x13; +bot y10l=bot y13l=if monospace: 0 else:-oo fi; +filldraw stroke if not monospace:z14e{down}... fi + z13e{right}...z12e{up}...z8e{right}...z9e{down}...z10e{right} + if not monospace:...{up}z11e fi; % left lower diagonal +%%% +% i half +_one:=15; _two:=16; _three:=17; _four:=18; _five:=19; _six:=20; +% +pos[_four](stem,0); +lft x[_four]l=l+letter_fit if not monospace: +hround(2.5u-.5stem) fi; +y[_four]-.5stem=-oo; x[_three]=x[_four]; +if monospace: + pos[_three](stem,0); top y[_three]=h; +else: + x[_one]=l+letter_fit; hook_in([_one],[_two],[_three]); fi % opening hook +filldraw circ_stroke z[_four]e--z[_three]e; % stem +pos[_five](vair,90); pos[_six](vair,90); %!!! +x[_five]=x[_four]; x[_six]=x8; y[_five]=y[_six]=bar_height; %!!! +filldraw stroke z[_five]e--z[_six]e; % bar %!!! +%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20); endchar; + +lhchar "Italic Cyrillic letter i_e_ac - iot e acute"; +cyrchar_twice(i_e_ac,8u#,x_height#,0); +italcorr if math_fitting:1/3x_height#*slant else:x_height#*slant-.5u# fi; %c+.5u +adjust_fit(if monospace: 3u# else: 4.5u# fi +0.2u#, %ipadj + 0); pickup fine.nib; +% ital_ukre;iot +pickup fine.nib; pos0(flare,0); pos1(hair,0); pos2(vair,90); +pos3(curve,180); pos4(vair,270); pos5(hair,320); +x2=x4=.5(w+u); rt x1r=max(rt x2,hround(w-.5u))+eps; +lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5; +y1=.5[bar_height,h]; top y2r=h+oo; bulb(2,1,0); % bulb +bot y4r=-oo; y3=.5[y2,y4]; top y5l=vround .5bar_height; y6=bar_height; +path p; p=z4{right}..z5..z6; +filldraw stroke pulled_arc.e(2,3) + & pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc +pos7(vair,90); +y7=bar_height; rt x7=hround max(rt x2+1+eps,lft x0l-eps); +% i half +_one:=8; _two:=9; _three:=10; _four:=11; _five:=12; _six:=13; +% +pos[_four](stem,0); +lft x[_four]l=l+letter_fit if not monospace: +hround(2.5u-.5stem) fi; +y[_four]-.5stem=-oo; x[_three]=x[_four]; +if monospace: + pos[_three](stem,0); top y[_three]=h; +else: + x[_one]=l+letter_fit; hook_in([_one],[_two],[_three]); fi % opening hook +filldraw circ_stroke z[_four]e--z[_three]e; % stem +pos[_five](vair,90); pos[_six](vair,90); %!!! +x[_five]=x[_four]; x[_six]=x7; y[_five]=y[_six]=bar_height; %!!! +filldraw stroke z[_five]e--z[_six]e; % bar %!!! +%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,1',2,3,4,5,6,7,8,9,10,11,12,13); endchar; + +lhchar "Italic Cyrillic letter uk_ac - uk acute"; +cyrchar_twice(uk_ac,9.75u#,asc_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(if hefty:0,0 else:-.6u#,-.6u#fi); +% ital_uk; +numeric top_thickness,mid_thickness,bot_thickness,upper_side,lower_side,theta; +top_thickness=max(fine.breadth,vround(slab-2vair_corr)); +bot_thickness=max(fine.breadth,vround(slab-vair_corr)); +x0=.5w; y0=if monospace:bar_height else:.7x_height fi; %h;%%%%%%%%%%%%%% +pickup fine.nib; theta=90-angle(20u,h); slope:=-h/20u; +upper_side=max(fine.breadth+eps,hround(.5[hair,stem]-stem_corr)); +lower_side=hround(.5[hair,stem]+stem_corr); +if lower_side>1.2upper_side: upper_side:=lower_side; fi +pos1(top_thickness,-90); pos6(bot_thickness,-90); +x1=x6=.5w; top y1l=h+o; bot y6r=-o; pos0(cap_stem,theta); +lft x2l=w-rt x8l=hround 1.25u; lft x7r=w-rt x5r=hround 1.75u; + x2r-x2l=fudged.stem-fine; x5r-x5l=lower_side-fine;%%%%%%%%%%% +ellipse_set(1l,2l,3l,0l); ellipse_set(1r,2r,3r,0r); +ellipse_set(6l,5l,4l,0l); ellipse_set(6r,5r,4r,0r); +numeric tau; tau=max(.8,.20710678/(superness-.5)); +y2r:=y2l+serif_drop; +filldraw stroke z2e{down} + ..z3e---z4e..z5e{down}..tension atleast tau..z6e{left}; % S stroke +pos7(lower_side,180); pos8(upper_side,180); +y7=.5[y5l,y5r]; y8=.5[y2l,y2r]; pos9(vair,90); z9=z0; +filldraw stroke z8e{down} + ..tension atleast tau and atleast 1..{-18u,-.618h}z9e; % upper right stroke +filldraw stroke z6e{left}..tension atleast tau..z7e{up} + ..tension atleast tau and atleast 1..{18u,.5h}z9e;% lower left stroke +% italic bulb +z8'=z8; pos8'(upper_side,0); +y1'+.5curve=h+oo; x1'=x8-max(u,.5u+.5curve); %+.5curve%y8+(x_height-bar_height); %%%%%%%%%%% +numeric theta; theta=angle(4(x8'-x1'),y8'-y1'); pos1'(curve,theta+90); +filldraw z1'l{dir theta}..tension atleast 1 and 1..{down}z8'l + --z8'r{up}...{-dir theta}z1'r..cycle; % bulb +% from sloped serif +pos12(slab,90); lft x12=x2l-.5jut; y12r=y2r-serif_drop; z14=z2l; +filldraw z2r--z12r--z12l{right} + ...1/3[(x14,y12l),.5[z12l,z14] ]{z14-z12l} + ...{down}z14--(x2r,y14)--cycle; % sloped serif +%%%%% +% the accent +hpos_corr=-u; put_accent(cyrcaph); repeat_once; +penlabels(0,1,1',2,3,3',4,4',5,6,7,8,9,10,11,12); endchar; + +lhchar "Italic Cyrillic letter y_ac - straight u acute"; +cyrchar_twice(y_ac,9.5u#,x_height#,desc_depth#); +italcorr x_height#*slant+.25u#; +adjust_fit(.25u#,max(u#,.5u#+.5flare#)); %izhy_adj +% ital_y; +numeric left_stem,right_stem,outer_jut,dy,alpha; left_stem=stem-stem_corr; +right_stem=min(hair if hefty:-2stem_corr fi,left_stem); outer_jut=.75jut; +x1l=l+letter_fit+outer_jut+.25u; x4r=w-x1l; +x2l=x5l=hround(.5w-.5left_stem); x3r=x5r; y1=y4=h; +y2=y3=y5=0; dy=y1-y2; alpha=((x2l-x1l)++dy)/dy; +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); +penpos4(alpha*right_stem,0); penpos4'(alpha*right_stem,0); +penpos5(left_stem,0); penpos6(left_stem,0); +x5=x6; y6=-d; z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +penpos7(vair,90); penpos8(hair,0); penpos9(flare,0); +x7=.5[x4',rt x8r]; y7r=h+oo; +y4'=min(.9x_height,y7l-vair); z4'=whatever[z3,z4]; +rt x8r=hround(r-.5u-.5); +y8=max(vround(y7r-.5hair)-.5flare-1, + min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare)); +cyrbulb(7,8,9); % bulb +y1'=3/4x_height; z1'=whatever[z1,z2]; penpos1'(alpha*left_stem,0); +x10=l+letter_fit; x10:=hround(x10-.5hair)+.5hair; y10=2/3x_height; +penpos11(vair,90); top y11r=x_height+oo; x11=min(x1l-.5,x10+u); +if y0>y2+notch_cut: + y0:=y2+notch_cut; + fill z0+.5right{up}...{z4-z3}z4'l...{right}z7r--z7l{left} + ...{z5r-z4'r}z4'r--z5r--z6r--z6l--z5l-- + z1'l{z1-z2}...{left}z11l--z11r{right} + ..tension atleast .75 and 1..{z2-z1}z1'r + ...{down}z0+.5left--cycle; % diagonals and stem +else: fill z0--z4'l...{right}z7r--z7l{left} + ...z4'r--z5r--z6r--z6l--z5l-- + z1'l{z1-z2}...{left}z11l--z11r{right} + ..tension atleast .75 and 1..{z2-z1}z1'r + --cycle; fi % diagonals and stem +pickup fine.nib; +pos10(hair,180); pos11'(vair,90); z11'=z11; +filldraw stroke z10e{up}...z11'e{right}; % hook +pickup tiny.nib; prime_points_inside(6,5); +dish_serif(6',5,e,1/3,jut,f,1/3,jut); % lower serif +%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; + +iff knuthian_ae:% +lhchar "Italic Cyrillic letter ae - ligature ae_ac"; +cyrchar_twice(ae_ac,13u#,x_height#,0); +italcorr max(1/3x_height#*slant,x_height#*slant+.5(.2[hair#,stem#])-u#); +adjust_fit(if monospace:-u#,-u# else: 0,0 fi); pickup fine.nib; +begingroup +forsuffixes $=hair,stem: shaved$:=mfudged$; save $; $=shaved$; endfor +%numeric heavy_hair; heavy_hair=hround .2[hair,stem];%defined in lxpseudo +numeric light_stem; light_stem=hround .75[hair,stem]; +pos0(vair,-90); pos1(heavy_hair,0); pos2(vair,90); +pos3(light_stem,180); pos4(vair,270); pos5(hair,320); +x0=rt x3l; rt x1r=hround(w-1.5u+.5heavy_hair); x2=x4=.5(w+6u); +lft x3r=hround(.5w-.5light_stem); x5r=good.x(w-.5u); x6=x5; +y0=y3=y6=bar_height; y1=.5[y0,y2]; top y2r=h+oo; bot y4r=-oo; +top y5l=vround(.5bar_height+.5); path p; p=z4{right}..z5..z6; +filldraw stroke z0e{right}...z1e{up}...pulled_arc.e(2,3) + & pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc of e +pos7(light_stem,0); pos8(light_stem,0); +x7=x8=x3; y7+.5light_stem=h+oo; y8-.5light_stem=-oo; +pos7'(vair,-225); pos11(curve,-180); z7'=z7; +pos12(vair,-90); pos3'(hair,0); z3'=z3; +lft x11r=hround(1.5u-.5curve); x12=.5[x11,x3]; +y11=.3[y12,y7]; bot y12r=-oo; +filldraw stroke z7'e{3(x11-x7),y11-y7}...pulled_arc.e(11,12) + & pulled_arc.e(12,3'); % bowl of a +filldraw z7l---z8l..z8r---z7r..cycle; % stem +endgroup; +%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,11,12); endchar; + +iff not knuthian_ae: % borrowed from ec +lhchar "Italic Cyrillic letter ae - ligature ae_ac"; +cyrchar_twice(ae_ac,13u#,x_height#,0); +italcorr max(1/3x_height#*slant,x_height#*slant+.5(.2[hair#,stem#])-u#); +adjust_fit(if monospace:-u#,-u# else: 0,0 fi); pickup fine.nib; +begingroup +forsuffixes $=hair,stem: shaved$:=mfudged$; save $; $=shaved$; endfor +numeric light_stem; light_stem=hround .75[hair,stem]; +pos0(vair,-90); pos1(heavy_hair,0); pos2(vair,90); +pos3(light_stem,180); pos4(vair,270); pos5(hair,320); +x0=rt x3l; rt x1r=hround(w-1.5u+.5heavy_hair); x2=x4=.5(w+6u); +lft x3r=hround(.5w-.5light_stem); x5r=good.x(w-.5u); x6=x5; +y0=y3=y6=bar_height; y1=.5[y0,y2]; top y2r=h+oo; bot y4r=-oo; +top y5l=vround(.5bar_height+.5); path p; p=z4{right}..z5..z6; +filldraw stroke z0e{right}...z1e{up}...pulled_arc.e(2,3) + & pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc of e +pos7(light_stem,0); +x7=x3; y7+.5light_stem=h+oo; +pos7'(vair,-225); pos10(vair,-270); +pos11(curve,-180); z7'=z7; +pos12(vair,-90); pos3'(hair,0); z3'=z3; +lft x11r=hround(1.5u-.5curve); x10=x12=.5[x11,x3]; +top y10r=h+oo; y11=.52h; bot y12r=-oo; +filldraw stroke pulled_arc.e(3',10) & pulled_arc.e(10,11) + & pulled_arc.e(11,12) & pulled_arc.e(12,3'); % bowl of a +filldraw z7l---z3r..z3l---z7r..cycle; % stem +endgroup; +%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7,10,11,12); endchar; + +lhchar "Italic Cyrillic letter schwa_ac - schwa acute"; +cyrchar_twice(schwa_ac,8u#,x_height#,0); +italcorr max(1/3x_height#*slant,x_height#*slant+.5(.2[hair#,stem#])-u#); +adjust_fit(0,if monospace:0 else:-.35u#fi); +% ital_schwa; +pickup fine.nib; %numeric heavy_hair; heavy_hair=hround .2[hair,stem];%defined in lxpseudo +pos0(vair,90); pos1(heavy_hair,180); pos2(vair,-90); +pos3(curve,0); pos4(vair,90); pos5(hair,140); +x0=lft x3l; lft x1r=hround(1u-.5heavy_hair); x2+.5u=x4=.5(w-u); +rt x3r=hround(w-1.5u+.5curve); +lft x5r=good.x (lft x1r+eps); x6=x5; +y0=y3=y6=bar_height; y1=.5[y0,y2]; bot y2r=-oo; top y4r=h+oo; +top y5r=vround .5[bar_height,x_height]; path p; p=z4{left}..z5..z6; +filldraw stroke z0e{left}...z1e{down}...pulled_arc.e(2,3) + & pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6); endchar; + +lhchar "Italic Cyrillic letter otld_ac - o tilded acute"; +cyrchar_twice(otld_ac,9u#,x_height#,0); +italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; +adjust_fit(0,0); pickup fine.nib; +% ital_o;tld +pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); +x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2; +top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; +filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl +%%% +% oltilde; +if (serifs=true) and (bar#<=.5curve#): + numeric bar[]; + set_bar_axis; + x5r=x2l; x6r=x4l; + y5r=y6r=y2.bh; y5l=y6l=y1.bh; x5r=x5l; x6l=x6r; + bar2=2/3[bar,fudged.stem]; + penpos7(bar2,45); z7=.5[z5l,z6l]; + fill stroke z6e{-2,-1}..{-2,1}z7e..{-2,-1}z5e; +else: + bar_stroke(x2l,x4l); +fi +%%%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7); endchar; + +lhchar "Italic Cyrillic letter dje_ac - soft dj acute"; +cyrchar_twice(dje_ac,8u#,asc_height#,desc_depth#); +italcorr .7x_height#*slant; %o +adjust_fit(1.5u#,0); pickup tiny.nib; +pos1(stem,0); pos2(stem,0); x1=x2; +lft x1l=hround(1.5u-.5stem); top y1=h; y2-.5stem=-oo; +filldraw circ_stroke z2e--z1e; % left stem +sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif +pickup fine.nib; x4+.5stem=hround(w-.75u+.5stem); +x5=x4; ital_arch(2,3,4); % arch +x7=.45[x2,x4]; bot y7r=-d; pos7(hair,-90); +filldraw stroke pulled_arc.e(4,7); +x8=-u; x9=x4; y8=y9=.5x_height+.5h; pos8(bar,90); pos9(bar,90); +filldraw stroke z8e--z9e; +hpos_corr=-u; put_accent(cyrcaph); repeat_once; +penlabels(1,2,3,4,5,6,7,8,9); endchar; + +endinput; +%end of file diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgcvacl.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgcvacl.mf new file mode 100644 index 00000000000..6b769826afb --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgcvacl.mf @@ -0,0 +1,1318 @@ +% +% lgcvacl.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Lowercase Cyrillic acuted vowels +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames +% +% a_ac +% e_ac +% yo_ac +% ukr_e_ac +% i_ac +% lat_i_ac +% ukr_i_ac +% o_ac +% ery_ac +% hrdsn_ac +% erev_ac +% yu_ac +% ya_ac +% yat_ac +% izh_ac +% b_yus_ac +% l_yus_ac +% il_yus_ac +% ib_yus_ac +% i_e_ac +% uk_ac +% y_ac +% ae_ac +% schwa_ac +% otld_ac +% dje_ac +% + +LHver_check(3,4); % like |version_check| in ec + +lhchar "Lowercase Cyrillic letter a_ac - a acute"; +cyrchar_twice(a_ac,9u#,x_height#,0); % eng +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); +% 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 +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; + +lhchar "Lowercase Cyrillic letter e_ac - e acute"; +cyrchar_twice(e_ac,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_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; pos1(right_curve,0); +pos2(vair,90); pos3(left_curve,180); +y1=good.y bar_height; top y2r=h+vround 1.5oo; y0l=bot y1; +rt x1r=hround min(w-.5u,w-u+.5right_curve); +lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; +if serifs: + pos4(vair',270); pos5(hair,360); + y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; + (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal +else: + pos4(vair,270); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,270); z4=z4'; + pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke term.e(4',5,right,1,4); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: + x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +%%%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5); endchar; + +lhchar "Lowercase Cyrillic letter yo_ac - yo acute"; +cyrchar_twice(yo_ac,7.25u#+max(.75u#,.5curve#), + x_height#,0); % eng +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_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; pos1(right_curve,0); +pos2(vair,90); pos3(left_curve,180); +y1=good.y bar_height; top y2r=h+vround 1.5oo; y0l=bot y1; +rt x1r=hround min(w-.5u,w-u+.5right_curve); +lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; +if serifs: + pos4(vair',270); pos5(hair,360); + y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; + (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal +else: + pos4(vair,270); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,270); z4=z4'; + pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke term.e(4',5,right,1,4); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: + x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +%%%%% +% the accents +lowercase_umlaut(0,0, 6,7,8,9); +hpos_corr=-u; put_accent(cyrcaph); repeat_once; % cyrcaph for umlaut +penlabels(0,1,2,3,4,5, 6,7,8,9); endchar; + +lhchar "Lowercase Cyrillic letter ukr_e_ac - Ukrainian e acute"; +cyrchar_twice(ukr_e_ac,8u#,x_height#,0); % eng +italcorr x_height#*slant-.2u#; +adjust_fit(if monospace:.5u#,.5u# else:-.1u#,0 fi); full_h:=h; h:=x_height; +% lower_ukre; +set_bar_axis; +pickup fine.nib; pos2(vair',90); pos3(curve,180); pos4(vair',270); +x2=x4=(.5(w+u)); top y2r=vround(h+1.5oo); bot y4r=-oo; +lft x3r=(hround max(.6u,1.35u-.5curve)); y3=.5h; +if serifs: + pos1(hair,0); pos5(hair,360); + y1=min(y2.bh+.75flare-.25vair+eps,.9[bar_height,h]-.75flare); + rt x1r=rt x5r=hround(w-.5u); + y5=max(good.y(.5bar_height-.9),y4l+vair'); + (x,y4l)=whatever[z4r,z5l]; x4l:=min(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],0); x6r=x1r; top y6=h+oo; + x1r-x1'=1.5curve; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,5(y2-y1)}..z2{left}; + 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],80); pos5(.6[vair',flare],275); + rt x1r=hround(w-.6u); + top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2,1,right,.8,4); % upper terminal + rt x5r=hround(w-.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{right}..tension .9 and 1..z5e; + if angle direction 1 of p.e>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 +%%%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,1',2,3,4,5,6,7,8,9); endchar; + +lhchar "Lowercase Cyrillic letter i_ac - i acute"; +cyrchar_twice(i_ac,10u# if not serifs:+.5width_adj# fi, % n_width + x_height#,0); +italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_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'<upper_notch: {left}(x3'-1,upper_notch){down}... fi + {z5-z6}diag_in(6r,5r,1,5l)--cycle; % diagonal +else: + x5=hround (rt x1r-.5)-eps; x6=hround (lft x3l+.5)+eps; + y5l=vround(y2+bracket+eps); y6r=vround(y3-bracket-eps); + stem1=max(tiny.breadth,fudged.hair-2stem_corr); + alpha1=diag_ratio(1,stem1,x6-x5,top y6r-bot y5l); + penpos5(alpha1*stem1,90); penpos6(alpha1*stem1,90); + fill stroke z5e--z6e; fi % diagonal +%%% +if serifs: + numeric inner_jut; + 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(2,1,c,1/3,jut,d,1/3,inner_jut); % lower left serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,jut); fi % lower right serif +%%%%% +endgroup; +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6); endchar; + +lhchar "Lowercase Cyrillic letter lat_i_ac - Ukrainian i acute"; +%numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); +cyrchar_twice(lat_i_ac,5u#,x_height#,0); +%define_whole_blacker_pixels(dot_diam); +italcorr h#*slant-serif_fit# + .5idot_diam# -2u#; +adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi,serif_fit#-stem_shift#); +begingroup +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; +filldraw stroke z1e--z2e; % stem +pos3(idot_diam,0); pos4(idot_diam,90); +if serifs: x3r=max(x1r,x1+.5(idot_diam-tiny)-.2jut) else: x3=x1-.5 fi; +top y4r=h+1; +if bot y4l-top y1<slab: y4l:=min(y4r-eps,y1+tiny+slab); fi +x3=x4; y3=.5[y4l,y4r]; % dot(3,4); % dot +if serifs: sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif + save slab; slab:=vair; % lower.slab + dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif +endgroup; +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4); endchar; + +lhchar "Lowercase Cyrillic letter ukr_i_ac - yi acute"; +cyrchar_twice(ukr_i_ac,5u#,x_height#,0); +italcorr h#*slant-serif_fit# + .5idot_diam# -2u#;%!!!from ec +adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi,serif_fit#-stem_shift#); +begingroup +if odd(w-stem'): change_width; fi +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +lft x1l=hround(.5w-.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs: sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif + save slab; slab:=vair; % lower.slab + dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif +endgroup; +% the accents +lowercase_umlaut(0,0, 3,4,5,6); +hpos_corr=-u; put_accent(cyrcaph); repeat_once; % cyrcaph for umlaut +penlabels(0,1,2, 3,4,5,6); endchar; + +lhchar "Lowercase Cyrillic letter o_ac - o acute"; +cyrchar_twice(o_ac,9u#,x_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +% lower_o; +penpos1(vair,90); penpos3(vair',-90); penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +%%%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4); endchar; + +lhchar "Lowercase Cyrillic letter u_ac - u acute"; +cyrchar_twice(u_ac,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 alpha1<alpha2: + x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1; +else: + alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); +if y0>notch_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 +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + + +lhchar "Lowercase Cyrillic letter ery_ac - ery acute"; +cyrchar_twice(ery_ac,9u#,x_height#,0); % v_witdh +italcorr .75x_height#*slant-.5u#; +adjust_fit(if monospace: 0,0 else: serif_fit#,serif_fit# fi %wlett_adj + +4u#); +begingroup +% 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 +if serifs: + save slab; 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: save slab; 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 +%%%%% +endgroup; +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Lowercase Cyrillic letter hrdsn_ac - hard sign acute"; +cyrchar_twice(hrdsn_ac,9u#,x_height#,0); % v_witdh +italcorr .75x_height#*slant-.5u#; +adjust_fit(2u#-.5width_adj#,if monospace:.5u# else:0 fi); +begingroup +% lower_hrdsn; +pickup tiny.nib; pos1(fudged.stem,0); pos2(fudged.stem,0); +lft x1l=lft x2l=hround (2.5u-.5fudged.stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +% lower left beak +pickup crisp.nib; top y3r=h; x3=x1; pos3(vair,90); +pos4(hair,180); lft x4r=l+letter_fit+hround.45u; y4=good.y(y3l-beak/1.4)-eps; +arm(3,4,q,beak_darkness,-.4beak_jut); +if serifs: + save slab; slab:=Vround(vair-vair_corr); % lower.slab + nodish_serif(1,2,a,1/3,.5jut,b,1/3,.5jut); % 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:=5; _two:=6; _three:=7; _four:=8; _five:=9; +% +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 +%%% +%%%%% +endgroup; +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Lowercase Cyrillic letter erev_ac - reverse e acute"; +cyrchar_twice(erev_ac,8u#,x_height#,0); % eng +italcorr x_height#*slant-.2u#; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +% 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 +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,1',2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Cyrillic letter yu_ac - yu acute"; +cyrchar_twice(yu_ac,9u#,x_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: 4u# else: 4.5u# fi +serif_fit#, %li_part_adj + if monospace: -.45u# else: 0 fi); +begingroup +% lower_yu; +penpos1(vair,90); penpos3(vair',-90); penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +save slab; % lower.slab +% barh_i_part(2); +_zero:=2; +_one:=5; _two:=6; +% +pickup tiny.nib; +pos[_one](stem,0); pos[_two](stem,0); +lft x[_one]l=lft x[_two]l= + l+letter_fit+if not monospace: serif_fit+ fi hround (2.5u-.5stem-eps); +top y[_one]=h; bot y[_two]=0; +filldraw stroke z[_one]e--z[_two]e; % stem +bar_stroke(x[_one],x[_zero]); % bar +if serifs: + slab:=Vround(vair-vair_corr); % lower.slab + dish_serif([_one],[_two],s,1/3,jut,t,1/3,jut); % upper serif + slab:=vair; % lower.slab + dish_serif([_two],[_one],u,1/3,jut,v,1/3,jut); % lower serif +fi +%%%%% +endgroup; +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7,8); endchar; + +iff not specific:% +lhchar "Lowercase Cyrillic letter ya_ac - ya acute (`roman')"; +cyrchar_twice(ya_ac,if serifs: 9.75u# else: 10u# fi-.5width_adj#,x_height#,0); %ya (~n_width:10u) +italcorr x_height#*slant-serif_fit#+jut#-2u#+.5stem#; %d->x_height+jut +adjust_fit(if serifs:serif_fit# else:0 fi,serif_fit#); +begingroup +% lowerr_ya; +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +rt x1r=rt x2r=hround(w-2.5u+.5stem'); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +penpos3(vair,90); penpos4(vair,90); penpos5(curve if hefty:-3stem_corr fi,180); +y6r=y7r=hround (if serifs:.52h else:.5h fi-.6[thin_join,vair]/2); +y6l=y7l=y6r+.6[thin_join,vair]; y6=y7=.5[y6l,y6r];% +z3r=top z1; y4=y3; y5=.52[y6r,y4r]+eps; +x7l=x7r=x2; x4+.25u=x6l=x6r; x4=.5w if serifs:+.25u else:-.25u fi; +x5r=hround min(1.25u,2u-.5curve)+eps; +x4l:=x4+.125curve; x6l:=x6l+.125curve; +fill stroke +{{interim superness:=more_super; z7e..pulled_arc.e(6,5) & + pulled_arc.e(5,4)..z3e}}; % lobe +numeric stem[],alpha,right_jut; +right_jut=if serifs:.6jut else:.4tiny fi; +stem1=max(tiny.breadth,hround(fudged.stem-3stem_corr)); +lft x9l=hround(l+letter_fit+.3u+right_jut)-eps; bot y9=0; +alpha=diag_ratio(1,.5(stem1-tiny),y1-y9,x9l-x1); +penpos9(alpha*(stem1-tiny),0); +x8=x6l-if serifs:.75u else:.25u fi; y8=y6; +forsuffixes $=l,r: y9'$=0; endfor +z9'r=z9r+penoffset z1-z9 of currentpen+whatever*(z1-z9); +z9'l=z9l+penoffset z9-z1 of currentpen+whatever*(z1-z9); +z8=z9'+whatever*(z1-z9); +penpos8(if serifs: x9'r-x9'l else: stem fi-2stem_corr,0); +fill z8l--diag_end(8l,9'l,1,.5,9'r,8r)--z8r--cycle; % diagonal +if serifs: + numeric inner_jut; + if lft x2l-jut-.5u+1>=rt x9r+jut: inner_jut=jut; + else: lft x2l-jut-.5u+1=rt x9r+inner_jut; fi + save slab; slab:=Vround(vair-vair_corr); % lower.slab + nodish_serif(1,2,a,1/3,.5jut,b,1/3,jut); % upper serif + slab:=vair; % lower.slab + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower serif + dish_serif(9,8,g,1/2,right_jut,h,1/3,inner_jut)(dark); fi % lower diagonal serif +%%%%% +endgroup; +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Lowercase Cyrillic letter yat_ac - yat acute"; +cyrchar_twice(yat_ac,9u#,asc_height#,0); +italcorr .5x_height#*slant+min(.5curve#-u#,-.25u#); +adjust_fit(if serifs: serif_fit# else: 0 fi,if monospace:.5u# else:0 fi); +begingroup +% lower_yat; +pickup tiny.nib; pos1(fudged.stem,0); pos2(fudged.stem,0); +lft x1l=lft x2l=hround (2.5u-.5fudged.stem); +top y1=x_height+ if serifs: 1.5u else: 2u fi; bot y2=0; +filldraw stroke z1e--z2e; % body of stem +if serifs: save slab; slab:=vair; % lower.slab + nodish_serif(2,1,a,1/3,jut,b,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 +%%% +y10=y1+2jut; +if hefty: filldraw z1l--(x1l,y10)--(x1r,y10)--z1r--cycle; % stem +else: x10=x1l-jut; x11=x1r+jut; y10=y11; + filldraw z1l--z10--z1r--cycle; filldraw z1l--z11--z1r--cycle; fi % swallow +% hcross +pickup crisp.nib; pos8(bar,90); pos9(bar,90); +lft x8=hround1/3u if serifs:-serif_fit fi; x9=x1r+2.5u; +top y8r=top y9r=vround x_height+eps; +filldraw stroke z8e--z9e; % cross bar +%%%%% +endgroup; +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +lhchar "Lowercase Cyrillic letter izh_ac - izhitsa acute"; +cyrchar_twice(izh_ac,if serifs: 9.5u# else:9u# fi,x_height#,0); +italcorr x_height#*slant+.25u#; +adjust_fit(serif_fit# if monospace:+.5u#fi, + if serifs: max(.75u#,.25u#+.5flare#) else:max(0,.5stem#-.5u#) fi); % lizh_adj +begingroup +full_h:=h; h:=x_height; +% lower_izh; +numeric left_stem,right_stem,outer_jut,alpha,bulb_diam; +left_stem=stem-stem_corr; bulb_diam=7/8[hair,flare]; +right_stem=min(hair if hefty:-2stem_corr fi,left_stem); +outer_jut=.75jut; x1l=l+letter_fit+outer_jut+.25u; x4r=w-x1l; y1=y4=h; +x2-x1=x4-x3; x2l+apex_corr=x3l; y2=y3=-apex_o; +alpha=diag_ratio(2,right_stem,y1-y2,x4r-x1l-apex_corr); +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +penpos4'(alpha*right_stem,0); penpos5(vair,90); +x5=if serifs: .5[x4',x6r] else:x6r fi; y5r=h+oo; +x6r=hround(r-.35u); +y6=max(vround(y5r-.25tiny-.5flare), + min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare)); %zh bulb h +z4'=whatever[z3,z4]; y4'=min(y6-.5hair,8/5bar_height)-eps; +if serifs: penpos6(hair,0); penpos7(flare,0); + cyrbulb(5,6,7); fi % bulb +if y0>cap_notch_cut: y0:=cap_notch_cut; + fill z0+.5right{up}...{z4-z3}z4'l...{right} + if serifs: z5r--z5l + else: + (.5[x4,x4r],y5r)--(fine.lft x5r,y5r)..(x5r,fine.bot y5r)-- + (x5l,fine.top y5l)..(fine.lft x5l,y5l) fi + {left}...z4'r{z3-z4} + --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0+.5left--cycle; % left and right diagonals +else: fill z0--z4'l{z4-z3}...{right}z5r--z5l{left}...{z3-z4}z4'r + --diag_end(4r,3r,1,1,2l,1l) + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals +if serifs: numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); + if rt x1'r+jut+.5u+1<=lft x4l-jut+.5tiny: inner_jut=jut; + else: rt x1'r+inner_jut+.5u+1=lft x4l-inner_jut+.5tiny; fi + save slab; slab:=Vround(vair-vair_corr); % lower.slab + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); fi % upper left serif +%%%%% +endgroup; +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7); endchar; + +iff not specific:% +lhchar "Lowercase Cyrillic letter b_yus_ac - big yus acute (`roman')"; +cyrchar_twice(b_yus_ac,15u#,x_height#,0); +adjust_fit(serif_fit#,serif_fit#); +begingroup +if odd(fudged.stem-w): change_width; fi % symmetric & all three equal +% lowerr_yus; +% ltop_yus; +set_bar_axis; numeric stem[]; +stem1=fudged.stem-3stem_corr; stem2=min(stem1,fudged.hair); +penpos1(stem1,0); penpos2(stem2,0); penpos3(stem1,0); penpos4(stem2,0); +x1l=w-x2r=hround(.2w-.5tiny-.5)-eps; y1=y2=h; y3=y4=3/5[y1.bh,y2.bh]; +x3l=hround(.5w-.5stem1); x3r=x4r; +z0=whatever[z4l,z2l]=whatever[z1r,z3r]; +if hefty: y0:=y2.bh; + fill z3l--diag_end(3l,1l,1,1,1r,3r){z3r-z1r} + ...{down}(x0-.5,y0)..(x0+.5,y0){up}... + {z2l-z4l}diag_end(4l,2l,1,1,2r,4r)--z4r--cycle; % diagonals +else: fill z3l--diag_end(3l,1l,1,1,1r,3r)--z0-- + diag_end(4l,2l,1,1,2r,4r)--z4r--cycle; fi % diagonals +penpos5(stem1,0); x5=x3; y5=0; +fill z3l--diag_end(3l,5l,1,1,5r,3r)--z3r--cycle; %middle stem +z6=whatever[z4,z2]; z7=whatever[z1,z3]; y6=y7=good.y(y1-vair); +fill z1--z7--z6--z2--cycle; % upper bar +% lyus_rbowl; + numeric stem[],alpha[],right_jut; + right_jut=if serifs:.6jut else:.4tiny fi; + y10l=y1.bh; y10r=y2.bh; x10l=x10r=x3; y9=y12=min(bot y10l-.5,.85y10l); + rt x8r=w-lft x11l=hround(r-letter_fit-.3u-right_jut); bot y8=bot y11=y5; + stem2=max(tiny.breadth,fudged.stem-3stem_corr); + alpha2=diag_ratio(1,.5(stem2-tiny),h-y8,x8r-x3); + penpos8(alpha2*(stem2-tiny),0); penpos11(alpha2*(stem2-tiny),0); + forsuffixes $=l,r: y8'$=0; y11'$=0; endfor + z8'r=z8r+penoffset (x3,h)-z8 of currentpen+whatever*((x3,h)-z8); + z8'l=z8l+penoffset z8-(x3,h) of currentpen+whatever*((x3,h)-z8); + z11'r=z11r+penoffset (x3,h)-z11 of currentpen+whatever*((x3,h)-z11); + z11'l=z11l+penoffset z11-(x3,h) of currentpen+whatever*((x3,h)-z11); + z8'=.5[z8'l,z8'r]; z11'=.5[z11'l,z11'r]; + z9=z8'+whatever*((x3,h)-z8); z12=z11'+whatever*((x3,h)-z11); + penpos9(stem-2stem_corr,0); penpos12(stem-2stem_corr,0); + fill z10l{right}...{z8'l-z9l}z9l--diag_end(9l,8'l,.5,1,8'r,9r) + --z9r{z9r-z8'r}...{left}z10r--cycle; % right diagonal + fill z10r{left}...{z11'l-z12l}z12l--diag_end(12l,11'l,1,.5,11'r,12r) + --z12r{z12r-z11'r}...{right}z10l--cycle; % left diagonal +%% +if serifs: numeric inner_jut; prime_points_inside(5,3); + if rt x5r+jut+.5u+1<=lft x8l-jut: inner_jut=jut; + else: rt x5r+jut+.5u+1=lft x8l-inner_jut; fi + save slab; slab:=vair; % lower.slab + dish_serif(11,12,a,1/3,right_jut,b,1/2,inner_jut)(dark); % lower diagonal serif + dish_serif(8,9,e,1/2,inner_jut,f,1/3,right_jut)(dark); % lower diagonal serif + dish_serif(5',3,c,1/3,.75jut,d,1/3,.75jut); fi % lower middle serif +%%%%% +endgroup; +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; + +lhchar "Lowercase Cyrillic letter l_yus_ac - little yus acute"; +cyrchar_twice(l_yus_ac,10u#+2stem#,x_height#,0); +adjust_fit(serif_fit#,serif_fit#); +begingroup +% lower_amod; +numeric left_stem,right_stem,outer_jut,alpha; +right_stem=fudged.stem-stem_corr; +left_stem=min(fudged.hair if hefty:-2stem_corr fi,right_stem); +outer_jut=.8jut; pickup tiny.nib; y1=y4=0; +x1l=w-x4r=l+letter_fit+outer_jut+.25u+eps; +% +x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=h+.5[apex_oo,apex_o];%+apex_o+apex_oo +alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr); +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0<h-notch_cut: y0:=h-notch_cut; + fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r) + --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{up}z0+.5left--cycle; % left and right diagonals +else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l) + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals +penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2]; +penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5; +if hefty: y5r else: y5 fi =.5y0; +y5r-y5l=y6r-y6l=.6[thin_join,vair]; +penstroke z5e--z6e; % bar line +pickup tiny.nib; x7=.5[x5,x6]; top y7=y5; bot y8=0; +pos7(max(tiny.breadth+eps,.7[thin_join,stem]),0); +pos8(max(tiny.breadth+eps,.7[thin_join,stem]),0); +x7=x8; filldraw stroke z8e--z7e; % middle stem +if serifs: prime_points_inside(8,7); numeric inner_jut; + 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:=vair; % lower.slab + dish_serif(1',2,a,1/2,outer_jut,b,.6,.6inner_jut)(dark); % lower left diagonal serif + dish_serif(4',3,c,1/2,.6inner_jut,d,1/3,outer_jut); % lower right diagonal serif + dish_serif(8,7,e,1/3,.6inner_jut,f,1/3,.6inner_jut); fi % lower middle stem serif +%%%%% +endgroup; +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +lhchar "Lowercase Cyrillic letter il_yus_ac - iot little yus acute"; +cyrchar_twice(il_yus_ac,10u#+2stem#,x_height#,0); +adjust_fit(if monospace:4u# else:4.75u# fi+serif_fit#,serif_fit#); +begingroup +% lower_amod; +numeric left_stem,right_stem,outer_jut,alpha; +right_stem=fudged.stem-stem_corr; +left_stem=min(fudged.hair if hefty:-2stem_corr fi,right_stem); +outer_jut=.8jut; pickup tiny.nib; y1=y4=0; x1l=w-x4r=outer_jut+.25u+eps; +% +x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=h+.5[apex_oo,apex_o];%+apex_o+apex_oo +alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr); +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0<h-notch_cut: y0:=h-notch_cut; + fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r) + --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{up}z0+.5left--cycle; % left and right diagonals +else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l) + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals +penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2]; +penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5; +if hefty: y5r else: y5 fi =.5y0; +y5r-y5l=y6r-y6l=.6[thin_join,vair]; +penstroke z5e--z6e; % bar line +pickup tiny.nib; x7=.5[x5,x6]; top y7=y5; bot y8=0; +pos7(max(tiny.breadth+eps,.7[thin_join,stem]),0); +pos8(max(tiny.breadth+eps,.7[thin_join,stem]),0); +x7=x8; filldraw stroke z8e--z7e; % middle stem +if serifs: prime_points_inside(8,7); numeric inner_jut; + 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:=vair; % lower.slab + dish_serif(1',2,a,1/2,outer_jut,b,.6,.6inner_jut)(dark); % lower left diagonal serif + dish_serif(4',3,c,1/2,.6inner_jut,d,1/3,outer_jut); % lower right diagonal serif + dish_serif(8,7,e,1/3,.6inner_jut,f,1/3,.6inner_jut); fi % lower middle stem serif +%%%%% +x9=x5; y9=.5[y5l,y5r]; +% i_part(9); +_zero:=9; +_one:=10; _two:=11; _three:=12; _four:=13; +% +pickup tiny.nib; pos[_one](stem,0); pos[_two](stem,0); +lft x[_one]l=lft x[_two]l= + l+letter_fit+if not monospace: serif_fit+ fi hround(2.5u-.5stem-eps); +top y[_one]=h; bot y[_two]=0; +filldraw stroke z[_one]e--z[_two]e; % stem +if serifs: slab:=Vround(vair-vair_corr); % lower.slab + dish_serif([_one],[_two],s,1/3,jut,t,1/3,jut); % upper stem serif + slab:=vair; % lower.slab + dish_serif([_two],[_one],u,1/3,jut,v,1/3,jut); fi % lower stem serif +x[_three]=x[_zero]; x[_four]=x[_one]; +y[_three]=y[_four]=y[_zero]; pickup fine.nib; +penpos[_three](.6[thin_join,vair],90); +penpos[_four](.6[thin_join,vair],90); %fi +fill stroke z[_three]e--z[_four]e; % bar +%%% +endgroup; +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9, 10,11,12,13); endchar; + +iff not specific:% +lhchar "Lowercase Cyrillic letter ib_yus_ac - iot big yus acute (`roman')"; +cyrchar_twice(ib_yus_ac,15u#,x_height#,0); +adjust_fit(.75u#+ + if monospace: 4u# else: 4.5u# fi +serif_fit#, %li_part_adj+.75u# + serif_fit#); +begingroup +if odd(fudged.stem-w): change_width; fi % symmetric & all three equal +% lowerr_yus; +% ltop_yus; +set_bar_axis; numeric stem[]; +stem1=fudged.stem-3stem_corr; stem2=min(stem1,fudged.hair); +penpos1(stem1,0); penpos2(stem2,0); penpos3(stem1,0); penpos4(stem2,0); +x1l=w-x2r=hround(.2w-.5tiny-.5)-eps; y1=y2=h; y3=y4=3/5[y1.bh,y2.bh]; +x3l=hround(.5w-.5stem1); x3r=x4r; +z0=whatever[z4l,z2l]=whatever[z1r,z3r]; +if hefty: y0:=y2.bh; + fill z3l--diag_end(3l,1l,1,1,1r,3r){z3r-z1r} + ...{down}(x0-.5,y0)..(x0+.5,y0){up}... + {z2l-z4l}diag_end(4l,2l,1,1,2r,4r)--z4r--cycle; % diagonals +else: fill z3l--diag_end(3l,1l,1,1,1r,3r)--z0-- + diag_end(4l,2l,1,1,2r,4r)--z4r--cycle; fi % diagonals +penpos5(stem1,0); x5=x3; y5=0; +fill z3l--diag_end(3l,5l,1,1,5r,3r)--z3r--cycle; %middle stem +z6=whatever[z4,z2]; z7=whatever[z1,z3]; y6=y7=good.y(y1-vair); +fill z1--z7--z6--z2--cycle; % upper bar +% lyus_rbowl; + numeric stem[],alpha[],right_jut; + right_jut=if serifs:.6jut else:.4tiny fi; + y10l=y1.bh; y10r=y2.bh; x10l=x10r=x3; y9=y12=min(bot y10l-.5,.85y10l); + rt x8r=w-lft x11l=hround(r-letter_fit-.3u-right_jut); bot y8=bot y11=y5; + stem2=max(tiny.breadth,fudged.stem-3stem_corr); + alpha2=diag_ratio(1,.5(stem2-tiny),h-y8,x8r-x3); + penpos8(alpha2*(stem2-tiny),0); penpos11(alpha2*(stem2-tiny),0); + forsuffixes $=l,r: y8'$=0; y11'$=0; endfor + z8'r=z8r+penoffset (x3,h)-z8 of currentpen+whatever*((x3,h)-z8); + z8'l=z8l+penoffset z8-(x3,h) of currentpen+whatever*((x3,h)-z8); + z11'r=z11r+penoffset (x3,h)-z11 of currentpen+whatever*((x3,h)-z11); + z11'l=z11l+penoffset z11-(x3,h) of currentpen+whatever*((x3,h)-z11); + z8'=.5[z8'l,z8'r]; z11'=.5[z11'l,z11'r]; + z9=z8'+whatever*((x3,h)-z8); z12=z11'+whatever*((x3,h)-z11); + penpos9(stem-2stem_corr,0); penpos12(stem-2stem_corr,0); + fill z10l{right}...{z8'l-z9l}z9l--diag_end(9l,8'l,.5,1,8'r,9r) + --z9r{z9r-z8'r}...{left}z10r--cycle; % right diagonal + fill z10r{left}...{z11'l-z12l}z12l--diag_end(12l,11'l,1,.5,11'r,12r) + --z12r{z12r-z11'r}...{right}z10l--cycle; % left diagonal +%% +save slab; % lower.slab +if serifs: numeric inner_jut; prime_points_inside(5,3); + if rt x5r+jut+.5u+1<=lft x8l-jut: inner_jut=jut; + else: rt x5r+jut+.5u+1=lft x8l-inner_jut; fi + slab:=vair; % lower.slab + dish_serif(11,12,a,1/3,right_jut,b,1/2,inner_jut)(dark); % lower diagonal serif + dish_serif(8,9,e,1/2,inner_jut,f,1/3,right_jut)(dark); % lower diagonal serif + dish_serif(5',3,c,1/3,.75jut,d,1/3,.75jut); fi % lower middle serif +%%%%% +% barh_i_part(8); +_zero:=3; +_one:=13; _two:=14; +% +pickup tiny.nib; +pos[_one](stem,0); pos[_two](stem,0); +lft x[_one]l=lft x[_two]l= + l+letter_fit+if not monospace: serif_fit+ fi hround (2.5u-.5stem-eps); +top y[_one]=h; bot y[_two]=0; +filldraw stroke z[_one]e--z[_two]e; % stem +bar_stroke(x[_one],x[_zero]); % bar +if serifs: + slab:=Vround(vair-vair_corr); % lower.slab + dish_serif([_one],[_two],s,1/3,jut,t,1/3,jut); % upper serif + slab:=vair; % lower.slab + dish_serif([_two],[_one],u,1/3,jut,v,1/3,jut); % lower serif +fi +%%%%% +endgroup; +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7,8,9,10,11,12, 13,14,15,16); endchar; + +lhchar "Lowercase Cyrillic letter i_e_ac - iot e acute"; +cyrchar_twice(i_e_ac,8u#,x_height#,0); +italcorr x_height#*slant-.2u#; +adjust_fit(if monospace: 4u# else: 4.5u# fi +serif_fit#, %li_part_adj + if monospace:.5u# else:.1u# fi); +begingroup +% lower_ukre; +set_bar_axis; +pickup fine.nib; pos2(vair',90); pos3(curve,180); pos4(vair',270); +x2=x4=(.5(w+u)); top y2r=vround(h+1.5oo); bot y4r=-oo; +lft x3r=(hround max(.6u,1.35u-.5curve)); y3=.5h; +if serifs: + pos1(hair,0); pos5(hair,360); + y1=min(y2.bh+.75flare-.25vair+eps,.9[bar_height,h]-.75flare); + rt x1r=rt x5r=hround(w-.5u); + y5=max(good.y(.5bar_height-.9),y4l+vair'); + (x,y4l)=whatever[z4r,z5l]; x4l:=min(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],0); x6r=x1r; top y6=h+oo; + x1r-x1'=1.5curve; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,5(y2-y1)}..z2{left}; + 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],80); pos5(.6[vair',flare],275); + rt x1r=hround(w-.6u); + top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2,1,right,.8,4); % upper terminal + rt x5r=hround(w-.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{right}..tension .9 and 1..z5e; + if angle direction 1 of p.e>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 +%%%%% +save slab; % lower.slab +% barh_i_part(3); +_zero:=3; +_one:=10; _two:=11; +% +pickup tiny.nib; +pos[_one](stem,0); pos[_two](stem,0); +lft x[_one]l=lft x[_two]l= + l+letter_fit+if not monospace: serif_fit+ fi hround (2.5u-.5stem-eps); +top y[_one]=h; bot y[_two]=0; +filldraw stroke z[_one]e--z[_two]e; % stem +bar_stroke(x[_one],x[_zero]); % bar +if serifs: + slab:=Vround(vair-vair_corr); % lower.slab + dish_serif([_one],[_two],s,1/3,jut,t,1/3,jut); % upper serif + slab:=vair; % lower.slab + dish_serif([_two],[_one],u,1/3,jut,v,1/3,jut); % lower serif +fi +%%%%% +endgroup; +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,1',2,3,4,5,6,7,8,9, 10,11,12,13); endchar; + +% modified numeral 8 +lhchar "Lowercase Cyrillic letter uk_ac - uk acute"; +cyrchar_twice(uk_ac,if serifs: 9.75u# else:10.5u# fi, + asc_height#,0); +italcorr x_height#*slant-.5u#; +adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); +% lower_uk; +numeric top_thickness,mid_thickness,bot_thickness,upper_side,lower_side,theta; +top_thickness=max(fine.breadth,vround(slab-2vair_corr)); +if serifs: + bot_thickness=max(fine.breadth,vround(slab-vair_corr)); + upper_side=max(fine.breadth,hround(.5[hair,stem]-stem_corr)); + lower_side=hround(.5[hair,stem]+stem_corr); +else: + bot_thickness=vair'; + upper_side=max(fine.breadth,hround(.3[vair',stem]-stem_corr)); + lower_side=hround(.3[vair',stem]+stem_corr); fi + x0=.5w; y0=if serifs:.7x_height else:bar_height fi; %h;%%%%%%%%%%%%%% +pickup fine.nib; theta=90-angle(20u,h); slope:=-h/20u; +if lower_side>1.2upper_side: upper_side:=lower_side; fi +pos1(top_thickness,-90); pos6(bot_thickness,-90); +x1=x6=.5w; top y1l=h+o; bot y6r=-o; pos0(fudged.stem-2stem_corr,theta); +lft x2l=w-rt x8l=hround 1.25u; lft x7r=w-rt x5r=hround 1.75u if not serifs:+.5u fi; +x2r-x2l=if serifs:fudged.stem else:upper_side fi-fine; +x5r-x5l=lower_side-fine; +ellipse_set(1l,2l,3l,0l); ellipse_set(1r,2r,3r,0r); +ellipse_set(6l,5l,4l,0l); ellipse_set(6r,5r,4r,0r); +numeric tau; tau=max(.8,.20710678/(superness-.5)); +y2r:=y2l+serif_drop; +filldraw stroke z2e{down} + ..z3e---z4e..z5e{down}..tension atleast tau..z6e{left}; % S stroke +pos7(lower_side,180); pos8(upper_side,180); +y7=.5[y5l,y5r]; y8=.5[y2l,y2r]; pos9(vair,90); z9=z0; +filldraw stroke z8e{down} + ..tension atleast tau and atleast 1..{-18u,-.618h}z9e; % upper right stroke +filldraw stroke z6e{left}..tension atleast tau..z7e{up} + ..tension atleast tau and atleast 1..{18u,.5h}z9e;% lower left stroke +if serifs: +% italic bulb + z8'=z8; pos8'(upper_side,0); + y1'+.5curve=h+oo; x1'=x8-max(u,.5u+.5curve); + numeric theta; theta=angle(4(x8'-x1'),y8'-y1'); pos1'(curve,theta+90); + filldraw z1'l{dir theta}..tension atleast 1 and 1..{down}z8'l + --z8'r{up}...{-dir theta}z1'r..cycle; % bulb +% from sloped serif + pos12(slab,90); lft x12=x2l-.5jut; y12r=y2r-serif_drop; z14=z2l; + filldraw z2r--z12r--z12l{right} + ...1/3[(x14,y12l),.5[z12l,z14] ]{z14-z12l} + ...{down}z14--(x2r,y14)--cycle; % sloped serif +else: pos10(flare,225); x10r=x1; y10l=h+oo; + filldraw stroke z8e{up}...z10e; fi +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; % cyrcaph for acs_height +penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12); endchar; + +lhchar "Lowercase Cyrillic letter y_ac - straight u acute"; +cyrchar_twice(y_ac,if serifs: 9.5u# else: 9u# fi,x_height#,desc_depth#); +italcorr x_height#*slant+.25u#; +adjust_fit(serif_fit#,serif_fit#); +begingroup +% lower_y; +numeric left_stem,right_stem,outer_jut,dy,alpha; left_stem=stem-stem_corr; +right_stem=min(hair if hefty:-2stem_corr fi,left_stem); outer_jut=.75jut; +x1l=w-x4r=l+letter_fit+outer_jut+.05u; +x2l=x5l=hround(.5w-.5left_stem); x3r=x5r; y1=y4=h; +y2=y3=y5=0; dy=y1-y2; alpha=((x2l-x1l)++dy)/dy; +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +penpos5(left_stem,0); penpos6(left_stem,0); x5=x6; y6=-d; +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0>y2+notch_cut: y0:=y2+notch_cut; + fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)--z5r + --diag_end(5r,6r,1,1,6l,5l)--z5l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0+.5left--cycle; % diagonals and stem +else: fill z0--diag_end(0,4l,1,1,4r,3r)--z5r + --diag_end(5r,6r,1,1,6l,5l)--z5l + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % diagonals and stem +if serifs: numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(4,3); prime_points_inside(6,5); + 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:=vair; % lower.slab + dish_serif(6',5,e,1/3,jut,f,1/3,jut); % lower serif + 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); fi % upper right serif +%%%%% +endgroup; +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6); endchar; + +lhchar "Lowercase Cyrillic letter ae_ac - ae acute"; +cyrchar_twice(ae_ac,13u#,x_height#,0); +italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); +adjust_fit(0,0); +numeric left_curve,right_curve; +if monospace: right_curve=left_curve=fudged.stem; +else: left_curve=max(tiny.breadth,hround(curve-2stem_corr)); +right_curve=max(tiny.breadth,hround(curve-if serifs:6 +else:8 fi\\stem_corr));fi +pickup tiny.nib; pos11(right_curve,0); +pos12(vair,90); pos13(mfudged.stem,180); +y11=good.y bar_height; top y12r=h+vround 1.5oo; y10l=bot y11; +rt x11r=hround min(w-.5u,w-u+.5right_curve); +lft x13r=hround (.5w-.5mfudged.stem); x12=.55[x13,x11]; +{{interim superness:=more_super; + filldraw stroke super_arc.e(11,12)}}; % right bowl of e +y13=.5[y12,y14]; bot y14r=-oo; x14=x12+.25u; +if serifs: pos14(vair',270); pos15(mfudged.hair,360); + y15=max(good.y(.5bar_height-.9),y14l+vair); x15r=x11r; + (x,y14l)=whatever[z14r,z15]; x14l:=min(x,x14l+.5u); + filldraw stroke pulled_arc.e(12,13) + & pulled_super_arc.e(13,14)(.8superpull) + ...{x15-x14,5(y15-y14)}z15e; % left bowl, arc, and terminal of e +else: pos14(vair,270); + filldraw stroke super_arc.e(12,13) + & super_arc.e(13,14); % left bowl and arc of e + pickup fine.nib; pos14'(vair,270); z14=z14'; + pos15(.5[vair,flare],275); rt x15r=hround(w-.6u); + y15r=good.y(y15r+1/3bar_height-y15); y15l:=good.y + y15l; x15l:=good.x x15l; + filldraw stroke term.e(14',15,right,1,4); fi % right terminal +y11'r=y10r=y10l+.6[thin_join,vair]; y11'l=y10l; +x11'l=x11'r=x11; x10l=x10r=x13; +fill stroke z10e--z11'e; % crossbar +pickup fine.nib; top y3r=h+vround 1.5oo; +if serifs: pos1(flare,180); pos2(mfudged.hair,180); + pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=4u; + y1=min(bar_height+.5flare+2vair+2,.9[bar_height,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=4.3u; top y1r=vround .82[bar_height,top y3r]; + filldraw stroke term.e(3,1,left,.9,4); fi % left terminal +pos4(mfudged.stem,0); x4=x13; y4=1/3[bar_height,h]; +pos5(mfudged.stem,0); x5=x4; y5=min(y4,y13); +filldraw stroke super_arc.e(3,4)&z4e--z5e; % arc and stem +pos6(.6[thin_join,vair],90); x6=x4; bot y6=y10l; +pos7(left_curve,180); lft x7r=hround max(.5u,1.5u-.5left_curve); +y7=1/3[top y8l,top y6r]; +pos8(vair,270); x8l=3.75u; bot y8r=-oo; +pos9(.5[vair,fudged.stem],360); x9=x5; y9=.55bar_height; +(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 y9<y5: filldraw stroke z5e{down}..{down}z9e; fi % link (usually hidden) +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); +endchar; + +lhchar "Lowercase Cyrillic letter schwa_ac - schwa acute"; +cyrchar_twice(schwa_ac,7.5u#+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_schwa; +numeric left_curve,right_curve; +left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; +if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; pos1(right_curve,-180); pos2(vair',-90); pos3(left_curve,0); +set_bar_axis; bot y2r=-oo; y0l=top y1=h-y1.bh; +lft x1r=hround max(.5u,u-.5right_curve); +rt x3r=hround min(w-.5u,w-1.25u+.5left_curve); x2=.5w-.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; top y4r=h+oo; x4=x2;% if not serifs:-.25u fi; +if serifs: + pos4(vair,90); pos5(hair,180); + y5=min(bar_height+.25flare+2vair'+2,.9[bar_height,h]-.75flare); %z + lft x5r=hround(lft x1r+1/3u)+eps; + (x,y4l)=whatever[z4r,z5]; x4l:=max(x,x4l-.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4); % left bowl, arc, + pickup fine.nib; pos4'(vair,90); z4'=z4; x4'r:=x4r; + filldraw stroke z4'e{left}...{x5-x4,5(y5-y4)}z5e; % and terminal + path upper_arc; upper_arc=z5{x4-x5,5(y4-y5)}..z4{right}; + pos6(.3[fine.breadth,hair],180); x6r=x5r; top y6=h+oo; + x5'-x5r=2curve-fine; y5'=y5; + numeric t; t=xpart(upper_arc intersectiontimes (z6l--z5')); + filldraw z5r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb +else: + pos4(vair,90); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,90); z4=z4'; pos5(4/7[vair',flare],100); + lft x5r=hround(tiny.lft x1r+2/3u)+eps; + top y5r=vround min(top y4r,max(.82[bar_height,top y4r], + y2.bh+.5(y2.bh-y1.bh)-4/7[vair',flare]*sind 280+eps)); + filldraw stroke term.e(4',5,left,.8,4); fi % terminal +pickup tiny.nib; path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'l=y0l; x1'l=x1'r=x1; y1'r=y0r=y0l-.6[thin_join,vair];%y1.bh; +forsuffixes $=l,r: +x0$=xpart(((w,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +%%%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,5',6); endchar; + +lhchar "Lowercase Cyrillic letter otld_ac - o tilded acute"; +cyrchar_twice(otld_ac,9u#,x_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +% lower_o;tld +penpos1(vair,90); penpos3(vair',-90); penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +%%% +% oltilde; +if (serifs=true) and (bar#<=.5curve#): + numeric bar[]; + set_bar_axis; + x5r=x2l; x6r=x4l; + y5r=y6r=y2.bh; y5l=y6l=y1.bh; x5r=x5l; x6l=x6r; + bar2=2/3[bar,fudged.stem]; + penpos7(bar2,45); z7=.5[z5l,z6l]; + fill stroke z6e{-2,-1}..{-2,1}z7e..{-2,-1}z5e; +else: + bar_stroke(x2,x4); +fi +%%%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6); endchar; + +lhchar "Lowercase Cyrillic letter dje_ac - soft dj acute"; +cyrchar_twice(dje_ac,9.5u#,asc_height#,desc_depth#); +italcorr .7x_height#*slant; %o +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +begingroup +pickup tiny.nib; pos1(stem,0); pos2(stem,0); pos3(stem,0); +pos1'(stem',0); pos2'(stem',0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; rt x3r=hround(w-u); +top y1=h; bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +% h_stroke_part; +y3=1/3[bar_height,x_height]; +penpos0(x2r-x2l,0); x0=x2; y0=1/8[bar_height,x_height]; +filldraw stroke z0e--z2e; % thicken the lower left stem +penpos2''(min(rt x2r-lft x2l,thin_join)-fine,180); +pickup fine.nib; rt x2''l=tiny.rt x2r; y2''=y0; +pos4(vair,90); pos3'(x3r-x3l+tiny,0); z3'=z3; +x4=.5[rt x2''l,rt x3'r]; top y4r=x_height+oo; +(x,y4l)=whatever[z4r,z2''l]; x4l:=x; +filldraw stroke z2''e{up}...{right}z4e + & {{interim superness:=hein_super; super_arc.e(4,3')}}; % arch +% h_tail; +pos5(stem,0); pos6(max(fine.breadth,.6[thin_join,vair]),-90); +x5=x3; y5=bar_height; lft x6r=rt x2r; %even with right edge of stem; +bot y6r=-d; +filldraw stroke z3'e--z5e & pulled_arc.e(5,6); +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + save slab; slab:=vair; % lower.slab + dish_serif(2,1,c,1/3,jut,d,1/3,jut); fi % lower left serif +% hcross; +pickup fine.nib; pos7(bar,90); pos8(bar,90); +x7=0; x8=hround(w-u); y7=y8=vround(.5x_height+.5h)+.5bar; +filldraw stroke z7e--z8e; % bar +endgroup; +% the accent +hpos_corr=-u; put_accent(cyrcaph); repeat_once; % cyrcaph for asc_height +penlabels(1,2,3,4,5,6,7,8); endchar; + +endinput; +%end of file diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgcvacu.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgcvacu.mf new file mode 100644 index 00000000000..e9c8a8ad99c --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgcvacu.mf @@ -0,0 +1,1395 @@ +% +% lgcvacu.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Uppercase Cyrillic acuted vowels +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames +% +% A_ac +% E_ac +% YO_ac +% UKRE_ac +% I_ac +% LAT_I_ac +% UKR_I_ac +% O_ac +% ERY_ac +% HRDSN_ac +% EREV_ac +% YU_ac +% YA_ac +% YAT_ac +% IZH_ac +% B_YUS_ac +% L_YUS_ac +% IL_YUS_ac +% IB_YUS_ac +% I_E_ac +% UK_ac +% Y_ac +% AE_ac +% SCHWA_ac +% OTLD_ac +% DJE_ac +% + +LHver_check(3,4); % like |version_check| in ec + +lhchar "Uppercase Cyrillic letter A_ac - A acute"; +cyrchar_twice(A_ac,13u#,cap_height#,0); +if is_small_cap: getcharcode(a_ac); fi +adjust_fit(cap_serif_fit#,cap_serif_fit#); +% upper_a; +numeric left_stem,right_stem,outer_jut,alpha; outer_jut=.8cap_jut; +x1l=w-x4r=l+letter_fit+outer_jut+.5u; +right_stem=cap_stem-stem_corr; +left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem); +y1=y4=0; x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=h+apex_o+apex_oo; +alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr); +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0<h-cap_notch_cut: y0:=h-cap_notch_cut; + fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r) + --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{up}z0+.5left--cycle; % left and right diagonals +else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l) + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals +penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2]; +penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5; +if hefty: y5r else: y5 fi =5/12y0; +y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line +if serifs: numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(4,3); + if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark); % left serif + dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi % right serif +% the accent +if not monospace: hpos_corr=-.75u; fi +put_accent(cyrcaph); repeat_once; +penlabels(0,1,2,3,4,5,6); endchar; + +lhchar "Uppercase Cyrillic letter E_ac - E acute"; +cyrchar_twice(E_ac,12u#-width_adj#,cap_height#,0); +if is_small_cap: getcharcode(e_ac); fi +italcorr cap_height#*slant-beak_jut#-.5u#; +adjust_fit(cap_serif_fit#,0); +% upper_e; +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos3(slab,90); pos4(hair,0); +top y3r=h; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps; +arm(3,4,e,beak_darkness,beak_jut); % upper arm and beak +pos5(cap_bar,-90); pos6(hair,0); +top y5l=vround(.52[y2,y1]+.5cap_bar); x5=x1; +pos0(cap_bar,90); pos7(hair,0); +z0=z5; x6=x7; y6-y5l=y0l-y7; +if serifs: rt x6r=hround(w-4.4u+.5hair); y6=good.y(y5l+.6beak)+eps; + rt x9r=hround(w-.5u); +else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi +arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0); % middle arm and serif +pos8(slab if not serifs:+2stem_corr fi,-90); pos9(hair,0); +bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps; +arm(8,9,h,beak_darkness,1.5beak_jut); % lower arm and beak +if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Uppercase Cyrillic letter YO_ac - YO acute"; +cyrchar_twice(YO_ac,12u#-width_adj#,cap_height#,0); +if is_small_cap: getcharcode(yo_ac); fi +italcorr cap_height#*slant-beak_jut#-.5u#; +adjust_fit(cap_serif_fit#,0); +% upper_e; +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos3(slab,90); pos4(hair,0); +top y3r=h; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps; +arm(3,4,e,beak_darkness,beak_jut); % upper arm and beak +pos5(cap_bar,-90); pos6(hair,0); +top y5l=vround(.52[y2,y1]+.5cap_bar); x5=x1; +pos0(cap_bar,90); pos7(hair,0); +z0=z5; x6=x7; y6-y5l=y0l-y7; +if serifs: rt x6r=hround(w-4.4u+.5hair); y6=good.y(y5l+.6beak)+eps; + rt x9r=hround(w-.5u); +else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi +arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0); % middle arm and serif +pos8(slab if not serifs:+2stem_corr fi,-90); pos9(hair,0); +bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps; +arm(8,9,h,beak_darkness,1.5beak_jut); % lower arm and beak +if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif +%%%%% +% the accents +uppercase_umlaut(0,0, 10,11,12,13); +put_accent(cyrcaph); repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9, 10,11,12,13); endchar; + +iff serifs:% +lhchar "Uppercase Cyrillic letter UKR_E_ac - Ukrainian E acute"; +cyrchar_twice(UKR_E_ac,13u#,cap_height#,0); +if is_small_cap: getcharcode(ukr_e_ac); fi + italcorr cap_height#*slant-.5u#; + adjust_fit(0,0); +% upper_ukre; +pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90); +pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360); +rt x1r=rt x5r=hround(w-u); lft x3r=(hround u); x2=x4=.55[x3,x1]; +top y2r=h+o; bot y4r=-o; y3=.5h-vair_corr; y3l:=.52h; +bot y1=min(vround .675h,bot y2l-eps); y5=max(good.y .95(h-y1),y4l+eps); +(x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u); +(x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u); +filldraw stroke z1e{x2-x1,10(y2-y1)}...pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull)...{up}z5e; % arc +pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=h+o; +x1r-x1'=2cap_curve-fine; y1'=y1; +path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left}; +numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1')); +filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb +% upukre_bar; +numeric bar[]; y7=y8=y3; +x7=x3l; x8=(min(lft x1l-.5hair,0.85[x3l,x1l])); +if (serifs=true) and (bar#<=.5curve#): + penpos7(cap_bar,90); penpos8(cap_bar,90); + bar2=7/8[cap_bar,fudged.cap_stem-3stem_corr]; penpos9(bar2,45); z9=.575[z7l,z8l]; + fill circ_stroke z8e{-2,-1}..{-2,1}z9e..{-2,-1}z7e; % curve /\/ +else: pickup fine.nib; pos7(cap_bar,90); pos8(cap_bar,90); + filldraw stroke z7e--z8e; fi % bar -- +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,1',2,3,4,5,6); endchar; + +iff not serifs:% +lhchar "Uppercase Cyrillic letter UKR_E_ac - Ukrainian E acute"; +cyrchar_twice(UKR_E_ac,11.5u#,cap_height#,0); +if is_small_cap: getcharcode(ukr_e_ac); fi + italcorr cap_height#*slant-.5u#; + adjust_fit(0,0); +% uppers_ukre; +pickup fine.nib; pos1(1.2flare,80); pos2(slab,90); +pos3(cap_curve,180); pos4(slab,270); pos5(flare,275); +rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u; +lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u); +top y1r=vround.95h+o; top y2r=h+o; y3=.5h; +bot y4r=-o; bot y5r=vround .08h-o; y5l:=good.y y5l; x5l:=good.x x5l; +filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,right,.8,4); +% uukres_bar; +numeric bar[]; y6=y7=y3; x6=x3l; x7=(min(lft x1l-.5hair,0.85[x3l,x1l])); +pickup fine.nib; +bar1=if is_small_cap:max(fine.breadth+eps,.6[thin_join,vair]) else:cap_bar fi; +pos6(bar1,90); pos7(bar1,90); +filldraw stroke z6e--z7e; % bar -- +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,1',2,3,4,5,6); endchar; + +lhchar "Uppercase Cyrillic letter I_ac - I acute"; +cyrchar_twice(I_ac,13.5u#,cap_height#,0); % N_width +if is_small_cap: getcharcode(i_ac); fi +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(cap_serif_fit#,cap_serif_fit#); +% upper_i; +pickup tiny.nib; pos1(fudged.cap_stem,0); pos2(fudged.cap_stem,0); +pos3(fudged.cap_stem,0); pos4(fudged.cap_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); 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-stem_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(slab+eps); y6=vround(h-slab-eps); + alpha1=diag_ratio(1,stem1,y5-y6,x5r-x6l); + penpos5(min(2fudged.cap_stem,alpha1*stem1),0); + penpos6(min(2fudged.cap_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'<upper_notch: {left}(x3'-1,upper_notch){down}... fi + {z5-z6}diag_in(6r,5r,1,5l)--cycle; % diagonal +else: y5l=y2+bracket+eps; y6r=y3-bracket-eps; + x5=hround (rt x1r-.5)-eps; x6=hround (lft x3l+.5)+eps; + stem1=max(tiny.breadth,fudged.hair); + alpha1=diag_ratio(1,stem1,x6-x5,top y6r-bot y5l); + penpos5(alpha1*stem1,90); penpos6(alpha1*stem1,90); + fill stroke z5e--z6e; fi % diagonal +%%% +if serifs: numeric inner_jut; + if rt x1r+cap_jut+.5u+1<=lft x3l-cap_jut: inner_jut=cap_jut; + else: rt x1r+inner_jut+.5u+1=lft x3l-inner_jut; fi + dish_serif(1,2,a,1/3,cap_jut,b,1/3,inner_jut); % upper left serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,inner_jut); % lower left serif + dish_serif(3,4,e,1/3,inner_jut,f,1/3,cap_jut); % upper right serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,cap_jut); fi % lower right serif +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,2,3,4,5,6); endchar; + +lhchar "Uppercase Cyrillic letter LAT_I_ac - Ukrainian I acute"; +cyrchar_twice(LAT_I_ac,max(6u#,4u#+cap_stem#),cap_height#,0); +if is_small_cap: getcharcode(lat_i_ac); fi +italcorr cap_height#*slant-.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); +% upper_ukri; - borrowed from ec +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=cap_height; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs or monospace: + dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut); % upper serif + dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut); fi % lower serif +if slitex: + pickup crisp.nib; % arms based on proportions of uppercase E + pos3(slab,90); pos4(slab if not serifs:+2stem_corr fi,-90); + x3=x4=x1; top y3r=h; bot y4r=0; + pos5(hair,0); pos6(hair,0); % top and bottom right arms + rt x5r=rt x6r=hround(w-u); + pos7(hair,180); pos8(hair,180); % top and bottom left arms + lft x7r=lft x8r=hround(u); + y5=y7=good.y(y3l-beak)-eps; % beak in case we ever want a beaked serif! + y6=y8=good.y(y4l+beak)+eps; % watch that this doesn't get too heavy + arm(3,5,a,darkness,jut); arm(3,7,b,darkness,jut); % top left and right arms + arm(4,6,c,darkness,jut); arm(4,8,d,darkness,jut); % bottom left and right +fi +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,2); endchar; + +lhchar "Uppercase Cyrillic letter UKR_I_ac - YI acute"; +cyrchar_twice(UKR_I_ac,max(6u#,4u#+cap_stem#),cap_height#,0); +if is_small_cap: getcharcode(ukr_i_ac); fi +italcorr cap_height#*slant-.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); +% upper_ukri; - borrowed from ec +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=cap_height; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs or monospace: + dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut); % upper serif + dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut); fi % lower serif +if slitex: + pickup crisp.nib; % arms based on proportions of uppercase E + pos3(slab,90); pos4(slab if not serifs:+2stem_corr fi,-90); + x3=x4=x1; top y3r=h; bot y4r=0; + pos5(hair,0); pos6(hair,0); % top and bottom right arms + rt x5r=rt x6r=hround(w-u); + pos7(hair,180); pos8(hair,180); % top and bottom left arms + lft x7r=lft x8r=hround(u); + y5=y7=good.y(y3l-beak)-eps; % beak in case we ever want a beaked serif! + y6=y8=good.y(y4l+beak)+eps; % watch that this doesn't get too heavy + arm(3,5,a,darkness,jut); arm(3,7,b,darkness,jut); % top left and right arms + arm(4,6,c,darkness,jut); arm(4,8,d,darkness,jut); % bottom left and right +fi +%%%%% +% the accents +uppercase_umlaut(0,0, 9,10,11,12); +put_accent(cyrcaph); repeat_once; +penlabels(1,2,3,4,5,6,7,8, 9,10,11,12); endchar; + +lhchar "Uppercase Cyrillic letter O_ac - O acute"; +cyrchar_twice(O_ac,14u#-width_adj#,cap_height#,0); +if is_small_cap: getcharcode(o_ac); fi +italcorr .7cap_height#*slant-.5u#; +adjust_fit(0,0); +% upper_o; +penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90); +penpos2(cap_curve,180); penpos4(cap_curve,0); +if monospace: x2r=hround 1.5u; + interim superness:=sqrt superness; % make |"O"|, not |"0"| +else: x2r=hround u; fi +x4r=w-x2r; x1=x3=.5w; y1r=h+o; y3r=-o; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_super_arc.e(1,2)(.5superpull) + & pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull) + & pulled_super_arc.e(4,1)(.5superpull) & cycle; % bowl +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,2,3,4); endchar; + +lhchar "Uppercase Cyrillic letter U_ac - U acute"; +cyrchar_twice(U_ac,13u#,cap_height#,0); +if is_small_cap: getcharcode(u_ac); fi +italcorr x_height#*slant+.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); +% upper_u; +numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; +left_stem=cap_stem-stem_corr; +right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_vair=Vround(if serifs:.5[vair',bot_stem] else:slab fi); +outer_jut=.7cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; % W jut +y1=y4r=h; x2l=x3l; +if monospace: y2=y3=.3h; else: y2=y3=max(if not serifs:1.095 fi stem,1/6h); fi +numeric alpha; x9=.5w-1/2(.5[bot_stem,right_stem]); y9=-o; +alpha=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-2apex_corr); +numeric u_ratio; u_ratio=(y3-y9)/(y1-y9); +x2l-x1l=x4r-x3r+ + if monospace: 2apex_corr else: if serifs: 2 fi (u_ratio*.5[x1l,x4r]) fi; +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +numeric alpha[]; alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0l=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); penpos0(alpha*bot_stem,0); +z0'=whatever[rt z3r,rt z4r]; y0'=bot y6r=if serifs:-o else: 0 fi; +penpos6(bot_vair,-90); x6r=if serifs:.6 else:.5 fi[x3r,x1]; +numeric t; t=if monospace: 1.25right_stem else: (x3r-x0')++(y3r-y0') fi; +penpos5(bot_vair,.5[angle(z4r-z6r),angle(z4r-z3r)]-90); +path p; numeric tau; p=z0r{z3r-z4r}....{left}z6r; +z5r=p intersectionpoint ((0,y2l-.5bot_vair)--(w,y2l-.5bot_vair)); +tau=xpart(p intersectiontimes (z2l--z2r)); +if y0>notch_cut+y2: + y0l:=notch_cut+y2; % +y2 added for sanserif face + fill z0l+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) + --subpath(0,tau) of p--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0l+.5left--cycle; % left and right diagonals +else: + fill z0l--diag_end(0,4l,1,1,4r,3r)--subpath(0,tau) of p + --z2l--diag_end(2l,1l,1,1,1r,0)--cycle; % left and right diagonals +fi +fill p--z6l{right}...{-direction tau of p} + if x5l>x2l: z2l else: z5l fi..{z4r-z3r}z0l--cycle; +pickup fine.nib; +if serifs: + numeric bulb_diam; bulb_diam=flare+(cap_stem-stem); + pos6'(bot_vair,-90); z6'=z6; pos7(hair,-180); pos8(bulb_diam,-180); + y8=1/6h; z7r=z8r; lft x8r=x1; + cyrbulb(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=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif + dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif +else: + top z6'l=z6l; bot z6'r=z6r; + pos7(bot_vair,-90); lft x7l=max(3.5u,rt x6r-t); bot y7r=bot y6'r; + filldraw stroke z6'e--z7e; fi % arc +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + + +lhchar "Uppercase Cyrillic letter ERY_ac - ERY acute"; +cyrchar_twice(ERY_ac,12.5u#,cap_height#,0); %V_width#=12.5u# +if is_small_cap: getcharcode(ery_ac); fi +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(if monospace: 0,0 else: cap_serif_fit#,cap_serif_fit# fi %uwlett_adj + +4.5u#); %ERYadj +% upper_ery; +numeric left_stem; left_stem=cap_stem-hround 2stem_corr; +pickup tiny.nib; pos1(left_stem,0); pos2(left_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5left_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % upper serif + nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif +% usftsn_bowl(2); +_zero:=2; +_one:=3; _two:=4; _three:=5; _four:=6; _five:=7; +% +pickup tiny.nib; +penpos[_one](cap_bar,90); +penpos[_three](cap_curve if hefty:-3stem_corr fi,0); +penpos[_four](cap_band,-90); penpos[_five](cap_band,-90); +z[_five]r=bot z[_zero]; y[_four]=y[_five]; +y[_three]=.5[y[_four],y[_two]]; +x[_one]=x[_zero]r; x[_three]r=hround(w-u); +if (serifs=false) or (cap_bar#>.5cap_curve#) or (cap_bar<3): + penpos[_two](cap_bar,90); + x[_four]=.5[x[_zero],w-if serifs:1.5u else:2.5u fi]+.5u; + y[_one]=y[_two]=.52h; x[_two]=x[_four]; +else: penpos[_two](1/18[cap_bar,cap_curve],90); + x[_four]=.5[x[_zero],w-1.5u]+.5u; + y[_one]l=y[_two]l-.35cap_bar=.52h-.5cap_bar; + x[_two]=x[_four]-.35u; fi +x[_two]l:=x[_two]l-.5u; x[_four]l:=x[_four]l-.5u; +fill stroke z[_five]e..super_arc.e([_four],[_three]) + & super_arc.e([_three],[_two])..z[_one]e; % lobe +%%% +% I +w:=w+4.5u; pickup tiny.nib; rt x8r=rt x9r=w-hround max(2u,3u-.5stem); +top y8=h; bot y9=0; pos8(cap_stem,0); pos9(cap_stem,0); +filldraw stroke z8e--z9e; +if serifs: dish_serif(8,9,e,1/3,cap_jut,f,1/3,cap_jut); + dish_serif(9,8,g,1/3,cap_jut,h,1/3,cap_jut); fi +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,2,8,9,10,11,12,13,14); endchar; + +lhchar "Uppercase Cyrillic letter HRDSN_ac - HARD SIGN acute"; +cyrchar_twice(HRDSN_ac,12.5u#,cap_height#,0); %V_width#=12.5u# +if is_small_cap: getcharcode(hrdsn_ac); fi +adjust_fit(min(4.5u#-.5stem#,3.5u#)-.5width_adj#, % Beak_adj + 0); +% upper_hrdsn; +numeric left_stem; left_stem=cap_stem-hround 2stem_corr; +pickup tiny.nib; pos1(left_stem,0); pos2(left_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5left_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +% upper left beak +pickup crisp.nib; +top y3r=h; x3=x1; pos3(slab,90); pos4(hair,180); +lft x4r=l+letter_fit+hround.65u; y4=good.y(y3l-beak)-eps; +arm(3,4,q,beak_darkness,-.7beak_jut); +if serifs: nodish_serif(1,2,a,1/3,.5cap_jut,b,1/3,.5cap_jut); % upper serif + nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif +% usftsn_bowl(2); +_zero:=2; +_one:=5; _two:=6; _three:=7; _four:=8; _five:=9; +% +pickup tiny.nib; +penpos[_one](cap_bar,90); +penpos[_three](cap_curve if hefty:-3stem_corr fi,0); +penpos[_four](cap_band,-90); penpos[_five](cap_band,-90); +z[_five]r=bot z[_zero]; y[_four]=y[_five]; +y[_three]=.5[y[_four],y[_two]]; +x[_one]=x[_zero]r; x[_three]r=hround(w-u); +if (serifs=false) or (cap_bar#>.5cap_curve#) or (cap_bar<3): + penpos[_two](cap_bar,90); + x[_four]=.5[x[_zero],w-if serifs:1.5u else:2.5u fi]+.5u; + y[_one]=y[_two]=.52h; x[_two]=x[_four]; +else: penpos[_two](1/18[cap_bar,cap_curve],90); + x[_four]=.5[x[_zero],w-1.5u]+.5u; + y[_one]l=y[_two]l-.35cap_bar=.52h-.5cap_bar; + x[_two]=x[_four]-.35u; fi +x[_two]l:=x[_two]l-.5u; x[_four]l:=x[_four]l-.5u; +fill stroke z[_five]e..super_arc.e([_four],[_three]) + & super_arc.e([_three],[_two])..z[_one]e; % lobe +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,2,3,4,5,6,7,8,9); endchar; + +iff serifs:% +lhchar "Uppercase Cyrillic letter EREV_ac - REVERSE E acute"; +cyrchar_twice(EREV_ac,13u#,cap_height#,0); +if is_small_cap: getcharcode(erev_ac); fi +italcorr cap_height#*slant-.5u#; +adjust_fit(0,0); +% upper_erev; +pickup fine.nib; pos1(cap_hair,180); pos2(cap_band,90); +pos3(cap_curve,0); pos4(cap_band,-90); pos5(hair,-180); +lft x1r=lft x5r=hround u; +rt x3r=hround(w-u); x2=x4=.55[x3,x1]; +top y2r=h+o; bot y4r=-o; y3=.5h-vair_corr; y3l:=.52h; +bot y1=min(vround.675h,bot y2l-eps); y5=max(good.y .95(h-y1),y4l+eps); +(x2l',y2l)=whatever[z2r,z1l]; x2l:=max(x2l',x2l-.5u); +(x4l',y4l)=whatever[z4r,z5l]; x4l:=max(x4l',x4l-.5u); +filldraw stroke z1e{x2-x1,10(y2-y1)}...pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull)...{up}z5e; % arc +pos6(.3[fine.breadth,cap_hair],180); x6r=x1r; top y6=h+o; +x1'-x1r=2cap_curve-fine; y1'=y1; +path upper_arc; upper_arc=z1{x2-x1,10(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 +%%% +%%% uerev_bar; +numeric bar[]; y8=y7=y3; +x8=x3l; x7=max(rt x1l+.5hair,0.85[x3l,x1l]); +if (bar#<=.5curve#): + penpos7(cap_bar,90); penpos8(cap_bar,90); + bar2=7/8[cap_bar,fudged.cap_stem-3stem_corr]; + penpos9(bar2,45); z9=.475[z7l,z8l]; + fill circ_stroke z7e{2,1}..{2,-1}z9e..{2,1}z8e; % curve /\/ +else: + pickup fine.nib; pos7(cap_bar,90); pos8(cap_bar,90); + filldraw stroke z7e--z8e; % bar -- +fi +%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,1',2,3,4,5,6,10,11,12); endchar; + +iff not serifs:% +lhchar "Uppercase Cyrillic letter EREV_ac - REVERSE E acute"; +cyrchar_twice(EREV_ac,11.5u#,cap_height#,0); +if is_small_cap: getcharcode(erev_ac); fi +italcorr cap_height#*slant-.5u#; +adjust_fit(0,0); +% uppers_erev; +pickup fine.nib; pos1(1.2flare,100); pos2(slab,90); +pos3(cap_curve,0); pos4(slab,-90); pos5(flare,-95); +lft x1r=hround1.1u; x2=x4=w-(.5w+1.25u); +rt x3r=w-hround max(u,2u-.5cap_curve); +lft x5r=hround.9u; +top y1r=vround .95h+o; top y2r=h+o; y3=.5h; +bot y4r=-o; bot y5r=vround .08h-o; y5l:=good.y y5l; x5l:=good.x x5l; +filldraw stroke rterm.e(2,1,left,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,left,.8,4); +%%% +% urevs_bar; +pickup fine.nib; numeric bar[]; +bar1=if is_small_cap: max(fine.breadth+eps,.6[thin_join,vair]) + else: cap_bar fi; +pos6(bar1,90); pos7(bar1,90); +y7=y6=y3; x7=x3l; x6=max(rt x1l+.5hair,0.85[x3l,x1l]); +filldraw stroke z6e--z7e; % bar -- +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,1',2,3,4,5,6,10,11,12); endchar; + +lhchar "Uppercase Cyrillic letter YU_ac - YU acute"; +cyrchar_twice(YU_ac,14u#-width_adj#,cap_height#,0); +if is_small_cap: getcharcode(yu_ac); fi +italcorr .7cap_height#*slant-.5u#; +adjust_fit(if monospace: 6.5u# else: + max(5u#+.5cap_stem#,6u#)+cap_serif_fit# fi, %Ipart_adj + if monospace:-1.25u# else: 0 fi); +% upper_yu; +penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90); +penpos2(cap_curve,180); penpos4(cap_curve,0); +if monospace: x2r=hround 1.5u; + interim superness:=sqrt superness; % make |"O"|, not |"0"| + else: x2r=hround u; fi +x4r=w-x2r; x1=x3=.5w; y1r=h+o; y3r=-o; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_super_arc.e(1,2)(.5superpull) + & pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull) + & pulled_super_arc.e(4,1)(.5superpull) & cycle; % bowl +%I_part(2); +_zero:=2; +_one:=5; _two:=6; _three:=7; _four:=8; +% +pickup tiny.nib; pos[_one](cap_stem,0); pos[_two](cap_stem,0);%pos +lft x[_one]l=lft x[_two]l= + l+letter_fit+if monospace:-.35u else: cap_serif_fit fi + +hround max(2u,3u-.5cap_stem); +top y[_one]=h; bot y[_two]=0; +filldraw stroke z[_one]e--z[_two]e; % stem +x[_three]=x[_one]; y[_three]=y[_zero]; +x[_four]=x[_zero]; y[_four]=y[_three]; +pos[_three](cap_bar,90); pos[_four](cap_bar,90); +filldraw stroke z[_three]e--z[_four]e; % bar +if serifs: dish_serif([_one],[_two],s,1/3,cap_jut,t,1/3,cap_jut); + dish_serif([_two],[_one],u,1/3,cap_jut,v,1/3,cap_jut); fi +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,2,3,4,10,11,12,13); endchar; + +iff not specific:% +lhchar "Uppercase Cyrillic letter YA_ac - YA acute (`roman')"; +cyrchar_twice(YA_ac,if serifs:13.5u# else:12.5u#-.5width_adj# fi %N_width; upss R + ,cap_height#,0); % N_width % +if is_small_cap: getcharcode(ya_ac); fi +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(if serifs:cap_serif_fit# else:0 fi,cap_serif_fit#); +% upperr_ya; +pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); +rt x1r=rt x2r=hround(w-max(2u,3u-.5cap_stem')); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +penpos3(cap_band,90); penpos4(cap_band,90); +penpos5(cap_curve if hefty:-3stem_corr fi,180); +numeric middle_weight; middle_weight=.5[vair,cap_band]; +penpos6(middle_weight,-90); penpos7(middle_weight,-90); +z3r=top z1; y4=y3; y5=.52[y6l,y4l]; y6=y7; +x7=x2; y7l=vround(.5h+.5vair); x4=x6; +if serifs: x4=.5w+.5u; x5r=hround (2u); + else: x4=.5w-.5u; x5r=hround u; fi +x4l:=x6l:=x4+.125cap_curve; +fill stroke z7e..pulled_arc.e(6,5) & pulled_arc.e(5,4)..z3e; % lobe +pickup tiny.nib; numeric stem[],alpha,right_jut; +right_jut=if serifs:.6cap_jut else:.4tiny fi; +if serifs: bot y9=bot y2; else: y9=0; fi +lft x9l=hround(if serifs:l+letter_fit+.75u+right_jut else:.5u fi); y8=y6; +stem1=max(tiny.breadth,fudged.cap_stem-3stem_corr); +alpha=diag_ratio(1,.5(stem1-tiny),y1-y9,x9l-x1); +penpos9(alpha*(stem1-tiny),0); +forsuffixes $=l,r: y9'$=0; endfor +z9'r=z9r+penoffset z1-z9 of currentpen+whatever*(z1-z9); +z9'l=z9l+penoffset z9-z1 of currentpen+whatever*(z1-z9); +if serifs: z8r=z9'r+whatever*(z1r-z9); else: x8=x6+.5u; fi +penpos8(if serifs:x9'r-x9'l else: cap_stem-2stem_corr fi,0); +fill z8l--diag_end(8l,9'l,1,.5,9'r,8r)--z8r--cycle; % diagonal +numeric inner_jut; +if lft x2l-cap_jut-.5u+1>=rt x9r+cap_jut: inner_jut=cap_jut; + else: lft x2r-cap_jut-.5u+1=rt x9r+inner_jut; fi +if serifs: + nodish_serif(1,2,a,1/3,.5cap_jut,b,1/3,cap_jut); % upper serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower serif + dish_serif(9,8,g,1/2,right_jut,h,1/3,inner_jut)(dark); fi % lower diagonal serif +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +lhchar "Uppercase Cyrillic letter YAT_ac - YAT acute"; +cyrchar_twice(YAT_ac,12.5u#,cap_height#,0); +if is_small_cap: getcharcode(yat_ac); fi +italcorr .75cap_height#*slant-.5u#; +adjust_fit(2u#+cap_serif_fit#,0); +% upper_yat; +numeric left_stem,right_curve,middle_weight; +left_stem=cap_stem-hround 2stem_corr; middle_weight=.5[vair,cap_band]; +pickup tiny.nib; pos1(left_stem,0); pos2(left_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5left_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % upper serif + nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif +% usftsn_bowl(2); +_zero:=2; +_one:=3; _two:=4; _three:=5; _four:=6; _five:=7; +% +pickup tiny.nib; +penpos[_one](cap_bar,90); +penpos[_three](cap_curve if hefty:-3stem_corr fi,0); +penpos[_four](cap_band,-90); penpos[_five](cap_band,-90); +z[_five]r=bot z[_zero]; y[_four]=y[_five]; +y[_three]=.5[y[_four],y[_two]]; +x[_one]=x[_zero]r; x[_three]r=hround(w-u); +if (serifs=false) or (cap_bar#>.5cap_curve#) or (cap_bar<3): + penpos[_two](cap_bar,90); + x[_four]=.5[x[_zero],w-if serifs:1.5u else:2.5u fi]+.5u; + y[_one]=y[_two]=.52h; x[_two]=x[_four]; +else: penpos[_two](1/18[cap_bar,cap_curve],90); + x[_four]=.5[x[_zero],w-1.5u]+.5u; + y[_one]l=y[_two]l-.35cap_bar=.52h-.5cap_bar; + x[_two]=x[_four]-.35u; fi +x[_two]l:=x[_two]l-.5u; x[_four]l:=x[_four]l-.5u; +fill stroke z[_five]e..super_arc.e([_four],[_three]) + & super_arc.e([_three],[_two])..z[_one]e; % lobe +%%% +% yat beaks +pos8(slab,90); pos9(hair,0); +top y8r=vround .85h; x8=x1; rt x9r=hround(w-2.65u); y9=good.y(y8l-2/3beak)-eps; +arm(8,9,m,beak_darkness,2/3beak_jut); % right arm and beak +pos10(hair,180); x10=w-x9-4u; y10=y9; +arm(8,10,p,beak_darkness,-2/3beak_jut); % left arm and beak +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; + +% for shape, see Knizhnay Shrift p 58 Bodoni, Parma 1818 +lhchar "Uppercase Cyrillic letter IZH_ac - IZHITSA acute"; +cyrchar_twice(IZH_ac,13u#,cap_height#,0); +if is_small_cap: getcharcode(izh_ac); fi +italcorr cap_height#*slant+.25u#; +adjust_fit(cap_serif_fit#, + if serifs: min(1.5u#,.5u#+(flare#+(cap_stem#-stem#))) %ccL_adj + else:.5u#fi); +% upper_izh; +numeric left_stem,right_stem,outer_jut,alpha; +left_stem=cap_stem-stem_corr; +right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +outer_jut=.75cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4=h; +x2-x1=x4-x3; x2l+apex_corr=x3l; y2=y3=-apex_o; +alpha=diag_ratio(2,right_stem,y1-y2,x4r-x1l-apex_corr); +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +x6=if serifs:.5[x5,x7r] else:x7r fi; +penpos6(vair,90); y6r=h if serifs:+o fi; +penpos5(alpha*right_stem,0); +y5=min(.9cap_height,bot y6l-.5vair); z5=whatever[z3,z4]; +x7r=hround(r-.5u); penpos7(hair,0); +y7=h-vround max(.05fig_height+.5flare,.1fig_height-.5flare)+o; z8r=z7r; +penpos8(flare,0); if serifs: cyrbulb(6,7,8); fi +if y0>cap_notch_cut: y0:=cap_notch_cut; + fill z0+.5right{up}...{z4-z3}z5l...{right} + if serifs: z6r--z6l + else: + (.5[x4,x4r],y6r)--(fine.lft x6r,y6r)..(x6r,fine.bot y6r)-- + (x6l,fine.top y6l)..(fine.lft x6l,y6l) fi + {left} + ....z5r{z3-z4}--diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0+.5left--cycle; % left and right diagonals +else: fill z0--z5l{z4-z3}...{right}z6r--z6l{left}...{z3-z4}z5r + --diag_end(4r,3r,1,1,2l,1l) + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals +if serifs: numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); + if rt x1'r+cap_jut+.5u+1<=x4l-cap_jut: inner_jut=cap_jut; + else: rt x1'r+inner_jut+.5u+1=x4l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); fi % left serif +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(0,1,2,3,4); endchar; + +iff not specific:% +lhchar "Uppercase Cyrillic letter B_YUS_ac - BIG YUS acute (`roman')"; +cyrchar_twice(B_YUS_ac,18u#,cap_height#,0); +if is_small_cap: getcharcode(b_yus_ac); fi +if odd(fudged.cap_stem-w): change_width; fi % symmetric & all three equal +adjust_fit(cap_serif_fit#,cap_serif_fit#); +% upperr_yus; +% top_Yus; +% top_Yus; +numeric stem[]; +stem1=fudged.cap_stem if hefty:-3stem_corr fi; +stem2=min(stem1,cap_hair if hefty:-2stem_corr fi); +penpos1(stem1,0); penpos2(stem2,0); penpos3(stem1,0); penpos4(stem2,0); +x1l=w-x2r=.2w; y1=h; y2=y1; y3=y4=.52h; +x3l=hround(.5w-.5stem1); x3r=x4r; +z0'=whatever[z4l,z2l]=whatever[z1r,z3r]; +if hefty: + numeric lower_notch; lower_notch=y3+cap_notch_cut; + fill z3l--diag_end(3l,1l,1,1,1r,3r){z3r-z1r} + if y0'<=lower_notch: ..{z3r-z1r}z0'{z2l-z4l}.. + else: ...{down}(x0'+.5,lower_notch)--(x0'-.5,lower_notch){up}... fi + {z2l-z4l}diag_end(4l,2l,1,1,2r,4r)--z4r--cycle; %v +else: + fill z3l--diag_end(3l,1l,1,1,1r,3r)--z0'-- + diag_end(4l,2l,1,1,2r,4r)--z4r--cycle; fi %v +penpos5(stem1,0); x5=x3; y5=0; +fill z3l--diag_end(3l,5l,1,1,5r,3r)--z3r--cycle; %middle stem +z6=whatever[z4,z2]; z7=whatever[z1,z3]; y6=y7=good.y(y1-slab); +fill z1--z7--z6--z2--cycle; % upper bar +% Yus_rbowl; +pickup tiny.nib; numeric stem[],alpha[],right_jut,middle_weight; +right_jut=.6cap_jut; middle_weight=cap_bar; +penpos10(middle_weight,90); +y10r=y3+.5min(cap_bar,cap_notch_cut); x10=x3; y9=y12=.8y10; +rt x8r=w-lft x11l=hround(r-letter_fit-.3u-right_jut); bot y8=bot y11=y5; +stem2=max(tiny.breadth,fudged.cap_stem-3stem_corr); +alpha2=diag_ratio(1,.5(stem2-tiny),h-y8,x8r-x3); +penpos8(alpha2*(stem2-tiny),0); penpos11(alpha2*(stem2-tiny),0); +forsuffixes $=l,r: y8'$=0; y11'$=0; endfor +z8'r=z8r+penoffset (x3,h)-z8 of currentpen+whatever*((x3,h)-z8); +z8'l=z8l+penoffset z8-(x3,h) of currentpen+whatever*((x3,h)-z8); +z11'r=z11r+penoffset (x3,h)-z11 of currentpen+whatever*((x3,h)-z11); +z11'l=z11l+penoffset z11-(x3,h) of currentpen+whatever*((x3,h)-z11); +z8'=.5[z8'l,z8'r]; z11'=.5[z11'l,z11'r]; +z9=z8'+whatever*((x3,h)-z8); z12=z11'+whatever*((x3,h)-z11); +penpos9(cap_stem-2stem_corr,0); penpos12(cap_stem-2stem_corr,0); +fill z10l{right}...{z8'l-z9l}z9l--diag_end(9l,8'l,.5,1,8'r,9r) + --z9r{z9r-z8'r}...{left}z10r--cycle; % right diagonal + fill z10r{left}...{z11'l-z12l}z12l--diag_end(12l,11'l,1,.5,11'r,12r) + --z12r{z12r-z11'r}...{right}z10l--cycle; % left diagonal +if serifs: numeric inner_jut; prime_points_inside(5,3); + if rt x5r+cap_jut+.5u+1<=lft x8l-cap_jut: inner_jut=cap_jut; + else: rt x5r+cap_jut+.5u+1=lft x8l-inner_jut; fi + dish_serif(11,12,a,1/3,right_jut,b,1/2,inner_jut)(dark); % lower diagonal serif + dish_serif(8,9,e,1/2,inner_jut,f,1/3,right_jut)(dark); % lower diagonal serif + dish_serif(5',3,c,1/3,.75jut,d,1/3,.75jut); fi % middle serif +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); endchar; + +lhchar "Uppercase Cyrillic letter L_YUS_ac - LITTLE YUS acute"; +cyrchar_twice(L_YUS_ac,13u#+2cap_stem#,cap_height#,0); +if is_small_cap: getcharcode(l_yus_ac); fi +adjust_fit(cap_serif_fit#,cap_serif_fit#); +% upper_amod; +numeric left_stem,right_stem,outer_jut,alpha; outer_jut=.8cap_jut; +x1l=w-x4r=l+letter_fit+outer_jut+.5u; +% +right_stem=cap_stem-stem_corr; +left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem); pickup tiny.nib; +y1=y4=0; x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=h+apex_o+apex_oo; +alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr); +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0<h-cap_notch_cut: y0:=h-cap_notch_cut; + fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r) + --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{up}z0+.5left--cycle; % left and right diagonals +else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l) + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals +penpos5(whatever,angle(z2-z1)); z5=whatever[z1r,z2r]; +penpos6(whatever,angle(z3-z4)); z6=whatever[z3l,z4l]; y6=y5; +if hefty: y5r else: y5 fi =.5y0; +y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line +pickup tiny.nib; +x7=.5[x5,x6]; top y7=y5; x8=x7; bot y8=0; +pos7(max(currentbreadth+eps,.5[cap_band,cap_stem]),0); +pos8(max(currentbreadth+eps,.5[cap_band,cap_stem]),0); +filldraw stroke z8e--z7e; +if serifs: pickup tiny.nib; numeric inner_jut; + prime_points_inside(1,2); prime_points_inside(4,3); + if rt x1'r+.7cap_jut+.5u+1<=lft x8l-.7cap_jut: inner_jut=.7cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x8l-inner_jut; fi + dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark); % left serif + dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); % right serif + dish_serif(8,7,e,1/3,inner_jut,f,1/3,inner_jut); fi % middle serif +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +lhchar "Uppercase Cyrillic letter IL_YUS_ac - IOT LITTLE YUS acute"; +cyrchar_twice(IL_YUS_ac,13u#+2cap_stem#,cap_height#,0); +if is_small_cap: getcharcode(il_yus_ac); fi +adjust_fit(if monospace: 6.5u# else: + max(5u#+.5cap_stem#,6u#)+cap_serif_fit# fi, %Ipart_adj + cap_serif_fit#); +% upper_amod;iot +numeric left_stem,right_stem,outer_jut,alpha; outer_jut=.8cap_jut; +x1l=w-x4r=outer_jut+.5u; %!!! +% +right_stem=cap_stem-stem_corr; +left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem); pickup tiny.nib; +y1=y4=0; x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=h+apex_o+apex_oo; +alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr); +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0<h-cap_notch_cut: y0:=h-cap_notch_cut; + fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r) + --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{up}z0+.5left--cycle; % left and right diagonals +else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l) + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals +penpos5(whatever,angle(z2-z1)); z5=whatever[z1r,z2r]; +penpos6(whatever,angle(z3-z4)); z6=whatever[z3l,z4l]; y6=y5; +if hefty: y5r else: y5 fi =.5y0; +y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line +pickup tiny.nib; +x7=.5[x5,x6]; top y7=y5; x8=x7; bot y8=0; +pos7(max(currentbreadth+eps,.5[cap_band,cap_stem]),0); +pos8(max(currentbreadth+eps,.5[cap_band,cap_stem]),0); +filldraw stroke z8e--z7e; +if serifs: pickup tiny.nib; numeric inner_jut; + prime_points_inside(1,2); prime_points_inside(4,3); + if rt x1'r+.7cap_jut+.5u+1<=lft x8l-.7cap_jut: inner_jut=.7cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x8l-inner_jut; fi + dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark); % left serif + dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); % right serif + dish_serif(8,7,e,1/3,inner_jut,f,1/3,inner_jut); fi % middle serif +%%%%% +%I_part(9); +_zero:=6; +_one:=9; _two:=10; _three:=11; _four:=12; +% +pickup tiny.nib; pos[_one](cap_stem,0); pos[_two](cap_stem,0);%pos +lft x[_one]l=lft x[_two]l= + l+letter_fit+if monospace:-.35u else: cap_serif_fit fi + +hround max(2u,3u-.5cap_stem); +top y[_one]=h; bot y[_two]=0; +filldraw stroke z[_one]e--z[_two]e; % stem +x[_three]=x[_one]; y[_three]=y[_zero]; +x[_four]=x[_zero]; y[_four]=y[_three]; +pos[_three](cap_bar,90); pos[_four](cap_bar,90); +filldraw stroke z[_three]e--z[_four]e; % bar +if serifs: dish_serif([_one],[_two],s,1/3,cap_jut,t,1/3,cap_jut); + dish_serif([_two],[_one],u,1/3,cap_jut,v,1/3,cap_jut); fi +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(0,1,2,3,4,5,6,7,8, 9,10,11,12); endchar; + +iff not specific:% +lhchar "Uppercase Cyrillic letter IB_YUS_ac - IOT BIG YUS acute"; +cyrchar_twice(IB_YUS_ac,18u#,cap_height#,0); +if is_small_cap: getcharcode(ib_yus_ac); fi +adjust_fit(if monospace: 6.5u# else: + max(5u#+.5cap_stem#,6u#)+cap_serif_fit# fi, %Ipart_adj + cap_serif_fit#); +if odd(fudged.cap_stem-w): change_width; fi % symmetric & all three equal +% upperr_yus; +% top_Yus; +numeric stem[]; +stem1=fudged.cap_stem if hefty:-3stem_corr fi; +stem2=min(stem1,cap_hair if hefty:-2stem_corr fi); +penpos1(stem1,0); penpos2(stem2,0); penpos3(stem1,0); penpos4(stem2,0); +x1l=w-x2r=.2w; y1=h; y2=y1; y3=y4=.52h; +x3l=hround(.5w-.5stem1); x3r=x4r; +z0'=whatever[z4l,z2l]=whatever[z1r,z3r]; +if hefty: + numeric lower_notch; lower_notch=y3+cap_notch_cut; + fill z3l--diag_end(3l,1l,1,1,1r,3r){z3r-z1r} + if y0'<=lower_notch: ..{z3r-z1r}z0'{z2l-z4l}.. + else: ...{down}(x0'+.5,lower_notch)--(x0'-.5,lower_notch){up}... fi + {z2l-z4l}diag_end(4l,2l,1,1,2r,4r)--z4r--cycle; %v +else: + fill z3l--diag_end(3l,1l,1,1,1r,3r)--z0'-- + diag_end(4l,2l,1,1,2r,4r)--z4r--cycle; fi %v +penpos5(stem1,0); x5=x3; y5=0; +fill z3l--diag_end(3l,5l,1,1,5r,3r)--z3r--cycle; %middle stem +z6=whatever[z4,z2]; z7=whatever[z1,z3]; y6=y7=good.y(y1-slab); +fill z1--z7--z6--z2--cycle; % upper bar +% Yus_rbowl; +pickup tiny.nib; numeric stem[],alpha[],right_jut,middle_weight; +right_jut=.6cap_jut; middle_weight=cap_bar; +penpos10(middle_weight,90); +y10r=y3+.5min(cap_bar,cap_notch_cut); x10=x3; y9=y12=.8y10; +rt x8r=w-lft x11l=hround(r-letter_fit-.3u-right_jut); bot y8=bot y11=y5; +stem2=max(tiny.breadth,fudged.cap_stem-3stem_corr); +alpha2=diag_ratio(1,.5(stem2-tiny),h-y8,x8r-x3); +penpos8(alpha2*(stem2-tiny),0); penpos11(alpha2*(stem2-tiny),0); +forsuffixes $=l,r: y8'$=0; y11'$=0; endfor +z8'r=z8r+penoffset (x3,h)-z8 of currentpen+whatever*((x3,h)-z8); +z8'l=z8l+penoffset z8-(x3,h) of currentpen+whatever*((x3,h)-z8); +z11'r=z11r+penoffset (x3,h)-z11 of currentpen+whatever*((x3,h)-z11); +z11'l=z11l+penoffset z11-(x3,h) of currentpen+whatever*((x3,h)-z11); +z8'=.5[z8'l,z8'r]; z11'=.5[z11'l,z11'r]; +z9=z8'+whatever*((x3,h)-z8); z12=z11'+whatever*((x3,h)-z11); +penpos9(cap_stem-2stem_corr,0); penpos12(cap_stem-2stem_corr,0); +fill z10l{right}...{z8'l-z9l}z9l--diag_end(9l,8'l,.5,1,8'r,9r) + --z9r{z9r-z8'r}...{left}z10r--cycle; % right diagonal + fill z10r{left}...{z11'l-z12l}z12l--diag_end(12l,11'l,1,.5,11'r,12r) + --z12r{z12r-z11'r}...{right}z10l--cycle; % left diagonal +if serifs: numeric inner_jut; prime_points_inside(5,3); + if rt x5r+cap_jut+.5u+1<=lft x8l-cap_jut: inner_jut=cap_jut; + else: rt x5r+cap_jut+.5u+1=lft x8l-inner_jut; fi + dish_serif(11,12,a,1/3,right_jut,b,1/2,inner_jut)(dark); % lower diagonal serif + dish_serif(8,9,e,1/2,inner_jut,f,1/3,right_jut)(dark); % lower diagonal serif + dish_serif(5',3,c,1/3,.75jut,d,1/3,.75jut); fi % middle serif +%%%%% +%I_part(13); +_zero:=10; +_one:=13; _two:=14; _three:=15; _four:=16; +% +pickup tiny.nib; pos[_one](cap_stem,0); pos[_two](cap_stem,0);%pos +lft x[_one]l=lft x[_two]l= + l+letter_fit+if monospace:-.35u else: cap_serif_fit fi + +hround max(2u,3u-.5cap_stem); +top y[_one]=h; bot y[_two]=0; +filldraw stroke z[_one]e--z[_two]e; % stem +x[_three]=x[_one]; y[_three]=y[_zero]; +x[_four]=x[_zero]; y[_four]=y[_three]; +pos[_three](cap_bar,90); pos[_four](cap_bar,90); +filldraw stroke z[_three]e--z[_four]e; % bar +if serifs: dish_serif([_one],[_two],s,1/3,cap_jut,t,1/3,cap_jut); + dish_serif([_two],[_one],u,1/3,cap_jut,v,1/3,cap_jut); fi +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, 16,17,18,19);endchar; + +iff serifs:% +lhchar "Uppercase Cyrillic letter I_E_ac - IOT E acute"; +cyrchar_twice(I_E_ac,13u#,cap_height#,0); +if is_small_cap: getcharcode(i_e_ac); fi +italcorr cap_height#*slant-.5u#; +adjust_fit(if monospace: 6u# else: + max(4.5u#+.5cap_stem#,5.5u#)+cap_serif_fit# fi,0); +% upper_ukre; +pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90); +pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360); +rt x1r=rt x5r=hround(w-u); lft x3r=(hround u); x2=x4=.55[x3,x1]; +top y2r=h+o; bot y4r=-o; y3=.5h-vair_corr; y3l:=.52h; +bot y1=min(vround .675h,bot y2l-eps); y5=max(good.y .95(h-y1),y4l+eps); +(x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u); +(x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u); +filldraw stroke z1e{x2-x1,10(y2-y1)}...pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull)...{up}z5e; % arc +pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=h+o; +x1r-x1'=2cap_curve-fine; y1'=y1; +path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left}; +numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1')); +filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb +% upukre_bar; +numeric bar[]; y7=y8=y3; +x7=x3l; x8=(min(lft x1l-.5hair,0.85[x3l,x1l])); +if (serifs=true) and (bar#<=.5curve#): + penpos7(cap_bar,90); penpos8(cap_bar,90); + bar2=7/8[cap_bar,fudged.cap_stem-3stem_corr]; penpos9(bar2,45); z9=.575[z7l,z8l]; + fill circ_stroke z8e{-2,-1}..{-2,1}z9e..{-2,-1}z7e; % curve /\/ +else: pickup fine.nib; pos7(cap_bar,90); pos8(cap_bar,90); + filldraw stroke z7e--z8e; fi % bar -- +%%%%% +%I_part(3); +_zero:=3; +_one:=10; _two:=11; _three:=12; _four:=13; +% +pickup tiny.nib; pos[_one](cap_stem,0); pos[_two](cap_stem,0);%pos +lft x[_one]l=lft x[_two]l= + l+letter_fit+if monospace:-.35u else: cap_serif_fit fi + +hround max(2u,3u-.5cap_stem); +top y[_one]=h; bot y[_two]=0; +filldraw stroke z[_one]e--z[_two]e; % stem +x[_three]=x[_one]; y[_three]=y[_zero]; +x[_four]=x[_zero]; y[_four]=y[_three]; +pos[_three](cap_bar,90); pos[_four](cap_bar,90); +filldraw stroke z[_three]e--z[_four]e; % bar +if serifs: dish_serif([_one],[_two],s,1/3,cap_jut,t,1/3,cap_jut); + dish_serif([_two],[_one],u,1/3,cap_jut,v,1/3,cap_jut); fi +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,1',2,3,4,5,6); endchar; + +iff not serifs:% +lhchar "Uppercase Cyrillic letter I_E_ac - IOT E acute"; +cyrchar_twice(I_E_ac,11.5u#,cap_height#,0); +if is_small_cap: getcharcode(i_e_ac); fi +italcorr cap_height#*slant-.5u#; +adjust_fit(if monospace: 6.5u# else: + max(5u#+.5cap_stem#,6u#)+cap_serif_fit# fi, %Ipart_adj + 0); +% uppers_ukre; +pickup fine.nib; pos1(1.2flare,80); pos2(slab,90); +pos3(cap_curve,180); pos4(slab,270); pos5(flare,275); +rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u; +lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u); +top y1r=vround.95h+o; top y2r=h+o; y3=.5h; +bot y4r=-o; bot y5r=vround .08h-o; y5l:=good.y y5l; x5l:=good.x x5l; +filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,right,.8,4); +% uukres_bar; +numeric bar[]; y6=y7=y3; x6=x3l; x7=(min(lft x1l-.5hair,0.85[x3l,x1l])); +pickup fine.nib; +bar1=if is_small_cap:max(fine.breadth+eps,.6[thin_join,vair]) else:cap_bar fi; +pos6(bar1,90); pos7(bar1,90); +filldraw stroke z6e--z7e; % bar -- +%%%%% +%I_part(3); +_zero:=3; +_one:=10; _two:=11; _three:=12; _four:=13; +% +pickup tiny.nib; pos[_one](cap_stem,0); pos[_two](cap_stem,0);%pos +lft x[_one]l=lft x[_two]l= + l+letter_fit+if monospace:-.35u else: cap_serif_fit fi + +hround max(2u,3u-.5cap_stem); +top y[_one]=h; bot y[_two]=0; +filldraw stroke z[_one]e--z[_two]e; % stem +x[_three]=x[_one]; y[_three]=y[_zero]; +x[_four]=x[_zero]; y[_four]=y[_three]; +pos[_three](cap_bar,90); pos[_four](cap_bar,90); +filldraw stroke z[_three]e--z[_four]e; % bar +if serifs: dish_serif([_one],[_two],s,1/3,cap_jut,t,1/3,cap_jut); + dish_serif([_two],[_one],u,1/3,cap_jut,v,1/3,cap_jut); fi +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,1',2,3,4,5,6); endchar; + +% Y-o combination +lhchar "Uppercase Cyrillic letter UK_ac - UK acute"; +cyrchar_twice(UK_ac,13u#,cap_height#,0);%+if serifs:beak#-.5slab# else:slab# fi +italcorr cap_height#*slant+.25u#; %V +if is_small_cap: getcharcode(uk_ac); fi +adjust_fit(cap_serif_fit#,cap_serif_fit#); +% upper_uk; +numeric left_stem,right_stem,outer_jut,dy,alpha; +left_stem=cap_stem-stem_corr; +right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +outer_jut=.75cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.05u; +x2l=x5l=hround(.5w-.5left_stem); x3r=x5r; y1=y4=h; y2=y3=y5=.5h; %.4h; +dy=y1-y2; alpha=((x2l-x1l)++dy)/dy; +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +penpos5(left_stem,0); penpos6(left_stem,0); x5=x6; +y6=.45y5; %0; +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0>y2+cap_notch_cut: y0:=y2+cap_notch_cut; + fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)--z5r + --diag_end(5r,6r,1,1,6l,5l)--z5l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0+.5left--cycle; % diagonals and stem +else: fill z0--diag_end(0,4l,1,1,4r,3r)--z5r + --diag_end(5r,6r,1,1,6l,5l)--z5l + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % diagonals and stem +if serifs: numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(4,3); prime_points_inside(6,5); + if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + 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 + serif(6',5,e,1/3,if serifs:-jut else:.5stem fi); fi % lower serif +% o +penpos11(vair,90); penpos13(vair',-90); +penpos12(curve,180); penpos14(curve,0); +x12r=hround(l+.5u); %outer_jut+ +x14r=w-x12r; x11=x13=.5w; y11r=y5 if not hefty:-vair fi; y13r=-o; +y12=y14=.5y11-vair_corr; y12l:=y14l:=.52y11; +penstroke pulled_super_arc.e(11,12)(.5superpull) + & pulled_super_arc.e(12,13)(.5superpull) + & pulled_super_arc.e(13,14)(.5superpull) + & pulled_super_arc.e(14,11)(.5superpull) & cycle; % bowl +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(0,1,2,22,3,4,5,6,7,8,88,9); endchar; + +lhchar "Uppercase Cyrillic letter Y_ac - straight U acute"; +cyrchar_twice(Y_ac,13u#,cap_height#,0); +if is_small_cap: getcharcode(y_ac); fi +italcorr cap_height#*slant+.45u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); +% upper_y; +numeric left_stem,right_stem,outer_jut,dy,alpha; +left_stem=cap_stem-stem_corr; +right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +outer_jut=.75cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.05u; +x2l=x5l=hround(.5w-.5left_stem); x3r=x5r; y1=y4=h; y2=y3=y5=.4h; +dy=y1-y2; alpha=((x2l-x1l)++dy)/dy; +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +penpos5(left_stem,0); penpos6(left_stem,0); x5=x6; y6=0; +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0>y2+cap_notch_cut: y0:=y2+cap_notch_cut; + fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)--z5r + --diag_end(5r,6r,1,1,6l,5l)--z5l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0+.5left--cycle; % diagonals and stem +else: fill z0--diag_end(0,4l,1,1,4r,3r)--z5r + --diag_end(5r,6r,1,1,6l,5l)--z5l + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % diagonals and stem +if serifs: numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(4,3); prime_points_inside(6,5); + if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + 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 + dish_serif(6',5,e,1/3,cap_jut,f,1/3,cap_jut); fi % lower serif +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(0,1,2,3,4,5,6); endchar; + +lhchar "Uppercase Cyrillic letter AE_ac - AE acute"; +cyrchar_twice(AE_ac,16u#,cap_height#,0); +if is_small_cap: getcharcode(ae_ac); fi +italcorr cap_height#*slant-beak_jut#-.5u#; +adjust_fit(cap_serif_fit#,0); +numeric left_stem,amid_stem,outer_jut,alpha; +amid_stem=max(tiny.breadth,hround .9[mfudged.hair,mfudged.cap_stem]); +pickup tiny.nib; pos1(amid_stem,0); pos2(amid_stem,0); +lft x1l=lft x2l=hround(if monospace or hefty:.55 else:.5 fi\\w-.75u); +top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos3(slab,90); pos4(mfudged.hair,0); +top y3r=h; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps; +arm(3,4,e,beak_darkness,beak_jut); % upper arm and beak +pos5(cap_bar,-90); pos6(mfudged.hair,0); x5=x1; +top y5l=vround(if hefty:.52 else:.48 fi\\[y2,y1]+.5cap_bar); +pos0(cap_bar,90); pos7(mfudged.hair,0); +z0=z5; x6=x7; y6-y5l=y0l-y7; +if serifs and not(monospace and hefty): rt x6r=hround(w-3.65u+.5mfudged.hair); + y6=good.y(y5l+.6beak)+eps; rt x9r=hround(w-.5u); +else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi +arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0); % middle arm and serif +pos8(slab if not serifs:+2stem_corr fi,-90); +pos9(mfudged.hair,0); bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps; +arm(8,9,h,beak_darkness,1.5beak_jut); % lower arm and beak +left_stem=if monospace:fudged.hair else: cap_hair fi if hefty: -3stem_corr fi; +outer_jut=.8cap_jut; x11l=l+letter_fit+outer_jut+.5u; y11=0; +x12=x1l-apex_corr-if monospace:2 fi\\u; y12=h; +alpha=diag_ratio(1,.5left_stem,y12-y11,x12-x11l); +penpos11(alpha*left_stem,0); penpos12(alpha*left_stem,0); +fill diag_end(12l,11l,1,1,11r,12r) + --diag_end(11r,12r,1,1,12l,11l)--cycle; % diagonal +y10=h-slab; z10=whatever[z11,z12]; +fill z10--(x1,y10)--(x1,h)--z12--cycle; % link +penpos13(whatever,angle(z2-z1)); z13=whatever[z11,z12]; +penpos14(cap_band,90); x14=x0; y13l=y14l; y13r=y14r; +if hefty: y14r=.4h; else: y14=y0; fi +penstroke z13e--z14e; % bar line +if serifs: numeric inner_jut; pickup tiny.nib; + prime_points_inside(11,12); + if rt x11'r+cap_jut+.5u+1<=lft x2l-.75cap_jut: inner_jut=cap_jut; + else: rt x11'r+inner_jut+.5u+1=lft x2l-.75inner_jut; fi + dish_serif(11',12,i,1/2,outer_jut,j,.6,inner_jut)(dark); % lower left serif + nodish_serif(1,2,a,1/3,cap_jut+x1l-x12,b,1/3,.5cap_jut); % upper serif + nodish_serif(2,1,c,1/3,.75inner_jut,d,1/3,.5cap_jut); fi % lower middle serif +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14); endchar; + +lhchar "Uppercase Cyrillic letter SCHWA_ac - SCHWA acute"; +cyrchar_twice(SCHWA_ac,if serifs:13u# else:12u# fi,cap_height#,0); +if is_small_cap: getcharcode(schwa_ac); fi +italcorr .7cap_height#*slant-.5u#; %O +adjust_fit(0,0); +% upper_schwa;`large e' shape (ecfonts) +numeric left_curve,right_curve; +left_curve=right_curve+3stem_corr=cap_curve if not serifs: -1.5stem_corr fi; +if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; +pos1(right_curve,-180); pos2(vair',-90); pos3(left_curve,0); +y1=.48h; bot y2r=-o; y0l=top y1; +if serifs: x2-.25u=x4=.5w-.5u; else: x2=x4=.5w-.25u; fi +lft x1r=hround max(.5u,u-.5right_curve); +rt x3r=w-hround max(.75u,1.5u-.5left_curve); %lower_e+.25u +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; top y4r=h+o; +if serifs: + pos4(cap_band,90); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4); % left bowl, arc, + pickup fine.nib; pos4'(cap_band,90); z4'=z4; + lft x5r=max(hround u,lft x1r+1/3u+eps); + pos5(cap_hair,180); bot y5=min(vround .675h,bot y4l-eps); + filldraw stroke z4'e{left}...{x5-x4,10(y5-y4)}z5e; % and terminal + pos6(.3[fine.breadth,cap_hair],180); x6r=x5r; top y6=h+o; + x5'-x5r=2cap_curve-fine; y5'=y5; + path upper_arc; upper_arc=z5{x4-x5,10(y4-y5)}..{right}z4; + numeric t; t=xpart(upper_arc intersectiontimes (z6l--z5')); + filldraw z5r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % upper serif +else: + pos4(slab,90); + {{interim superness:=min(1.03superness,more_super); + filldraw stroke super_arc.e(2,3)}}; + filldraw stroke super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(slab,90); z4=z4'; + pos5(1.2flare,100); lft x5r=lft x1r+u; top y5r=vround .95h+o; + filldraw stroke rterm.e(4',5,left,.75,20); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l-7/8[thin_join,vair']; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: x0$=xpart(((w,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +%%%%% +% the accent +hpos_corr=-u; put_accent(cyrcaph); repeat_once; +penlabels(0,1,2,3,4,4',5); endchar; + +lhchar "Uppercase Cyrillic letter OTLD_ac - O tilded acute"; +cyrchar_twice(OTLD_ac,14u#-width_adj#,cap_height#,0); +if is_small_cap: getcharcode(otld_ac); fi +italcorr .7cap_height#*slant-.5u#; +adjust_fit(0,0); +% upper_o;tld +penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90); +penpos2(cap_curve,180); penpos4(cap_curve,0); +if monospace: x2r=hround 1.5u; + interim superness:=sqrt superness; % make |"O"|, not |"0"| +else: x2r=hround u; fi +x4r=w-x2r; x1=x3=.5w; y1r=h+o; y3r=-o; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_super_arc.e(1,2)(.5superpull) + & pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull) + & pulled_super_arc.e(4,1)(.5superpull) & cycle; % bowl +%%%%% +% outilde; +z5=z2l; z6=z4l; penpos5(cap_bar,90); penpos6(cap_bar,90); +if (serifs) and (bar#<=.5curve#): numeric bar[]; + bar2=2/3[cap_bar,fudged.cap_stem]; penpos7(bar2,45); z7=.5[z5,z6]; + fill stroke z5e{2,1}..{2,-1}z7e..{2,1}z6e; +else: fill stroke z5e--z6e; fi +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,2,3,4); endchar; + +lhchar "Uppercase Cyrillic letter DJE_ac - Soft DJ acute"; +cyrchar_twice(DJE_ac,13u#-width_adj#,cap_height#,0); +if is_small_cap: getcharcode(dje_ac); fi +italcorr cap_height#*slant-beak_jut#-.25u#; +adjust_fit(0,2.5u#); if odd(cap_stem-w): change_width; fi % symmetric +% upper_dje; +% h_stroke_part+bulb +pickup tiny.nib; lft x1l=lft x2l=hround(.5w-.5cap_stem); +bot y2=0; pos2(cap_stem,0); +% upperh_stroke +penpos2''(min(rt x2r-lft x2l,thin_join)-fine,180); +pickup fine.nib; pos3(curve,0); pos4(vair,90); +y3=1/3[bar_height,x_height]; +if serifs: x3=r-letter_fit-hround max(1.5u,2.5u-.5curve); %.5u right + else: rt x3r=r-letter_fit-hround.65u; fi +rt x2''l=tiny.rt x2r; y2''=1/8[bar_height,x_height]; +x4=.5[rt x2''l,rt x3r]; top y4r=x_height+o; +(x,y4l)=whatever[z4r,z2''l]; x4l:=x; +filldraw stroke z2''e{up}...{right}z4e + & {{interim superness:=hein_super; super_arc.e(4,3)}}; % arch +%%%%% +% tail +pos5(curve,0); pos6(vair,-90); +x5=x3; y5=2/3[bot y6r,y3]; bot y6r=-o; +if serifs: numeric bulb_diam; bulb_diam=flare+(cap_stem-stem); + pos7(hair,-180); pos7'(bulb_diam,-180); + lft x7r=min(rt x2r+.5cap_jut+.5u,lft x3r-bulb_diam-eps); + x6=max(lft x7r+.5bulb_diam,.4[lft x7r,rt x5r]); + y7=1/6cap_height-max(0,flare-stem-2vair_corr); z7r=z7'r; + cyrbulb(6,7,7'); % bulb +else: pos7(flare,-105); + x6=.4[lft x7r,rt x5r]; + lft x7r=rt x2r+1.25u+eps; bot y7r=0; + filldraw stroke term.e(6,7,left,.8,4); fi +filldraw stroke z3e--z5e{down}...pulled_arc.e(5,6); +% T part +pickup tiny.nib; pos1(cap_stem,0); top y1=h; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos8(slab,90); pos9(hair,0); +top y8r=h; x8=x1; rt x9r=hround(w-.65u); y9=good.y(y8l-.7beak)-eps; +arm(8,9,e,beak_darkness,.7beak_jut); % right arm and beak +pos10(hair,180); x10=w-x9; y10=good.y(y8l-beak)-eps; +arm(8,10,f,beak_darkness,-beak_jut); % left arm and beak +if serifs: dish_serif(2,1,c,1/3,1.414cap_jut,d,1/3,.5cap_jut); % lower serif + nodish_serif(1,2,aa,1/3,.5cap_jut,b,1/3,.5cap_jut); fi % upper bracketing +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,2,3,4,5,6); endchar; + +% T width Tail part +lhchar "Uppercase Cyrillic letter VDJE_ac - Variant Soft DJ acute"; +cyrchar_twice(VDJE_ac,13u#-width_adj#,cap_height#,desc_depth#); +if is_small_cap: getcharcode(dje_ac); fi +italcorr cap_height#*slant-beak_jut#-.25u#; +adjust_fit(0,2.5u#); if odd(cap_stem-w): change_width; fi % symmetric +% upper_dje; +full_h:=h; h:=x_height; +% h_stroke_part+bulb +pickup tiny.nib; lft x1l=lft x2l=hround(.5w-.5cap_stem); +bot y2=0; pos2(cap_stem,0); +% upperh_stroke +penpos2''(min(rt x2r-lft x2l,thin_join)-fine,180); +pickup fine.nib; pos3(curve,0); pos4(vair,90); +y3=1/3[bar_height,x_height]; +if serifs: x3=r-letter_fit-hround max(1.5u,2.5u-.5curve); %.5u right + else: rt x3r=r-letter_fit-hround.65u; fi +rt x2''l=tiny.rt x2r; y2''=1/8[bar_height,x_height]; +x4=.5[rt x2''l,rt x3r]; top y4r=x_height+o; +(x,y4l)=whatever[z4r,z2''l]; x4l:=x; +filldraw stroke z2''e{up}...{right}z4e + & {{interim superness:=hein_super; super_arc.e(4,3)}}; % arch +%%%%% +% tail +pos5(curve,0); pos6(vair,-90); +x5=x3; y5=2/3[bot y6r,y3]; bot y6r=-o; +if serifs: numeric bulb_diam; bulb_diam=flare+(cap_stem-stem); + pos7(hair,-180); pos7'(bulb_diam,-180); + lft x7r=min(rt x2r+.5cap_jut+.5u,lft x3r-bulb_diam-eps); + x6=max(lft x7r+.5bulb_diam,.4[lft x7r,rt x5r]); + y7=1/6cap_height-max(0,flare-stem-2vair_corr); z7r=z7'r; + cyrbulb(6,7,7'); % bulb +else: pos7(flare,-105); + x6=.4[lft x7r,rt x5r]; + lft x7r=rt x2r+1.25u+eps; bot y7r=0; + filldraw stroke term.e(6,7,left,.8,4); fi +filldraw stroke z3e--z5e{down}...pulled_arc.e(5,6); +% T part +h:=full_h; pickup tiny.nib; pos1(cap_stem,0); top y1=h; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos8(slab,90); pos9(hair,0); +top y8r=h; x8=x1; rt x9r=hround(w-.65u); y9=good.y(y8l-.7beak)-eps; +arm(8,9,e,beak_darkness,.7beak_jut); % right arm and beak +pos10(hair,180); x10=w-x9; y10=good.y(y8l-beak)-eps; +arm(8,10,f,beak_darkness,-beak_jut); % left arm and beak +if serifs: dish_serif(2,1,c,1/3,1.414cap_jut,d,1/3,.5cap_jut); % lower serif + nodish_serif(1,2,aa,1/3,.5cap_jut,b,1/3,.5cap_jut); fi % upper bracketing +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; + +endinput; +%end of file diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgunici.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgunici.mf new file mode 100644 index 00000000000..21fc1ffe47d --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgunici.mf @@ -0,0 +1,506 @@ +% +% lgunici.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Italic non-T2 Cyrillic letters included in Unicode +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames and their codes in Unicode +% +% 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 "e9 O tilded 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,4); % like |version_check| in ec + +lhchar "Italic Cyrillic letter kje (k acute)"; +cyrchar_twice(kje,9u#,x_height#,0); %+acc_height# +italcorr x_height#*slant; %k +adjust_fit(0,0); full_h:=h; h:=x_height; +% ital_k; +pickup fine.nib; x2-.5stem=hround(2.5u-.5stem); +%ihalfstem; +if monospace: pos2(stem,0); top y2=h; +else: x0=0; hook_in(0,1,2); fi % opening hook +pos2'(stem,0); pos11(stem,0); z2'=z2; x11=x2'; y11-.5stem=-oo; +filldraw circ_stroke z11e--z2'e; % left stem +pos3(vair,90); x3=x11; y3=bar_height; +pos4(vair,90); x4=w-2u; top y4r=x_height+oo; +filldraw stroke z3e{right}..{right}z4e; % upper diagonal +pos5(hair,0); pos6(flare,0); +rt x5r=hround(w-.5u); y5+.5flare=vround(bot y4l-.03x_height); +bulb(4,5,6); % bulb +pos7(stem,0); pos8(vair,90); pos9(hair,180); +x9+.5hair=hround(w+.5hair-eps); y9=1/3x_height; +lft x7l=hround(w-2.75u-.5stem); y7=1/2y3; x8=w-1.2u; bot y8l=-oo; +filldraw stroke z3e{right}...z7e{down} + ...z8e{right}...{up}z9e; % lower diagonal +%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Italic Cyrillic letter gje (g acute)"; +cyrchar_twice(gje,6.25u#,x_height#,0); %+acc_height# +italcorr max(1/3x_height#*slant+.5hair#+.5u#,h#*slant+.5flare#-2u#); %e +adjust_fit(if monospace:u#,u# else: 0.5u#,0.5u# fi); +full_h:=h; h:=x_height; +% ital_g; +pickup fine.nib; x0l=hround eps; x0'=x0; x5r=good.x(w-eps); x6=x5; +x2=.5w+2u; x3=.5w-2u; x1=x4=x7=.5[x3l,x2r]; y7=.5[y2,y3]; +h-y0=y5; top y5l=vround .5bar_height; y6=bar_height; y0'=h-bar_height; +h-y2=y3=1/4x_height; h-y1=y4; bot y4r=-oo; +pos0(hair,320); pos1(vair,270); pos2(stem,180); +pos3(stem,180); pos4(vair,270); pos5(hair,320); pos7(stem,135); +path p.l,p.r; p.l=z0'..z0..z1{right}; p.r=z4{right}..z5..z6; +filldraw stroke z0e{direction 1 of p.l} + ...z1e{right}...{down}z2e...z7e...z3e{down}...z4e{right} + ...{direction 1 of p.r}z5e; % main stroke +%%% +% the accent +hpos_corr=-u; put_accent; repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Italic Cyrillic letter zh_brv - zhe breve"; +cyrchar(zh_brv,20u#,x_height#+acc_height#,0); +italcorr if math_fitting:1/3x_height#*slant else:x_height#*slant-u# fi; %c +adjust_fit(-.5u#,0 if monospace:-.5u# fi); %zh_adj +full_h:=h; h:=x_height; +% ital_zh; +if odd(fudged.stem-w): change_width; fi % symmetric & all three equal - AS +pickup fine.nib; pos1(flare,0); pos2(hair,0); pos3(vair,90); +pos4(curve,180); pos5(vair,270); pos6(hair,320); +if monospace: x3=x5=.5[lft x4r,rt x2r]-eps; rt x2r=good.x (w+eps); +else: x3=x5=good.x(w-3.5u); rt x2r=hround max(rt x3,w-u)+eps; fi +lft x4r=hround max(.5w+.5stem+.5,w-6.5u-.5curve+eps); x6r=good.x(w+eps); x0=x6; +y2=.5[bar_height,h]; top y3r=h+oo; bulb(3,2,1); % bulb +bot y5r=-oo; y4=.5[y3,y5]; top y6l=vround .5bar_height; y0=bar_height; +path p; p=z5{right}..z6..z0; +filldraw stroke pulled_arc.e(3,4) + & pulled_arc.e(4,5)...{direction 1 of p}z6e; % right arc +pos12(flare,180); pos11(hair,180); pos10(vair,270); +pos9(curve,360); pos8(vair,450); pos7(hair,500); +if monospace: lft x11r=good.x (-eps); x10=x8=.5[lft x11r,rt x9r]+eps; +else: x10=x8=3.5u; lft x11r=hround min(lft x10,u)-eps; fi +rt x9r=hround min(.5w-.5stem-.5,6.5u+.5curve-eps); +x7r=good.x (if not monospace:rt x11r-.67u fi-eps); x0'=x7; +y11=h-.5[bar_height,h]; bot y10r=-oo; bulb(10,11,12); % bulb +top y8r=h+oo; y9=.5[y10,y8]; bot y7l=vround (h-.65bar_height); y0'=bar_height; +path p_; p_=z8{left}..z7..z0; +filldraw stroke pulled_arc.e(10,9) + & pulled_arc.e(9,8)...{direction 1 of p_}z7e; % left arc +y13=bar_height; x13=x4; y14=y13; x14=w-x4; x15=x16=.5w; +y15+.5stem=h+oo; bot y16=0; +pos13(vair,90); pos14(vair,90); pos15(fudged.stem,0); pos16(fudged.stem,0); +filldraw stroke z13e--z14e; filldraw circ_stroke z15e--z16e; % stem & cross +%%% +% the accent +h:=full_h; lowercase_breve(.5w,0, 17,18,19); +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 17,18,19); endchar; + +lhchar "Italic Cyrillic letter a_brv - a breve"; +cyrchar(a_brv,9u#,x_height#+acc_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(if monospace:0 else:-.35u#fi,0); %Cyrillic adj +full_h:=h; h:=x_height; +% ital_a; +pickup fine.nib; +pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); +pos4(stem,0); x4=x0; y4+.5stem=vround .98h; +x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); +rt x4r=hround(w-2.5u+.5stem); +top y1r=h+oo; bot y3r=-oo; y0=y2=.5[y1,y3]; +filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2) + & pulled_arc.e(2,3) & super_arc.e(3,0); % bowl +x5=x4; x7=w; hook_out(5,6,7); % closing hook +filldraw circ_stroke z4e--z5e; % stem +% the accent +h:=full_h; lowercase_breve(.5w,0, 8,9,10); %x1r y1r-h +penlabels(0,1,2,3,4,5,6,7, 8,9,10); endchar; + +lhchar "Italic Cyrillic letter a_uml - a umlaut"; +cyrchar(a_uml,9u#,lc_trema_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(if monospace:0 else:-.35u#fi,0); %Cyrillic adj +full_h:=h; h:=x_height; +% ital_a; +pickup fine.nib; +pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); +pos4(stem,0); x4=x0; y4+.5stem=vround .98h; +x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); +rt x4r=hround(w-2.5u+.5stem); +top y1r=h+oo; bot y3r=-oo; y0=y2=.5[y1,y3]; +filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2) + & pulled_arc.e(2,3) & super_arc.e(3,0); % bowl +x5=x4; x7=w; hook_out(5,6,7); % closing hook +filldraw circ_stroke z4e--z5e; % stem +% the accent +h:=full_h; lowercase_umlaut(0,0, 8,9,10,11); +penlabels(0,1,2,3,4,5,6,7, 8,9,10,11); endchar; + +lhchar "Italic Cyrillic letter e_brv - e breve"; +cyrchar(e_brv,8u#,x_height#+acc_height#,0); +italcorr max(1/3x_height#*slant,x_height#*slant+.5(.2[hair#,stem#])-u#); %e +adjust_fit(if monospace:0 else:-.35u#fi,0); full_h:=h; h:=x_height; +% ital_e; +pickup fine.nib; %numeric heavy_hair; heavy_hair=hround .2[hair,stem];%defined in lxpseudo +pos0(vair,-90); pos1(heavy_hair,0); pos2(vair,90); +pos3(curve,180); pos4(vair,270); pos5(hair,320); +x0=rt x3l; rt x1r=hround(w-1.5u+.5heavy_hair); x2=x4=.5(w+u); +lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5; +y0=y3=y6=bar_height; y1=.5[y0,y2]; top y2r=h+oo; bot y4r=-oo; +top y5l=vround .5bar_height; path p; p=z4{right}..z5..z6; +filldraw stroke z0e{right}...z1e{up}...pulled_arc.e(2,3) + & pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc +% the accent +h:=full_h; lowercase_breve(.5w,0, 7,8,9); +penlabels(1,2,3,4,5,6, 7,8,9); endchar; + +lhchar "Italic Cyrillic letter schwa_uml - schwa umlaut"; +cyrchar(schwa_uml,8u#,lc_trema_height#,0); +italcorr max(1/3x_height#*slant,x_height#*slant+.5(.2[hair#,stem#])-u#); +adjust_fit(0,if monospace:0 else:-.35u#fi); full_h:=h; h:=x_height; +% ital_schwa; +pickup fine.nib; %numeric heavy_hair; heavy_hair=hround .2[hair,stem];%defined in lxpseudo +pos0(vair,90); pos1(heavy_hair,180); pos2(vair,-90); +pos3(curve,0); pos4(vair,90); pos5(hair,140); +x0=lft x3l; lft x1r=hround(1u-.5heavy_hair); x2+.5u=x4=.5(w-u); +rt x3r=hround(w-1.5u+.5curve); +lft x5r=good.x (lft x1r+eps); x6=x5; +y0=y3=y6=bar_height; y1=.5[y0,y2]; bot y2r=-oo; top y4r=h+oo; +top y5r=vround .5[bar_height,x_height]; path p; p=z4{left}..z5..z6; +filldraw stroke z0e{left}...z1e{down}...pulled_arc.e(2,3) + & pulled_arc.e(3,4)...{direction 1 of p}z5e; % 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 "Italic Cyrillic letter zh_uml - zhe umlaut"; +cyrchar(zh_uml,20u#,lc_trema_height#,0); +italcorr if math_fitting:1/3x_height#*slant else:x_height#*slant-u# fi; %c +adjust_fit(-.5u#,0 if monospace:-.5u# fi); %zh_adj +h:=x_height; +% ital_zh; +if odd(fudged.stem-w): change_width; fi % symmetric & all three equal - AS +pickup fine.nib; pos1(flare,0); pos2(hair,0); pos3(vair,90); +pos4(curve,180); pos5(vair,270); pos6(hair,320); +if monospace: x3=x5=.5[lft x4r,rt x2r]-eps; rt x2r=good.x (w+eps); +else: x3=x5=good.x(w-3.5u); rt x2r=hround max(rt x3,w-u)+eps; fi +lft x4r=hround max(.5w+.5stem+.5,w-6.5u-.5curve+eps); x6r=good.x(w+eps); x0=x6; +y2=.5[bar_height,h]; top y3r=h+oo; bulb(3,2,1); % bulb +bot y5r=-oo; y4=.5[y3,y5]; top y6l=vround .5bar_height; y0=bar_height; +path p; p=z5{right}..z6..z0; +filldraw stroke pulled_arc.e(3,4) + & pulled_arc.e(4,5)...{direction 1 of p}z6e; % right arc +pos12(flare,180); pos11(hair,180); pos10(vair,270); +pos9(curve,360); pos8(vair,450); pos7(hair,500); +if monospace: lft x11r=good.x (-eps); x10=x8=.5[lft x11r,rt x9r]+eps; +else: x10=x8=3.5u; lft x11r=hround min(lft x10,u)-eps; fi +rt x9r=hround min(.5w-.5stem-.5,6.5u+.5curve-eps); +x7r=good.x (if not monospace:rt x11r-.67u fi-eps); x0'=x7; +y11=h-.5[bar_height,h]; bot y10r=-oo; bulb(10,11,12); % bulb +top y8r=h+oo; y9=.5[y10,y8]; bot y7l=vround (h-.65bar_height); y0'=bar_height; +path p_; p_=z8{left}..z7..z0; +filldraw stroke pulled_arc.e(10,9) + & pulled_arc.e(9,8)...{direction 1 of p_}z7e; % left arc +y13=bar_height; x13=x4; y14=y13; x14=w-x4; x15=x16=.5w; +y15+.5stem=h+oo; bot y16=0; +pos13(vair,90); pos14(vair,90); pos15(fudged.stem,0); pos16(fudged.stem,0); +filldraw stroke z13e--z14e; filldraw circ_stroke z15e--z16e; % stem & cross +%%% +% the accent +h:=full_h; lowercase_umlaut(0,0, 17,18,19,20); +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 17,18,19,20,21); endchar; + +lhchar "Italic Cyrillic letter z_uml - ze umlaut"; +cyrchar(z_uml,8u#,lc_trema_height#,0); +italcorr if math_fitting:1/3x_height#*slant else:x_height#*slant-u# fi; %e +adjust_fit(0,0); full_h:=h; h:=x_height; +% ital_z; +pickup fine.nib; pos0(flare,180); pos1(hair,180); pos2(vair,-90); +pos7(curve,0); pos8(curve,0); pos4(vair,90); pos5(hair,160); +pos3(vair,90); pos3'(vair,-90); pos9(vair,90); pos9'(vair,-90); +x2=x4=.5(w-u); lft x1r=min(lft x2,hround(.25u))-eps; +lft x5r=good.x x1r+.15u+eps; x6=x5; +y1=.5bar_height; bot y2r=-oo; bulb(2,1,0); % bulb +rt x7r=w-hround(1.5u-.5curve); rt x8r=w-hround(2u-.5curve); +top y4r=h+oo; y7=.5[y2,y3]; y5r=y8=.5[y3,y4]; y6=bar_height; +x3=x2; lft x9=hround min(lft x2-1-eps,rt x0l+1+eps); +y3=y9=bar_height; z9'=z9; z3'=z3; +path p; p=z4{left}..(x5,h-.52bar_height)..z6; +filldraw stroke z9e{right}...pulled_arc.e(3,7) & pulled_arc.e(7,2); % lower arc +filldraw stroke z9'e{right}...pulled_arc.e(3',8) & pulled_arc.e(8,4) + ...{direction 1 of p}z5e; % upper arc +%%% +% the accent +h:=full_h; lowercase_umlaut(0,0, 10,11,12,13); +penlabels(0,1,2,3,4,5,6,7,8,9, 10,11,12,13); endchar; + +lhchar "Italic Cyrillic letter i_bar - i bar (macron)"; +cyrchar(i_bar,10u#,lc_trema_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(0,0); full_h:=h; h:=x_height; +% ital_i; +pickup fine.nib; interim superness:=more_super; +x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +% left skewstem; +if monospace: pos0(vair,90); x0=good.x .5[0,x2]; top y0l=h; y2=2/3h; + pos2(stem,0); filldraw stroke z2e{u,x_height}...{left}z0e; % terminal +else: x0=0; hook_in(0,1,2)(skewed); fi % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); +x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e--z7e; % right stem +% the accent +h:=full_h; +% low_bar(.5w,0, 10,11); +x_move:=.5w; 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 "Italic Cyrillic letter i_uml - i umlaut"; +cyrchar(i_uml,10u#,lc_trema_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(0,0); h:=x_height; +% ital_i; +pickup fine.nib; interim superness:=more_super; +x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +% left skewstem; +if monospace: pos0(vair,90); x0=good.x .5[0,x2]; top y0l=h; y2=2/3h; + pos2(stem,0); filldraw stroke z2e{u,x_height}...{left}z0e; % terminal +else: x0=0; hook_in(0,1,2)(skewed); fi % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); +x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e--z7e; % right stem +% the accent +lowercase_umlaut(0,0, 10,11,12,13); +penlabels(0,1,2,3,4,5,6,7,8,9, 10,11,12,13); endchar; + +lhchar "Italic Cyrillic letter o_uml - o umlaut"; +cyrchar(o_uml,9u#,lc_trema_height#,0); +italcorr .7asc_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; +adjust_fit(0,0); h:=x_height; pickup fine.nib; +pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); +x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2; +top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; +filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl +% the accent +lowercase_umlaut(0,0, 5,6,7,8); +penlabels(1,2,3,4, 5,6,7,8); endchar; + +lhchar "Italic Cyrillic letter otld_uml - o tilded umlaut"; +cyrchar(otld_uml,9u#,lc_trema_height#,0); +italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; +adjust_fit(0,0); full_h:=h; h:=x_height; pickup fine.nib; +% ital_o;tld +pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); +x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2; +top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; +filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl +%%% +% oltilde; +if (serifs=true) and (bar#<=.5curve#): + numeric bar[]; + set_bar_axis; + x5r=x2l; x6r=x4l; + y5r=y6r=y2.bh; y5l=y6l=y1.bh; x5r=x5l; x6l=x6r; + bar2=2/3[bar,fudged.stem]; + penpos7(bar2,45); z7=.5[z5l,z6l]; + fill stroke z6e{-2,-1}..{-2,1}z7e..{-2,-1}z5e; +else: + bar_stroke(x2l,x4l); +fi +%%%%% +% the accent +h:=full_h; lowercase_umlaut(0,0, 8,9,10,11); +penlabels(1,2,3,4,5,6,7, 8,9,10,11); endchar; + +lhchar "Italic Cyrillic letter u_bar - u bar (macron)"; +cyrchar(u_bar,if monospace:8.5u# else:9u#fi,lc_trema_height#,desc_depth#); +italcorr x_height#*slant+.5stem#-u#; +adjust_fit(0,0); full_h:=h; h:=x_height; +% ital_u; +pickup fine.nib; interim superness:=more_super; +x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +% left shstem; +if monospace: pos0(vair,90); x0=good.x .5[0,x2]; top y0l=h; y2=2/3h; + pos2(stem,0); filldraw stroke z2e{u,x_height}...{left}z0e; % terminal +else: x0=0; hook_in(0,1,2)(skewed); fi % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-1.5u+.5stem); +pos7(stem,0); pos8(vair,-90); +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; +y7=0; bot y8r=-d-oo; x5=x6=x7; x8=.5w; +pos9(hair,-180); pos10(flare,-180); y9=-.5d; +lft x9r=hround(2.75u-.5flare); bulb(8,9,10); % bulb +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e---z7e...{left}z8e; % right stem and link +% the accent +h:=full_h; +% low_bar(.5w,0, 11,12); +x_move:=.5w; y_move:=0; _one:=11; _two:=12; +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,12); endchar; + +lhchar "Italic Cyrillic letter u_uml - u umlaut"; +cyrchar(u_uml,if monospace:8.5u# else:9u#fi,lc_trema_height#,desc_depth#); +italcorr x_height#*slant+.5stem#-u#; +adjust_fit(0,0); full_h:=h; h:=x_height; +% ital_u; +pickup fine.nib; interim superness:=more_super; +x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +% left shstem; +if monospace: pos0(vair,90); x0=good.x .5[0,x2]; top y0l=h; y2=2/3h; + pos2(stem,0); filldraw stroke z2e{u,x_height}...{left}z0e; % terminal +else: x0=0; hook_in(0,1,2)(skewed); fi % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-1.5u+.5stem); +pos7(stem,0); pos8(vair,-90); +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; +y7=0; bot y8r=-d-oo; x5=x6=x7; x8=.5w; +pos9(hair,-180); pos10(flare,-180); y9=-.5d; +lft x9r=hround(2.75u-.5flare); bulb(8,9,10); % bulb +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e---z7e...{left}z8e; % right stem and link +% 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, 11,12,13,14); endchar; + +lhchar "Italic Cyrillic letter u_dac - u double acute"; +cyrchar_twice(u_dac,if monospace:8.5u# else:9u#fi,x_height#,desc_depth#); +italcorr x_height#*slant+.5stem#-u#; +adjust_fit(0,0); +% ital_u; +pickup fine.nib; interim superness:=more_super; +x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +% left shstem; +if monospace: pos0(vair,90); x0=good.x .5[0,x2]; top y0l=h; y2=2/3h; + pos2(stem,0); filldraw stroke z2e{u,x_height}...{left}z0e; % terminal +else: x0=0; hook_in(0,1,2)(skewed); fi % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-1.5u+.5stem); +pos7(stem,0); pos8(vair,-90); +y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; +y7=0; bot y8r=-d-oo; x5=x6=x7; x8=.5w; +pos9(hair,-180); pos10(flare,-180); y9=-.5d; +lft x9r=hround(2.75u-.5flare); bulb(8,9,10); % bulb +filldraw stroke z2'e{-u,-x_height} + ...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e---z7e...{left}z8e; % right stem and link +% 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,10); endchar; + +lhchar "Italic Cyrillic letter ch_uml - che umlaut"; +cyrchar(ch_uml,9.5u#,lc_trema_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(0,0); full_h:=h; h:=x_height; +% ital_ch; +pickup fine.nib; interim superness:=more_super; +x2=x3; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); +% left shstem; +if monospace: + pos0(vair,90); x0=good.x .5[0,x2]; top y0l=h; y2=2/3h; pos2(stem,0); + filldraw stroke z2e{u,x_height}...{left}z0e; % terminal +else: + x0=0; hook_in(0,1,2)(skewed); fi % opening hook +pos2'(stem,-180); z2'=z2; +pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; +pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); +x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook +bot y4r=.75bar_height; y5=.75h; y3=min(y2-eps,.7[y4,y5]); y6+.5stem=h; +filldraw stroke z2'e...super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e--z7e; % right stem +%%% +% the accent +h:=full_h; lowercase_umlaut(0,0, 10,11,12,13); +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +lhchar "Italic Cyrillic letter ery_uml - ery umlaut"; +cyrchar(ery_uml,8u#,lc_trema_height#,0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(if monospace:-2u#,2.5u# else:0,4u# fi); +h:=x_height; +% ital_ery; +pickup tiny.nib; pos2(stem,0); y2=.6bar_height; +if monospace: x1=x2; pos1(stem,0); lft x1l=hround(2.5u-.5stem); top y1=h; +else: x1=x2+.25u; x0'=0; lft x2l=hround(2.5u-.5stem); + hook_in(0',a,1)(skewed); fi % opening hook +pickup fine.nib; pos1'(stem,-180); pos2'(stem,-180); pos3(vair,-90); +pos4(curve,0); pos5(vair,90); pos0(hair,180); +z1'=z1; z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-u+.5curve); +bot y3r=-oo; top y5r=1.2bar_height+oo; y4=y2; +filldraw stroke z1'e{-u,-x_height}...pulled_arc.e(2',3) & pulled_arc.e(3,4) + & pulled_arc.e(4,5) & super_arc.e(5,0); % bowl +% I +w:=w+4u; +pos6(stem,0); y6+.5stem=h; rt x6r=hround(w-2.5u+.5stem); x7=x6; +if monospace: pos9(vair,90); x9=good.x .5[x6,w]; bot y9l=0; y7=1/3h; + pos7(stem,0); filldraw stroke z7e{down}...{right}z9e; % terminal +else: x9=w; hook_out(7,8,9); fi % opening hook +filldraw circ_stroke z6e--z7e; % stem +% the accent +lowercase_umlaut(0,0, 11,12,13,14); +penlabels(0,1,1',2,3,4,5,6,7,8,9,10, 11,12,13,14); endchar; + +endinput; +%end of file diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgunicl.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgunicl.mf new file mode 100644 index 00000000000..608af0c5109 --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgunicl.mf @@ -0,0 +1,949 @@ +% +% lgunicl.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Lowercase non-T2 Cyrillic letters included in Unicode +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames and their codes in Unicode +% +% 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 +% 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,4); % like |version_check| in ec + +lhchar "Lowercase Cyrillic letter gje (g acute)"; +cyrchar_twice(gje,8u#-.5width_adj#,x_height#,0); +italcorr x_height#*slant-beak_jut#+.25u#; %Gamma->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 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 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_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; pos1(right_curve,0); +pos2(vair,90); pos3(left_curve,180); +y1=good.y bar_height; top y2r=h+vround 1.5oo; y0l=bot y1; +rt x1r=hround min(w-.5u,w-u+.5right_curve); +lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; +if serifs: + pos4(vair',270); pos5(hair,360); + y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; + (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal +else: + pos4(vair,270); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,270); z4=z4'; + pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke term.e(4',5,right,1,4); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: + x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +%%%%% +% the accent +h:=full_h; lowercase_breve(.5w,0, 6,7,8); +penlabels(0,1,2,3,4,5); endchar; + +lhchar "Lowercase Cyrillic letter schwa_uml - schwa umlaut"; +cyrchar(schwa_uml,8.25u#,lc_trema_height#,0); %erev +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_schwa; +numeric left_curve,right_curve; +left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; +if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; pos1(right_curve,-180); pos2(vair',-90); pos3(left_curve,0); +set_bar_axis; bot y2r=-oo; y0l=top y1=h-y1.bh; +lft x1r=hround max(.5u,u-.5right_curve); +rt x3r=hround min(w-.5u,w-1.25u+.5left_curve); x2=.5w-.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; top y4r=h+oo; x4=x2;% if not serifs:-.25u fi; +if serifs: + pos4(vair,90); pos5(hair,180); + y5=min(bar_height+.25flare+2vair'+2,.9[bar_height,h]-.75flare); %z + lft x5r=hround(lft x1r+1/3u)+eps; + (x,y4l)=whatever[z4r,z5]; x4l:=max(x,x4l-.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4); % left bowl, arc, + pickup fine.nib; pos4'(vair,90); z4'=z4; x4'r:=x4r; + filldraw stroke z4'e{left}...{x5-x4,5(y5-y4)}z5e; % and terminal + path upper_arc; upper_arc=z5{x4-x5,5(y4-y5)}..z4{right}; + pos6(.3[fine.breadth,hair],180); x6r=x5r; top y6=h+oo; + x5'-x5r=2curve-fine; y5'=y5; + numeric t; t=xpart(upper_arc intersectiontimes (z6l--z5')); + filldraw z5r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb +else: + pos4(vair,90); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,90); z4=z4'; pos5(4/7[vair',flare],100); + lft x5r=hround(tiny.lft x1r+2/3u)+eps; + top y5r=vround min(top y4r,max(.82[bar_height,top y4r], + y2.bh+.5(y2.bh-y1.bh)-4/7[vair',flare]*sind 280+eps)); + filldraw stroke term.e(4',5,left,.8,4); fi % terminal +pickup tiny.nib; path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'l=y0l; x1'l=x1'r=x1; y1'r=y0r=y0l-.6[thin_join,vair];%y1.bh; +forsuffixes $=l,r: +x0$=xpart(((w,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +%%%%% +% the accent +h:=full_h; lowercase_umlaut(0,0, 7,8,9,10); +penlabels(0,1,2,3,4,5,5'); endchar; + +iff not specific:% +lhchar "Lowercase Cyrillic letter zh_uml - zhe umlaut (`roman')"; +cyrchar(zh_uml,if serifs:10u# else:9.5u# fi % zhk_width: n_width;keng_width + ,lc_trema_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%monospace:+.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_umlaut((x1-.5w),0, 17,18,19,20); +penlabels(1,2,3,4,5,6, 7,8,9,10); endchar; + +lhchar "Lowercase Cyrillic letter z_uml - ze umlaut"; +cyrchar(z_uml,8u#,lc_trema_height#,0); +italcorr .5x_height#*slant+min(.5curve#-.65u#,+.1u#); %p+.2u# +adjust_fit(if monospace: .5u#,.5u# else:0,0 fi); full_h:=h; h:=x_height; +% lower_z; +set_bar_axis; y4l=y5r=y6r=y2.bh; y6l=y5l=y4r=y1.bh; y6=y0.bh; +pickup fine.nib; numeric right_curve; +if serifs: right_curve=curve-stem_corr; else: right_curve=curve-3stem_corr; fi +penpos2(vair,90); penpos3(max(vair+stem_corr,right_curve-stem_corr),0); +penpos7(max(vair'+stem_corr,right_curve),0); penpos8(vair',-90); +y2r=vround(h+1.5oo); x2=x6l=x6r=x8=.5(w-u); x7r=hround(w-.6u); +x3r=min(rt x7r-1,hround(w-.8u)); y3=.5[y4l,y2l]+eps; y8r=-oo; +y7=.5[y6l,y8l]; x4l=x4r=1/3[x5l,x3l]; +if serifs: + pos1(hair,180); pos9(hair,-180); + lft x1r=lft x9r+.1u=hround.5u; + y1=min(y2.bh+flare-.25vair+eps,.9[bar_height,h]-.75flare); + y9=max(good.y(.5bar_height-.9),y8l+vair'); +else: + pos1(4/7[vair,flare],115); pos9(.6[vair',flare],-115); + lft x1r=good.x .6u; lft x9r=good.x .5u; + top y1r=vround .82[bar_height,y2r]; + y9r=good.y(y9r+1/3bar_height-y9); y9l:=good.y y9l; x9l:=good.x x9l; +fi +lft x5l=lft x5r=hround (2.5u-.5)-eps; +x4r:=max(x5r,x4r-u); x6r:=max(x5r,x6r-u); +fill stroke + {{interim superness:=if serifs: more_super else: hein_super fi; + super_arc.e(2,3)}} & super_arc.e(3,4)..(x5e,y4e); % upper bowl +{{interim superness:=more_super; + fill stroke z5e..super_arc.e(6,7) & super_arc.e(7,8)}}; % lower bowl +fill + z5r{left} + if bot y5r>top 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'<upper_notch: {left}(x3'-1,upper_notch){down}... fi + {z5-z6}diag_in(6r,5r,1,5l)--cycle; % diagonal +else: + x5=hround (rt x1r-.5)-eps; x6=hround (lft x3l+.5)+eps; + y5l=vround(y2+bracket+eps); y6r=vround(y3-bracket-eps); + stem1=max(tiny.breadth,fudged.hair-2stem_corr); + alpha1=diag_ratio(1,stem1,x6-x5,top y6r-bot y5l); + penpos5(alpha1*stem1,90); penpos6(alpha1*stem1,90); + fill stroke z5e--z6e; fi % diagonal +%%% +if serifs: + numeric inner_jut; + 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:=Vround(vair-vair_corr); % lower.slab + dish_serif(2,1,c,1/3,jut,d,1/3,inner_jut); % lower left serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,jut); fi % lower right serif +%%%%% +h:=full_h; +% low_bar(.5w,0, 7,8); +x_move:=.5w; y_move:=0; _one:=7; _two:=8; +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(1,2,3,4,5,6, 7,8); endchar; + +lhchar "Lowercase Cyrillic letter i_uml - i umlaut"; +cyrchar(i_uml,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'<upper_notch: {left}(x3'-1,upper_notch){down}... fi + {z5-z6}diag_in(6r,5r,1,5l)--cycle; % diagonal +else: + x5=hround (rt x1r-.5)-eps; x6=hround (lft x3l+.5)+eps; + y5l=vround(y2+bracket+eps); y6r=vround(y3-bracket-eps); + stem1=max(tiny.breadth,fudged.hair-2stem_corr); + alpha1=diag_ratio(1,stem1,x6-x5,top y6r-bot y5l); + penpos5(alpha1*stem1,90); penpos6(alpha1*stem1,90); + fill stroke z5e--z6e; fi % diagonal +%%% +if serifs: + numeric inner_jut; + 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:=Vround(vair-vair_corr); % lower.slab + dish_serif(2,1,c,1/3,jut,d,1/3,inner_jut); % lower left serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,jut); fi % lower right serif +%%%%% +% 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 o_uml - o umlaut"; +cyrchar(o_uml,9u#,lc_trema_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +full_h:=h; h:=x_height; +% lower_o; +penpos1(vair,90); penpos3(vair',-90); penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +%%%%% +% the accent +h:=full_h; lowercase_umlaut(0,0, 5,6,7,8); +penlabels(1,2,3,4); endchar; + +lhchar "Lowercase Cyrillic letter otld_uml - o tilded umlaut"; +cyrchar(otld_uml,9u#,lc_trema_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +full_h:=h; h:=x_height; +% lower_o;tld +penpos1(vair,90); penpos3(vair',-90); penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +%%% +% oltilde; +if (serifs=true) and (bar#<=.5curve#): + numeric bar[]; + set_bar_axis; + x5r=x2l; x6r=x4l; + y5r=y6r=y2.bh; y5l=y6l=y1.bh; x5r=x5l; x6l=x6r; + bar2=2/3[bar,fudged.stem]; + penpos7(bar2,45); z7=.5[z5l,z6l]; + fill stroke z6e{-2,-1}..{-2,1}z7e..{-2,-1}z5e; +else: + bar_stroke(x2,x4); +fi +%%%%% +h:=full_h; lowercase_umlaut(0,0, 8,9,10,11); +penlabels(1,2,3,4); 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 alpha1<alpha2: + x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1; +else: + alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); +if y0>notch_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 alpha1<alpha2: + x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1; +else: + alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); +if y0>notch_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 alpha1<alpha2: + x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1; +else: + alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); +if y0>notch_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 diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lgunicu.mf b/Master/texmf-dist/fonts/source/lh/nont2/lgunicu.mf new file mode 100644 index 00000000000..b0348bb9d25 --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lgunicu.mf @@ -0,0 +1,881 @@ +% +% lgunicu.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% Uppercase non-T2 Cyrillic letters included in Unicode +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% List of letternames and their codes in Unicode +% +% GJE "03 Ghe with acute +% KJE "0c Ka with acute +% ZH_brv "c1 Zhe with breve +% A_brv "d0 A with breve +% A_uml "d2 A with umlaut +% E_brv "d6 E with breve +% SCHWA_uml "da Schwa with umlaut +% ZH_uml "dc Zhe with umlaut +% Z_uml "de Ze with umlaut +% I_bar "e2 I with macrn (bar) +% I_uml "e4 I with umlaut +% O_uml "e6 O with umlaut +% OTLD_uml "e8 O tilded with umlaut +% U_bar "ee U with macron (bar) +% U_uml "f0 U with umlaut +% U_dac "f2 U with double acute +% CH_uml "f4 Che with umlaut +% ERY_uml "f8 Ery with umlaut +% + +LHver_check(3,4); % like |version_check| in ec + +lhchar "Uppercase Cyrillic letter GJE (G acute)"; +cyrchar_twice(GJE,if monospace: 9u# else: 11u# fi-width_adj#, %G_width + cap_height#,0); %+acc_height# +if is_small_cap: getcharcode(gje); fi +italcorr cap_height#*slant-beak_jut#-.25u#; +adjust_fit(cap_serif_fit#,0); full_h:=h; h:=cap_height; +% upper_g; +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +lft x1l=lft x2l=hround max(2u ,3u-.5cap_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos3(slab,90); pos4(hair,0); +top y3r=h; x3=x1; rt x4r=hround(w-.75u); y4=good.y(y3l-beak)-eps; +arm(3,4,e,beak_darkness,beak_jut); % upper arm and beak +if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,1.25cap_jut); fi % lower serif +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,2,3,4); endchar; + +iff not specific:% +lhchar "Uppercase Cyrillic letter KJE (K acute) (`roman')"; +cyrchar_twice(KJE,13.5u#,cap_height#,0); % N_width %+acc_height# +if is_small_cap: getcharcode(kje); fi +italcorr cap_height#*slant-.5u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); full_h:=h; h:=cap_height; +% upperr_k; +pickup tiny.nib; pos1(fudged.cap_stem,0); pos2(fudged.cap_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5fudged.cap_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % upper stem serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); fi % lower stem serif +% K_rbowl; +numeric right_jut,stem[],alpha[]; pickup tiny.nib; +right_jut=if serifs:.6cap_jut else:.4tiny fi; +stem1=max(tiny.breadth,fudged.hair if hefty:-3stem_corr fi); +stem2=max(tiny.breadth,fudged.cap_stem-3stem_corr); +rt x3r=hround(r-letter_fit-u-right_jut); +rt x6r=hround(r-letter_fit-.75u-right_jut); +y4=1/3h; 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 +numeric inner_jut,up_inner_jut; +%% +if serifs: + if rt x2r+cap_jut+.5u+1<=lft x6l-cap_jut: inner_jut=cap_jut; + else: rt x2r+cap_jut+.5u+1=lft x6l-inner_jut; fi + if rt x1r+cap_jut+.5u+1<=lft x3l-1.2cap_jut: up_inner_jut=1.2cap_jut; + else: rt x1r+cap_jut+.5u+1=lft x3l-up_inner_jut; fi + dish_serif(3,4,e,2/3,up_inner_jut,f,1/2,right_jut)(dark); % upper diagonal serif + dish_serif(6,5,g,1/2,inner_jut,h,1/3,right_jut)(dark); fi % lower diagonal serif +%%% +%%%%% +% the accent +put_accent(cyrcaph); repeat_once; +penlabels(1,2,3,4,5,6); endchar; + +iff not concrete:% +iff not specific:% +lhchar "Uppercase Cyrillic letter ZH_brv - ZHE breve (`roman')"; +cyrchar(ZH_brv,13.5u#,cap_height#+acc_height#,0); % N_width +if is_small_cap: getcharcode(zh_brv); fi +italcorr cap_height#*slant-.5u#; %K +adjust_fit(w#-2max(2u#+.5fudged.cap_stem#,3u#)+\\ %ZHr_adj + if monospace: 0,0 else: cap_serif_fit#,cap_serif_fit# fi); %uwlett_adj +full_h:=h; h:=cap_height; +% upperr_zh; +if odd((r-l)-fudged.cap_stem): change_width; fi % symmetric & all three equal +pickup tiny.nib; pos1(fudged.cap_stem,0); pos2(fudged.cap_stem,0); +lft x1l=lft x2l=hround (.5[l,r]-.5fudged.cap_stem)-eps; % middle stem point +top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % upper stem serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); fi % lower stem serif +% K_rbowl;zh%mono:+.75u +numeric right_jut,stem[],alpha[]; pickup tiny.nib; +right_jut=if serifs:.6cap_jut else:.4tiny fi; +stem1=max(tiny.breadth,fudged.hair if hefty:-3stem_corr fi); +stem2=max(tiny.breadth,fudged.cap_stem-3stem_corr); +rt x3r=hround(r-letter_fit-u-right_jut if monospace:+.75u fi); %!!! +rt x6r=hround(r-letter_fit-.75u-right_jut if monospace:+.75u fi); %!!! +y4=1/3h; 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 +numeric inner_jut,up_inner_jut; +%% +if serifs: + if rt x2r+cap_jut+.5u+1<=lft x6l-cap_jut: inner_jut=cap_jut; + else: rt x2r+cap_jut+.5u+1=lft x6l-inner_jut; fi + if rt x1r+cap_jut+.5u+1<=lft x3l-1.2cap_jut: up_inner_jut=1.2cap_jut; + else: rt x1r+cap_jut+.5u+1=lft x3l-up_inner_jut; fi + dish_serif(3,4,e,2/3,up_inner_jut,f,1/2,right_jut)(dark); % upper diagonal serif + dish_serif(6,5,g,1/2,inner_jut,h,1/3,right_jut)(dark); fi % lower diagonal serif +%%% +% mirror +forsuffixes $ = 3r,3,3l,3'r,3'l,4r,4,4l,5l,5,5r,6l,6,6r,6'l,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; + dish_serif(7,8,i,1/2,right_jut,j,2/3,up_inner_jut)(dark); % upper diagonal serif + dish_serif(10,9,k,1/3,right_jut,l,1/2,inner_jut)(dark); fi % lower diagonal serif +%%%%% +% the accent +h:=full_h; uppercase_breve(x1,0, 17,18,19); +penlabels(1,2,3,4,5,6, 7,8,9); endchar; + +lhchar "Uppercase Cyrillic letter A_brv - A breve"; +cyrchar(A_brv,13u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(a_brv); fi +adjust_fit(cap_serif_fit#,cap_serif_fit#); full_h:=h; h:=cap_height; +% upper_a; +numeric left_stem,right_stem,outer_jut,alpha; outer_jut=.8cap_jut; +x1l=w-x4r=l+letter_fit+outer_jut+.5u; +right_stem=cap_stem-stem_corr; +left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem); +y1=y4=0; x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=h+apex_o+apex_oo; +alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr); +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0<h-cap_notch_cut: y0:=h-cap_notch_cut; + fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r) + --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{up}z0+.5left--cycle; % left and right diagonals +else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l) + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals +penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2]; +penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5; +if hefty: y5r else: y5 fi =5/12y0; +y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line +if serifs: numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(4,3); + if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark); % left serif + dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi % right serif +% the accent +h:=full_h; uppercase_breve(x2,o, 7,8,9); +penlabels(0,1,2,3,4,5,6, 7,8,9); endchar; + +lhchar "Uppercase Cyrillic letter A_uml - A umlaut"; +cyrchar(A_uml,13u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(a_uml); fi +adjust_fit(cap_serif_fit#,cap_serif_fit#); full_h:=h; h:=cap_height; +% upper_a; +numeric left_stem,right_stem,outer_jut,alpha; outer_jut=.8cap_jut; +x1l=w-x4r=l+letter_fit+outer_jut+.5u; +right_stem=cap_stem-stem_corr; +left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem); +y1=y4=0; x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=h+apex_o+apex_oo; +alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr); +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0<h-cap_notch_cut: y0:=h-cap_notch_cut; + fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r) + --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{up}z0+.5left--cycle; % left and right diagonals +else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l) + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals +penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2]; +penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5; +if hefty: y5r else: y5 fi =5/12y0; +y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line +if serifs: numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(4,3); + if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark); % left serif + dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi % right serif +% the accent +h:=full_h; uppercase_umlaut(0,0, 7,8,9,10); +penlabels(0,1,2,3,4,5,6, 7,8,9,10); endchar; + +lhchar "Uppercase Cyrillic letter E_brv - E breve"; +cyrchar(E_brv,12u#-width_adj#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(e_brv); fi +italcorr cap_height#*slant-beak_jut#-.5u#; +adjust_fit(cap_serif_fit#,0); full_h:=h; h:=cap_height; +% upper_e; +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +pickup crisp.nib; pos3(slab,90); pos4(hair,0); +top y3r=h; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps; +arm(3,4,e,beak_darkness,beak_jut); % upper arm and beak +pos5(cap_bar,-90); pos6(hair,0); +top y5l=vround(.52[y2,y1]+.5cap_bar); x5=x1; +pos0(cap_bar,90); pos7(hair,0); +z0=z5; x6=x7; y6-y5l=y0l-y7; +if serifs: rt x6r=hround(w-4.4u+.5hair); y6=good.y(y5l+.6beak)+eps; + rt x9r=hround(w-.5u); +else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi +arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0); % middle arm and serif +pos8(slab if not serifs:+2stem_corr fi,-90); pos9(hair,0); +bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps; +arm(8,9,h,beak_darkness,1.5beak_jut); % lower arm and beak +if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif +%%%%% +% the accent +h:=full_h; x10=.5[lft x1l-.5cap_jut,rt x4r-beak_jut]; +uppercase_breve(x10,0, 11,12,13); +penlabels(0,1,2,3,4,5,6,7,8,9, 10,11,12,13); endchar; + +lhchar "Uppercase Cyrillic letter SCHWA_uml - SCHWA umlaut"; +cyrchar(SCHWA_uml,if serifs:13u# else:12u# fi,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(schwa_uml); fi +italcorr .7cap_height#*slant-.5u#; %O +adjust_fit(0 if monospace: +\\-.25u#,-.25u#+ else:,fi\\ 0); +full_h:=h; h:=cap_height; +% upper_schwa;`large e' shape (ecfonts) +numeric left_curve,right_curve; +left_curve=right_curve+3stem_corr=cap_curve if not serifs: -1.5stem_corr fi; +if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; +pos1(right_curve,-180); pos2(vair',-90); pos3(left_curve,0); +y1=.48h; bot y2r=-o; y0l=top y1; +if serifs: x2-.25u=x4=.5w-.5u; else: x2=x4=.5w-.25u; fi +lft x1r=hround max(.5u,u-.5right_curve); +rt x3r=w-hround max(.75u,1.5u-.5left_curve); %lower_e+.25u +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; top y4r=h+o; +if serifs: + pos4(cap_band,90); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4); % left bowl, arc, + pickup fine.nib; pos4'(cap_band,90); z4'=z4; + lft x5r=max(hround u,lft x1r+1/3u+eps); + pos5(cap_hair,180); bot y5=min(vround .675h,bot y4l-eps); + filldraw stroke z4'e{left}...{x5-x4,10(y5-y4)}z5e; % and terminal + pos6(.3[fine.breadth,cap_hair],180); x6r=x5r; top y6=h+o; + x5'-x5r=2cap_curve-fine; y5'=y5; + path upper_arc; upper_arc=z5{x4-x5,10(y4-y5)}..{right}z4; + numeric t; t=xpart(upper_arc intersectiontimes (z6l--z5')); + filldraw z5r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % upper serif +else: + pos4(slab,90); + {{interim superness:=min(1.03superness,more_super); + filldraw stroke super_arc.e(2,3)}}; + filldraw stroke super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(slab,90); z4=z4'; + pos5(1.2flare,100); lft x5r=lft x1r+u; top y5r=vround .95h+o; + filldraw stroke rterm.e(4',5,left,.75,20); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l-7/8[thin_join,vair']; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: x0$=xpart(((w,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +%%%%% +% the accent +h:=full_h; uppercase_umlaut(0,0, 7,8,9,10); +penlabels(0,1,2,3,4,5,6, 7,8,9,10); endchar; + +iff not specific:% +lhchar "Uppercase Cyrillic letter ZH_uml - ZHE umlaut (`roman')"; +cyrchar(ZH_uml,13.5u#,cap_height#+acc_height#,0); % N_width +if is_small_cap: getcharcode(zh_uml); fi +italcorr cap_height#*slant-.5u#; %K +adjust_fit(w#-2max(2u#+.5fudged.cap_stem#,3u#)+\\ %ZHr_adj + if monospace: 0,0 else: cap_serif_fit#,cap_serif_fit# fi); %uwlett_adj +full_h:=h; h:=cap_height; +% upperr_zh; +if odd((r-l)-fudged.cap_stem): change_width; fi % symmetric & all three equal +pickup tiny.nib; pos1(fudged.cap_stem,0); pos2(fudged.cap_stem,0); +lft x1l=lft x2l=hround (.5[l,r]-.5fudged.cap_stem)-eps; % middle stem point +top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % upper stem serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); fi % lower stem serif +% K_rbowl;zh%mono:+.75u +numeric right_jut,stem[],alpha[]; pickup tiny.nib; +right_jut=if serifs:.6cap_jut else:.4tiny fi; +stem1=max(tiny.breadth,fudged.hair if hefty:-3stem_corr fi); +stem2=max(tiny.breadth,fudged.cap_stem-3stem_corr); +rt x3r=hround(r-letter_fit-u-right_jut if monospace:+.75u fi); %!!! +rt x6r=hround(r-letter_fit-.75u-right_jut if monospace:+.75u fi); %!!! +y4=1/3h; 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 +numeric inner_jut,up_inner_jut; +%% +if serifs: + if rt x2r+cap_jut+.5u+1<=lft x6l-cap_jut: inner_jut=cap_jut; + else: rt x2r+cap_jut+.5u+1=lft x6l-inner_jut; fi + if rt x1r+cap_jut+.5u+1<=lft x3l-1.2cap_jut: up_inner_jut=1.2cap_jut; + else: rt x1r+cap_jut+.5u+1=lft x3l-up_inner_jut; fi + dish_serif(3,4,e,2/3,up_inner_jut,f,1/2,right_jut)(dark); % upper diagonal serif + dish_serif(6,5,g,1/2,inner_jut,h,1/3,right_jut)(dark); fi % lower diagonal serif +%%% +% mirror +forsuffixes $ = 3r,3,3l,3'r,3'l,4r,4,4l,5l,5,5r,6l,6,6r,6'l,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; + dish_serif(7,8,i,1/2,right_jut,j,2/3,up_inner_jut)(dark); % upper diagonal serif + dish_serif(10,9,k,1/3,right_jut,l,1/2,inner_jut)(dark); fi % lower diagonal serif +%%%%% +% the accent +h:=full_h; uppercase_umlaut((x1-.5w),0, 17,18,19,20); +penlabels(1,2,3,4,5,6, 7,8,9,10); endchar; + +lhchar "Uppercase Cyrillic letter Z_uml - ZE umlaut"; +cyrchar(Z_uml,11u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(z_uml); fi +italcorr .75cap_height#*slant-.5u#; %B +adjust_fit(if monospace: .35u#,.25u# else: 0,0 fi); full_h:=h; h:=cap_height; +% upper_z; +pickup fine.nib; numeric right_curve,middle_weight; +middle_weight=max(fine.breadth,.6vair+.5); +pos2(cap_band,90); pos8(cap_band,-90); +if serifs: + right_curve=cap_curve-stem_corr; + pos1(cap_hair,180); pos9(cap_hair,-180); y1=.4[y5l,y2l]; +else: + right_curve=cap_curve-3stem_corr; + pos1(1.1flare,120); pos9(flare,-120); + top y1r=vround 7/8h+o; bot y9r=vround 1/7h-o; fi +pos4(middle_weight,-90); pos5(middle_weight,-90); +pos6(middle_weight,90); pos5'(middle_weight,90); +pos3(max(fine.breadth,right_curve-stem_corr),0); +pos7(max(fine.breadth,right_curve),0); +top y2r=h+o; bot y8r=-o; +x2=x6=x8=.5[1.5u,x7]; rt x7r=hround(w-.75u); rt x3r=hround(w-1.25u); +lft x5=lft x5'=min(hround 3.5u,lft x6)+eps; +y3=.5[y4l,y2l]; y7=.5[y6l,y8l]; x4=1/3[x5,x3l]; y4=y5; y5'=y6; +lft x1r=hround 1.1u; lft x9r=hround.9u; +top y5l-bot y5'l=vair; .5[y5l,y5'l]=.52h; +if serifs: y9=max(.52[top y8l,bot y5'l],y7+1); + else: y9l:=good.y y9l; x9l:=good.x x9l; fi +filldraw stroke {{if not serifs:interim superness:=hein_super; fi + super_arc.e(2,3)}} & super_arc.e(3,4)..z5e; % upper bowl +filldraw stroke z5'e..super_arc.e(6,7) & super_arc.e(7,8); % lower bowl +if serifs: + filldraw stroke z1e{x2-x1,15(y2-y1)}....{right}z2e; % upper arc + filldraw stroke + {{interim superness:=more_super; super_arc.e(8,9)}}; % lower arc +else: + filldraw stroke rterm.e(2,1,left,.9,4); % upper arc + filldraw stroke term.e(8,9,left,.8,4); % lower arc +fi +if serifs: + path upper_arc; upper_arc=z1{x2-x1,15(y2-y1)}....{right}z2; + pos10(.3[fine.breadth,cap_hair],0); x10l=x1r; top y10=h+o; + x1'-x1l=2cap_curve; 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; uppercase_umlaut(0,0, 11,12,13,14); +penlabels(0,1,2,3,4,5,6,7,8,9,10, 11,12,13,14); endchar; + +lhchar "Uppercase Cyrillic letter I_bar - I bar (macron)"; +cyrchar(I_bar,13.5u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(i_bar); fi +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(cap_serif_fit#,cap_serif_fit#); full_h:=h; h:=cap_height; +% upper_i; +pickup tiny.nib; pos1(fudged.cap_stem,0); pos2(fudged.cap_stem,0); +pos3(fudged.cap_stem,0); pos4(fudged.cap_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); 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-stem_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(slab+eps); y6=vround(h-slab-eps); + alpha1=diag_ratio(1,stem1,y5-y6,x5r-x6l); + penpos5(min(2fudged.cap_stem,alpha1*stem1),0); + penpos6(min(2fudged.cap_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'<upper_notch: {left}(x3'-1,upper_notch){down}... fi + {z5-z6}diag_in(6r,5r,1,5l)--cycle; % diagonal +else: y5l=y2+bracket+eps; y6r=y3-bracket-eps; + x5=hround (rt x1r-.5)-eps; x6=hround (lft x3l+.5)+eps; + stem1=max(tiny.breadth,fudged.hair); + alpha1=diag_ratio(1,stem1,x6-x5,top y6r-bot y5l); + penpos5(alpha1*stem1,90); penpos6(alpha1*stem1,90); + fill stroke z5e--z6e; fi % diagonal +%%% +if serifs: numeric inner_jut; + if rt x1r+cap_jut+.5u+1<=lft x3l-cap_jut: inner_jut=cap_jut; + else: rt x1r+inner_jut+.5u+1=lft x3l-inner_jut; fi + dish_serif(1,2,a,1/3,cap_jut,b,1/3,inner_jut); % upper left serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,inner_jut); % lower left serif + dish_serif(3,4,e,1/3,inner_jut,f,1/3,cap_jut); % upper right serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,cap_jut); fi % lower right serif +%%%%% +% the accent +h:=full_h; +% up_bar(.5w,0, 7,8); +x_move:=.5w; y_move:=0; _one:=7; _two:=8; +numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; +pickup if serifs: crisp.nib else: fine.nib fi; +pos[_one](macron_breadth,90); pos[_two](macron_breadth,90); +x[_one]=x_move+hround(2.75u if monospace:/expansion_factor fi+.5vair); +top y[_one]r=top y[_two]r=vround(cap_height+dot_height#*hppp); +x[_two]=x_move-hround(2.75u if monospace:/expansion_factor fi+.5vair); +filldraw stroke z[_one]e--z[_two]e; % bar +penlabels(1,2,3,4,5,6, 7,8); endchar; + +lhchar "Uppercase Cyrillic letter I_uml - I umlaut"; +cyrchar(I_uml,13.5u#,cap_height#+acc_height#,0); % N_width +if is_small_cap: getcharcode(i_uml); fi +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(cap_serif_fit#,cap_serif_fit#); full_h:=h; h:=cap_height; +% upper_i; +pickup tiny.nib; pos1(fudged.cap_stem,0); pos2(fudged.cap_stem,0); +pos3(fudged.cap_stem,0); pos4(fudged.cap_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); 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-stem_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(slab+eps); y6=vround(h-slab-eps); + alpha1=diag_ratio(1,stem1,y5-y6,x5r-x6l); + penpos5(min(2fudged.cap_stem,alpha1*stem1),0); + penpos6(min(2fudged.cap_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'<upper_notch: {left}(x3'-1,upper_notch){down}... fi + {z5-z6}diag_in(6r,5r,1,5l)--cycle; % diagonal +else: y5l=y2+bracket+eps; y6r=y3-bracket-eps; + x5=hround (rt x1r-.5)-eps; x6=hround (lft x3l+.5)+eps; + stem1=max(tiny.breadth,fudged.hair); + alpha1=diag_ratio(1,stem1,x6-x5,top y6r-bot y5l); + penpos5(alpha1*stem1,90); penpos6(alpha1*stem1,90); + fill stroke z5e--z6e; fi % diagonal +%%% +if serifs: numeric inner_jut; + if rt x1r+cap_jut+.5u+1<=lft x3l-cap_jut: inner_jut=cap_jut; + else: rt x1r+inner_jut+.5u+1=lft x3l-inner_jut; fi + dish_serif(1,2,a,1/3,cap_jut,b,1/3,inner_jut); % upper left serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,inner_jut); % lower left serif + dish_serif(3,4,e,1/3,inner_jut,f,1/3,cap_jut); % upper right serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,cap_jut); fi % lower right serif +%%%%% +% the accent +h:=full_h; uppercase_umlaut(0,0, 7,8,9,10); +penlabels(1,2,3,4,5,6, 7,8,9,10); endchar; + +lhchar "Uppercase Cyrillic letter O_uml - O umlaut"; +cyrchar(O_uml,14u#-width_adj#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(o_uml); fi +italcorr .7cap_height#*slant-.5u#; +adjust_fit(0,0); full_h:=h; h:=cap_height; +% upper_o; +penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90); +penpos2(cap_curve,180); penpos4(cap_curve,0); +if monospace: x2r=hround 1.5u; + interim superness:=sqrt superness; % make |"O"|, not |"0"| +else: x2r=hround u; fi +x4r=w-x2r; x1=x3=.5w; y1r=h+o; y3r=-o; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_super_arc.e(1,2)(.5superpull) + & pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull) + & pulled_super_arc.e(4,1)(.5superpull) & cycle; % bowl +%%%%% +% the accent +h:=full_h; uppercase_umlaut(0,0, 5,6,7,8); +penlabels(1,2,3,4, 5,6,7,8); endchar; + +lhchar "Uppercase Cyrillic letter OTLD_uml - O tilded umlaut"; +cyrchar(OTLD_uml,14u#-width_adj#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(otld_uml); fi +italcorr .7cap_height#*slant-.5u#; +adjust_fit(0,0); full_h:=h; h:=cap_height; +% upper_o;tld +penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90); +penpos2(cap_curve,180); penpos4(cap_curve,0); +if monospace: x2r=hround 1.5u; + interim superness:=sqrt superness; % make |"O"|, not |"0"| +else: x2r=hround u; fi +x4r=w-x2r; x1=x3=.5w; y1r=h+o; y3r=-o; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_super_arc.e(1,2)(.5superpull) + & pulled_super_arc.e(2,3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull) + & pulled_super_arc.e(4,1)(.5superpull) & cycle; % bowl +%%%%% +% outilde; +z5=z2l; z6=z4l; penpos5(cap_bar,90); penpos6(cap_bar,90); +if (serifs) and (bar#<=.5curve#): numeric bar[]; + bar2=2/3[cap_bar,fudged.cap_stem]; penpos7(bar2,45); z7=.5[z5,z6]; + fill stroke z5e{2,1}..{2,-1}z7e..{2,1}z6e; +else: fill stroke z5e--z6e; fi +%%%%% +% the accent +h:=full_h; uppercase_umlaut(0,0, 8,9,10,11); +penlabels(1,2,3,4,5,6,7, 8,9,10,11); endchar; + +lhchar "Uppercase Cyrillic letter U_bar - U bar (macron)"; +cyrchar(U_bar,13u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(u_bar); fi +italcorr x_height#*slant+.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); full_h:=h; h:=cap_height; +% upper_u; +numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; +left_stem=cap_stem-stem_corr; +right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_vair=Vround(if serifs:.5[vair',bot_stem] else:slab fi); +outer_jut=.7cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; % W jut +y1=y4r=h; x2l=x3l; +if monospace: y2=y3=.3h; else: y2=y3=max(if not serifs:1.095 fi stem,1/6h); fi +numeric alpha; x9=.5w-1/2(.5[bot_stem,right_stem]); y9=-o; +alpha=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-2apex_corr); +numeric u_ratio; u_ratio=(y3-y9)/(y1-y9); +x2l-x1l=x4r-x3r+ + if monospace: 2apex_corr else: if serifs: 2 fi (u_ratio*.5[x1l,x4r]) fi; +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +numeric alpha[]; alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0l=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); penpos0(alpha*bot_stem,0); +z0'=whatever[rt z3r,rt z4r]; y0'=bot y6r=if serifs:-o else: 0 fi; +penpos6(bot_vair,-90); x6r=if serifs:.6 else:.5 fi[x3r,x1]; +numeric t; t=if monospace: 1.25right_stem else: (x3r-x0')++(y3r-y0') fi; +penpos5(bot_vair,.5[angle(z4r-z6r),angle(z4r-z3r)]-90); +path p; numeric tau; p=z0r{z3r-z4r}....{left}z6r; +z5r=p intersectionpoint ((0,y2l-.5bot_vair)--(w,y2l-.5bot_vair)); +tau=xpart(p intersectiontimes (z2l--z2r)); +if y0>notch_cut+y2: + y0l:=notch_cut+y2; % +y2 added for sanserif face + fill z0l+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) + --subpath(0,tau) of p--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0l+.5left--cycle; % left and right diagonals +else: + fill z0l--diag_end(0,4l,1,1,4r,3r)--subpath(0,tau) of p + --z2l--diag_end(2l,1l,1,1,1r,0)--cycle; % left and right diagonals +fi +fill p--z6l{right}...{-direction tau of p} + if x5l>x2l: z2l else: z5l fi..{z4r-z3r}z0l--cycle; +pickup fine.nib; +if serifs: + numeric bulb_diam; bulb_diam=flare+(cap_stem-stem); + pos6'(bot_vair,-90); z6'=z6; pos7(hair,-180); pos8(bulb_diam,-180); + y8=1/6h; z7r=z8r; lft x8r=x1; + cyrbulb(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=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif + dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif +else: + top z6'l=z6l; bot z6'r=z6r; + pos7(bot_vair,-90); lft x7l=max(3.5u,rt x6r-t); bot y7r=bot y6'r; + filldraw stroke z6'e--z7e; fi % arc +%%%%% +% the accent +h:=full_h; +% up_bar(.5[x1,x4],0, 10,11); +x_move:=.5[x1,x4]; y_move:=0; _one:=10; _two:=11; +numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; +pickup if serifs: crisp.nib else: fine.nib fi; +pos[_one](macron_breadth,90); pos[_two](macron_breadth,90); +x[_one]=x_move+hround(2.75u if monospace:/expansion_factor fi+.5vair); +top y[_one]r=top y[_two]r=vround(cap_height+dot_height#*hppp); +x[_two]=x_move-hround(2.75u 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 "Uppercase Cyrillic letter U_uml - U umlaut"; +cyrchar(U_uml,13u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(u_uml); fi +italcorr x_height#*slant+.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); full_h:=h; h:=cap_height; +% upper_u; +numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; +left_stem=cap_stem-stem_corr; +right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_vair=Vround(if serifs:.5[vair',bot_stem] else:slab fi); +outer_jut=.7cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; % W jut +y1=y4r=h; x2l=x3l; +if monospace: y2=y3=.3h; else: y2=y3=max(if not serifs:1.095 fi stem,1/6h); fi +numeric alpha; x9=.5w-1/2(.5[bot_stem,right_stem]); y9=-o; +alpha=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-2apex_corr); +numeric u_ratio; u_ratio=(y3-y9)/(y1-y9); +x2l-x1l=x4r-x3r+ + if monospace: 2apex_corr else: if serifs: 2 fi (u_ratio*.5[x1l,x4r]) fi; +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +numeric alpha[]; alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0l=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); penpos0(alpha*bot_stem,0); +z0'=whatever[rt z3r,rt z4r]; y0'=bot y6r=if serifs:-o else: 0 fi; +penpos6(bot_vair,-90); x6r=if serifs:.6 else:.5 fi[x3r,x1]; +numeric t; t=if monospace: 1.25right_stem else: (x3r-x0')++(y3r-y0') fi; +penpos5(bot_vair,.5[angle(z4r-z6r),angle(z4r-z3r)]-90); +path p; numeric tau; p=z0r{z3r-z4r}....{left}z6r; +z5r=p intersectionpoint ((0,y2l-.5bot_vair)--(w,y2l-.5bot_vair)); +tau=xpart(p intersectiontimes (z2l--z2r)); +if y0>notch_cut+y2: + y0l:=notch_cut+y2; % +y2 added for sanserif face + fill z0l+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) + --subpath(0,tau) of p--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0l+.5left--cycle; % left and right diagonals +else: + fill z0l--diag_end(0,4l,1,1,4r,3r)--subpath(0,tau) of p + --z2l--diag_end(2l,1l,1,1,1r,0)--cycle; % left and right diagonals +fi +fill p--z6l{right}...{-direction tau of p} + if x5l>x2l: z2l else: z5l fi..{z4r-z3r}z0l--cycle; +pickup fine.nib; +if serifs: + numeric bulb_diam; bulb_diam=flare+(cap_stem-stem); + pos6'(bot_vair,-90); z6'=z6; pos7(hair,-180); pos8(bulb_diam,-180); + y8=1/6h; z7r=z8r; lft x8r=x1; + cyrbulb(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=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif + dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif +else: + top z6'l=z6l; bot z6'r=z6r; + pos7(bot_vair,-90); lft x7l=max(3.5u,rt x6r-t); bot y7r=bot y6'r; + filldraw stroke z6'e--z7e; fi % arc +%%%%% +% the accent +h:=full_h; uppercase_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 "Uppercase Cyrillic letter U_dac - U double acute"; +cyrchar_twice(U_dac,13u#,cap_height#,0); +if is_small_cap: getcharcode(u_dac); fi +italcorr x_height#*slant+.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); +% upper_u; +numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; +left_stem=cap_stem-stem_corr; +right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); +bot_vair=Vround(if serifs:.5[vair',bot_stem] else:slab fi); +outer_jut=.7cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; % W jut +y1=y4r=h; x2l=x3l; +if monospace: y2=y3=.3h; else: y2=y3=max(if not serifs:1.095 fi stem,1/6h); fi +numeric alpha; x9=.5w-1/2(.5[bot_stem,right_stem]); y9=-o; +alpha=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-2apex_corr); +numeric u_ratio; u_ratio=(y3-y9)/(y1-y9); +x2l-x1l=x4r-x3r+ + if monospace: 2apex_corr else: if serifs: 2 fi (u_ratio*.5[x1l,x4r]) fi; +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +numeric alpha[]; alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0l=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); penpos0(alpha*bot_stem,0); +z0'=whatever[rt z3r,rt z4r]; y0'=bot y6r=if serifs:-o else: 0 fi; +penpos6(bot_vair,-90); x6r=if serifs:.6 else:.5 fi[x3r,x1]; +numeric t; t=if monospace: 1.25right_stem else: (x3r-x0')++(y3r-y0') fi; +penpos5(bot_vair,.5[angle(z4r-z6r),angle(z4r-z3r)]-90); +path p; numeric tau; p=z0r{z3r-z4r}....{left}z6r; +z5r=p intersectionpoint ((0,y2l-.5bot_vair)--(w,y2l-.5bot_vair)); +tau=xpart(p intersectiontimes (z2l--z2r)); +if y0>notch_cut+y2: + y0l:=notch_cut+y2; % +y2 added for sanserif face + fill z0l+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) + --subpath(0,tau) of p--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0l+.5left--cycle; % left and right diagonals +else: + fill z0l--diag_end(0,4l,1,1,4r,3r)--subpath(0,tau) of p + --z2l--diag_end(2l,1l,1,1,1r,0)--cycle; % left and right diagonals +fi +fill p--z6l{right}...{-direction tau of p} + if x5l>x2l: z2l else: z5l fi..{z4r-z3r}z0l--cycle; +pickup fine.nib; +if serifs: + numeric bulb_diam; bulb_diam=flare+(cap_stem-stem); + pos6'(bot_vair,-90); z6'=z6; pos7(hair,-180); pos8(bulb_diam,-180); + y8=1/6h; z7r=z8r; lft x8r=x1; + cyrbulb(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=cap_jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif + dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif +else: + top z6'l=z6l; bot z6'r=z6r; + pos7(bot_vair,-90); lft x7l=max(3.5u,rt x6r-t); bot y7r=bot y6'r; + filldraw stroke z6'e--z7e; fi % arc +%%%%% +% the accent +if monospace: hpos_corr=-2.5u; put_accent(cyrcaph); + hpos_corr=2.5u; put_accent(cyrcaph); +else: hpos_corr=-1.5u; put_accent(cyrcaph); + hpos_corr=1.5u; put_accent(cyrcaph); fi +repeat_once; +penlabels(0,0',1,2,3,4,5,6,6',7,8,9); endchar; + +lhchar "Uppercase Cyrillic letter CH_uml - CHE umlaut"; +cyrchar(CH_uml,13.5u#,cap_height#+acc_height#,0); +if is_small_cap: getcharcode(ch_uml); fi +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(cap_serif_fit#,cap_serif_fit#); full_h:=h; h:=cap_height; +% upper_ch; +pickup tiny.nib; +pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_stem,0); pos4(cap_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); x3=x4=w-x1; +top y1=top y3=h; bot y2=.3[y6,h]; bot y4=0; +x5l=1/3[x1,x3]; y5=y6; if serifs: y6'=y6-cap_hair+1.05cap_stem; fi +x6=x6'=x3; y6=good.y (h-.52h if serifs: -.35(.5[cap_hair,.7cap_stem]) fi); +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e--z4e; % right stem +clearpen; penpos2'(cap_stem,0); z2'=z2; +numeric middle_weight; middle_weight=.5[vair,cap_band]; +penpos5(middle_weight,90); penpos6(middle_weight,90); penpos6'(middle_weight,90); +if serifs: if((y6'-y6)>=middle_weight+1+eps): + fill stroke pulled_arc.e(2',5) & z5e{right}...{.75(z5-z6)+z6'}z6'e; + else: fill stroke pulled_arc.e(2',5) & z5e--z6e; fi % arc + numeric inner_jut; pickup tiny.nib; + if rt x1r+cap_jut+.5u+1<=lft x3l-cap_jut: inner_jut=cap_jut; + else: rt x1r+inner_jut+.5u+1=lft x3l-inner_jut; fi +%%% + dish_serif(1,2,a,1/3,cap_jut,b,1/3,inner_jut); % upper left serif + dish_serif(3,4,e,1/3,inner_jut,f,1/3,cap_jut); % upper right serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,cap_jut); % lower right serif +else: filldraw stroke pulled_arc.e(2',5) & z5e--z6e; fi % arc +%%%%% +% the accent +h:=full_h; uppercase_umlaut(0,0, 7,8,9,10); +penlabels(1,2,3,4,5,6, 7,8,9,10); endchar; + +lhchar "Uppercase Cyrillic letter ERY_uml - ERY umlaut"; +cyrchar(ERY_uml,12.5u#,cap_height#+acc_height#,0); %V_width; +if is_small_cap: getcharcode(ery_uml); fi +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(if monospace: 0,0 else: cap_serif_fit#,cap_serif_fit# fi %uwlett_adj + +4.5u#); %ERYadj +full_h:=h; h:=cap_height; +% upper_ery; +numeric left_stem; left_stem=cap_stem-hround 2stem_corr; +pickup tiny.nib; pos1(left_stem,0); pos2(left_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.5left_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % upper serif + nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif +% usftsn_bowl(2); +_zero:=2; +_one:=3; _two:=4; _three:=5; _four:=6; _five:=7; +% +pickup tiny.nib; +penpos[_one](cap_bar,90); +penpos[_three](cap_curve if hefty:-3stem_corr fi,0); +penpos[_four](cap_band,-90); penpos[_five](cap_band,-90); +z[_five]r=bot z[_zero]; y[_four]=y[_five]; +y[_three]=.5[y[_four],y[_two]]; +x[_one]=x[_zero]r; x[_three]r=hround(w-u); +if (serifs=false) or (cap_bar#>.5cap_curve#) or (cap_bar<3): + penpos[_two](cap_bar,90); + x[_four]=.5[x[_zero],w-if serifs:1.5u else:2.5u fi]+.5u; + y[_one]=y[_two]=.52h; x[_two]=x[_four]; +else: penpos[_two](1/18[cap_bar,cap_curve],90); + x[_four]=.5[x[_zero],w-1.5u]+.5u; + y[_one]l=y[_two]l-.35cap_bar=.52h-.5cap_bar; + x[_two]=x[_four]-.35u; fi +x[_two]l:=x[_two]l-.5u; x[_four]l:=x[_four]l-.5u; +fill stroke z[_five]e..super_arc.e([_four],[_three]) + & super_arc.e([_three],[_two])..z[_one]e; % lobe +%%% +% I +w:=w+4.5u; pickup tiny.nib; rt x8r=rt x9r=w-hround max(2u,3u-.5stem); +top y8=h; bot y9=0; pos8(cap_stem,0); pos9(cap_stem,0); +filldraw stroke z8e--z9e; +if serifs: dish_serif(8,9,e,1/3,cap_jut,f,1/3,cap_jut); + dish_serif(9,8,g,1/3,cap_jut,h,1/3,cap_jut); fi +%%%%% +% the accent +h:=full_h; uppercase_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 diff --git a/Master/texmf-dist/fonts/source/lh/nont2/lhberest.mf b/Master/texmf-dist/fonts/source/lh/nont2/lhberest.mf new file mode 100644 index 00000000000..e45502bf539 --- /dev/null +++ b/Master/texmf-dist/fonts/source/lh/nont2/lhberest.mf @@ -0,0 +1,73 @@ +% +% lgberest.mf +% +%% Cyrillic font container with T2 encoding beta-support +% +% This file is future part of lxfonts package +% Version 3.4 // Patchlevel=0 +% (c) O.Lapko +% +% This package belongs to the public domain 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 to save it under the same name. +% +% Content: +% +% font for BERESTa.tex +% (plain TEST.MF changed to input some miscelaneous letters) +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% additional macros for ec compatible mode +% + +LHver_check(3,4); % like |version_check| in ec + +if unknown cmbase: input cmbase fi % + +input lcyrbeg; + +LHver_check(3,4); % like |version_check| in ec + +string genmode; genmode="cm"; + +let lhchar=\; + + boolean inc_russian, inc_wncyr, non_russian, + inc_cyrupper, inc_cyrlower, inc_unicode, + inc_cyrother, inc_cyrold, inc_accents; + inc_russian := true; % include russian characters + inc_wncyr := true; % include russian characters + non_russian := true; % include nonrussian characters + inc_cyrupper := true; % include upper part from T2 + inc_cyrlower := true; % include lower part from T2 + inc_unicode := true; % include unicode + inc_cyrother := true; % include cyrillic letters outside T2 + inc_cyrold := true; % include old slavonic letters + inc_accents := true; % include accended letters + +def LHver_check(expr e,f)= enddef; + +autocount:=1; +def cyrchar(suffix $)(expr w_sharp,h_sharp,d_sharp) = + charcode:=charcode+1; + string t; t=str $; message ""; message "|def|CYR_"&(t); + beginchar(charcode,w_sharp,h_sharp,d_sharp); enddef; + +input lcyrdefs; + +def generate suffix t= enddef; + +input cmr10; + +mode_setup; font_setup; pseudo_setup; + +input lgbersta; +message ""; +input lgberstb; +message ""; +input lgberstc; +message ""; +bye. +%end of file |