diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 23:38:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 23:38:21 +0000 |
commit | 215012a8d684889983ec2c0629e1c704e6853d9c (patch) | |
tree | ebf1271bd71869069824935ae8a5678745bf8bce /Master/texmf-dist/fonts/source/public/yannisgr | |
parent | 1af3d19d6dbcbf309667d9cb4aa3cdda914914a9 (diff) |
trunk/Master/texmf-dist/fonts/source
git-svn-id: svn://tug.org/texlive/trunk@101 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/fonts/source/public/yannisgr')
27 files changed, 5499 insertions, 0 deletions
diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/csc_misce.mf b/Master/texmf-dist/fonts/source/public/yannisgr/csc_misce.mf new file mode 100644 index 00000000000..69713927111 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/csc_misce.mf @@ -0,0 +1,678 @@ +cmchar "Tao"; +beginchar(oct"177",18u#,cap_height#,18u#-cap_height#); +adjust_fit(0,0); pickup fine.nib; +bot y1=cap_height; +y2=-d; y3=.5[y1,y2]; +y6=.666[y2,y3]; y7=.333[y2,y3]; +top y5=.333[y3,y1]; bot y4=.666[y3,y1]; +y11=.25[y2,y1]; y10=.75[y2,y1]; y13=y3;x13=w; +x1=x2=x3=x4=x5=x6=x7=.5w; penpos2(hair,90); +lft x10=.25w; lft x11=.75w; +draw z1..z2..cycle; +fill z6..z7..cycle; +fill z2r{right}..z11{up}..z3{left}..z10{up}..z1{right}.. +z13{down}..z2l{left}--z2r..cycle; +unfill z4..z5..cycle; penlabels(1,2,3,4,5,6,7,10,11,13); +endchar; + +picture savedpicture; + +cmchar "Diaeresis"; +beginchar(oct"042",9u#,circ_ht#,0); +adjust_fit(0,0);diaeresis(.5w); +endchar; +picture savedpicture; + +cmchar "Iota subscript"; +beginchar("|",9u#,0,.6desc_depth#); +adjust_fit(0,0);iota_sub(.5w); +endchar; +picture savedpicture; + + +def width = 5u enddef; +def dims = width#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = if monospace: u#,u# else:0,2curve#-3u# fi enddef; + +def gen_letter= + pickup fine.nib; + pos1(flare,180); lft x1r=hround u; top y1=x_height+oo; % top + numeric neck; neck=.2[hair,stem]; + pos2(neck,180); .2[lft x2r,rt x2l]=.2[lft x1r,rt x1l]; % neck + pos3(curve,-90); bot y3r=-oo; % bottom + y2r=if monowidth: 2 else: 1.5 fi[bot y3r,top y3l]; + z3r-z2r=whatever*(1,-1.25); + if monowidth: + y4r+.5neck=vround y2r; x3=.5[x2,x4]; pos4(neck,0); % tip of hook + filldraw stroke z4e...z3e...z2e---z1e; + else: + z4l=z4r; top y4r=y2r; z4l-z3l=whatever*(1,1); + path p.r, p.l; forsuffixes e=r,l: p.e=z1e---z2e...z3e...z4e; endfor + rt x3.5r=hround(rt xpart directionpoint up of p.r); + z4'r=direction 3 of p.r; z3'r=direction 2 of p.r; + forever: % avoid bad vertical tangent between 2l and 3l + x2.5l:= rt xpart directionpoint down of p.l; + exitif abs(hround(x2.5l)-x2.5l)<.05; + x2l:=x2l+hround(x2.5l)-x2.5l; p.l:=(z1l---z2l...z3l...z4l); + endfor + p.r:=z1r---z2r...club.r(3,3.5,4); + % avoid bad vertical tangent between 3r and 4r + filldraw stroke p.e; + fi + traba(.5u); + numeric x_baryctr; x_baryctr=x1; +enddef; + + +cmchar "Inverse lowercase iota with circumflex"; +beginchar(oct"126",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); +transform anokato; anokato:= identity rotatedaround ((.5w,.5[y3r,y1]),180); +currentpicture:= currentpicture transformed anokato; +endchar; + +picture savedpicture; + +def width = 8.5u enddef; +def height = x_height enddef; +def depth = desc_depth enddef; +def dims = width#,height#,depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter_rho = +adjust_fit(0,0); + pickup fine.nib; + lft x4r=hround .75u; x8r=w-x4r; y4r=y8r=.5x_height; % left and right + top y2r=x_height+oo; bot y6r=-oo; x2r=x6r=.5w; % top and bottom + filldraw stroke + gr_arc.e(4,5,6)(curve,vair,-otilt) & gr_arc.e(6,7,8)(curve,vair,-otilt) & + gr_arc.e(8,1,2)(curve,vair,-otilt) & gr_arc.e(2,3,4)(curve,vair,-otilt); + if straight: + y9-.5stem=-d-oo; x9=x4; pos9(stem,180); % end of handle + filldraw circ_stroke z9e..z4e; + else: + y9=-d-oo; x9=lft x4r+.5stem; % end of handle + pos9(stem,angle((z9-z4)xscaled3)-120); z9'r=z9'l=(z9-z4)xscaled3; + rt x10l=lft x10r+vair; % vertical tangents of handle + x10r=x4r-epsilon; assign_z4'r((-2eps,-1)); % so club.r won't get confused + filldraw double_circ_stroke club.e(4,10,9); + fi + numeric x_baryctr; x_baryctr=x2; % breathing placement +enddef; + +cmchar "Lowercase rho with rough breathing"; +beginchar(oct"010",width#,acc_ht#,depth#); +gen_letter_rho; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase rho with smooth breathing"; +beginchar(oct"011",width#,acc_ht#,depth#); +gen_letter_rho; spirit(x_baryctr)>; endchar; + +picture savedpicture; + +cmchar "Uppercase Qappa"; +beginchar(oct"103",12u#,cap_height#,0); +italcorr .75cap_height#*slant-.5u#; +adjust_fit(cap_serif_fit#,0); +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: dish_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 +math_fit(0,ic#-2.5u#); transform antistrofh; +antistrofh=identity reflectedabout ((w/2,0),(w/2,1)); +picture krufo; +krufo=currentpicture transformed antistrofh; +picture currentpicture; +currentpicture=krufo; +penlabels(0,1,2,3,4,5,6,7); endchar; + +picture savedpicture; + +def ital = 0 enddef; +def fit_params = -.25,0 enddef; + +cmchar "lowercase sanpi"; +beginchar(oct"136",13u#,.9body_height#,0); +adjust_fit(0,0); +penpos1(vstem,135); penpos2(1.2cap_stem,0); +x2r=hround(w-.75u); y2=0; +top y1=hround(h-u); lft x1r=0; +fill z2l{-4/5,1}..z1l--z1r..{3/5,-1}z2r--z2l--cycle; +penpos3(cap_stem,45); penpos4(hair,0); +penpos8(hair,-45); +penpos5(cap_stem,45); penpos6(hair,0); +penpos7(hair,-45); +x3=x8=.33x2l; x5=x7=2x3; +x4r=x3-vstem; +x6r=x5-.8vstem; +y4=.5y8; y6=.5y7; +y3=y5=0; +y8=.66h; y7=.45h; +filldraw circ_stroke z3e...z4e...z8e; +filldraw circ_stroke z5e...z6e...z7e; +penlabels(1,2,3,4,5,6,7,8); endchar; + +picture savedpicture; + +cmchar "lowercase qoppa"; +beginchar(oct"133",9u#,.5(body_height#+x_height#),0); +adjust_fit(0,0); +pickup pencircle xscaled vstem rotated 25; +y1=y2=x_height; x1=1.5u; x2=7.5u; +draw z1..z2..cycle; +penpos3(hair,0); penpos4(1.7stem,45); +y3=x_height-3u; +x3=x4=4.5u; y4=0; +filldraw circ_stroke z4e---z3e; +penlabels(1,2,3,4); +endchar; +picture savedpicture; + +def gen_qoppa = +pickup pencircle xscaled 1.11stem rotated 25; +y1=0.5x_height; y2-y1=0.125d; y3=-d; y4-y1=y2-y3; +x1=0; rt x2=w; x2-x3=.25w; x4-x1=.25w; +draw z1--z2; +draw z3--z2; +draw z1--z4; +enddef; + +cmchar "variation of lowercase qoppa"; +beginchar(oct"134",8u#,1.125desc_depth#,desc_depth#); +adjust_fit(0,0); +gen_qoppa; +endchar; +picture savedpicture; + +cmchar "Uppercase Sanpi"; +beginchar(oct"137",15u#,cap_height#,0); +adjust_fit(cap_serif_fit#,cap_serif_fit#); +numeric left_stem,right_stem,outer_jut,alpha; +right_stem=cap_stem-stem_corr; +left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem); +outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; 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 =8/12y0; +y5r-y5l=y6r-y6l=cap_band; +y7=0;x7=x1+x6-x5; +penpos7(whatever,180); +x1r-x1l=x7r-x7l;fill z6r--z7l--z7r--z6l--z6r--cycle; +if serifs: numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(4,3); + prime_points_inside(7,6); numeric med_jut; +med_jut=x7l-x4l+inner_jut+x7-outer_jut; + 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(7',6,e,1/2,med_jut,f,.6,inner_jut)(dark); % left serif + dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi % right serif +penlabels(0,1,2,3,4,5,6,7); endchar; + +def gen_digamma = +pickup pencircle xscaled 1.11stem rotated 25; +y1=-desc_depth; +y4=x_height=y5; +y2=y3=.55x_height; +lft x1=0; x2=x4=x1; +rt x5=w; rt x3=.65w; +draw z1--z2--z4; +draw z4--z5; +draw z2--z3; +enddef; + +cmchar "variation of lowercase digamma"; +beginchar(oct"020",8u#,x_height#,desc_depth#); +adjust_fit(0,0); +gen_digamma; +endchar; + +vstem#:=cap_stem#; + +cmchar "lowercase digamma version 3.12.88"; +beginchar(oct"135",10u#,x_height#+2vstem#,2vstem#) +adjust_fit(0,0); +pickup fine.nib; +pos0(hair,-180); pos3(1.2vstem,90); +pos4(hair,-180); pos5(1.5vstem,-90); +pos6(hair,-180); pos8(hair,90); +pos7(vstem,90); pos9(hair,-90); +pos10(hair,-180);pos11(hair,-90); +pos12(hair,-135); pos13(hair,-180); pos14(hair,-90); +z8=z10; +bot y9r=-2vstem; bot y8l=0; bot y7l=0; y5=y4; +y6=.5(y5r-y8r); y4=.5x_height+.7vstem; +y3l=x_height; y0=x_height+2vstem; y11=.25x_height; y12l=y14l=y13l=y9l; +x8=.5w; x9=x8+vstem; x7=.25w; +x6=.75w; x5=x8; lft x4r=0; x3=.66w; x11=x7; +x0=1.2w; x12l=x14l=x13l; x13=x8; +filldraw circ_stroke z0e{down}...z3e{left}...z4e{down}; +filldraw double_circ_stroke z4e{down}...z11e{right}...z5e{right}... +z6e{down}...z8e{left}; +filldraw circ_stroke z8e{left}...z7e{left}; +filldraw circ_stroke z9e{left}---z14e...z12e...z13e---z10e{up}; +penlabels(0,3,4,5,6,7,8,9,10); +endchar; + +def gen_Digamma = +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 +pos5(cap_bar,-90); pos6(hair,0); +top y5l=vround(.5[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-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 +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 +math_fit(0,ic#-2.5u#); +enddef; + +cmchar "Uppercase digamma (in our days known as F)"; +beginchar(oct"021",11.5u#-width_adj#,cap_height#,0); +italcorr cap_height#*slant-beak_jut#-.25u#; +adjust_fit(cap_serif_fit#,0); +h:=vround(h-stem_corr); +gen_Digamma; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + + +cmchar"upper numeric stroke"; +beginchar(oct"044",5u#,acc_ht#,0); +adjust_fit(0,0); acute(.3w); +endchar; +picture savedpicture; + +cmchar"under numeric stroke"; +beginchar(oct"046",5u#,acc_ht#,desc_depth#); +adjust_fit(0,0); acute(.7w); +transform katebasma; +katebasma:=identity shifted (0,-acc_ht); +currentpicture:=currentpicture transformed katebasma; +transform gurisma; +gurisma:=identity rotatedaround(.5[z21,z22] transformed katebasma,180); +currentpicture:=currentpicture transformed gurisma; +endchar; +picture savedpicture; + +cmchar "Grave accent"; +beginchar(oct"001",9u#,acc_ht#,0); +adjust_fit(0,0);grave(.5w); +endchar; + +cmchar "Rough breathing with grave"; +beginchar(oct"002",9u#,acc_ht#,0); +adjust_fit(0,0);spirit_grave(.5w)<; +endchar; + +cmchar "Smooth breathing with grave"; +beginchar(oct"003",9u#,Circ_ht#,0); +adjust_fit(0,0);spirit_grave(.5w)>; +endchar; + +cmchar "Diaeresis with grave"; +beginchar(oct"004",9u#,acc_ht#,0); +adjust_fit(0,0);diaeresis_grave(.5w); +endchar; + +cmchar "Diaeresis with circumflex"; +beginchar(oct"005",9u#,Circ_ht#,0); +adjust_fit(0,0);diaeresis_circumflex(.5w); +endchar; + +cmchar "Breve accent"; +beginchar(oct"006",9u#,min(asc_height#,2x_height#),0); +italcorr h#*slant+1.0vair#-1.5u#; +adjust_fit(0,0); +pickup crisp.nib; pos1(1.5vair,-180); pos3(1.5vair,0); +top y1=top y3=h; lft x1r=w-rt x3r=hround(2u-.5vair); +numeric mid_thickness; mid_thickness=vround 1/3[vair,stem]; +pos2(mid_thickness,-90); x2=.5w; +bot y2r=vround max(x_height+o+tiny,1/3[x_height,h]+o-.5mid_thickness); +filldraw stroke z1e{down}...z2e{right}...{up}z3e; % stroke +endchar; + +cmchar "Macron (bar) accent"; +numeric macron_breadth#; macron_breadth#=.2[vair#,stem#]; +beginchar(oct"007",9u#,.4[x_height#,asc_height#]+macron_breadth#,0); +italcorr h#*slant-.75u#; +adjust_fit(0,0); +numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; +pickup if serifs: crisp.nib else: fine.nib fi; +pos1(macron_breadth,90); pos2(macron_breadth,90); +top y1r=top y2r=h+o; lft x1=w-rt x2=hround 1.25u; +filldraw stroke z1e--z2e; % bar +endchar; + +old_u#:=u#; % unit width +old_width_adj#:=width_adj#; % width adjustment for certain characters +old_cap_serif_fit#:=cap_serif_fit#; +old_cap_height#:=cap_height#; % height of caps +old_desc_depth#:=desc_depth#; + +old_beak#:=beak#; +old_tiny#:=tiny#; % diameter of rounded corners +old_fine#:=fine#; % diameter of sharply rounded corners +old_hair#:=hair#; % lowercase hairline breadth +old_stem#:=stem#; % lowercase stem breadth +old_curve#:=curve#; % lowercase curve breadth +old_cap_stem#:=cap_stem#; % uppercase stem breadth +old_o#:=o#; + +old_cap_jut#:=cap_jut#; % protrusion of uppercase serifs +old_beak_jut#:=beak_jut#; % horizontal protrusion of beak serifs +old_vair#:=vair#; % vertical diameter of hairlines +old_slab#:=slab#; % serif and arm thickness +old_cap_bar#:=cap_bar#; % uppercase bar thickness +old_stem_corr#:=stem_corr#; % for small refinements of stem breadth +old_otilt:=otilt; + +old_beak_darkness:=beak_darkness; % fraction of triangle inside beak serifs + +% parameters for the four slanted characters + +slant:=ysl_slant; +font_setup; + +cmchar "Slanted Lowercase rho with rough breathing"; +beginchar(oct"012",width#,acc_ht#,depth#); +gen_letter_rho; spirit(x_baryctr)<; endchar; + +cmchar "Slanted Lowercase rho with smooth breathing"; +beginchar(oct"013",width#,acc_ht#,depth#); +gen_letter_rho; spirit(x_baryctr)>; endchar; + +cmchar "Slanted Uppercase digamma (in our days known as F)"; +beginchar(oct"023",11.5u#-width_adj#,cap_height#,0); +italcorr cap_height#*slant-beak_jut#-.25u#; +adjust_fit(cap_serif_fit#,0); +h:=vround(h-stem_corr); +gen_Digamma; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +cmchar "slanted variation of lowercase digamma"; +beginchar(oct"022",8u#,x_height#,desc_depth#); +adjust_fit(0,0); +gen_digamma; +endchar; + +picture savedpicture; + + + + +% parameters for the four italic characters + +u#:=yit_u#; % unit width + +hair#:=yit_hair#; % lowercase hairline breadth +curve#:=yit_curve#; % lowercase curve breadth +cap_stem#:=yit_cap_stem#; % uppercase stem breadth +cap_jut#:=yit_cap_jut#; % protrusion of uppercase serifs +beak_jut#:=yit_beak_jut#; % horizontal protrusion of beak serifs + +slant:=yit_slant; % tilt ratio $(\Delta x/\Delta y)$ +font_setup; + +def width = 8.25u enddef; +def height = x_height enddef; +def depth = desc_depth enddef; +def dims = width#,height#,depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_it_rho = +adjust_fit(0,0); pickup fine.nib; +pos2(stem,180); pos3(vair,90); pos4(curve,0); pos5(vair,-90); pos6(stem,-180); +lft x2r=hround(1.5u-.5stem); x2=x6; x3=x5=.5[x2,x4]; +rt x4r=hround(w-1.5u+.5curve); +y2=y4=y6=.5[y3,y5]; top y3r=x_height+oo; bot y5r=-oo; +filldraw circ_stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + & pulled_arc.e(4,5) & pulled_arc.e(5,6); % bowl +pos2'(hair,-180); z2'r=z2r; pos1(vstem,-90); pos1'(vstem,90); z1'=z1; +pos0(hair,0); rt x0r=hround(w-u); bot y0=-d; bot y1r=vround-.9d; x1=x5; +interim superness:=sqrt superness; +filldraw stroke pulled_arc.e(0,1'); filldraw stroke pulled_arc.e(1,2'); % tail +math_fit(desc_depth#*slant+.5stem#-u#,ic#); + numeric x_baryctr; x_baryctr=x3; % breathing placement +enddef; + +cmchar "Italic Lowercase rho with rough breathing"; +beginchar(oct"014",width#,acc_ht#,depth#); +gen_it_rho; spirit(x_baryctr)<; endchar; + +cmchar "Italic Lowercase rho with smooth breathing"; +beginchar(oct"015",width#,acc_ht#,depth#); +gen_it_rho; spirit(x_baryctr)>; endchar; + +cmchar "Italic Uppercase digamma (in our days known as F)"; +beginchar(oct"025",11.5u#-width_adj#,cap_height#,0); +italcorr cap_height#*slant-beak_jut#-.25u#; +adjust_fit(cap_serif_fit#,0); +h:=vround(h-stem_corr); +gen_Digamma; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +cmchar "Italic variation of lowercase digamma"; +beginchar(oct"024",8u#,x_height#,desc_depth#); +adjust_fit(0,0); +gen_digamma; +endchar; + +% parameters for the four boldface characters + +u#:=ybf_u#; % unit width +width_adj#:=ybf_width_adj#; % width adjustment for certain characters +cap_serif_fit#:=ybf_cap_serif_fit#; +cap_height#:=ybf_cap_height#; % height of caps +x_height#:=ybf_x_height#; % height of lowercase without ascenders + +tiny#:=ybf_tiny#; % diameter of rounded corners +fine#:=ybf_fine#; % diameter of sharply rounded corners +hair#:=ybf_hair#; % lowercase hairline breadth +stem#:=ybf_stem#; % lowercase stem breadth +curve#:=ybf_curve#; % lowercase curve breadth +cap_stem#:=ybf_cap_stem#; % uppercase stem breadth +o#:=ybf_o#; + +cap_jut#:=ybf_cap_jut#; % protrusion of uppercase serifs +beak_jut#:=ybf_beak_jut#; % horizontal protrusion of beak serifs +vair#:=ybf_vair#; % vertical diameter of hairlines +slab#:=ybf_slab#; % serif and arm thickness +cap_bar#:=ybf_cap_bar#; % uppercase bar thickness +stem_corr#:=ybf_stem_corr#; % for small refinements of stem breadth + +slant:=ybf_slant; % tilt ratio $(\Delta x/\Delta y)$ +beak_darkness:=ybf_beak_darkness; % fraction of triangle inside beak serifs +font_setup; + +cmchar "Boldface Lowercase rho with rough breathing"; +beginchar(oct"016",width#,acc_ht#,depth#); +gen_letter_rho; spirit(x_baryctr)<; endchar; + +cmchar "Boldface Lowercase rho with smooth breathing"; +beginchar(oct"017",width#,acc_ht#,depth#); +gen_letter_rho; spirit(x_baryctr)>; endchar; + +cmchar "Boldface Uppercase digamma (in our days known as F)"; +beginchar(oct"027",11.5u#-width_adj#,cap_height#,0); +italcorr cap_height#*slant-beak_jut#-.25u#; +adjust_fit(cap_serif_fit#,0); +h:=vround(h-stem_corr); +gen_Digamma; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +cmchar "Boldface variation of lowercase digamma"; +beginchar(oct"026",8u#,x_height#,desc_depth#); +adjust_fit(0,0); +gen_digamma; +endchar; + +u#:=old_u#; % unit width +width_adj#:=old_width_adj#; % width adjustment for certain characters +cap_serif_fit#:=old_cap_serif_fit#; +cap_height#:=old_cap_height#; % height of caps +desc_depth#:=old_desc_depth#; + +beak#:=old_beak#; +tiny#:=old_tiny#; % diameter of rounded corners +fine#:=old_fine#; % diameter of sharply rounded corners +hair#:=old_hair#; % lowercase hairline breadth +stem#:=old_stem#; % lowercase stem breadth +curve#:=old_curve#; % lowercase curve breadth +cap_stem#:=old_cap_stem#; % uppercase stem breadth +o#:=old_o#; + +cap_jut#:=old_cap_jut#; % protrusion of uppercase serifs +beak_jut#:=old_beak_jut#; % horizontal protrusion of beak serifs +vair#:=old_vair#; % vertical diameter of hairlines +slab#:=old_slab#; % serif and arm thickness +cap_bar#:=old_cap_bar#; % uppercase bar thickness +stem_corr#:=old_stem_corr#; % for small refinements of stem breadth +otilt:=old_otilt; + +beak_darkness:=old_beak_darkness; % fraction of triangle inside beak serifs +font_setup; + +old_ht#:=ht#; % height of characters +old_xgap#:=xgap#; % horizontal adjustment +old_u#:=u#; % unit width +old_s#:=s#; % extra space at the left and the right +old_o#:=o#; % overshoot +old_px#:=px#; % horizontal thickness of pen +ht#:=logo_ht#; % height of characters +xgap#:=logo_xgap#; % horizontal adjustment +u#:=logo_u#; % unit width +s#:=logo_s#; % extra space at the left and the right +o#:=logo_o#; % overshoot +px#:=logo_px#; % horizontal thickness of pen +ygap#:=(ht#/13.5u#)*xgap#; % vertical adjustment +ho#:=o#; % horizontal overshoot +leftstemloc#:=2.5u#+s#; % position of left stem +barheight#:=.45ht#; % height of bar lines +py#:=.9px#; % vertical pen thickness + +define_pixels(s,u); +define_whole_pixels(xgap); +define_whole_vertical_pixels(ygap); +define_blacker_pixels(px,py); +pickup pencircle xscaled px yscaled py; +logo_pen:=savepen; +define_good_x_pixels(leftstemloc); +define_good_y_pixels(barheight); +define_corrected_pixels(o); +define_horizontal_corrected_pixels(ho); + +def beginlogochar(expr code, unit_width) = + beginchar(code,unit_width*u#+2s#,ht#,0); + pickup logo_pen enddef; + +def super_half(suffix i,j,k) = + draw z.i{0,y.j-y.i} + ... (.8[x.j,x.i],.8[y.i,y.j]){z.j-z.i} + ... z.j{x.k-x.i,0} + ... (.8[x.j,x.k],.8[y.k,y.j]){z.k-z.j} + ... z.k{0,y.k-y.j} enddef; + +beginlogochar(oct"030",18); +adjust_fit(0,0); +x1=x2=leftstemloc; x4=x5=w-x1; x3=w-x3; +y1=y5; y2=y4; bot y1=-o; +top y2=h+o; y3=y1+ygap; +draw z1--z2--z3--z4--z5; +labels(1,2,3,4,5); endchar; + +beginlogochar(oct"031",14); +adjust_fit(0,0); +x1=x2=x3=leftstemloc; +x4=x6=w-x1+ho; x5=x4-xgap; +y1=y6; y2=y5; y3=y4; +bot y1=0; top y3=h; y2=barheight; +draw z6--z1--z3--z4; draw z2--z5; +labels(1,2,3,4,5,6); endchar; + +beginlogochar(oct"032",13); +adjust_fit(0,0); +italcorr ht#*slant + .5u#; +if .5w<>good.x .5w: change_width; fi +lft x1=-eps; x2=w-x1; x3=x4=.5w; +y1=y2=y3; top y1=h; bot y4=-o; +draw z1--z2; draw z3--z4; +labels(1,2,3,4); endchar; + +beginlogochar(oct"033",15); +adjust_fit(0,0); +x1=.5w; x2=x4=leftstemloc; x3=x5=w-x2; +top y1=h+o; y2=y3=barheight; +bot y4=bot y5=-o; +draw z4--z2--z3--z5; super_half(2,1,3); +labels(1,2,3,4,5); endchar; + +beginlogochar(oct"034",15); +adjust_fit(0,0); +x1=x4=x5=x6=.5w; top y5=h+o; bot y6=-o; draw z5--z6; +top y1=h-py; bot y4=py; +x2=w-x3=good.x(1.5u+s); y2=y3=barheight; +super_half(2,1,3); super_half(2,4,3); +labels(1,2,3,4); endchar; + +beginlogochar(oct"040",14); +adjust_fit(0,0); +x1=x2=x3=leftstemloc; +x4=w-x1+ho; x5=x4-xgap; +y2=y5; y3=y4; bot y1=-o; +top y3=h; y2=barheight; +draw z1--z3--z4; draw z2--z5; +labels(1,2,3,4,5); endchar; + +beginlogochar(oct"036",15); +adjust_fit(0,0); +x1=x4=.5w; top y1=h+o; bot y4=-o; +x2=w-x3=good.x(1.5u+s); y2=y3=barheight; +super_half(2,1,3); super_half(2,4,3); +labels(1,2,3,4); endchar; + +beginlogochar(oct"037",15); +adjust_fit(0,0); +x1=x2=leftstemloc; x3=x4=x5=w-x1; +bot y1=bot y4=-o; +top y2=top y5=h+o; y3=y4+ygap; +draw z1--z2--z3; draw z4--z5; +labels(1,2,3,4,5); endchar; + +ht#:=old_ht#; % height of characters +xgap#:=old_xgap#; % horizontal adjustment +u#:=old_u#; % unit width +s#:=old_s#; % extra space at the left and the right +o#:=old_o#; % overshoot +px#:=old_px#; % horizontal thickness of pen + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/gen_m_acc.mf b/Master/texmf-dist/fonts/source/public/yannisgr/gen_m_acc.mf new file mode 100644 index 00000000000..fa444ada679 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/gen_m_acc.mf @@ -0,0 +1,69 @@ +def separator=max(1,vround(1/12x_height)) enddef; + + +vardef diaeresis(expr center)= + generate_diaeresis(center,dot_size,dot_size+1/8w,h,x_height+separator); +enddef; + +vardef generate_diaeresis(expr center,target_dot_diam,sep,eff_h,base)= +pickup tiny.nib; numeric dot_diam; +dot_diam:=max(tiny.breadth,hround(target_dot_diam)); +pos31(dot_diam,0); pos32(dot_diam,90); x31=x32; top y32r=vround(eff_h); +if bot y32l<base: y32l:=min(y32r-eps,base+.5currentbreadth); fi +y31=.5[y32l,y32r]; +pos33(dot_diam,0); penpos34(y32r-y32l,90); y33=y34=y31; x33=x34; +if sep>0 : center=.5[x31,x33]; x33-x31=sep; +else: + y35l=y35r=.5[y31,y32]; z35l=whatever[z21l,z22l]; z35r=whatever[z21r,z22r]; + rt x31r=hround((min(x35l,x35r)-.5currentbreadth)-.05w); + lft x33l=hround((max(x35l,x35r)+.5currentbreadth)+.05w); +fi +dot(31,32); dot(33,34); +penlabels(31,32,33,34,35); +enddef; + +vardef generate_universal(expr center)= +x91=center+.15u;x94=center-.15u; +y91=y94=x_height+1.5separator; +x92=x91+.3univ_acc_breadth*(body_height-x_height); +x93=x91-.3univ_acc_breadth*(body_height-x_height); +y93=y92=y91+univ_acc_breadth*(body_height-x_height); +fill z91--z92--z93--z94--cycle; +enddef; + +vardef universal(expr center)= +generate_universal(center); +enddef; + +vardef diaeresis_universal(expr center)= +x91=center; +y91=x_height+separator+dot_size; +x92=x91+.5univ_acc_breadth*(body_height-x_height); +x93=x91-.5univ_acc_breadth*(body_height-x_height); +y93=y92=y91+.866univ_acc_breadth*(body_height-x_height); +fill z91--z92--z93--cycle; +generate_diaeresis(center,dot_size, +1.3univ_acc_breadth*(body_height-x_height), +.6[h,x_height], +x_height+separator); +enddef; + +def acute(expr center)= +generate_universal(center); +enddef; +def circumflex(expr center)= +generate_universal(center); +enddef; +def corr_circumflex(expr center,katiallo)= +generate_universal(center); +enddef; +def spirit(expr center)text type = +; +enddef; +def spirit_acute(expr center)text type = +generate_universal(center); +enddef; +def spirit_circumflex(expr center)text type = +generate_universal(center); +enddef; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/greekcsc.mf b/Master/texmf-dist/fonts/source/public/yannisgr/greekcsc.mf new file mode 100644 index 00000000000..fa64c2fd9b6 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/greekcsc.mf @@ -0,0 +1,34 @@ +mode_setup; +font_setup; + +readfrom("gen_acc"); +readfrom("csc_misce"); +readfrom("rgrupper"); +readfrom("digits"); +readfrom("rgrpunct"); + +font_slant slant; font_x_height x_height#; +if monospace: font_normal_space 9u#; % no stretching or shrinking +font_quad 18u#; +font_extra_space 9u#; +else: font_normal_space 6u#+2letter_fit#; +font_normal_stretch 3u#; font_normal_shrink 2u#; +font_quad 18u#+4letter_fit#; +font_extra_space 2u#; +fi + +x_height2#:=x_height#; +forsuffixes $ = u,width_adj, cap_serif_fit, letter_fit, +body_height, cap_height, x_height, bar_height, comma_depth, +flare, cap_hair, stem, cap_stem, cap_curve, cap_ess, +cap_jut, beak_jut, beak, slab, cap_bar, cap_band, cap_notch_cut, +o, apex_o: $.# := lower.$.#; endfor +font_setup; +readfrom("scsc"); +extra_endchar := extra_endchar & ";charcode:=charcode+code_offset;"; +code_offset:=ASCII"a"-ASCII"A"; +readfrom("rgrupper"); +readfrom("ligcsc"); + +bye. + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/it_digits.mf b/Master/texmf-dist/fonts/source/public/yannisgr/it_digits.mf new file mode 100644 index 00000000000..6e4bf0c967f --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/it_digits.mf @@ -0,0 +1,262 @@ +% This is ITALD.MF in text format, as of Mar 31, 1986. +% This file contains the ten digits in so-called italic style. +% Character codes \0060 through \0071 are generated. + +% The characters all have the same italic correction. + +cmchar "Italic numeral 0"; +beginchar("0",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +penpos1(vair,90); penpos3(vair,-90); penpos2(curve,180); penpos4(curve,0); +if not monospace: interim superness:=sqrt(more_super*hein_super); fi +x2r=hround(1.5u-.5curve); x4r=w-x2r; x1=x3=.5w; +y1r=h+o; y3r=-o; 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 +penlabels(1,2,3,4); endchar; + +cmchar "Italic numeral 1"; +beginchar("1",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); pickup tiny.nib; +numeric light_stem; light_stem=hround .4[stem',cap_stem']; +pos1(light_stem,0); pos2(light_stem,0); +lft x1l=lft x2l=hround(.5(w+.5u)-.5cap_stem'); top y1=h+apex_o; bot y2=0; +filldraw stroke z1e--z2e; % stem +dish_serif(2,1,a,1/3,min(2.25u,lft x2l-1.5u), + b,1/3,min(2.25u,w-1.25u-rt x2r)); % serif +pickup crisp.nib; pos3(slab,-90); pos4(bar,-90); +top y3l=h+apex_o; top y4l=.8h+apex_o; +lft x4=max(1.25u,tiny.lft x1l-2.35u); tiny.rt x1r=lft x3+.25[tiny,hair]; +erase fill z3l{x4l-x3l,3(y4l-y3l)}...z4l{left} + --(x4l,h+apex_o+1)--(x3l,h+apex_o+1)--cycle; % erase excess at top +filldraw stroke z3e{x4e-x3e,3(y4e-y3e)}..{left}z4e; % point +penlabels(1,2,3,4); endchar; + +cmchar "Italic numeral 2"; +beginchar("2",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); pickup fine.nib; +pos1(vair,45); pos2(vair,0); pos3(vair,-90); pos4(hair,-180); +pos5(vair,-270); pos6(curve,-360); pos7(hair,-405); pos8(hair,-360); +x1=x2-.5u; rt x2r=hround(3.5u+.5vair); +x3=.6[x2,x4]; lft x4r=hround(u-.5hair); +x5=x7=.5w-.5u; rt x6r=hround(w-u); lft x8l=hround(1.5u-.5hair); +y1=.5[x_height,h]; y2=1/3[y1,y3]; y4=x_height; bot y3r=vround .78y4; +top y5r=h+o; y6=.5[y5,y7]; y7=.52y4; bot y8=-o; +filldraw stroke if not hefty:z1e{2(x2-x1),y2-y1}...{down}z2e...{left}z3e...fi + z4e{up}...pulled_arc.e(5,6) + ...z7e{2(x7-x6),y7-y6}...{down}z8e; % main stroke +pos9(vair,-90); pos10(vstem+curve-stem,-90); pos11(hair,0); +x9=w-x10=2.5u; rt x11r=hround(w-.5u+.5hair); +y9=.25[y10,y7]; bot y10r=-o; y11=.38x_height; +filldraw stroke z8e{up}...z9e{right}..{right}z10e...{up}z11e; % bar +penlabels(1,2,3,4,5,6,7,8,9,10,11); endchar; + +cmchar "Italic numeral 3"; +beginchar("3",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); pickup fine.nib; +pos1(vair,45); pos2(vair,0); pos3(vair,-90); pos4(hair,-180); +pos5(vair,-270); pos6(stem,-360); pos7(bar,-450); pos8(bar,-450); +x1=x2-.5u; rt x2r=hround(3.5u+.5vair); x3=.5[x2,x4]; lft x4r=hround u; +x5=x7=.5w; rt x6r=hround(w-u); x8=x7-u; +y1=.5[x_height,h]; y2=.5[y1,y3]; y7=y8=.52h; bot y3r=vround 1/4[y7,h]; +y4=1/3[y3,y5]; top y5r=h+o; y6=.5[y5,y7]; +filldraw stroke if not hefty: z1e{2(x2-x1),y2-y1}...{down}z2e...{left}z3e...fi + z4e{up}...pulled_arc.e(5,6) & pulled_arc.e(6,7)..z8e; % upper arc +pos7'(vair,90); z7'l=z7r; +pos9(curve,0); pos10(vair,-90); pos11(hair,-180); pos12(flare,-180); +rt x9r=hround(w-u); x10=.5w-.5u; lft x11r=hround .75u; +y9=.25h; bot y10r=-o; y11=1/3x_height; bulb(10,11,12); % bulb +filldraw stroke pulled_arc.e(7',9) & pulled_arc.e(9,10); % lower arc +penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; + +cmchar "Italic numeral 4"; +beginchar("4",9u#,fig_height#,desc_depth#); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); pickup fine.nib; +pos1(stem,0); pos6(stem,0); pos7(stem,0); +pos2(bar,-45); pos3(bar,-90); pos4(bar,-90); pos5(bar,-45); +rt x1r=hround(.5w+.5u+.5stem); lft x2l=hround .25u; +x3=2.75u; x4=w-2u; rt x5r=hround(w-.25u); +rt x6r=rt x7r=hround(2/3w+.5stem); +y1+.5stem=h+o; bot y2r=0; bot y3r=vround(.08h-.5bar); +bot y4r=vround-.5bar; bot y5r=vround(.03h-.5bar); +y6+.5stem=bar_height; y7-.5stem=-d; +filldraw circ_stroke z1e{down}...{3(x2-x1),y2-y1}z2e; % diagonal +filldraw stroke z2e{z1-z2}...z3e{right}..{right}z4e + ...{x5-x4,2(y5-y4)}z5e; % bar +filldraw z6l---z7l..z7r---z6r..cycle; % stem +penlabels(1,2,3,4,5,6,7); endchar; + +cmchar "Italic numeral 5"; +beginchar("5",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric bot_thickness,light_hair; +bot_thickness=max(fine.breadth,vround(slab-vair_corr)); +light_hair=hround(cap_hair if hefty: -\\2stem_corr fi); +pickup tiny.nib; pos5(vair,180); pos6(vair,90); +bot y5=vround(.53h-vair); top y6r=max(vround .61803h+o,top y6r+y5+eps-y6l); +pos3(light_hair,0); pos4(light_hair,0); +lft x3l=max(1.35u,2.1u-.5light_hair); x3=x4=x5; y4=y5; +top y3=h if not hefty: +\\o fi; +filldraw stroke z3e--z4e; % thin stem +penpos7(cap_stem-fine,0); penpos8(bot_thickness-fine,-90); +fine.rt x7r=hround(w-.9u); x8=.5[u,x7]; x6=.5[x5,x7]; +erase fill z5--bot z5--(x6,bot y5)--z6{left} + ..tension .9 and 1..{x5-x6,3(y5-y6)}cycle; % erase excess in middle +filldraw stroke z6e{left}..tension .9 and 1..{x5-x6,3(y5-y6)}z5e; % link +pickup fine.nib; pos6'(vair,90); z6'=z6; +y7=.5[y6,y8]; bot y8r=-o; +filldraw stroke pulled_arc.e(6',7) & pulled_arc.e(7,8); % bowl +if serifs: pos9(hair,-180); y9=.5y5; lft x9r=hround .9u; + pos10(flare+1/3(cap_stem-stem),-180); bulb(8,9,10); % bulb +else: pos9(3/7[bot_thickness,flare],angle(-7u,-h)); + lft x9r=hround(tiny.lft x3l-.75u); bot y9r=vround .15h-o; + x9l:=good.x x9l; y9l:=good.y y9l; + filldraw stroke term.e(8,9,left,1,4); fi % terminal +if hefty: pickup crisp.nib; pos1(slab,90); pos2(hair,0); + top y1r=h; x1=x4; rt x2r=hround(w-1.5u); y2=y1l-eps; + arm(1,2,a,0,0); % arm +else: numeric flag_breadth; flag_breadth=7/8[vair,cap_curve]; + pos1(flag_breadth,90); pos2(flag_breadth,60); + pos0(vair,90); top y1r=tiny.top y3; top y2r=vround .95h+o; y0r=y1r; + lft x1=tiny.lft x3l; x2r=.5[x1,x0]; rt x0=hround(w-1.6u); + erase fill top z1r--z1r...{right}z2r + --(x2r,top y1r)--cycle; % erase excess at top + filldraw stroke z1e...{right}z2e...z0e; fi % flag +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +cmchar "Italic numeral 6"; +beginchar("6",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric top_thickness,bot_thickness,side_thickness,pull; +top_thickness=max(fine.breadth,vround(slab-2vair_corr)); +bot_thickness=max(fine.breadth,vround(slab-vair_corr)); +side_thickness=max(fine.breadth,hround 1/3[curve,cap_curve]); +pull=min(.25,1.5superpull); +pickup fine.nib; pos2(top_thickness,-270); +pos3(side_thickness,-180); pos4(bot_thickness,-90); +pos5(side_thickness,0); pos6(vair,90); +lft x3r=w-rt x5r=hround max(.75u,1.5u-.5side_thickness); +x4=x6-.1u=x2-u=.5w; +top y2r=h+o; y3=.5[y2,y4]; bot y4r=-o; +y5=.5[y4,y6]; top y6=vround 5/8h+o; +path p; p=pulled_super_arc.l(3,4)(pull); +numeric t; t=xpart(p intersectiontimes((x3r,y5)--(x4,y5))); +pos7(thin_join,180); z7l=point t of p; +(x,y6r)=whatever[z7l,z6l]; x6r:=min(x,.5[x5r,x6]); +filldraw stroke pulled_super_arc.e(2,3)(pull) + & {{interim superness:=more_super; pulled_super_arc.e(3,4)(pull)}} + & {{less_tense; pulled_super_arc.e(4,5)(pull) + & pulled_super_arc.e(5,6)(pull)}} + & z6e{left}...{direction t of p}z7e; % arc and bowl +if serifs: pos1(hair,-360); pos0(flare,-360); + rt x0r=max(rt x2+eps,hround(w-1.2u)); + y0=vround min(.9h-.5flare,.85h+.5flare)+o; + {{less_tense; bulb(2,1,0)}}; % arc and bulb +else: pos1(vround .1[top_thickness,flare],90); + top y1r=vround .97h+o; rt x1=hround(x5-.5); + filldraw stroke term.e(2,1,right,.9,4); fi % terminal +penlabels(0,1,2,3,4,5,6,7); endchar; + +cmchar "Italic numeral 7"; +beginchar("7",9u#,fig_height#,desc_depth#); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); pickup fine.nib; +numeric fat_curve; fat_curve=1.4[stem,curve]; +pos1(hair,0); pos2(hair,0); pos3(vstem+curve-stem,-90); +pos4(vair,-90); pos5(hair,0); pos6(fat_curve,0); +top y1=h+o; y2=x_height; y3l=y5=y1; +bot y4r=vround(.5[y2,h]-.5vair); y6-.5fat_curve=-o; +lft x2l=hround(.5u-.5hair); x3=.5w-.5u; x4=2/3w; +rt x5r=hround(w-.75u+.5hair); rt x6r=hround(.5w+u+.5fat_curve); +z1=z2+whatever*(z5-z6); filldraw stroke z1e--z2e; % serif +filldraw stroke z2e{z1-z2}...z3e{right}..{right}z4e + ...{2(x5-x6),y5-y6}z5e; % bar +filldraw circ_stroke z6e{up}...{2(x5-x6),y5-y6}z5e; % diagonal +penlabels(1,2,3,4,5,6); endchar; + +cmchar "Italic numeral 8"; +beginchar("8",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +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=.54h; +if hefty: mid_thickness=vround 2/3vair; upper_side=hround(stem-3stem_corr); + lower_side=hround min(.5[curve,cap_curve]-stem_corr,upper_side+.25u); + penpos1(top_thickness,90); penpos2(upper_side,180); + penpos3(mid_thickness,270); penpos8(upper_side,360); + penpos4(mid_thickness,90); penpos7(lower_side,180); + penpos6(bot_thickness,270); penpos5(lower_side,360); + penpos0(vair,90); z3l=z0r; z4l=z0l; + x1=x6=.5w; x2r=w-x8r=hround u; x7r=w-x5r=hround .75u; + top y1r=h+o; bot y6r=-o; y2=y8=.5[y1l,y3l]; y7=y5=.5[y4l,y6l]; + filldraw stroke pulled_arc.e(1,2) + & pulled_arc.e(2,3); % left half of upper bowl + filldraw stroke pulled_arc.e(4,5) + & pulled_arc.e(5,6); % right half of lower bowl + filldraw stroke pulled_arc.e(6,7) + & pulled_arc.e(7,4); % left half of lower bowl + filldraw stroke pulled_arc.e(3,8) + & pulled_arc.e(8,1); % right half of upper bowl +else: pickup fine.nib; theta=90-angle(18u,h); slope:=-h/18u; + upper_side=max(fine.breadth,hround(.5[hair,stem]-stem_corr)); + lower_side=hround(.5[hair,stem]+stem_corr); + 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 .75u; + x2r-x2l=upper_side-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)); + filldraw stroke z1e{left}..tension atleast tau..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 z1e{right}..tension atleast tau..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; fi % lower left stroke +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +cmchar "Italic numeral 9"; +beginchar("9",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric top_thickness,bot_thickness,side_thickness,pull; +top_thickness=max(fine.breadth,vround(slab-2vair_corr)); +bot_thickness=max(fine.breadth,vround(slab-vair_corr)); +side_thickness=max(fine.breadth,hround 1/3[curve,cap_curve]); +pull=min(.25,1.5superpull); +pickup fine.nib; pos2(bot_thickness,-90); +pos3(side_thickness,0); pos4(top_thickness,90); +pos5(side_thickness,180); pos6(vair,270); +w-rt x3r=lft x5r=hround max(.75u,1.5u-.5side_thickness); +x4-.1u=x6+.1u=x2+.75u=.5w; +bot y2r=-o; y3=.5[y2,y4]; top y4r=h+o; +y5=.5[y4,y6]; bot y6=vround 3/8h-o; +path p; p=pulled_super_arc.l(3,4)(pull); +numeric t; t=xpart(p intersectiontimes((x3r,y5)--(x4,y5))); +pos7(thin_join,360); z7l=point t of p; +(x,y6r)=whatever[z7l,z6l]; x6r:=max(x,.5[x5r,x6]); +filldraw stroke pulled_super_arc.e(2,3)(pull) + & {{interim superness:=more_super; pulled_super_arc.e(3,4)(pull)}} + & {{less_tense; + pulled_super_arc.e(4,5)(pull) & pulled_super_arc.e(5,6)(pull)}} + & z6e{right}...{direction t of p}z7e; % arc and bowl +if serifs: pos1(hair,-180); pos0(flare,-180); + lft x0r=min(lft x2-eps,hround 1.2u); + y0=vround max(.1h+.5flare,.15h-.5flare)-o; + {{less_tense; bulb(2,1,0)}}; % arc and bulb +else: pos1(.1[bot_thickness,flare],-120); + bot y1r=vround .07h-o; lft x1r=hround 1.3u; + filldraw stroke term.e(2,1,left,.9,4); fi % terminal +penlabels(0,1,2,3,4,5,6,7); endchar; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/it_lig.mf b/Master/texmf-dist/fonts/source/public/yannisgr/it_lig.mf new file mode 100644 index 00000000000..aa6b60e8b96 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/it_lig.mf @@ -0,0 +1,93 @@ +k#:=-.7u#;kk#:=-1.8u#;kkk#:=-2.5u#; +diaer=oct"042"; % double quote +ligtable "-": "-" =: oct"000"; % en-dash +% |ligtable oct"000": "-" =: oct"177";| em-dash +ligtable "(": "(" =: oct"173"; % open quotes +ligtable ")": ")" =: oct"175"; % close quotes +ligtable "<": + "~" =: oct"100", "'" =: oct"126",% | "`" =: oct"103",| + "a" =: oct"001", "e" =: oct"037", "h" =: oct"007",% | "r" =: oct"373",| + "o" =: oct"137", "w" =: oct"015", "i" =: oct"023", "u" =: oct"031", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +ligtable ">": + "~" =: oct"134", "'" =: oct"136",% | "`" =: oct"137",| + "a" =: oct"002", "e" =: oct"040", "h" =: oct"010",% | "r" =: oct"374",| + "o" =: oct"140", "w" =: oct"016", "i" =: oct"024", "u" =: oct"032", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +ligtable diaer: "'" =: oct"043";% | "`" =: oct"044",| +% | "i" =: oct"360", "u" =: oct"364";| +% |ligtable oct"044":| % diaeresis and grave + % |"i" =: oct"361", "u" =: oct"365";| +% |ligtable oct"043":| % diaeresis and acute + % |"i" =: oct"362", "u" =: oct"366";| +% |ligtable oct"040":| % diaeresis and circumflex + % |"i" =: oct"363", "u" =: oct"367";| +% |ligtable "`": diaer =: oct"044",| + % |"a" =: oct"200", "h" =: oct"230", "w" =: oct"260",| + % |"e" =: oct"340", "o" =: oct"344", "i" =: oct"310", "u" =: oct"314";| +ligtable "'": diaer =: oct"043", "'" =: oct"035", + "a" =: oct"003", "h" =: oct"011", "w" =: oct"017", + "e" =: oct"044", "o" =: oct"103", "i" =: oct"025", "u" =: oct"033", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +ligtable oct"126": % rough breathing and acute, + "a" =: oct"004", "h" =: oct"012", "w" =: oct"020", + "e" =: oct"177", "o" =: oct"133", "i" =: oct"026", "u" =: oct"034", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +ligtable oct"136": % smooth breathing and acute + "a" =: oct"005", "h" =: oct"013", "w" =: oct"021", + "e" =: oct"046", "o" =: oct"135", "i" =: oct"027", "u" =: oct"166", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +ligtable "~": % |diaer =: oct"040",| + "a" =: oct"006", "h" =: oct"014", "w" =: oct"022", + "i" =: oct"030", "u" =: oct"036"; +% |ligtable oct"100":| % rough breathing and circumflex + % |"a" =: oct"221", "h" =: oct"251", "w" =: oct"301",| + % |"i" =: oct"331", "u" =: oct"335";| +% |ligtable oct"134":| % smooth breathing and circumflex + % |"a" =: oct"222", "h" =: oct"252", "w" =: oct"302",| + % |"i" =: oct"332", "u" =: oct"336"; | +mk#:=-1.2u#; +ligtable "l": + "h" kern mk#,oct"011" kern mk#,oct"014" kern mk#,"u" kern mk# + ,oct"033" kern mk#,oct"036" kern mk#, "o" kern k#, oct"103" kern k#, + "a" kern k#, oct"003" kern k#, oct"006" kern k#, "i" kern k#, + oct"025" kern k#, oct"030" kern k#; +ligtable "u": oct"033" : oct"036" : oct"031" : oct"032" : oct"034" : oct"166": + "g" kern k#, "r" kern -k#; +ligtable "e": oct"044" : oct"040" : oct"037" : oct"046" : oct"177" : + "i" kern k#, oct"025" kern k#, oct"030" kern k#, oct"024" kern k#, + oct"023" kern k#, oct"027" kern k#, oct"026" kern k#, "n" kern k#; +ligtable "D" : "u" kern k#, oct"033" kern k#, oct"036" kern k#, "h" kern mk#, + oct"011" kern mk#, oct"014" kern mk#; +ligtable "k" : "o" kern k#, oct"103" kern k#; +ligtable "R" : "a" kern k#, oct"003" kern k#, oct"006" kern k#, "w" kern k#, + oct"017" kern k#, oct"022" kern k#; +ligtable "h" : oct"011" : oct"014" : oct"007" : oct"010" : oct"012" : + oct"013" : "m" kern -k#, "r" kern -k#; +ligtable "m" : "n" kern k#, "a" kern k#, oct"003" kern k#, oct"006"kern k#; +ligtable "o" : oct"137" : oct"140" : oct"103" : oct"133" : oct"135" : + "u" kern k#, oct"033" kern k#, oct"036" kern k#, oct"031" kern k#, + oct"032" kern k#, oct"034" kern k#, oct"166" kern k#, "k" kern k#, + "q" kern k#, "n" kern k#, "m" kern -k#; +ligtable "r" : "m" kern -k#; +ligtable "z" : "o" kern k#, oct"103" kern k#, "a" kern k#, oct"003" kern k#, + oct"006" kern k#, "h" kern k#, oct"011" kern k#, oct"014" kern k#; +ligtable "K" : "a" kern k#, oct"003" kern k#, oct"006" kern k#; +ligtable "w" : oct"017" : oct"022" : oct"015" : oct"016" : oct"020" : + oct"021" : "q" kern k#; +ligtable "g" : "w" kern k#, oct"017" kern k#, oct"022" kern k#; +ligtable "T" : "h" kern k#, oct"011" kern k#, oct"014" kern k#, "o" kern mk#, + oct"103" kern mk#; +ligtable "x" : "o" kern k#, oct"103" kern k#, "a" kern k#, oct"003" kern k#, + oct"006" kern k#, oct"017" kern k#, "w" kern k#, oct"022" kern k#; +ligtable "A" : "g" kern mk#, "d" kern k#; +ligtable "O" : "l" kern k#; +ligtable "a" : oct"001" : oct"002" : oct"003" : oct"004" : oct"005" : + oct"006" : "n" kern k#; +ligtable "U" : "p" kern mk#; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/it_lower.mf b/Master/texmf-dist/fonts/source/public/yannisgr/it_lower.mf new file mode 100644 index 00000000000..1e9938352b6 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/it_lower.mf @@ -0,0 +1,889 @@ +% +% +% ALFA + + +def width = 8.5u enddef; +def height = x_height enddef; +def dims = width#,height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,.5u# enddef; + +def gen_letter = +adjust_fit(0,0); pickup fine.nib; w:=w+.5u; +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 +math_fit(-.3x_height#*slant+.5curve#-u#,ic#); + numeric x_baryctr; x_baryctr=.25[x1,x4]; %accent reference + numeric pos_stem; pos_stem=x_baryctr; %iota reference + traba(-.5u); +enddef; + +cmchar "Lowercase alpha"; +beginchar("a",dims); +this_letter; penlabels(0,1,2,3,4,5,6,7); endchar; + +cmchar "Lowercase alpha with rough breathing"; +beginchar(oct"001",width#+u#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase alpha with smooth breathing"; +beginchar(oct"002",width#+u#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase alpha with acute"; +beginchar(oct"003",width#+u#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase alpha with rough breathing and acute"; +beginchar(oct"004",width#+u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase alpha with smooth breathing and acute"; +beginchar(oct"005",width#+u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase alpha with circumflex"; +beginchar(oct"006",width#+u#,circ_ht#,0); +this_letter; corr_circumflex(x_baryctr,u); endchar; + +picture pic.iota; +picture savedpicture; + +% BHTA + +def dims = 8u#,asc_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= +adjust_fit(0,0); pickup fine.nib; w:=w+1.5u; +pos0(.5[hair,stem],180); pos1(.5[hair,stem],180); pos2(vair,90); +pos3(stem,0); pos4(vair,-90); pos5(hair,-180); +pos6(vair,-270); pos7(curve,-360); pos8(vair,-450); pos9(hair,-540); +x0=x1=x9; lft x0l=hround(1.5u-.5hair); x2=x4=x6=x8=.5w+.25u; +rt x3r=hround(w-1.5u); rt x7r=hround(w-1.5u+.5curve); rt x5l=hround(x4-u); +bot y0=-d; y1=top y6r=x_height; top y2r=h+oo; y3=.5[y2,y4]; +y5=.5[y4,y6]; top y6r-bot y4r=vstem+eps; bot y8=-oo; y7=y9=.5[y6,y8]; +if y6l<y4l: y6l:=y4l:=y5; fi +filldraw stroke z0e---z1e...pulled_arc.e(2,3) + & pulled_arc.e(3,4)...{up}z5e; % stem and upper bowl +filldraw stroke z5e{up}...pulled_arc.e(6,7) + & pulled_arc.e(7,8)...{up}z9e; % lower bowl +math_fit(desc_depth#*slant+.5hair#-u#,.7x_height#*slant+.5curve#-1.5u#); +traba(-.5u); +enddef; + +cmchar "Lowercase beta"; +beginchar("b",dims); +this_letter; penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +picture savedpicture; + +% GAMMA + +def dims = 8.5u#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + adjust_fit(0,0); pickup fine.nib; w:=w+1.5u; +pos1(hair,180); pos2(vstem+dw,90); +pos4(hair,0); pos5(vair,-90); pos6(hair,-180); pos7(hair,-180); +bot y1=.5772156649h; top y2r=h+oo; y4=y6=-.5d; +bot y5r=-d-o; top y7=h; +lft x1r=hround(.5u-.5hair); x2=2.5u; rt x4r=hround(w-3u); x5=.5[x4,x6]; +rt x4l-lft x6l=curve; rt x7l=hround(w-u); +if x4l<x6l: x4l:=x6l:=x5; fi +pos3(hair,angle(z4-z2)+90); x3=superness[x2,x4]; y3=superness[y4,y2]; +filldraw stroke z1e{up}...z2e{right}...z3e{z4-z2} + ...z4e{down}...{left}z5e; % arc +filldraw stroke z5e{left}...z6e{up}..{2(x7-x6),y7-y6}z7e; % stem +math_fit(-.5772156649x_height#*slant,ic#-u#); +traba(-.5u); +enddef; + +cmchar "Lowercase gamma"; +beginchar("g",dims); +this_letter; penlabels(1,2,3,4,5,6,7); endchar; + +picture savedpicture; + +% DELTA + + +def dims = 7.25u#,asc_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + adjust_fit(0,0); pickup fine.nib; w:=w+.75u; +pos1(hair,-180); pos2(vair,-90); +numeric theta; theta=angle(18u,-h); pos9(hair,theta); +pos3(stem,theta+90); pos4(stem,theta+90); pos5(1/4[hair,stem],20); +pos6(vair,-90); pos7(curve,-180); pos8(vair,-270); +rt x1l=hround(w-2u+.5hair); x2=.5w; x3r=3u; rt x5r=hround(w-u); +x9l=hround(x1+u); y9=y1; +x4=x6=x8=.5w+.5u; lft x7r=hround(1.5u-.5curve); +top y2l=h+oo; y1=min(.9h,y2r-eps); top y8r=x_height+oo; y4=y8; +z4-z3=whatever*(18u,-h); y5=y7=.5[y6,y8]; bot y6=-oo; +filldraw stroke z1e{x2-x1,3(y2-y1)}...z2e{left}...z3e---z4e + ....z5e{down}...pulled_arc.e(6,7) & pulled_arc.e(7,8); % hook and bowl +filldraw stroke z1{x1-x2,3(y1-y2)}...{x1-x2,3(y2-y1)}z9; +math_fit(-.3x_height#*slant+.5curve#-u#,.7x_height#*slant-.5u#); +traba(-.5u); +enddef; + +cmchar "Lowercase delta"; +beginchar("d",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8); endchar; + +picture savedpicture; + +% EYILON + + +def width = 6.5u enddef; +def height = x_height enddef; +def dims = width#,height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = +adjust_fit(0,0); pickup fine.nib; w:=w+1.5u; +numeric light_vstem; light_vstem=Vround 2/3[vair,vstem]; +pos2(light_vstem,90); x2=x8=.5w+.5u; top y2r=h+o; +x1+.5light_vstem=hround(w-u); y1=.2[y2,bar_height]; +pos1(light_vstem,angle(x1-x2,2(y1-y2))+90); pos3(hair,180); pos4(vair,270); +pos5(hair,360); pos6(vair,450); pos7(hair,540); pos8(light_vstem,630); +lft x3r=hround u; x4=x6=.5w; rt x5r=hround(w-2.5u); x7=x3; +y3=.5[y2,y4]; y5=bar_height=.5[y4,y6]; y7=.5[y6,y8]; bot y8r=-o; +top y6r-bot y4r=vstem+eps; if y6l<y4l: y6l:=y4l:=y5; fi +x9+.5vair=hround(w-.5u); y9=1/3[y8,bar_height]; +pos9(vair,angle(x8-x9,2(y8-y9))+90); +filldraw circ_stroke z1e{x2-x1,2(y2-y1)}...pulled_super_arc.e(2,3)(.5superpull) + & super_arc.e(3,4)...{up}z5e; % upper arc +filldraw circ_stroke z9e{x8-x9,8(y8-y9)}...pulled_arc.e(8,7) + & super_arc.e(7,6)...{down}z5e; % lower arc +math_fit(-.5bar_height#*slant-.5u#,ic#); + numeric x_baryctr; x_baryctr=x2; % accent reference +traba(-.5u); +enddef; + +cmchar "Lowercase epsilon"; +beginchar("e",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9); endchar; + +cmchar "Lowercase epsilon with rough breathing"; +beginchar(oct"037",width#+1.2u#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase epsilon with smooth breathing"; +beginchar(oct"040",width#+1.2u#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase epsilon with acute"; +beginchar(oct"044",width#+1.2u#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase epsilon with rough breathing and acute"; +beginchar(oct"177",width#+1.2u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase epsilon with smooth breathing and acute"; +beginchar(oct"046",width#+1.2u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +picture savedpicture; + +% ZHTA + +def dims = 7u#,asc_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= +adjust_fit(0,0); pickup fine.nib; w:=w+u; +pos0(hair,-360); pos1(vair,-270); pos2(hair,-180); pos3(vair,-90); +numeric theta; theta=90-angle(25u,x_height); slope:=-x_height/25u; +pos6(stem,theta); pos7(vair,-90); pos8(vair,-135); +lft x0l=hround 3.5u; x1=x3=.5[x0,x2]; rt x2l=hround max(rt x0r,w-2u)+eps; +top y0=h; top y3l=bot y1l+vstem+eps=vround(y0-.25(h-x_height)); y2=.5[y1,y3]; +if y1r>y3r: y1r:=y3r:=y2; fi +lft x4l=hround u; x4r-x4l=(hround .6[vair,stem])-fine; +x6+.5u=x7=w-2u; x8=.5w+.75u; +y6=-.1d; y8=-3/4d-oo; bot y7r=-d-oo; +ellipse_set(3l,4l,5l,6l); ellipse_set(3r,4r,5r,6r); +y4l:=.9[y6,y4l]; y4=y4r:=.9[y6,y4r]; +filldraw circ_stroke z0e{down}...z1e{right}...{up}z2e; % opening hook +filldraw circ_stroke z8e{x7-x8,2(y7-y8)}...z7e{right} + ...z6e---z5e....{up}z4e + ..tension 1 and atleast1.5..{right}z3e...{down}z2e; % main stroke +math_fit(-.2asc_height#*slant-.5u#,0); +traba(-.5u); +enddef; + +cmchar "Lowercase zeta"; +beginchar("z",dims); +this_letter; penlabels(0,1,2,3,4,5,6,7,8); endchar; + +picture savedpicture; + +% HTA + + +def width = 8.5u enddef; +def dims = width#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = if straight: .75 else: .5 fi u#,0 enddef; + +def gen_letter = +adjust_fit(0,0); pickup fine.nib; w:=w+.5u; +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-1.5u+.5stem); ital_arch(2,3,4); % arch +pos5(stem,0); x5=x4; y5-.5stem=-d-o; +filldraw circ_stroke z5e--z4e; % right stem +math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#-1/3x_height#*slant); + numeric x_baryctr; x_baryctr=.1[x3,x0]; % accent reference + numeric pos_stem; pos_stem=x5; % iota reference +enddef; + +cmchar "Lowercase eta"; +beginchar("h",dims); +this_letter; penlabels(0,a,1,2,3,4,5); endchar; + +cmchar "Lowercase eta with rough breathing"; +beginchar(oct"007",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing"; +beginchar(oct"010",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase eta with acute"; +beginchar(oct"011",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase eta with rough breathing and acute"; +beginchar(oct"012",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing and acute"; +beginchar(oct"013",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase eta with circumflex"; +beginchar(oct"014",width#+1.3u#,circ_ht#,desc_depth#); +this_letter; corr_circumflex(x_baryctr,1.5u); endchar; + +picture pic.iota; +picture savedpicture; + +% JHTA + +def dims = 7u#,asc_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= +adjust_fit(0,0); pickup fine.nib; w:=w+1.25u; +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 +pos2'(bar,90); pos4'(bar,90); z2'=z2l; z4'=z4l; +filldraw stroke z2'e--z4'e; % bar +math_fit(-.3asc_height#*slant-u#+.5curve#,ic#-.5u#); +traba(-.5u); +enddef; + +cmchar "Lowercase theta"; +beginchar("j",dims); +this_letter; penlabels(1,2,3,4); endchar; + +picture savedpicture; + +% IWTA + + +def width = 5u enddef; +def dims = width#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = if monospace: u#,u# else:0,2curve#-3u# fi enddef; + +def gen_letter= +adjust_fit(if monospace: u#,u# else: 0,0 fi); pickup fine.nib; +pos1(stem,0); lft x1l=hround(1.5u-.5stem); y1+.5stem=h+oo; +x2=x1-.25u; x4=w; hook_out(2,3,4)(skewed); % closing hook +filldraw circ_stroke z1e{down}...{-u,-x_height}z2e; % stem +math_fit(0,ic#); numeric x_baryctr; x_baryctr=x1; +enddef; + +cmchar "Lowercase iota"; +beginchar("i",dims); +this_letter; penlabels(1,2,3,4); endchar; + +cmchar "Lowercase iota with rough breathing"; +beginchar(oct"023",width#,acc_ht#,0); +this_letter; spirit(x_baryctr if serifs: +.25u fi)<; endchar; + +cmchar "Lowercase iota with smooth breathing"; +beginchar(oct"024",width#,acc_ht#,0); +this_letter; spirit(x_baryctr if serifs: -.25u fi)>; endchar; + +cmchar "Lowercase iota with acute"; +beginchar(oct"025",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase iota with rough breathing and acute"; +beginchar(oct"026",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase iota with smooth breathing and acute"; +beginchar(oct"027",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase iota with circumflex"; +beginchar(oct"030",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; + +picture savedpicture; + +% KAPPA + +def dims = 8.5u#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= +adjust_fit(0,0); pickup fine.nib; w:=w+.5u; +pos1(stem,0); pos2(stem,0); pos3(vair,90); pos4(vair,90); pos5(flare,90); +x1=x2=x3; lft x1l=hround(1.5u-.5stem); y1+.5stem=h+oo; y2-.5stem=-oo; +filldraw z1l---z2l..z2r---z1r..cycle; % stem +y3=bar_height; top y4r=h; x4+.5flare=hround(w-1.5u); z5r=z4r; +path p,q; p=z3l{right}..{right}z4l; q=z5r{right}..z5l{left}...cycle; +numeric t; t=ypart(p intersectiontimes q); +filldraw stroke z3e{right}..{right}z4e; % upper diagonal +filldraw subpath(0,t) of q--cycle; % bulb +pos7(stem,0); pos8(vair,90); pos9(hair,180); +x9+.5hair=hround(w+.5hair-epsilon); 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 +math_fit(0,ic#); +traba(-.5u); +enddef; + +cmchar "Lowercase kappa"; +beginchar("k",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9); endchar; + +picture savedpicture; + +% LAMBDA + +def dims = 8u#,asc_height#,0 enddef; +def ital = 0 enddef; +def fit_params = -.25u#,-.25u# enddef; +def krn = -.75u# enddef; + +def gen_letter= +adjust_fit(0,0); pickup fine.nib; w:=w+2.5u; +pos1(vair,90); lft x1=hround .1u; top y1r=h; +x2=x1+2u; y2=.7[x_height,h]; x3=w-2u; bot y4=-oo; y3=max(.07h,y4+eps); +z4-(.25u,0)=whatever[z2,z3]; numeric theta; theta=angle(z2-z3)-90; +pos2(stem,theta); pos3(stem,theta); pos4(stem,0); +filldraw circ_stroke z1e{right}...z2e---z3e + ...{2(x4e-x3e),y4e-y3e}z4e; % long diagonal +y5=.5[bar_height,x_height]; z5=whatever[z2,z3]; +x6=1.5u; y6-.5stem=-oo; pos5(hair,theta-90); pos6(stem,angle(z5-z6)-90); +filldraw circ_stroke z6e--z5e; +traba(-u);% short diagonal +enddef; + +cmchar "Lowercase lambda"; +beginchar("l",dims); +this_letter; penlabels(1,2,3,4,5,6); endchar; + +picture savedpicture; + +% MI + +def dims = 8.25u#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,.5stem# enddef; + +def gen_letter= +adjust_fit(0,0); pickup fine.nib; +w:=w+.75u; interim superness:=more_super; +pos1(stem,-180); pos2(stem,-180); x1=x2=x3; lft x1r=hround(1.5u-.5stem); +y1+.5stem=h+oo; y2-.5stem=-d-o; +filldraw z1r---z2r..z2l---z1l..cycle; % left stem +pos3(stem,-180); 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 super_arc.e(3,4)...{up}z5e; % left stem and arc +filldraw circ_stroke z6e--z7e; % right stem +math_fit(desc_depth#*slant+.5stem#-u#,ic#); +traba(-.75u); +enddef; + +cmchar "Lowercase mu"; +beginchar("m",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9); endchar; + +picture savedpicture; + +% NI + +def dims = 8.5u#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = +adjust_fit(0,0); pickup fine.nib; +pos3(vair,-90); pos4(stem,0); bot y3r=0; y4+.5stem=h+oo; +x3-.5stem=hround(1.5u-.5stem); x4+.5stem=hround(w-1.5u+.5stem); +filldraw circ_stroke z4e{down}...{-36u,-h}z3e; % diagonal +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +top y1=h+min(oo,serif_drop); bot y2=0; x1=x2=x3; +z=((z4{down}...{-36u,-h}z3)intersectionpoint((x2r,0)--(x2r,h))); +filldraw z1l--z2l--z--z1r--cycle; % stem +sloped_serif.l(1,2,a,1/3,jut,serif_drop); traba(.5u);% upper left serif +math_fit(0,ic#-1/3x_height#*slant-.5u#); enddef; + +cmchar "Lowercase nu"; +beginchar("n",dims); +this_letter; penlabels(1,2,3,4); endchar; + +picture savedpicture; + +% XI + +def dims = 7u#,asc_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= +adjust_fit(0,0); pickup fine.nib; w:=w+u; +pos10(hair,-720); pos11(vair,-630); pos12(hair,-540); pos13(vair,-450); +lft x10l=hround 1/3w; x11=x13=.5[x10,x12]; rt x12l=hround(w-2.5u); +top y10=h; top y13l=bot y11l+vstem+eps=vround(y10-.25(h-x_height)); +y12=.5[y11,y13]; if y11r>y13r: y11r:=y13r:=y12; fi +pos0(curve,-360); pos1(vair,-270); pos2(hair,-180); pos3(vair,-90); +numeric theta; theta=90-angle(22u,x_height); slope:=-x_height/22u; +pos6(stem,theta); pos7(vair,-90); pos8(vair,-135); +lft x0l=hround u; x1=x3=x11; x2=x12; +y0=.5[y13,y1]; top y3l=vround .5h=bot y1l+vstem+eps; y2=.5[y1,y3]; +if y1r>y3r: y1r:=y3r:=y2; fi +lft x4l=hround u; x4r-x4l=hround .5[vair,stem]-fine; +x6=x7=w-2u; x8=.5w+.5u; y6=-.3d; bot y7r=-d-oo; y8=max(-3/4d-oo,y7l); +ellipse_set(3l,4l,5l,6l); ellipse_set(3r,4r,5r,6r); +y4l:=.9[y6,y4l]; y4=y4r:=.9[y6,y4r]; +filldraw circ_stroke z10e{down}...z11e{right}...{up}z12e; % opening hook +filldraw stroke z12e{up}...z13e{left}...z0e{down} + ...z1e{right}...{up}z2e; % upper arc +filldraw circ_stroke z8e{x7-x8,2(y7-y8)}...z7e{right}...z6e + ---z5e...{up}z4e...{right}z3e...{down}z2e; % main stroke +math_fit(-.2asc_height#*slant-.5u#,0); +traba(-.5u); +enddef; + +cmchar "Lowercase xi"; +beginchar("x",dims); +this_letter; penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; + +picture savedpicture; + +% OMIKRON + +def width = 8u enddef; +def dims = width#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = +adjust_fit(0,0); pickup fine.nib; w:=w+u; +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 +math_fit(-.3x_height#*slant+.5curve#-u#,ic#); + numeric x_baryctr; x_baryctr=.1[x1,x2]; +traba(-.5u); % accent reference +enddef; + + +cmchar "Lowercase omicron"; +beginchar("o",dims); +this_letter; penlabels(1,2,3,4); endchar; + +cmchar "Lowercase omicron with rough breathing"; +beginchar(oct"137",width#+.6u#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase omicron with smooth breathing"; +beginchar(oct"140",width#+.6u#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase omicron with acute"; +beginchar(oct"103",width#+.6u#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase omicron with rough breathing and acute"; +beginchar(oct"133",width#+.6u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase omicron with smooth breathing and acute"; +beginchar(oct"135",width#+.6u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +picture savedpicture; + +% PI + +def dims = 9u#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = -.25,0 enddef; + +def gen_letter = +adjust_fit(0,0); w:=w+u; pi_stroke; % hook and bar +pos4(hair,0); pos6(hair,0); x4=3.5u; x6=w-4u; y4=y6=y2; +x5=3u; x7=w-2.5u; y5=y7=.5stem-oo; +pair v[]; v1=(z4-z5) xscaled 3.14159; v2=(z6-z7) xscaled 3.14159; +pos5(stem,angle v1-90); pos7(stem,angle v2-90); +filldraw circ_stroke z5e{v1}...{up}z4e; % left stem +filldraw circ_stroke z7e{v2}...{up}z6e; % right stem +math_fit(-.7x_height#*slant+.5hair#+.5u#,ic#-1/3x_height#*slant); +enddef; + +cmchar "Lowercase pi"; +beginchar("p",dims); +this_letter; penlabels(1,2,3,4,5,6,7); endchar; + +picture savedpicture; + +% RO + + +def width = 7u enddef; +def height = x_height enddef; +def depth = desc_depth enddef; +def dims = width#,height#,depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = +adjust_fit(0,0); pickup fine.nib; w:=w+1.25u; +pos2(stem,180); pos3(vair,90); pos4(curve,0); pos5(vair,-90); pos6(stem,-180); +lft x2r=hround(1.5u-.5stem); x2=x6; x3=x5=.5[x2,x4]; +rt x4r=hround(w-1.5u+.5curve); +y2=y4=y6=.5[y3,y5]; top y3r=h+oo; bot y5r=-oo; +filldraw circ_stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + & pulled_arc.e(4,5) & pulled_arc.e(5,6); % bowl +pos2'(hair,-180); z2'r=z2r; pos1(vstem,-90); pos1'(vstem,90); z1'=z1; +pos0(hair,0); rt x0r=hround(w-u); bot y0=-d; bot y1r=vround-.9d; x1=x5; +interim superness:=sqrt superness; +filldraw stroke pulled_arc.e(0,1'); filldraw stroke pulled_arc.e(1,2'); % tail +math_fit(desc_depth#*slant+.5stem#-u#,ic#); + numeric x_baryctr; x_baryctr=x3; + traba(-.5u); % breathing placement +enddef; + +cmchar "Lowercase rho"; +beginchar("r",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +picture savedpicture; + +% SIGMA TELIKO + +def dims= 7u#,x_height#,.5min(desc_depth#,.5x_height#) enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = +adjust_fit(0,0); pickup fine.nib; w:=w+u; +numeric heavy_vair; heavy_vair=.25[vair,vstem]; +pos1(heavy_vair,-110); pos2(vair,-90); +x1+.5heavy_vair=hround(w-u); y1=.1[y2r,bar_height]; +x2=min(.5w+u,x1r-eps); top y2l=h+oo; +filldraw circ_stroke z1e{x2-x1,2(y2-y1)}...{left}z2e; % upper bulb +numeric theta; theta=90-angle(16u,x_height); slope:=-x_height/16u; +pos6(stem,theta); pos7(vair,-90); pos8(vair,-135); +lft x4l=hround u; x4r-x4l=(hround .5[vair,stem])-fine; +x6=x7=w-2u; x8=.5w+u; y6=.25[y8,y2]; y8=y7+1/8d; bot y7r=-d-oo; +ellipse_set(2l,4l,5l,6l); ellipse_set(2r,4r,5r,6r); y4=y4r; +filldraw circ_stroke z8e{x7-x8,2(y7-y8)}...z7e{right}...z6e + ---z5e...{up}z4e...{right}z2e; % main stroke +math_fit(-.5x_height#*slant-.5u#,0); +traba(-.5u); +enddef; + +cmchar "Final lowercase sigma"; +beginchar("c",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8); endchar; + +numeric gen_sigma; gen_sigma=1; + +% SIGMA ARQIKO + +def dim_sigma = 8.75u#,x_height#,0 enddef; +def ital_sigma = 0 enddef; +def fit_params_sigma = 0,.75u# enddef; + +def mid_sigma= +italcorr ital_sigma; adjust_fit(fit_params_sigma); +if known pic.c: currentpicture:=pic.c; else: gen_mid_sigma; fi +if not working_hard : picture pic.c; pic.c=currentpicture; fi +enddef; + +def gen_mid_sigma = +adjust_fit(0,0); pickup fine.nib; w:=w+1.5u; +pos1(vstem,90); pos2(stem,0); pos3(vair,-90); +pos4(stem,-180); pos5(vstem,-270); pos6(vstem,-270); +x1=x3=x5=.5[x2,x4]; rt x2r=hround(w-2.5u); +lft x4r=hround(1.5u-.5curve);x6=w-1.5u; +top y1r=h; y2=y4=.5[y1,y3]; bot y3r=-oo; y5=y6=y1; +filldraw circ_stroke z6e..pulled_arc.e(5,4) & pulled_arc.e(4,3) + & pulled_arc.e(3,2) & pulled_arc.e(2,1); % ear and bowl +math_fit(-.3x_height#*slant+.5curve#-u#,ic#-1/3x_height#*slant); +traba(-.5u); +enddef; + +cmchar "Initial and medial lowercase sigma"; +beginchar("s",dim_sigma); +mid_sigma; penlabels(1,2,3,4,5,6); endchar; + +picture savedpicture; + +% TAU + +def dims = 7.2u#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = -.25,0 enddef; + +def gen_letter= +adjust_fit(0,0); w:=w+u; pi_stroke; % hook and bar +pos4(stem,0); +x4-.5stem=hround(.5w-.5u-.5stem); y4=y2; x5=x4-.25u; x7=x4+3u; +hook_out(5,6,7)(skewed); +filldraw circ_stroke z4e{down}...{-u,-x_height}z5e; % stem +math_fit(-.7x_height#*slant+.5hair#+.5u#,-.5u#); +enddef; + +cmchar "Lowercase tau"; +beginchar("t",dims); +this_letter; penlabels(1,2,3,4,5,6,7); endchar; + +picture savedpicture; + +% UPSILON + + +def width = 8.5u enddef; +def dims = width#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= +adjust_fit(0,0); pickup fine.nib; +w:=w+.5u; 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=.5w+u; rt x5r=hround(w-.5u); y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; +filldraw stroke z2'e{-u,-x_height}...super_arc.e(3,4) + ..tension atleast 1.05..{up}z5e; % left stem and arc +v_bulb(5,6); % closing bulb +math_fit(-2/3x_height#*slant+.5hair#+.5u#,2/3ic#); + numeric x_baryctr; x_baryctr=x4-u; +enddef; + +cmchar "Lowercase upsilon"; +beginchar("u",dims); +this_letter; penlabels(0,1,2,3,4,5,6,7); endchar; + +cmchar "Lowercase upsilon with rough breathing"; +beginchar(oct"031",width#+.9u#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase upsilon with smooth breathing"; +beginchar(oct"032",width#+.9u#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase upsilon with acute"; +beginchar(oct"033",width#+.9u#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase upsilon with rough breathing and acute"; +beginchar(oct"034",width#+.9u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase upsilon with smooth breathing and acute"; +beginchar(oct"166",width#+.9u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase upsilon with circumflex"; +beginchar(oct"036",width#+.9u#,circ_ht#,0); +this_letter; corr_circumflex(x_baryctr,.5u); endchar; + +picture savedpicture; + +% FI + +def dims = 10.5u#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = +adjust_fit(0,0); pickup fine.nib; w:=w+.5u; +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 +math_fit(-.3x_height#*slant,ic#); +enddef; + +cmchar "Lowercase phi"; +beginchar("f",dims); +this_letter; penlabels(1,2,3,4,5,6,7); endchar; + +picture savedpicture; + +% QI + +def ital = 0 enddef; +def fit_params = 0,0 enddef; +def dims = 9u#,x_height#,desc_depth# enddef; + +def gen_letter= +adjust_fit(0,0); pickup fine.nib; w:=w+u; +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 +math_fit((desc_depth#-x_height#)*slant+ic#,ic#);traba(.3u); +enddef; + +cmchar "Lowercase chi"; +beginchar("q",dims); +this_letter; penlabels(0,1,2,2',3,4,5',5,6,7,8); endchar; + +picture savedpicture; + +% YI + +def dims = 10.5u#,asc_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = +adjust_fit(0,0); pickup fine.nib; +w:=w+.5u; 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=.5w+u; rt x5r=hround(w-.5u); +y3=.7[y4,y5]; bot y4r=-oo; y5=.57x_height; +filldraw stroke z2'e{-u,-x_height}...super_arc.e(3,4) + ..tension atleast 1.05..{up}z5e; % left stem and arc +v_bulb(5,6); % closing bulb +pos7(.5[hair,stem],0); pos8(.5[hair,stem],0); x7=x8=.5w+.5u; +top y7=h; bot y8=-d-oo; +filldraw stroke z7e--z8e; % stem +math_fit(-2/3x_height#*slant+.5hair#+.5u#,2/3ic#); +enddef; + +cmchar "Lowercase psi"; +beginchar("y",dims); +this_letter; penlabels(0,1,2,3,4,5,6,7,8); endchar; + +picture savedpicture; + +% WMEGA + + +def width = 8.3u enddef; +def height = x_height enddef; +def dims = width#,height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = +adjust_fit(0,0); pickup fine.nib; w:=w+1.2u; +pos2(hair,-180); lft x2r=hround.5u; y2=y4=y6=y8=bar_height; +y1+.5hair=h; x1=x2+.75u; pos1(hair,angle(2(x1-x2),y1-y2)+90); +pos3(vstem+dw,-90); pos4(hair,0); pos5(vair,90); +pos6(hair,180); pos7(vstem+dw,270); pos8(hair,360); +bot y3r=bot y7r=-oo; top y5r=vround(.2[y4,h]+.5vair); +x3=.5[x2,x4]; x7+.25u=.5[x6,x8]; rt x8r=hround(w-.5u); +x5+.5stem=hround(.5w+.5stem)+eps; +x5=.5[x4,x6]; rt x4r-lft x6r=min(stem,2hair)+2eps; +if x4l<x6l: x4l:=x6l:=x5; fi +filldraw circ_stroke z1e{2(x2-x1),y2-y1}...z2e{down}...z3e{right} + ...{up}z4e...{left}z5e; % left arc +filldraw stroke z5e{left}...z6e{down}...z7e{right}...{up}z8e; % right arc +v_bulb(8,9); % closing bulb +math_fit(-bar_height#*slant,2/3ic#); + numeric x_baryctr; x_baryctr=.5[x4,x6]; + numeric pos_stem; pos_stem=x_baryctr; traba(-.5u); +enddef; + +cmchar "Lowercase omega"; +beginchar("w",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9); endchar; + +cmchar "Lowercase omega with rough breathing"; +beginchar(oct"015",width#+u#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase omega with smooth breathing"; +beginchar(oct"016",width#+u#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase omega with acute"; +beginchar(oct"017",width#+u#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase omega with rough breathing and acute"; +beginchar(oct"020",width#+u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase omega with smooth breathing and acute"; +beginchar(oct"021",width#+u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase omega with circumflex"; +beginchar(oct"022",width#+u#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; + +picture pic.iota; +picture savedpicture; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/ligcsc.mf b/Master/texmf-dist/fonts/source/public/yannisgr/ligcsc.mf new file mode 100644 index 00000000000..ebc53f47e4b --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/ligcsc.mf @@ -0,0 +1,10 @@ +diaer=oct"042"; % double quote +ligtable "-": "-" =: oct"000"; % en-dash +ligtable "(": "(" =: oct"173"; % open quotes +ligtable ")": ")" =: oct"175"; % close quotes +ligtable diaer: "'" =: oct"042";% +ligtable "<" : "'" =: oct"176"; +ligtable ">" : "'" =: oct"176"; +ligtable "'" : "'" =: oct"035"; +ligtable oct"034" : oct"036" kern .8u#; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/m_accent.mf b/Master/texmf-dist/fonts/source/public/yannisgr/m_accent.mf new file mode 100644 index 00000000000..ddd405600d9 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/m_accent.mf @@ -0,0 +1,55 @@ +cmchar "Diaeresis with acute"; +beginchar(oct"043",9u#,acc_ht#,0); +adjust_fit(0,0);diaeresis_universal(.5w); +endchar; + +cmchar "Acute accent"; +beginchar("'",9u#,acc_ht#,0); +adjust_fit(0,0);universal(.5w); +endchar; + +cmchar "Circumflex accent"; +beginchar("~", 9u#,circ_ht#,0); +adjust_fit(0,0);universal(.5w); +endchar; + +cmchar "Diaeresis"; +beginchar(oct"042",9u#,circ_ht#,0); +adjust_fit(0,0);diaeresis(.5w); +endchar; + +cmchar "Rough breathing"; +beginchar("<",.1u#,acc_ht#,0); +adjust_fit(0,0);endchar; + +cmchar "Smooth breathing"; +beginchar(">",.1u#,acc_ht#,0); +adjust_fit(0,0);endchar; + +cmchar "Rough breathing with acute"; +beginchar(oct"126", 9u#,acc_ht#,0); +adjust_fit(0,0);universal(.5w); +endchar; + + +cmchar "Rough breathing with circumflex"; +beginchar(oct"100", 9u#,acc_ht#,0); +adjust_fit(0,0);universal(.5w); +endchar; + +cmchar "Smooth breathing with acute"; +beginchar(oct"136",9u#,acc_ht#,0); +adjust_fit(0,0);universal(.5w); +endchar; + + +cmchar "Smooth breathing and circumflex"; +beginchar(oct"134",9u#,Circ_ht#,0); +adjust_fit(0,0);universal(.5w); +endchar; + + +cmchar "Iota subscript"; +beginchar("|",.1u#,0,.6desc_depth#); +adjust_fit(0,0);endchar; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/m_greek.mf b/Master/texmf-dist/fonts/source/public/yannisgr/m_greek.mf new file mode 100644 index 00000000000..bb47a463b00 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/m_greek.mf @@ -0,0 +1,28 @@ +mode_setup; +font_setup; + +readfrom("gen_m_acc"); +if italics: +readfrom("it_lower"); +readfrom("it_digits"); +readfrom("it_lig"); +else: +readfrom("rgrlower"); +readfrom("digits"); +readfrom("rgrlig"); fi +readfrom("rgrupper"); +readfrom("m_accent"); +readfrom("rgrpunct"); + +font_slant slant; font_x_height x_height#; +if monospace: font_normal_space 9u#; % no stretching or shrinking +font_quad 18u#; +font_extra_space 9u#; +else: font_normal_space 6u#+2letter_fit#; +font_normal_stretch 3u#; font_normal_shrink 2u#; +font_quad 18u#+4letter_fit#; +font_extra_space 2u#; +fi + +bye. + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/mrgrbf10.mf b/Master/texmf-dist/fonts/source/public/yannisgr/mrgrbf10.mf new file mode 100644 index 00000000000..b24da5a939b --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/mrgrbf10.mf @@ -0,0 +1,86 @@ +% Monotonic Reduced Greek Bold 10 point +if unknown cmbase: input cmbase fi +if unknown grbase: input rgrbase fi + +font_identifier:="mrgrbf"; font_size 10pt#; + +u#:=22/36pt#; % unit width +width_adj#:=11/36pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=7/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=270/36pt#; % height of tallest characters +asc_height#:=250/36pt#; % height of lowercase ascenders +cap_height#:=247/36pt#; % height of caps +fig_height#:=232/36pt#; % height of numerals +x_height#:=160/36pt#; % height of lowercase without ascenders +math_axis#:=90/36pt#; % axis of symmetry for math symbols +bar_height#:=85/36pt#; % height of crossbar in lowercase e +comma_depth#:=70/36pt#; % depth of comma below baseline +desc_depth#:=90/36pt#; % depth of lowercase descenders %was 70 +acc_ht#:=250/36pt#; +circ_ht#:=230/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=72/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=13/36pt#; % diameter of rounded corners +fine#:=10/36pt#; % diameter of sharply rounded corners +thin_join#:=10/36pt#; % width of extrafine details +hair#:=13/36pt#; % lowercase hairline breadth (was 17) +stem#:=40/36pt#; % lowercase stem breadth (was 41) +curve#:=41/36pt#; % lowercase curve breadth (was 46) +ess#:=38/36pt#; % breadth in middle of lowercase s +flare#:=41/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=56/36pt#; % diameter of dots +cap_hair#:=19/36pt#; % uppercase hairline breadth +cap_stem#:=51/36pt#; % uppercase stem breadth +cap_curve#:=55/36pt#; % uppercase curve breadth +cap_ess#:=53/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.6pt#; % thickness of lines in math symbols +univ_acc_breadth:=.5; % from 0 to 1 : breadth of the universal accent + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=10/36pt#; % vertical distance from serif base to tangent +jut#:=25/36pt#; % protrusion of lowercase serifs +cap_jut#:=39/36pt#; % protrusion of uppercase serifs +beak_jut#:=11/36pt#; % horizontal protrusion of beak serifs +beak#:=70/36pt#; % vertical protrusion of beak serifs +vair#:=11/36pt#; % vertical diameter of hairlines (was 13) +notch_cut#:=10/36pt#; % maximum breadth above or below notches +bar#:=17/36pt#; % lowercase bar thickness +slab#:=17/36pt#; % serif and arm thickness +cap_bar#:=17/36pt#; % uppercase bar thickness +cap_band#:=17/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=10pt#; % max breadth above/below uppercase notches +serif_drop#:=3/36pt#; % vertical drop of sloped serifs +stem_corr#:=2/36pt#; % for small refinements of stem breadth +vair_corr#:=1.5/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=4/36pt#; % amount of overshoot for curves +apex_o#:=3/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; % tilt of inner bowl for the letter omicron +fudge:=1; % factor applied to weights of heavy characters +math_spread:=.5; % extra openness of math symbols +superness:=8/11; % parameter for superellipses +superpull:=1/8; % extra openness inside bowls +beak_darkness:=.4; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=false; % should stems, etc. be straight? +monowidth:=false; % are stem and hair more or less the same width? +italics:=false; + +generate m_greek; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/mrgrrg10.mf b/Master/texmf-dist/fonts/source/public/yannisgr/mrgrrg10.mf new file mode 100644 index 00000000000..79abb501da0 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/mrgrrg10.mf @@ -0,0 +1,86 @@ +% Monotonic Reduced Greek Regular 10 point +if unknown cmbase: input cmbase fi +if unknown grbase: input rgrbase fi + +font_identifier:="mrgrrg"; font_size 10pt#; + +u#:=20/36pt#; % unit width +width_adj#:=0pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=5/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=270/36pt#; % height of tallest characters +asc_height#:=250/36pt#; % height of lowercase ascenders +cap_height#:=246/36pt#; % height of caps +fig_height#:=232/36pt#; % height of numerals +x_height#:=155/36pt#; % height of lowercase without ascenders +math_axis#:=90/36pt#; % axis of symmetry for math symbols +bar_height#:=82/36pt#; % height of crossbar in lowercase e +comma_depth#:=70/36pt#; % depth of comma below baseline +desc_depth#:=90/36pt#; % depth of lowercase descenders +acc_ht#:=250/36pt#; +circ_ht#:=225/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=72/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=8/36pt#; % diameter of rounded corners +fine#:=7/36pt#; % diameter of sharply rounded corners +thin_join#:=7/36pt#; % width of extrafine details +hair#:=9/36pt#; % lowercase hairline breadth +stem#:=30/36pt#; % lowercase stem breadth +curve#:=30/36pt#; % lowercase curve breadth +ess#:=27/36pt#; % breadth in middle of lowercase s +flare#:=27/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=38/36pt#; % diameter of dots +cap_hair#:=11/36pt#; % uppercase hairline breadth +cap_stem#:=32/36pt#; % uppercase stem breadth +cap_curve#:=37/36pt#; % uppercase curve breadth +cap_ess#:=35/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.4pt#; % thickness of lines in math symbols +univ_acc_breadth:=.6; % from 0 to 1 : breadth of the universal accent + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=20/36pt#; % vertical distance from serif base to tangent +jut#:=28/36pt#; % protrusion of lowercase serifs +cap_jut#:=37/36pt#; % protrusion of uppercase serifs +beak_jut#:=10/36pt#; % horizontal protrusion of beak serifs +beak#:=70/36pt#; % vertical protrusion of beak serifs +vair#:=8/36pt#; % vertical diameter of hairlines +notch_cut#:=10pt#; % maximum breadth above or below notches +bar#:=11/36pt#; % lowercase bar thickness +slab#:=11/36pt#; % serif and arm thickness +cap_bar#:=11/36pt#; % uppercase bar thickness +cap_band#:=11/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=10pt#; % max breadth above/below uppercase notches +serif_drop#:=4/36pt#; % vertical drop of sloped serifs +stem_corr#:=1/36pt#; % for small refinements of stem breadth +vair_corr#:=1/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=8/36pt#; % amount of overshoot for curves +apex_o#:=8/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; % tilt of inner bowl for the letter omicron +fudge:=1; % factor applied to weights of heavy characters +math_spread:=0; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/6; % extra openness inside bowls +beak_darkness:=11/30; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=false; % should stems, etc. be straight? +monowidth:=false; %are stem and hair more or less the same width? +italics:=false; + +generate m_greek; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/mrgrsl10.mf b/Master/texmf-dist/fonts/source/public/yannisgr/mrgrsl10.mf new file mode 100644 index 00000000000..da323c423f9 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/mrgrsl10.mf @@ -0,0 +1,86 @@ +% Monotonic Reduced Greek Slanted 10 point +if unknown cmbase: input cmbase fi +if unknown grbase: input rgrbase fi + +font_identifier:="mrgrsl"; font_size 10pt#; + +u#:=20/36pt#; % unit width +width_adj#:=0pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=5/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=270/36pt#; % height of tallest characters +asc_height#:=250/36pt#; % height of lowercase ascenders +cap_height#:=246/36pt#; % height of caps +fig_height#:=232/36pt#; % height of numerals +x_height#:=155/36pt#; % height of lowercase without ascenders +math_axis#:=90/36pt#; % axis of symmetry for math symbols +bar_height#:=82/36pt#; % height of crossbar in lowercase e +comma_depth#:=70/36pt#; % depth of comma below baseline +desc_depth#:=90/36pt#; % depth of lowercase descenders +acc_ht#:=250/36pt#; +circ_ht#:=225/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=72/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=8/36pt#; % diameter of rounded corners +fine#:=7/36pt#; % diameter of sharply rounded corners +thin_join#:=7/36pt#; % width of extrafine details +hair#:=9/36pt#; % lowercase hairline breadth +stem#:=30/36pt#; % lowercase stem breadth +curve#:=30/36pt#; % lowercase curve breadth +ess#:=27/36pt#; % breadth in middle of lowercase s +flare#:=27/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=38/36pt#; % diameter of dots +cap_hair#:=11/36pt#; % uppercase hairline breadth +cap_stem#:=32/36pt#; % uppercase stem breadth +cap_curve#:=37/36pt#; % uppercase curve breadth +cap_ess#:=35/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.4pt#; % thickness of lines in math symbols +univ_acc_breadth:=.6; % from 0 to 1 : breadth of the universal accent + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=20/36pt#; % vertical distance from serif base to tangent +jut#:=28/36pt#; % protrusion of lowercase serifs +cap_jut#:=37/36pt#; % protrusion of uppercase serifs +beak_jut#:=10/36pt#; % horizontal protrusion of beak serifs +beak#:=70/36pt#; % vertical protrusion of beak serifs +vair#:=8/36pt#; % vertical diameter of hairlines +notch_cut#:=10pt#; % maximum breadth above or below notches +bar#:=11/36pt#; % lowercase bar thickness +slab#:=11/36pt#; % serif and arm thickness +cap_bar#:=11/36pt#; % uppercase bar thickness +cap_band#:=11/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=10pt#; % max breadth above/below uppercase notches +serif_drop#:=4/36pt#; % vertical drop of sloped serifs +stem_corr#:=1/36pt#; % for small refinements of stem breadth +vair_corr#:=1/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=8/36pt#; % amount of overshoot for curves +apex_o#:=8/36pt#; % amount of overshoot for diagonal junctions + +slant:=1/6; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; % tilt of inner bowl for the letter omicron +fudge:=1; % factor applied to weights of heavy +characters math_spread:=0; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/6; % extra openness inside bowls +beak_darkness:=11/30; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=false; % should stems, etc. be straight? +monowidth:=false; %are stem and hair more or less the same width? +italics:=false; + +generate m_greek; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/mrgrti10.mf b/Master/texmf-dist/fonts/source/public/yannisgr/mrgrti10.mf new file mode 100644 index 00000000000..88334ae91b6 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/mrgrti10.mf @@ -0,0 +1,89 @@ +% This was CMTI10.MF in text format, as of Mar 31, 1986. +% Computer Modern Text Italic 10 point +% and now is mrgrti10: monotonic reduced greek text italic, rgr-version 1.1 +% (experimental) as of Jan 22, 1990. +if unknown cmbase: input cmbase fi +if unknown grbase: input rgrbase fi + +font_identifier:="mrgrti"; font_size 10pt#; + +u#:=19/36pt#; % unit width +width_adj#:=0pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=5/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=9.2/36pt#; % extra space added to all sidebars + +body_height#:=270/36pt#; % height of tallest characters +asc_height#:=250/36pt#; % height of lowercase ascenders +cap_height#:=246/36pt#; % height of caps +fig_height#:=232/36pt#; % height of numerals +x_height#:=155/36pt#; % height of lowercase without ascenders +math_axis#:=90/36pt#; % axis of symmetry for math symbols +bar_height#:=87/36pt#; % height of crossbar in lowercase e +comma_depth#:=70/36pt#; % depth of comma below baseline +desc_depth#:=70/36pt#; % depth of lowercase descenders +acc_ht#:=250/36pt#; +circ_ht#:=225/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=72/36pt#; + +crisp#:=8/36pt#; % diameter of serif corners +tiny#:=8/36pt#; % diameter of rounded corners +fine#:=7/36pt#; % diameter of sharply rounded corners +thin_join#:=7/36pt#; % width of extrafine details +hair#:=11/36pt#; % lowercase hairline breadth +stem#:=23/36pt#; % lowercase stem breadth +curve#:=28/36pt#; % lowercase curve breadth +ess#:=27/36pt#; % breadth in middle of lowercase s +flare#:=29/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=38/36pt#; % diameter of dots +cap_hair#:=11/36pt#; % uppercase hairline breadth +cap_stem#:=29/36pt#; % uppercase stem breadth +cap_curve#:=34/36pt#; % uppercase curve breadth +cap_ess#:=31/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.4pt#; % thickness of lines in math symbols +univ_acc_breadth:=.6; % from 0 to 1 : breadth of the universal accent + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=20/36pt#; % vertical distance from serif base to tangent +jut#:=30/36pt#; % protrusion of lowercase serifs +cap_jut#:=34/36pt#; % protrusion of uppercase serifs +beak_jut#:=9/36pt#; % horizontal protrusion of beak serifs +beak#:=70/36pt#; % vertical protrusion of beak serifs +vair#:=8/36pt#; % vertical diameter of hairlines +notch_cut#:=10pt#; % maximum breadth above or below notches +bar#:=11/36pt#; % lowercase bar thickness +slab#:=11/36pt#; % serif and arm thickness +cap_bar#:=11/36pt#; % uppercase bar thickness +cap_band#:=11/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=10pt#; % max breadth above/below uppercase notches +serif_drop#:=4/36pt#; % vertical drop of sloped serifs +stem_corr#:=1/36pt#; % for small refinements of stem breadth +vair_corr#:=1/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=8/36pt#; % amount of overshoot for curves +apex_o#:=8/36pt#; % amount of overshoot for diagonal junctions + +slant:=.25; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; +fudge:=1; % factor applied to weights of heavy characters +math_spread:=0; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/6; % extra openness inside bowls +beak_darkness:=11/30; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=true; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=false; +monowidth:=false; +italics:=true; + +generate m_greek % switch to the driver file + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/rgen_acc.mf b/Master/texmf-dist/fonts/source/public/yannisgr/rgen_acc.mf new file mode 100644 index 00000000000..3e6afd4f70b --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/rgen_acc.mf @@ -0,0 +1,229 @@ +% This file contains some code from Computer Modern's accent.mf. +% It defines all Greek diacritic marks. + +gen_acc:=1; + +def separator=max(1,vround(1/20x_height)) enddef; + +def grave(expr center) = +if serifs: x22-x21=1/4w; x21-.5stem=hround(center-2/3(x22-x21)-.5stem); +else: lft x21l=hround (1/4w-.5stem); rt x22r=hround(center+.25u+.5vair); fi +generate_grave; penlabels(21,22); +enddef; + +def acute(expr center) = +if serifs: x21-x22=1/4w; x21+.5stem=hround(center+2/3(x21-x22)+.5stem); +else: rt x21r=hround (3/4w+.5stem); lft x22l=hround(center-.25u-.5vair); fi +generate_grave; penlabels(21,22); +enddef; + +vardef search(expr xyzzy) = +pair p;ypart(p)=y22l;p-(x22,xyzzy)=whatever*((z21-(x22,xyzzy))rotated 90); +length(p-(x22,xyzzy))>.5(hair-currentbreadth) enddef; + +vardef generate_grave= +if serifs: pickup crisp.nib; + y21+.5stem=h+eps; bot y22l=max(.8[h,x_height],x_height+o+separator); + y22=solve search(y21,y22l); x22l=xpart(p); z22r=2z22-z22l; + pos21(stem,angle(z22r-z22l)); + filldraw circ_stroke z21e--z22e; % diagonal +else: pickup fine.nib; pos21(stem,0); pos22(vair,0); + top y21=h; bot y22=vround .8[h,x_height]; + filldraw stroke z21e--z22e; % diagonal +fi +enddef; + +def corr_circumflex(expr center,corr)= +w:=w+corr; generate_circumflex(center,false); +w:=w-corr; +enddef; + +def circumflex(expr center)= +generate_circumflex(center,false); % variable `squeeze' +enddef; + +def generate_circumflex(expr center,squeeze)= +numeric mid_width; mid_width=if squeeze:.1 else: .5 fi [vair,stem]; +if serifs: +pickup fine.nib; pos21(hround(mid_width-eps),180); pos22(vair,90); + pos23(mid_width,90); pos24(vair,90); pos25(hround(mid_width-eps),180); + lft x21r=w-rt x25l=hround (center-w/3); x22-x21=x23-x22=x24-x23=x25-x24; + bot y21=bot y24l=vround(.75[x_height,h]-vair); + top y22r=top y25=h; y23=.5[y22,y24]; + filldraw stroke z21e{up}...z22e{right}..z23e..{right}z24e...{up}z25e; +else: + pos21(vair,-180); pos23(vair,0); y21=y23; + lft x21r=hround(center-w/3); rt x23r=hround(center+w/3); + bot y23=vround max(x_height+o+separator, + if squeeze: 2/3 else: 1/3 fi [x_height,h]-.5mid_width); + x22=center; pos22(mid_width,90); top y22r=h; + filldraw stroke z21e{up}...z22e...{down}z23e; +fi +enddef; + +vardef diaeresis(expr center)= + generate_diaeresis(center,dot_size,dot_size+1/8w,h,x_height+separator); +enddef; + +vardef diaeresis_acute(expr center)= + if serifs: x21-x22=1/4w; x21+.5stem=hround(center+5/6(x21-x22)+.5stem); + else: rt x21r=hround (3/4w+.5stem); lft x22l=hround(center-.5vair); fi + generate_grave; penlabels(21,22); + generate_diaeresis(center,.9dot_size,-1,.5[h,x_height],x_height+separator); +enddef; + +vardef diaeresis_grave(expr center)= + if serifs: x22-x21=1/4w; x21-.5stem=hround(center-5/6(x22-x21)-.5stem); + else: lft x21l=hround (1/4w-.5stem); rt x22r=hround(center+.5vair); fi + generate_grave; penlabels(21,22); + generate_diaeresis(center,.9dot_size,-1,.5[h,x_height],x_height+separator); +enddef; + +vardef diaeresis_circumflex(expr center)= + generate_circumflex(center,true); + numeric sp_bottom, sp_top; + sp_top=vround(.15[bot y21l,x_height]); sp_top+sp_bottom=bot y21l+x_height; + generate_diaeresis(center,5/8dot_size,5/8dot_size+1/4w,sp_top,sp_bottom); +enddef; + +vardef generate_diaeresis(expr center,target_dot_diam,sep,eff_h,base)= +pickup tiny.nib; numeric dot_diam; +dot_diam:=max(tiny.breadth,hround(target_dot_diam)); +pos31(dot_diam,0); pos32(dot_diam,90); x31=x32; top y32r=vround(eff_h); +if bot y32l<base: y32l:=min(y32r-eps,base+.5currentbreadth); fi +y31=.5[y32l,y32r]; +pos33(dot_diam,0); penpos34(y32r-y32l,90); y33=y34=y31; x33=x34; +if sep>0 : center=.5[x31,x33]; x33-x31=sep; +else: + y35l=y35r=.5[y31,y32]; z35l=whatever[z21l,z22l]; z35r=whatever[z21r,z22r]; + rt x31r=hround((min(x35l,x35r)-.5currentbreadth)-.05w); + lft x33l=hround((max(x35l,x35r)+.5currentbreadth)+.05w); +fi +dot(31,32); dot(33,34); +penlabels(31,32,33,34,35); +enddef; + +def rough(suffix $,@)(expr dot_size,depth,shear) = + pickup fine.nib; pos$(dot_size,90); + if square_dots: pos$'(dot_size,180); z$'=z$; dot($',$); % squarish dot + comma_join_:=max(fine.breadth,floor .7dot_size); + comma_bot_:=max(fine.breadth,floor .5dot_size); + pos@0(comma_join_,180); pos@1(comma_join_,180); + pos@2(comma_bot_,180); y@0=y$; y@1=y$l; y@2=y@1+dot_size-depth; + x@0r=x@1r=x$'r; lft x@2r=good.x(x$-eps); + filldraw stroke z@0e--z@1e..z@2e; % tail + else: pos@1(vair,90); pos@2(vair,180); pos@3(vair,-90); + z@1r=z$r; lft x@2r=hround(x$-.5depth+.5shear); + x@3+.5vair=x$+.5dot_size+shear; + y@2=.5[y@1,y@3]; bot y@3r=vround(top y@1r-depth); + y_:=ypart((z@1{left}...z@2{down}...z@3) + intersectiontimes (z$l{left}..{right}z$r)); if y_<0: y_:=1; fi + filldraw z$r{right}..subpath (0,y_) of (z$l{left}..{right}z$r)--cycle; % dot + filldraw stroke z@1e{left}...z@2e{down}...{right}z@3e; fi % tail + penlabels(@1,@2,@3); enddef; + +def smooth(suffix $,@)(expr dot_size,depth,shear) = + pickup fine.nib; pos$(dot_size,90); + if square_dots: pos$'(dot_size,0); z$'=z$; dot($',$); % squarish dot + comma_join_:=max(fine.breadth,floor .7dot_size); + comma_bot_:=max(fine.breadth,floor .5dot_size); + pos@0(comma_join_,0); pos@1(comma_join_,0); + pos@2(comma_bot_,0); y@0=y$; y@1=y$l; y@2=y@1+dot_size-depth; + x@0r=x@1r=x$'r; rt x@2r=good.x(x$-eps); + filldraw stroke z@0e--z@1e..z@2e; % tail + else: pos@1(vair,90); pos@2(vair,0); pos@3(vair,-90); + z@1r=z$r; rt x@2r=hround(x$+.5depth+.5shear); + x@3-.5vair=hround(x$-.5dot_size+shear); + y@2=.5[y@1,y@3]; bot y@3r=vround(top y@1r-depth); + y_:=ypart((z@1{right}...z@2{down}...z@3) + intersectiontimes (z$l{right}..{left}z$r)); if y_<0: y_:=1; fi + filldraw z$r{left}..subpath (0,y_) of (z$l{right}..{left}z$r)--cycle; % dot + filldraw stroke z@1e{right}...z@2e{down}...{left}z@3e; fi % tail + penlabels(@1,@2,@3); enddef; + +vardef spirit(expr center) text type= +numeric sp_bottom, sp_height; +sp_bottom=h-sp_height=max(.8[h,x_height],x_height+o+separator); +numeric dot_diam#; dot_diam# = 3/4dot_size#; +define_whole_blacker_pixels(dot_diam); +dot_diam:=max(fine.breadth,min(dot_diam,floor(2/3sp_height))); +x31 if1type0:-else:+fi.5dot_diam=hround(center if1type0:-else:+fi.5dot_diam); +y31+.5dot_diam=h; +if1type0:smooth else:rough fi (31,a,dot_diam,sp_height,0); +penlabels(31); +enddef; + +vardef spirit_acute(expr center) text type = +numeric sp_bottom, sp_height; +sp_bottom=h-sp_height=max(.8[h,x_height],x_height+o+separator); +numeric dot_diam#; dot_diam# = 3/4dot_size#; +define_whole_blacker_pixels(dot_diam); +dot_diam:=max(fine.breadth,min(dot_diam,floor(2/3sp_height))); +if serifs: x21-x22=1/6w; + x21+.5stem=hround(center+.25u+.5vair+(x21-x22)+.5stem); +else: rt x21r=hround (4/5w+.5stem); lft x22l=hround(center+.25u); fi +generate_grave; penlabels(21,22); +if 1type0: % spirit and accent separated by .5u (rough) or .25u (smooth) + x31=hround(lft x22 if serifs:r-.5sp_height else:l-.5dot_diam fi -.25u); +else: x31+.5dot_diam=hround(lft x22 if serifs:r else: l fi -.5u); fi +y31+.5dot_diam=h; +if1type0:smooth else:rough fi (31,a,dot_diam,sp_height,0); +enddef; + +vardef spirit_grave(expr center) text type = +numeric sp_bottom, sp_height; +sp_bottom=h-sp_height=max(.8[h,x_height],x_height+o+separator); +numeric dot_diam#; dot_diam# = 3/4dot_size#; +define_whole_blacker_pixels(dot_diam); +dot_diam:=max(fine.breadth,min(dot_diam,floor(2/3sp_height))); +if serifs: x22-x21=1/6w; x21-.5stem=hround(center+.25u); +else: rt x22r=hround (4/5w+.5stem); lft x21l=hround(center+.25u); fi +generate_grave; penlabels(21,22); +if 1type0: % spirit and accent separated by .5u (rough) or .25u (smooth) + x31=hround(lft x21l-.5 if serifs:sp_height else:dot_diam fi -.25u); +else: x31+.5dot_diam=hround(lft x21l-.5u); fi +y31+.5dot_diam=h; +if1type0:smooth else:rough fi (31,a,dot_diam,sp_height,0); +enddef; + +vardef spirit_circumflex(expr center) text type= +generate_circumflex(center,true); % variable `squeeze' +numeric sp_bottom, sp_height, sp_top, box_top; +box_top=bot if serifs: y21l else: y22l fi; +sp_top=sp_bottom+sp_height=vround(.15[box_top,x_height]); +sp_top+sp_bottom=box_top+x_height; +numeric dot_diam#; dot_diam# = 5/8dot_size#; +define_whole_blacker_pixels(dot_diam); +pickup fine.nib; +dot_diam:=max(fine.breadth,min(dot_diam,floor(2/3sp_height-eps))); +x31 if1type0:-else:+fi.5dot_diam=hround(center if1type0:-else:+fi.5dot_diam); +y31+.5dot_diam=vround(sp_top); +if1type0:smooth else:rough fi (31,a,dot_diam,sp_height,0); +penlabels(31); +enddef; + +def iota_sub(expr pos_stem) = +if known pic.iota: + addto currentpicture also pic.iota shifted (hround(pos_stem),0); +else: + picture temp_picture; temp_picture=currentpicture; clearit; + pickup fine.nib; + x51=0; pos51(stem,180); top y51=vround(-o-2separator); + x52=x51; pos52(stem,180); bot y52=-iota_dp; + filldraw circ_stroke z52e--z51e; +% +% edw arqizei to diko mou +% +% z54=z52;x53=x54+0.5(y51-y54); y53=y54; +% pos54(stem,90); pos53(stem,90); +% filldraw circ_stroke z54e---z53e; +% lft x55=0.5(rt x52+x52); bot y55=0.5(y52-bot y52)+y52; +% x56=x55;top y56=y51; pos55(stem,180); pos56(stem,180); +% unfilldraw circ_stroke z55e--z56e; +% + if not working_hard : picture pic.iota; pic.iota=currentpicture; fi + currentpicture:=currentpicture shifted (hround(pos_stem),0); + addto currentpicture also temp_picture; +fi; +enddef; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/rgraccent.mf b/Master/texmf-dist/fonts/source/public/yannisgr/rgraccent.mf new file mode 100644 index 00000000000..bf593aa4086 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/rgraccent.mf @@ -0,0 +1,55 @@ +cmchar "Acute accent"; +beginchar("'",9u#,acc_ht#,0); +adjust_fit(0,0);acute(.5w); +endchar; + +cmchar "Circumflex accent"; +beginchar("~",9u#,circ_ht#,0); +adjust_fit(0,0);circumflex(.5w); +endchar; + +cmchar "Diaeresis"; +beginchar(oct"042",9u#,circ_ht#,0); +adjust_fit(0,0);diaeresis(.5w); +endchar; + +cmchar "Rough breathing"; +beginchar("<",9u#,acc_ht#,0); +adjust_fit(0,0);spirit(.5w)<; +endchar; + +cmchar "Smooth breathing"; +beginchar(">",9u#,acc_ht#,0); +adjust_fit(0,0);spirit(.5w)>; +endchar; + +cmchar "Rough breathing with acute"; +beginchar(oct"126",9u#,acc_ht#,0); +adjust_fit(0,0);spirit_acute(.5w)<; +endchar; + +cmchar "Rough breathing with circumflex"; +beginchar(oct"100",9u#,acc_ht#,0); +adjust_fit(0,0);spirit_circumflex(.5w)<; +endchar; + +cmchar "Smooth breathing with acute"; +beginchar(oct"136",9u#,acc_ht#,0); +adjust_fit(0,0);spirit_acute(.5w)>; +endchar; + +cmchar "Smooth breathing and circumflex"; +beginchar(oct"134",9u#,Circ_ht#,0); +adjust_fit(0,0);spirit_circumflex(.5w)>; +endchar; + +cmchar "Diaeresis with acute"; +beginchar(oct"043",9u#,acc_ht#,0); +adjust_fit(0,0);diaeresis_acute(.5w); +endchar; + +cmchar "Iota subscript"; +beginchar("|",9u#,0,.6desc_depth#); +adjust_fit(0,0);iota_sub(.5w); +endchar; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/rgrbase.mf b/Master/texmf-dist/fonts/source/public/yannisgr/rgrbase.mf new file mode 100644 index 00000000000..54a331b74f1 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/rgrbase.mf @@ -0,0 +1,229 @@ +numeric grbase; grbase:=1; %don't read this file twice + +%make reference to file in subdirectories less painful +def readfrom(expr filename) = scantokens ("input " & filename); enddef; + +%we start by defining a few more font parameters: +boolean one_accent; %are we working in |one_accent|-system? +boolean monowidth; %are +boolean straight; %are certain strokes straight? +boolean italics; %are we going to make italics? +numeric univ_acc_breadth; %from 0 to 1:the breadth of the univ. accent + +let old_font_setup = font_setup; +def font_setup = +define_whole_vertical_pixels(acc_ht,circ_ht,Circ_ht,iota_dp); %accent heights +old_font_setup; +enddef; + +%Since many of our characters are composite (for instance, s+letter), +%we avoid recomputing many pictures by saving them. +%But if we're using various definitions for the same letter (as when +%running 6test.mf) we can't use this trick, so we set |working_hard:=true|. + +boolean working_hard; +working_hard:=false; + +def this_letter = +italcorr ital; adjust_fit(fit_params); +if known savedpicture: currentpicture:=savedpicture; else: gen_letter; fi +if not working_hard : picture savedpicture; savedpicture=currentpicture; fi +enddef; + +%The following routines are for use with double characters. +boolean is_double; is_double:=false; +let oldendchar=endchar; + +def begindoublechar(expr c,w_sharp,h_sharp,d_sharp) = +is_double:=true; beginchar(c,w_sharp,h_sharp,d_sharp); +enddef; + +def doublecharkern(expr k_sharp) = +if not monospace: k:=hround(k_sharp*hppp); r:=r+k; charwd:=charwd+k_sharp; fi +enddef; + +def middoublechar(expr w_sharp,h_sharp,d_sharp) = +scantokens extra_endchar; +forsuffixes e=r,l,w,charwd: numeric first.e; first.e:=e; endfor + +w:=hround(w_sharp*hppp); h:=vround(h_sharp*hppp); d:=vround(d_sharp*hppp); +charwd:=w_sharp; charht:=max(charht,h_sharp); chardp:=max(chardp,d_sharp); +picture first.glyph; first.glyph=currentpicture; +clearxy; clearpen; clearit; clearpen; +enddef; + +def endchar = +if is_double : +charwd:=first.charwd+charwd; +picture second_glyph; second_glyph=currentpicture shifted (first.r-l,0); +currentpicture:= first.glyph; addto currentpicture also second_glyph; +scantokens extra_endchar; +w:=first.w+w; r:=first.r-l+r; l:=first.l; +chardx:=first.w+w; interim xoffset:= -l; +if proofing>0: makebox(proofrule); fi +shipit; +if displaying>0: makebox(screenrule); showit; fi +endgroup; +is_double:=false +else : oldendchar +fi +enddef; + +%By convention, we reserve the name z1' for the direction at z1, and so on. +%The direction at |z1r| is |z1'r|, or |zdir1r|. +vardef zdir[]@#= z@'@# enddef; +vardef assign_z@#(expr zz)= x@#:=xpart(zz); y@#:=ypart(zz) enddef; +vardef sgn(expr x)= if (x>0): 1 elseif (x<0): -1 else: 0 fi enddef; + +vardef double_circ_stroke text t = +forsuffixes e = l,r: path_.e:=t; endfor +if cycle path_.l: errmessage "Beware: `stroke' isn't intended for cycles"; fi +path_.l .. reverse path_.r .. cycle enddef; + +vardef drawloop(suffix $,$$,@@,@)= +numeric temp[], sup; +sup=superness; +forsuffixes e=r,l: +path curv[]e; numeric S[]e; +curv1e=pulled_super_arc.e($,$$)(.5superpull); +curv2e=pulled_super_arc.e(@,@@)(.5superpull); endfor +(S1r,S2r)=curv1r intersectiontimes curv2r; +(temp1,S2l)=curv1r intersectiontimes curv2l; +(S1l,temp2)=curv1l intersectiontimes curv2r; +for i=1 upto 4: +exitif (temp1>=S1r) and (temp2>=S2r); +begingroup +numeric S[]r, S[]l, temp[]; pair p; +interim superness:=(i/10)[sup,1]; +message"change in superness required; increased to "; show superness; +curv1r:=pulled_super_arc.r($,$$)(0); +curv2r:=pulled_super_arc.r(@,@@)(0); +(S1r,S2r)=curv1r intersectiontimes curv2r; +(temp1,S2l)=curv1r intersectiontimes curv2l; +(S1l,temp2)=curv1l intersectiontimes curv2r; +endgroup; +endfor; +if S1l=-1 : S1l:=2; fi +if S2l=-1 : S2l:=2; fi +filldraw stroke subpath(0,S1e+eps) of curv1e; +filldraw stroke subpath(0,S2e+eps) of curv2e; +filldraw subpath (S1r+eps,2) of curv1r...subpath(2,S2r+eps) of curv2r..cycle; +enddef ; + +vardef gr_arc.r(suffix $,$$,$$$)(expr min,max,tilt)= +pair center, corner; +if (y$$$r-y$r)*(x$$$r-x$r) < 0 : %first or third quadrant +center=(x$$$r,y$r); corner=(x$r,y$$$r); +else : +center=(x$r,y$$$r); corner=(x$$$r,y$r); +fi +z$r{corner-z$r}...superness[center,corner]{z$$$r-z$r}... +{z$$$r-corner}z$$$r +enddef; + +vardef gr_arc.l(suffix $,$$,$$$)(expr min,max,tilt)= +save p,q,wdth; +pair center, corner, temp; +numeric wdth, t, s; +path p,q; +if (y$$$r-y$r)*(x$$$r-x$r) < 0 : %first or third quadrant +center=(x$$$r,y$r); corner=(x$r,y$$$r); +if tilt>=0 : wdth:=min; other_wdth:=max; t:=2(1-tilt); +else : wdth:=max; other_wdth:=min; t:=-2tilt; fi +else : +center=(x$r,y$$$r); corner=(x$$$r,y$r); +if tilt>=0 : wdth:=max; other_wdth:=min; t:=2(1-tilt); +else : wdth:=min; other_wdth:=max; t:=-2tilt; fi +fi +p:=z$r{corner-z$r}...superness[center,corner]{z$$$r-z$r}... +{z$$$r-corner}z$$$r; +pos$$(wdth,angle direction t of p - 90); +z$$r=point t of p; +assign_z$$'l(direction t of p); +assign_z$$'r(z$$'l); +if other_wdth<=currentbreadth: errmessage "bad pos"; fi +temp:=point (2-t) of p- +(other_wdth-currentbreadth,0) rotated (angle direction (2-t) of p - 90); +boolean k[]; k1:=false; k2:=false; +if unknown x$l: +k1:=true; +assign_z$l(temp); +assign_z$'l(direction(2-t) of p); +if (y$$$r-y$r)*(x$$$r-x$r) < 0 : %first or third quadrant +y$l:=2ypart center-y$l; +x$'l:=-x$'l; +else: +x$l:=2xpart center-x$l; +y$'l:=-y$'l; +fi +fi +if unknown x$$$l: +k2:=true; +assign_z$$$l(temp); +assign_z$$$'l(direction(2-t) of p); +if (y$$$r-y$r)*(x$$$r-x$r) < 0 : %first or third quadrant +x$$$l:=2xpart center-x$$$l; +y$$$'l:=-y$$$'l; +else: +y$$$l:=2ypart center-y$$$l; +x$$$'l:=-x$$$'l; +fi +fi +q:=z$l{z$'l}...z$$l{z$$'l}...z$$$l{z$$$'l}; +if k1 : +t := xpart(q intersectiontimes (center---z$r)); +if t=-1 : t:=0; fi +assign_z$l(point t of q); +assign_z$'l(direction t of q); +assign_z$'r(corner-z$r); +z$l+z$r=2z$; +else: t:=0; +fi +if k2 : +s := xpart(q intersectiontimes (center---z$$$r)); +if s=-1 : s:=2; fi +assign_z$$$l(point s of q); +assign_z$$$'l(direction s of q); +assign_z$$$'r(z$$$r-corner); +z$$$l+z$$$r=2z$$$; +else: s:=2; +fi +subpath (t,s) of q +enddef; + +vardef doodah(suffix $,$$,$$$)= +if known x$$: +vardef ward(expr gr)= +sgn(xpart direction 1 of (z${zdir$}..(x$$,gr)..{zdir$$$}z$$$)) <> sgn(x$-x$$) +enddef; +y$$=solve ward(y$,y$$$); +else: +vardef ward(expr gr)= +sgn(ypart direction 1 of (z${zdir$}..(gr,y$$)..{zdir$$$}z$$$)) <> sgn(y$-y$$) +enddef; +x$$=solve ward(x$,x$$$); +fi +(z${zdir$}..z$$..{zdir$$$}z$$$) +enddef; + +forsuffixes e=r,l: +vardef club.e(suffix $,$$,$$$)= doodah($e,$$e,$$$e) enddef; endfor + +vardef alpha_tail(suffix $,$$) = +pos$$(hair,180); top y$$=vround 4/3[bot y$l,top y$r]; %tip of hook +rt x$$l=hround(x$+(y$$-y$)+.5hair); %central arc is round +enddef; + +vardef pi_bar = +pos3(vstem,-90); rt x3=hround(w-.75u); top y3l=x_height; %top right +pos2(vstem,-90); y2=y3; x2=.25w; %top left +x1-.5hair=hround.75u; y1-.5hair=4/3[top y2l,bot y2r]; %tip of bar +numeric slope; slope=angle((z2-z1)yscaled 2); pos1(hair,slope-90); +forsuffixes e=l,r: z1'e=(z2e-z1e)yscaled 2; endfor +filldraw circ_stroke z1e{z1'e}...z2e---z3e; %bar +enddef; + +def traba(expr poso) = transform t; t = identity shifted (poso,0); +currentpicture := currentpicture transformed t; +enddef; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/rgrbf10.mf b/Master/texmf-dist/fonts/source/public/yannisgr/rgrbf10.mf new file mode 100644 index 00000000000..ca47ca78f06 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/rgrbf10.mf @@ -0,0 +1,85 @@ +% Reduced Greek Bold 10 point +if unknown cmbase: input cmbase fi +if unknown grbase: input rgrbase fi + +font_identifier:="rgrbf"; font_size 10pt#; + +u#:=22/36pt#; % unit width +width_adj#:=11/36pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=7/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=270/36pt#; % height of tallest characters +asc_height#:=250/36pt#; % height of lowercase ascenders +cap_height#:=247/36pt#; % height of caps +fig_height#:=232/36pt#; % height of numerals +x_height#:=160/36pt#; % height of lowercase without ascenders +math_axis#:=90/36pt#; % axis of symmetry for math symbols +bar_height#:=85/36pt#; % height of crossbar in lowercase e +comma_depth#:=70/36pt#; % depth of comma below baseline +desc_depth#:=90/36pt#; % depth of lowercase descenders %was 70 +acc_ht#:=250/36pt#; +circ_ht#:=230/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=72/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=13/36pt#; % diameter of rounded corners +fine#:=10/36pt#; % diameter of sharply rounded corners +thin_join#:=10/36pt#; % width of extrafine details +hair#:=13/36pt#; % lowercase hairline breadth (was 17) +stem#:=40/36pt#; % lowercase stem breadth (was 41) +curve#:=41/36pt#; % lowercase curve breadth (was 46) +ess#:=38/36pt#; % breadth in middle of lowercase s +flare#:=41/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=56/36pt#; % diameter of dots +cap_hair#:=19/36pt#; % uppercase hairline breadth +cap_stem#:=51/36pt#; % uppercase stem breadth +cap_curve#:=55/36pt#; % uppercase curve breadth +cap_ess#:=53/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.6pt#; % thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=10/36pt#; % vertical distance from serif base to tangent +jut#:=25/36pt#; % protrusion of lowercase serifs +cap_jut#:=39/36pt#; % protrusion of uppercase serifs +beak_jut#:=11/36pt#; % horizontal protrusion of beak serifs +beak#:=70/36pt#; % vertical protrusion of beak serifs +vair#:=11/36pt#; % vertical diameter of hairlines (was 13) +notch_cut#:=10/36pt#; % maximum breadth above or below notches +bar#:=17/36pt#; % lowercase bar thickness +slab#:=17/36pt#; % serif and arm thickness +cap_bar#:=17/36pt#; % uppercase bar thickness +cap_band#:=17/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=10pt#; % max breadth above/below uppercase notches +serif_drop#:=3/36pt#; % vertical drop of sloped serifs +stem_corr#:=2/36pt#; % for small refinements of stem breadth +vair_corr#:=1.5/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=4/36pt#; % amount of overshoot for curves +apex_o#:=3/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; % tilt of inner bowl for the letter omicron +fudge:=1; % factor applied to weights of heavy characters +math_spread:=.5; % extra openness of math symbols +superness:=8/11; % parameter for superellipses +superpull:=1/8; % extra openness inside bowls +beak_darkness:=.4; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=false; % should stems, etc. be straight? +monowidth:=false; % are stem and hair more or less the same width? +italics:=false; + +generate rgreek; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/rgreek.mf b/Master/texmf-dist/fonts/source/public/yannisgr/rgreek.mf new file mode 100644 index 00000000000..e0b61327df6 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/rgreek.mf @@ -0,0 +1,29 @@ +mode_setup; +font_setup; + +readfrom("rgen_acc"); +if italics: +readfrom("it_lower"); +readfrom("it_digits"); +readfrom("it_lig"); +else: +readfrom("rgrlower"); +readfrom("digits"); +readfrom("rgrlig"); fi +readfrom("rgrupper"); +readfrom("rgraccent"); +readfrom("rgrpunct"); + + +font_slant slant; font_x_height x_height#; +if monospace: font_normal_space 9u#; % no stretching or shrinking +font_quad 18u#; +font_extra_space 9u#; +else: font_normal_space 6u#+2letter_fit#; +font_normal_stretch 3u#; font_normal_shrink 2u#; +font_quad 18u#+4letter_fit#; +font_extra_space 2u#; +fi + +bye. + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/rgrlig.mf b/Master/texmf-dist/fonts/source/public/yannisgr/rgrlig.mf new file mode 100644 index 00000000000..2e2febbe930 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/rgrlig.mf @@ -0,0 +1,91 @@ +k#:=-.7u#;kk#:=-1.8u#;kkk#:=-2.5u#; +diaer=oct"042"; % double quote +ligtable "-": "-" =: oct"000"; % en-dash +% |ligtable oct"000": "-" =: oct"177";| em-dash +ligtable "(": "(" =: oct"173"; % open quotes +ligtable ")": ")" =: oct"175"; % close quotes +ligtable "<": + "~" =: oct"100", "'" =: oct"126",% | "`" =: oct"103",| + "a" =: oct"001", "e" =: oct"037", "h" =: oct"007",% | "r" =: oct"373",| + "o" =: oct"137", "w" =: oct"015", "i" =: oct"023", "u" =: oct"031", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +ligtable ">": + "~" =: oct"134", "'" =: oct"136",% | "`" =: oct"137",| + "a" =: oct"002", "e" =: oct"040", "h" =: oct"010",% | "r" =: oct"374",| + "o" =: oct"140", "w" =: oct"016", "i" =: oct"024", "u" =: oct"032", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +ligtable diaer: "'" =: oct"043";% | "`" =: oct"044",| +% | "i" =: oct"360", "u" =: oct"364";| +% |ligtable oct"044":| % diaeresis and grave + % |"i" =: oct"361", "u" =: oct"365";| +% |ligtable oct"043":| % diaeresis and acute + % |"i" =: oct"362", "u" =: oct"366";| +% |ligtable oct"040":| % diaeresis and circumflex + % |"i" =: oct"363", "u" =: oct"367";| +% |ligtable "`": diaer =: oct"044",| + % |"a" =: oct"200", "h" =: oct"230", "w" =: oct"260",| + % |"e" =: oct"340", "o" =: oct"344", "i" =: oct"310", "u" =: oct"314";| +ligtable "'": diaer =: oct"043", "'" =: oct"035", + "a" =: oct"003", "h" =: oct"011", "w" =: oct"017", + "e" =: oct"044", "o" =: oct"103", "i" =: oct"025", "u" =: oct"033", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +ligtable oct"126": % rough breathing and acute, + "a" =: oct"004", "h" =: oct"012", "w" =: oct"020", + "e" =: oct"177", "o" =: oct"133", "i" =: oct"026", "u" =: oct"034", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +ligtable oct"136": % smooth breathing and acute + "a" =: oct"005", "h" =: oct"013", "w" =: oct"021", + "e" =: oct"046", "o" =: oct"135", "i" =: oct"027", "u" =: oct"166", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +ligtable "~": % |diaer =: oct"040",| + "a" =: oct"006", "h" =: oct"014", "w" =: oct"022", + "i" =: oct"030", "u" =: oct"036"; +% |ligtable oct"100":| % rough breathing and circumflex + % |"a" =: oct"221", "h" =: oct"251", "w" =: oct"301",| + % |"i" =: oct"331", "u" =: oct"335";| +% |ligtable oct"134":| % smooth breathing and circumflex +mk#:=-1.2u#; +ligtable "l": + "h" kern mk#,oct"011" kern mk#,oct"014" kern mk#,"u" kern mk# + ,oct"033" kern mk#,oct"036" kern mk#, "o" kern k#, oct"103" kern k#, + "a" kern k#, oct"003" kern k#, oct"006" kern k#, "i" kern k#, + oct"025" kern k#, oct"030" kern k#; +ligtable "u": oct"033" : oct"036" : oct"031" : oct"032" : oct"034" : oct"166": + "g" kern k#, "r" kern -k#; +ligtable "e": oct"044" : oct"040" : oct"037" : oct"046" : oct"177" : + "i" kern -k#, oct"025" kern -k#, oct"030" kern -k#, oct"024" kern -k#, + oct"023" kern -k#, oct"027" kern -k#, oct"026" kern -k#, "n" kern k#; +ligtable "D" : "u" kern k#, oct"033" kern k#, oct"036" kern k#, "h" kern mk#, + oct"011" kern mk#, oct"014" kern mk#; +ligtable "k" : "o" kern k#, oct"103" kern k#; +ligtable "R" : "a" kern k#, oct"003" kern k#, oct"006" kern k#, "w" kern k#, + oct"017" kern k#, oct"022" kern k#; +ligtable "h" : oct"011" : oct"014" : oct"007" : oct"010" : oct"012" : + oct"013" : "m" kern -k#, "r" kern -k#; +ligtable "m" : "n" kern k#, "a" kern k#, oct"003" kern k#, oct"006"kern k#; +ligtable "o" : oct"137" : oct"140" : oct"103" : oct"133" : oct"135" : + "u" kern k#, oct"033" kern k#, oct"036" kern k#, oct"031" kern k#, + oct"032" kern k#, oct"034" kern k#, oct"166" kern k#, "k" kern k#, + "q" kern k#, "n" kern k#, "m" kern -k#; +ligtable "r" : "m" kern -k#; +ligtable "z" : "o" kern k#, oct"103" kern k#, "a" kern k#, oct"003" kern k#, + oct"006" kern k#, "h" kern k#, oct"011" kern k#, oct"014" kern k#; +ligtable "K" : "a" kern k#, oct"003" kern k#, oct"006" kern k#; +ligtable "w" : oct"017" : oct"022" : oct"015" : oct"016" : oct"020" : + oct"021" : "q" kern k#; +ligtable "g" : "w" kern k#, oct"017" kern k#, oct"022" kern k#; +ligtable "T" : "h" kern k#, oct"011" kern k#, oct"014" kern k#, "o" kern mk#, + oct"103" kern mk#; +ligtable "x" : "o" kern k#, oct"103" kern k#, "a" kern k#, oct"003" kern k#, + oct"006" kern k#, oct"017" kern k#, "w" kern k#, oct"022" kern k#; +ligtable "A" : "g" kern mk#, "d" kern k#; +ligtable "O" : "l" kern k#; +ligtable "a" : oct"001" : oct"002" : oct"003" : oct"004" : oct"005" : + oct"006" : "n" kern k#; +ligtable "U" : "p" kern mk#; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/rgrlower.mf b/Master/texmf-dist/fonts/source/public/yannisgr/rgrlower.mf new file mode 100644 index 00000000000..331fee9f6c2 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/rgrlower.mf @@ -0,0 +1,992 @@ +% These are the lowercase letters of the rgr-package version 1.1 +% prepared on Jan 16, 1990; Lille +% +% ALFA + +def width = 9u enddef; +def height = x_height enddef; +def dims = width#,height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,.5u# enddef; + +def gen_letter = + pickup fine.nib; + pos1(stem,0); top y1=x_height+oo; rt x1r=hround(w-.5u); %top right + pos2(vstem,-90); pos4(vstem,-270); x4=x2=.5w-u; + bot y2r=-oo; top y4r=x_height+oo; %bottom and top bulges + pos3(hair,-180); lft x3r=hround .75u; y3=.5[y2,y4]; %left bulge + pos6(vstem,90); x6=w-u; y6=y2; %bottom right + % numeric theta; theta=angle((x4-x6),2.5(y4-y6))-90; + pos5(hair,0); x5=.65[x4,x6]; y5=y3; %point of inflection + alpha_tail(6,7); %hook + filldraw stroke z1e{(x2-x1,2(y2-y1))}... %diagonal + pulled_arc.e(2,3) & pulled_arc.e(3,4) %bowl + ...z5e{down}...z6e{right}...{up}z7e; %diagonal and + numeric x_baryctr; x_baryctr= .25[x4,x1]; + numeric pos_stem; pos_stem=x_baryctr; %iota reference +enddef; + +cmchar "Lowercase alpha"; +beginchar("a",dims); +this_letter; penlabels(1,2,3,4,5,6,7); endchar; + +cmchar "Lowercase alpha with rough breathing"; +beginchar(oct"001",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase alpha with smooth breathing"; +beginchar(oct"002",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase alpha with acute"; +beginchar(oct"003",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase alpha with rough breathing and acute"; +beginchar(oct"004",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase alpha with smooth breathing and acute"; +beginchar(oct"005",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase alpha with circumflex"; +beginchar(oct"006",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; + +picture pic.iota; +picture savedpicture; + +% BHTA + +def dims = 9u#,asc_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + numeric thin_stem; thin_stem=.6[hair,stem]; % for upper bowl + numeric tilt; tilt=min(2*otilt,.5); % for both bowls + pos1(stem,180); y1-.5stem=-d-o; % bottom left + pos2(hair,180); y2=.5bar_height; % self-intersection (cf. z15) + x1=x2; lft x1r=hround(.75u+.5(hair-stem)); % i.e., lft x2r ~ .75u + x3r=x2r; % beginning of curve + top y5r=h+oo; bot y14r=-oo; x5r=x14r; % top and bottom bulges + top y10r=vstem+bot y9r=x_height; x9r=x10r; % top and bottom of cusp + rt x12r=hround(w-.75u); % lower right bulge + x5r=.5[lft x2r,rt x12r]; x9r-.5vstem=hround(x5r-.5u-.5vstem); + % we want to simulate the following relations, to make slopes consistent + % (where |z7| is the upper right bulge): + % | z5r-z3r=whatever*(z9r-z7r)=whatever*(z14r-z12r);| + % | z7r-z5r=whatever*(z12r-z10r)=whatever*(z5r-z3r) yscaled -1;| + numeric slope; + slope=((y10r-y12r)+(y12r-y14r))/((x12r-x10r)+(x12r-x14r)); + z7'r=z9r+whatever*(1,slope); z7'r=z5r+whatever*(1,-slope); + y7r=y7'r; rt x7r=hround rt x7'r; + z12r=z14r+whatever*(1,slope); +z3r=z5r+whatever*(1,slope); + filldraw double_circ_stroke gr_arc.e(7,6,5)(hair,thin_stem,tilt).. + gr_arc.e(5,4,3)(hair,thin_stem,tilt)..{down}z2e..z1e; % top and left + z2=z15; pos15(hair,slope-90); % intersection pt + numeric slope; + slope=angle((z14r-z15)yscaled 2); + filldraw stroke z15e{dir slope}...gr_arc.e(14,13,12)(hair,stem,tilt); % bot + forsuffixes e=r,l: + path curv[]e; numeric S[]e; + curv1e=reverse gr_arc.e(9,8,7)(hair,thin_stem,tilt); % cusp bottom + curv2e=gr_arc.e(12,11,10)(hair,stem,tilt); endfor % cusp top + (S1r,S2r)=curv1r intersectiontimes curv2r; + (whatever,S2l)=curv1r intersectiontimes curv2l; + (S1l,whatever)=curv1l intersectiontimes curv2r; + if S1l=-1 : S1l:=2; fi + if S2l=-1 : S2l:=2; fi + filldraw stroke subpath(0,S1e+eps) of curv1e; % fill in cusp + filldraw stroke subpath(0,S2e+eps) of curv2e; + filldraw subpath (S1r+eps,2) of curv1r...subpath(2,S2r+eps) of curv2r..cycle; +enddef; + +cmchar "Lowercase beta"; +beginchar("b",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); endchar; + +picture savedpicture; + +% GAMMA + +def dims = 10u#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + begingroup + save t; t:=superness; interim superness:=.95t; + pos2(curve,90); top y2r=h+oo; % top of left branch + pos1(hair,180); bot y1=top y2r-4/3curve; % tip of hook + lft x1r=hround .5u; x2-x1=y2-y1; % central arc is round + pos3(hair,0); pos4(hair,-180); rt x3r-lft x4r=stem; % bottom of cusp + y4=y3; .5[x3,x4]=.5w; bot y3=-d-oo; + pos5(curve,-270); top y5r=h+oo; x5+.5curve=hround(w-.75u); % right branch + pos5'(curve,0); z5'=z5; + filldraw stroke z1e{up}...z2e{right}; drawloop(2,3,4,5); + filldraw z5l{right}...z5'r{up}...z5r{left}--cycle; % right branch + if monowidth: % complete stem + x3'=x3r; x4'=x4r; y3'=y4'; y3'-.5stem=vround(-.8d); + filldraw z3r--z3'{down}...{up}z4'--z4r--cycle; fi + endgroup; +enddef; + +cmchar "Lowercase gamma"; +beginchar("g",dims); +this_letter; penlabels(1,2,3,3',4,4',5); endchar; + +picture savedpicture; + +% DELTA + + +def dims = 8.5u#,asc_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + top y1r=vround(if not monowidth:.95 fi x_height+oo); x1r=.5w; % top of loop + x5r=.5w; bot y5r=-oo; % bottom of ditto + lft x3r=w-rt x7r=hround(.75u); y3r=y7r=.5[y1r,y5r]; % left and right bulge + filldraw stroke gr_arc.e(1,2,3)(vair,stem,.5otilt) % three quadrants of l + & gr_arc.e(3,4,5)(vair,stem,.5otilt) & gr_arc.e(5,6,7)(vair,stem,.5otilt); + + % we now draw the hook |z8..z9..z10|. It must satisfy the following ints: + % its outer contour is symmetric with respect to some axis containing |z9l|; + % one end is known, the width there is |thin_stem|, and the width at |z10| + % is, ideally, stem. (But since we may have to change that we callt |Stem|.) + z8l=z1l; numeric thin_stem, med_stem; thin_stem=.5[hair,Stem]; + % the aperture, measured perpendicular to the axis, equals |Stem| + numeric apert; apert=2Stem+thin_stem-currentbreadth; % |apeth(z10l-z8l);| + numeric left_goal; lft left_goal=vround(lft x3r+.5u); % most tangent known + numeric top_goal; top top_goal=h+oo; % highest tangent known + + % if by taking |Stem=stem| we got |apert > top_goal-y1l|, the problem might + % not have a solution with a horizontal tangent; in that case the + % constraint is on |apert|: + if 2stem+.7[hair,stem]-currentbreadth>top_goal-y8l: apert=top_goal-y8l; + else: Stem=stem; fi + + % we first estimate the slope of the axis by imagining that, in the vicinity + % of |z9l|, the hook looks like a semicircle of diameter |apert/2|. + % (this value is empiric, but reasonable because the tension is high) + z0l=(left_goal+.25apert,top_goal-.25apert); % center of semicircle + numeric axis; axis=angle(z0l-z8l)+angle(length(z0l-z8l)+-+.5apert,.5apert); + z9l=z0l+(.25apert,0)rotated(axis); z10l=z8l+(0,-apert)rotated(axis); + + % we now iterate, correcting |z9l| until the tangencies are satisfied + path hook; numeric left_real; numeric top_real; + forever: + + hook:=z8l{dir(axis)}..tension 1.5..z9l..tension 1.5..{-dir(axis)}z10l; + if directiontime up of hook=-1: + left_error:=0; message "hook has no vertical tangent!"; + else: left_error:=xpart directionpoint up of hook-left_goal; fi + if directiontime right of hook=-1: + top_error:=0; message "hook has no horizontal tangent!"; + else: top_error:=ypart directionpoint right of hook-top_goal; fi + + exitif (abs(left_error)<.05) and (abs(top_error)<.05); + x9l:=x9l-left_error; y9l:=y9l-top_error; + axis:=angle(z9l-z8l)+angle(length(z9l-z8l)+-+.5apert,.5apert); + x10l:=x8l+apert*sind axis; y10l:=y8l-apert*cosd axis; + endfor + + pos8(thin_stem,axis-90); pos10(Stem,axis+90); pos9(.3[hair,Stem],axis+180); + filldraw stroke + z7e{z7'e}..{dir axis}z8e..tension 1.5..z9e..tension 1.5..{-dir axis}z10e; +enddef; + +cmchar "Lowercase delta"; +beginchar("d",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +picture savedpicture; + +% EYILON + +def width = 7.25u enddef; +def height = x_height enddef; +def dims = width#,height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + pos2(.8vstem,90); x2=.5w; top y2r=x_height+o; % top point + pos7(vstem,630); x2=x7; bot y7r=-o; % bottom point + rt x1r=hround(w-u); bot y1l=.3[bot y2l,bar_height]; % top end + z1'=(x1r,y1l+.5(flare-currentbreadth)); % approximation to z1 + numeric slope; slope=angle((z2-z1')yscaled 2); pos1(.5flare,slope-30); + bar_height=.5[y1,y8]; x8=x1; pos8(flare,slope+90); % bottom end + pos3(vstem,120); lft x3r=hround .75u; y3=.5[y4r,y2r]; % top left bulge + pos6(vstem,600); x6=x3; y6=.5[y5r,y7r]; % bottom left bulge + y6:=y6r;y3:=y3r; % for the benefit of |pulled_arc| + top y5r-bot y4r=curve; y5+y4=2bar_height; x5=x4=x2; % loop + pos4(vair,-90); pos5(vair,90); + filldraw stroke z1e{dir slope}...pulled_arc.e(2,3); % top + drawloop(3,4,5,6); % loop and bottom + forsuffixes e=l,r: + path foo.e; foo.e= z8e...pulled_arc.e(7,6); + if angle(direction 0 of foo.e) > angle(z8r-z8l): + foo.e:= z8e{z8r-z8l}...pulled_arc.e(7,6); fi + endfor; + filldraw stroke foo.e; + numeric x_baryctr; x_baryctr=x2; % accent reference +enddef; + +cmchar "Lowercase epsilon"; +beginchar("e",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Lowercase epsilon with rough breathing"; +beginchar(oct"037",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase epsilon with smooth breathing"; +beginchar(oct"040",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase epsilon with acute"; +beginchar(oct"044",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase epsilon with rough breathing and acute"; +beginchar(oct"177",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase epsilon with smooth breathing and acute"; +beginchar(oct"046",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +picture savedpicture; + +% ZHTA + +def dims = 8.5u#,asc_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + pos4(hair,-180); y4=bar_height; lft x4r=hround(.75u); % left bulge + pos6(hair,-180); rt x6l=hround(w-.75u); y6=-.5stem; % bottom right + y3+.5stem=h+o; x3+.5stem=hround(rt x6l-.25u); % top right + numeric slope; slope=angle((z3-z4)xscaled 2); pos3(hair,slope+90); + pos5(stem,-90); bot y5r=0; x5=.5w; % inflection pt + pos7(vstem,-270); y6=.5[y7r,y5r]; x7-.5vstem=hround x5; + pos2(stem,slope+90); z2l=z3l; filldraw double_circ_stroke + % bowl and tail + z7e{right}...z6e{up}...z5e{left}...z4e{up}...z2e{dir slope}; + % where handle attaches + pos1(curve,0); lft x1l=hround(lft x4r+.25u); y1+.5curve=h+o; % end of handle + filldraw circ_stroke z1e{down}...z3e{dir slope}; +enddef; + +cmchar "Lowercase zeta"; +beginchar("z",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8); endchar; + +picture savedpicture; + +% HTA + +def width = 8.5u enddef; +def dims = width#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = if straight: .75 else: .5 fi u#,0 enddef; + +def gen_letter = + pickup fine.nib; + y1r-.5stem=-d-o; pos1(stem,0); + rt x2r=hround(w-.75u); y2r=.5x_height; pos2(hair,0); + lft x5r=hround(1.5u); y5-.5stem=-o; pos5(stem,-180); + top y4r=x_height+o; x4r=.5[lft x2l,rt x5l]; + pos6(hair,180); y6=y2; + if straight: + x1=x2;x5=x6; pos4(stem,90); + filldraw double_circ_stroke z1e--pulled_arc.e(2,4)&pulled_arc.e(4,6)--z5e; + else: + x1r=x2r; z2'l=z2'r=up; + filldraw circ_stroke z1e{up}...gr_arc.e(2,3,4)(hair,stem,.8); % right leg + filldraw circ_stroke z5e{(z4-z5) yscaled 4}...z4e{-z4'e}; % left leg + z6r=((0,y2)--(w,y2)) intersectionpoint (z5r{(z4-z5) yscaled 4}...z4r{-z4'r}); + fi + pos8(vstem,0); rt x8r=hround(lft x6r-.75u); % end of handle + pos7(vstem,-90); top y7l=x_height+o; z8r=z7r; % top of handle + filldraw circ_stroke z8e{up}...z7e{right}...z6e{down}; + numeric x_baryctr; x_baryctr=.1[x4,x7]; % accent reference + numeric pos_stem; pos_stem=x5; % iota reference +enddef; + +cmchar "Lowercase eta"; +beginchar("h",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Lowercase eta with rough breathing"; +beginchar(oct"007",width#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing"; +beginchar(oct"010",width#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase eta with acute"; +beginchar(oct"011",width#,acc_ht#,desc_depth#); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase eta with rough breathing and acute"; +beginchar(oct"012",width#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing and acute"; +beginchar(oct"013",width#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase eta with circumflex"; +beginchar(oct"014",width#,circ_ht#,desc_depth#); +this_letter; circumflex(x_baryctr); endchar; + +picture pic.iota; +picture savedpicture; + +% JHTA + +def dims = 9u#,asc_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + lft x4r=w-rt x8r=hround .75u; y4r=y8r=.5h; % left and right bulges + x2r=x6r=.5w; top y2r=h+o; bot y6r=-o; % top and bottom + filldraw stroke + gr_arc.e(8,1,2)(vair,stem,otilt) & gr_arc.e(2,3,4)(vair,stem,otilt) & + gr_arc.e(4,5,6)(vair,stem,otilt) & gr_arc.e(6,7,8)(vair,stem,otilt); + pos4`(bar,90); pos8`(bar,90); x4`=x4; x8`=x8; y4`=y8`=.05[y4,y2]; + filldraw stroke z4`e--z8`e; % bar +enddef; + +cmchar "Lowercase theta"; +beginchar("j",dims); +this_letter; penlabels(1,2,3,4,4`,5,6,7,8,8`); endchar; + +picture savedpicture; + +% IWTA + +def width = 5u enddef; +def dims = width#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = if monospace: u#,u# else:0,2curve#-3u# fi enddef; + +def gen_letter= + pickup fine.nib; + pos1(flare,180); lft x1r=hround u; top y1=x_height+oo; % top + numeric neck; neck=.2[hair,stem]; + pos2(neck,180); .2[lft x2r,rt x2l]=.2[lft x1r,rt x1l]; % neck + pos3(curve,-90); bot y3r=-oo; % bottom + y2r=if monowidth: + 2 else: 1.5 fi[bot y3r,top y3l]; z3r-z2r=whatever*(1,-1.25); + if monowidth: + y4r+.5neck=vround y2r; x3=.5[x2,x4]; pos4(neck,0); % tip of hook + filldraw stroke z4e...z3e...z2e---z1e; + else: + z4l=z4r; top y4r=y2r; z4l-z3l=whatever*(1,1); + path p.r, p.l; forsuffixes e=r,l: p.e=z1e---z2e...z3e...z4e; endfor + rt x3.5r=hround(rt xpart directionpoint up of p.r); + z4'r=direction 3 of p.r; z3'r=direction 2 of p.r; + forever: % avoid bad vertical tangent between 2l and 3l + x2.5l:= rt xpart directionpoint down of p.l; + exitif abs(hround(x2.5l)-x2.5l)<.05; + x2l:=x2l+hround(x2.5l)-x2.5l; p.l:=(z1l---z2l...z3l...z4l); + endfor + p.r:=z1r---z2r...club.r(3,3.5,4); + % avoid bad vertical tangent between 3r and 4r + filldraw stroke p.e; + fi + numeric x_baryctr; x_baryctr=x1; +enddef; + +cmchar "Lowercase iota"; +beginchar("i",dims); +this_letter; penlabels(1,2,3,4); endchar; + +cmchar "Lowercase iota with rough breathing"; +beginchar(oct"023",width#,acc_ht#,0); +this_letter; spirit(x_baryctr if serifs: +.25u fi)<; endchar; + +cmchar "Lowercase iota with smooth breathing"; +beginchar(oct"024",width#,acc_ht#,0); +this_letter; spirit(x_baryctr if serifs: -.25u fi)>; endchar; + +cmchar "Lowercase iota with acute"; +beginchar(oct"025",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase iota with rough breathing and acute"; +beginchar(oct"026",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase iota with smooth breathing and acute"; +beginchar(oct"027",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase iota with circumflex"; +beginchar(oct"030",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; + +picture savedpicture; + +% KAPPA + +def dims = 9.5u#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + x1-.5stem=hround .75u; y1-.5stem=-o; % lower left + z1+z3=(w,h); z2=.5[z1,z3]; % upper right and mid + z1'=(z3-z1) if monowidth: xscaled 1/2 fi; % slope at 1 and 3 + pos1(stem,angle z1'+90); pos2(.6[hair,stem],angle z1'+90); + pos3(stem,angle z1'+90); + filldraw double_circ_stroke z1e{z1'}..z2e..{z1'}z3e; % diagonal stroke + z4=if monowidth: z1 else: 1/3[z1,z3] fi; z4-z1=z3-z7; % handle attachments + z4'=if monowidth: z1' else: (z3-z1) xscaled .25 fi; % slope at 4 and 7 + pos4(hair,angle z4'-90); pos7(hair,angle z4'+90); + pos5(vstem,90); top y5r=h+o; pos6(vstem,180); z6l=z5l; + lft x6r=hround(x1-.5stem-.25u); + filldraw circ_stroke z6e{up}...z5e{right}...z4e{-z4'}; % left handle + pos8(.5[vstem,stem],-90); bot y8r=-o; rt x9r=hround(x3+.5stem+.25u); + pos9(.5[vstem,stem],0); z9l=z8l; + filldraw circ_stroke z9e{down}...z8e{left}...z7e{z4'}; % right handle +enddef; + +cmchar "Lowercase kappa"; +beginchar("k",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +picture savedpicture; + +% LAMBDA + +def dims = 9.5u#,asc_height#,0 enddef; +def ital = 0 enddef; +def fit_params = -.25u#,-.25u# enddef; +def krn = -.75u# enddef; + +def gen_letter= + pickup fine.nib; + x1-.5stem=hround .75u; y1+.5stem=h; % top left + z1'=(1,.2); pos1(stem,angle z1'+90); % direction at z1 + x3+x1=w; y3-.5stem=-oo; pos3(stem,-angle z1'+90); % bottom right + y2=x_height-.5u; x2=.5[x1,x3]; % attachment + z2'=(z3-z1)yscaled 2; pos2(hair,angle z2'+90); % direction at z4 + filldraw double_circ_stroke z1e{z1'}... + z2e{(z3-z1)yscaled 2}...{z1' yscaled -1}z3e; % diagonal + lft x4l=hround.75u; bot y4l=0; % bottom left + numeric stem'; stem'=stem-currentbreadth; numeric slope; % from z4 to z4 + slope=angle(z2-z4l)+angle(length(z2-z4l)+-+.5stem',.5stem'); + x4r=x4l+(stem'/sind slope); y4r=y4l; z4=.5[z4r,z4l]; + path p; p=z1{z1'}...z2{(z3-z1)yscaled 2}...{z1' yscaled -1}z3; + forsuffixes e=r,l: z5e=(z4e--(z4e+2(z2-z4))) intersectionpoint p; endfor + filldraw stroke z4e{(z2-z4)if not monowidth: xscaled 1.2 fi}..z5e; +enddef; + +cmchar "Lowercase lambda"; +beginchar("l",dims); +this_letter; penlabels(1,2,3,4,5); endchar; + +picture savedpicture; + +% MI + +def dims = 9.5u#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,.5stem# enddef; + +def gen_letter= + pickup fine.nib; + y6+.5stem=h+o; pos6(stem,0); rt x6r=hround(w-vstem); % top right + x5r=.5[x1,x6]; bot y5r=-oo; % bottom of bowl + if straight: + lft x1r=hround .75 u; y1+.5stem=h+o; pos1(stem,180); % top left + x4=x1; x9=x6; y9=y4=.5x_height; pos4(stem,180); pos9(stem,0); + pos5(vstem, 270); + filldraw double_circ_stroke z1e..pulled_arc.e(4,5)&pulled_arc.e(5,9)..z6e; + y8-.5stem=-d-oo; x8=x1; pos8(stem,180); % end of handle + filldraw circ_stroke z8e..z4e; + else: + lft x2r=rt x2l-stem=hround .75u; % vertical tangents of left bulb + top y1r=h+o; x1r=.5[x2r,x2l]; z1=z1l=z1r; z1'r=-z1'l=left; % top left + y3r=.4[y1r,y5r]; lft x3r=x1r-.5hair; % middle left + numeric tilt; tilt:=.6; path p.r, p.l; + p.l=gr_arc.l(3,4,5)(hair,.4[hair,stem],tilt)...{up}z6l; + p.r=subpath (2(1-tilt),2) of gr_arc.r(3,4,5)(fie,fo,fum)...{up}z6r; + z3.5r=z4r; z3.5'r=z4'r; z3.5l=z3l; z3.5'l=z3'l; % a hybrid + filldraw double_circ_stroke club.e(1,2,3.5) & p.e; % bowl + x8=lft x2r+.5stem; bot y8=-d-oo; % end of handle + pos8(stem,angle(z4'l xscaled 2)-120); z8'r=z8'l=z4'l xscaled 2; + assign_z3'r(z3'l); % so club.r won't get confused + lft x7r=rt x7l-max(hair,2)=lft x2r; % vertical tangents of handle + filldraw double_circ_stroke club.e(3,7,8); % handle + y9r=max(y4r+epsilon,-oo+2vstem); % where hook attaches + z9r=((0,y9r)--(w,y9r)) intersectionpoint p.r; pos9(hair,0); + fi + pos10(vstem,90); y10l=y5r; x10-x9=vstem; % bottom of hook + pos11(hair,180); top y11=bot y10l+4/3vstem; % tip of hook + rt x11l=hround(x10+(y11-y10)+.5hair); % central arc is round + filldraw stroke z9e{down}..z10e{right}..{up}z11e; % hook +enddef; + +cmchar "Lowercase mu"; +beginchar("m",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10,11); endchar; + +picture savedpicture; + +% NI + +def dims = 8.5u#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + rt x4r=hround(w-.75u); lft x4l-rt x4r=hround -.2[hair,stem]; % vert tangents + x5=lft x4l; y5+.5hair=h+oo; z5'l=z5'r=(u,-.2h); % right tip + pos5(hair,angle z5'l+90); +pos3(whatever,-90); bot y3r=-oo; x3=.5w; z3'l=z3'r=z5'l xscaled -2; % bottom +z3l+whatever*z3'l=z3r+(stem-currentbreadth)*(dir(angle z3'l-90)); % width=stem + filldraw circ_stroke club.e(5,4,3); % right stroke + y1+.5stem=h+oo; x1-.5stem=hround.75u; % left tip + z1'=(9u,-h); pos1(stem,angle z1'-90); + z2r=z3r; z2l-z3l=(hair-currentbreadth,0); + filldraw circ_stroke z1e{z1'}...{down}z2e; % left stroke +enddef; + +cmchar "Lowercase nu"; +beginchar("n",dims); +this_letter; penlabels(1,2,3,4,5); endchar; + +picture savedpicture; + +% XI + +def dims = 8.5u#,asc_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + lft x7r=rt x7l-hair=hround(.75u); x7=.5[x7r,x7r]; % big bulge + pos8(stem,-90); bot y8r=0; x8=.5w; z8'r=z8'l=left; % inflection pt + pos9(hair,-180); rt x9l=hround(w-.75u); y9=-.5stem; % bottom right + y6+.5stem=x_height+o; x6+.5stem=hround(rt x9l-1.5u); % middle right + numeric slope; slope=angle(5(x6-x7),y6-y8); pos6(stem,slope+90); + z6'r=z6'l=dir slope; + pos10(vstem,-270); y9=.5[y10r,y8r]; x10-.5vstem=hround x8; + filldraw double_circ_stroke % bowl and tail + z10e{right}...z9e{up}...club.e(8,7,6); + pos5(hair,slope-90); z5l=z6r; % attachment + z4=.5[z3,z5]+whatever*dir slope; % small bulge + pos4(hair,-180); lft x4r=hround(lft x7r+1.5u); +y3+.5stem=h+o; x3+.5stem=hround(rt x9l-.25u); pos3(hair,slope+90); % top rt + pos2(stem,slope+90); z2l=z3l; + filldraw circ_stroke z2e{-dir slope}..z4{down}...z5e{dir slope}; + % where handle attaches + pos1(curve,0); lft x1l=hround(lft x7r+.25u); y1+.5curve=h+o; % end of handle + filldraw circ_stroke z1e{down}...z3e{dir slope}; +enddef; + +cmchar "Lowercase xi"; +beginchar("x",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +picture savedpicture; + +% OMIKRON + +def width = 9.5u enddef; +def dims = width#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + lft x4r=hround .75u; x8r=w-x4r; y4r=y8r=.5x_height; % top and bottom + top y2r=x_height+oo; bot y6r=-oo; x2r=x6r=.5w; % right and left + filldraw stroke + gr_arc.e(8,1,2)(vair,curve,otilt) & gr_arc.e(2,3,4)(vair,curve,otilt) & + gr_arc.e(4,5,6)(vair,curve,otilt) & gr_arc.e(6,7,8)(vair,curve,otilt) ; + numeric x_baryctr; x_baryctr=x2; % accent reference +enddef; + + +cmchar "Lowercase omicron"; +beginchar("o",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Lowercase omicron with rough breathing"; +beginchar(oct"137",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase omicron with smooth breathing"; +beginchar(oct"140",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase omicron with acute"; +beginchar(oct"103",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase omicron with rough breathing and acute"; +beginchar(oct"133",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase omicron with smooth breathing and acute"; +beginchar(oct"135",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +picture savedpicture; + +% PI + +def dims = 9.5u#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = -.25,0 enddef; + +def gen_letter = + pickup fine.nib; + pi_bar; % bar + pos4(hair,0); pos7(hair,0); y4=y7=y2; % attachments + lft x4l-(x1-.5hair)=lft x7l-rt x4r=rt x3-rt x7r; + pos5(hair,0); pos8(hair,0); y5=y8=.5x_height; x5=x4; x8=x7; % midstems + x6+.5stem=hround(rt x4r if not straight:-.25u fi); y6-.5stem=-oo; % left stem + numeric slope; slope=angle((z5-z6)xscaled2); pos6(.44iota_dp,slope-90); + filldraw circ_stroke z6e...z5e---z4e; + x9=x7+1.5u; bot y9l=-oo; pos9(stem,90); alpha_tail(9,10); % right stem + filldraw stroke z10e...z9e{left}...z8e---z7e; +enddef; + +cmchar "Lowercase pi"; +beginchar("p",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +picture savedpicture; + +% RO + +def width = 8.5u enddef; +def height = x_height enddef; +def depth = desc_depth enddef; +def dims = width#,height#,depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + lft x4r=hround .75u; x8r=w-x4r; y4r=y8r=.5h; % left and right + top y2r=h+oo; bot y6r=-oo; x2r=x6r=.5w; % top and bottom + filldraw stroke + gr_arc.e(4,5,6)(curve,vair,-otilt) & gr_arc.e(6,7,8)(curve,vair,-otilt) & + gr_arc.e(8,1,2)(curve,vair,-otilt) & gr_arc.e(2,3,4)(curve,vair,-otilt); + if straight: + y9-.5stem=-d-oo; x9=x4; pos9(stem,180); % end of handle + filldraw circ_stroke z9e..z4e; + else: + y9=-d-oo; x9=lft x4r+.5stem; % end of handle + pos9(stem,angle((z9-z4)xscaled3)-120); z9'r=z9'l=(z9-z4)xscaled3; + rt x10l=lft x10r+vair; % vertical tangents of handle + x10r=x4r-epsilon; assign_z4'r((-2eps,-1)); % so club.r won't get confused + filldraw double_circ_stroke club.e(4,10,9); + fi + numeric x_baryctr; x_baryctr=x2; % breathing placement +enddef; + +cmchar "Lowercase rho"; +beginchar("r",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +picture savedpicture; + +% SIGMA + +def dims= 8u#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + pos4(hair,-180); y4=.5h; lft x4r=hround .75u; % left bulge + pos6(hair,-180); rt x6l=hround(w-.75u); y6=-.5stem; % bottom right + top y3r=h+oo; x3+.5stem=rt x6l; pos3(stem,90); % top right +pos5(stem,-90); bot y5r=0; x5=.5w; % inflection pt + pos7(vstem,-270); y6=.5[y7r,y5r]; x7-.5vstem=hround x5; +filldraw double_circ_stroke % bowl and tail + z7e{right}...z6e{up}...z5e{left}...z4e{up}...z3e{right}; +enddef; + +cmchar "Final lowercase sigma"; +beginchar("c",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8); endchar; + +numeric gen_sigma; gen_sigma=1; + +def dim_sigma = 9.5u#,x_height#,0 enddef; +def ital_sigma = 0 enddef; +def fit_params_sigma = 0,.75u# enddef; + +def mid_sigma= +italcorr ital_sigma; adjust_fit(fit_params_sigma); +if known pic.c: currentpicture:=pic.c; else: gen_mid_sigma; fi +if not working_hard : picture pic.c; pic.c=currentpicture; fi +enddef; + +def gen_mid_sigma = + pickup fine.nib; + lft x4r=hround .75u; rt x8r=w-lft x4r; % left and right bulge + top y2r=h; bot y6r=-oo; x2r=x6r; % top and bottom + numeric fake; fake=y2r-(vstem-currentbreadth); % approx height of |z2l| + 2y4r=y2r+y6r; 2y8r=fake+y6r; + (x8r-x6r)/(y8r-y6r)=-(x4r-x6r)/(y4r-y6r); % determine |x6r| + y1r=y2r;rt x1=hround(rt x8r+u); pos1(flare,90); % tip + filldraw stroke z1e..gr_arc.e(2,3,4)(vstem,curve,otilt) + & gr_arc.e(4,5,6)(vair,curve,otilt) % top stroke and left bowl + & gr_arc.e(6,7,8)(vair,curve,otilt); % bottom part of right bowl + z9l=z2l; pos9(vair,180); z9'l=z2'l; z9'r=left; + filldraw stroke z8e{z8'e}..z9e{z9'e}; % top part of right bowl +enddef; + +cmchar "Initial and medial lowercase sigma"; +beginchar("s",dim_sigma); +mid_sigma; penlabels(1,2,3,4,5,6,7,8,9); endchar; + +picture savedpicture; + +% TAU + +def dims = 8.5u#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = -.25,0 enddef; + +def gen_letter= + pickup fine.nib; + pi_bar; % bar + pos4(hair,0); y4=y2; lft x4l-(x1-.5hair)=rt x3-rt x4r; % attachment + pos5(hair,0); y5=.5x_height; x5=x4; % midstems + x6=x4+1.5u; bot y6l=-oo; pos6(stem,90); alpha_tail(6,7); % stem + filldraw stroke z7e...z6e{left}...z5e---z4e; +enddef; + +cmchar "Lowercase tau"; +beginchar("t",dims); +this_letter; penlabels(1,2,3,6,7,8); endchar; + +picture savedpicture; + +% UPSILON + +def width = 9u enddef; +def dims = width#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + y2+.5stem=x_height+o; x2-.5stem=hround.75u; % left tip + lft x4r=hround(x2-.5stem+.75u); y4r=.5x_height; % left middle + y8r=y4r; rt x8r=hround(w-.75u); % right bulge + x6r=.5[x4r,x8r]; bot y6r=-oo; % bottom + numeric tilt; + tilt:=min(2*otilt,.5); + filldraw stroke + gr_arc.e(6,7,8)(vair,stem,tilt) ; + filldraw stroke + gr_arc.e(4,5,6)(vair,.4[vair,stem],tilt) ; + y9+.5hair=x_height+o; x9=x8-u; pos9(hair,angle ((z8-z9) xscaled 2)+90); + filldraw circ_stroke z9e...{-z8'e}z8e; + pos2(stem,angle((z4-z2) xscaled 2)-90); + filldraw circ_stroke z2e...{z4'e}z4e; + numeric x_baryctr; x_baryctr=.5w; +enddef; + +cmchar "Lowercase upsilon"; +beginchar("u",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9); endchar; + +cmchar "Lowercase upsilon with rough breathing"; +beginchar(oct"031",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase upsilon with smooth breathing"; +beginchar(oct"032",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase upsilon with acute"; +beginchar(oct"033",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase upsilon with rough breathing and acute"; +beginchar(oct"034",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase upsilon with smooth breathing and acute"; +beginchar(oct"166",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase upsilon with circumflex"; +beginchar(oct"036",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; + +picture savedpicture; + +% FI + +def dims = 10.5u#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + lft x4r=w-rt x8r=hround .75u; y4r=y8r=.5h; + x6r=.5[x4r,x8r]; bot y6r=-oo; + numeric tilt; tilt:=min(2*otilt,.5); + filldraw stroke gr_arc.e(6,7,8)(vair,stem,tilt) ; + filldraw stroke gr_arc.e(4,5,6)(vair,.5[vair,stem],tilt) ; + y2+.5stem=h+o; x2+.5stem=hround(x6-1.5u); + pos2(stem,angle((z2-z4)xscaled 2)+90); + filldraw circ_stroke z2e...{z4'e}z4e; + pos10(stem,180); pos11(hair,180); + y10-.5stem=-d-o; y11=.25h; x10=x11=x6; + x9r=.5[x10r,x8r]; top y9r=h+o; + filldraw stroke gr_arc.e(8,20,9)(.25[vair,stem],.5[vair,stem],.5tilt); + filldraw circ_stroke z10e..z11e{up}..{-z9'e}z9e; +enddef; + +cmchar "Lowercase phi"; +beginchar("f",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10,11,12,20,21); endchar; + +picture savedpicture; + +% QI + +def ital = 0 enddef; +def fit_params = 0,0 enddef; +def dims = 10u#,x_height#,desc_depth# enddef; + +def gen_letter= + pickup fine.nib; + x1-.5stem=hround .75u; y1+.5stem=h+oo; % top left + z1'=(1,.2); pos1(stem,angle z1'+90); % direction at z1 + x3+x1=w; y3-.5stem=-d-oo; pos3(stem,angle z1'+90); % bottom right + z2=.5[z1,z3]; % attachment + z2'=(z3-z1)yscaled 2; pos2(hair,angle z2'+90); % direction at z4 + filldraw double_circ_stroke z1e{z1'}... z2e{(z3-z1)yscaled 2}...{z1'}z3e; + lft x7l=hround .75u; bot y7l=-d-oo; z2=.5[z7l,z8r]=.5[z7r,z8l]; + numeric stem'; stem'=stem-currentbreadth; + numeric theta; theta=angle(z8r-z7l)+angle((x8r-x7l)++(y8r-y7l)+-+stem',stem'); + x7r=x7l+(stem'/sind theta); y7r=y7l; + filldraw stroke z7e..z8e; +enddef; + +cmchar "Lowercase chi"; +beginchar("q",dims); +this_letter; penlabels(1,2,3,7,8); endchar; + +picture savedpicture; + +% YI + +def dims = 10.5u#,asc_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + lft x2r=w-rt x6r=.75u; y2r=y6r=.6x_height; % left and right bulges + x4r=.5[x2r,x6r]; bot y4r=-oo; % bottom + numeric tilt; tilt:=min(2*otilt,.5); + filldraw stroke gr_arc.e(4,5,6)(vair,stem,tilt) ; + filldraw stroke gr_arc.e(2,3,4)(vair,.4[vair,stem],tilt) ; + y7+.5hair=x_height+o; x7+.5hair=hround(rt x6r-.75u); % right tip + pos7(hair,angle ((z6-z7) xscaled 2)+90); + filldraw circ_stroke z7e...{-z6'e}z6e; + y1+.5stem=x_height+o; x1-.5stem=hround(lft x2r+.5u); % left tip + pos1(stem,angle((z2-z1) xscaled 2)-90); + filldraw circ_stroke z1e...{z2'e}z2e; + pos10(stem,0); pos9(hair,0); pos8(stem,0); % vertical stroke + y10-.5stem=-d-o; y9=.25x_height; y8+.5stem=h+o; x10=x9=x8=x4; + filldraw double_circ_stroke z10e..z9e{up}..z8e; +enddef; + +cmchar "Lowercase psi"; +beginchar("y",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +picture savedpicture; + +% WMEGA + +def width = 12u enddef; +def height = x_height enddef; +def dims = width#,height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + pos2(stem,-180); pos8(stem,360); lft x2r=w-rt x8r=hround.75u; + y2=y8=.8bar_height; % left and right bulges + y4=y6=bar_height; .5[x4,x6]=.5w; rt x4r-lft x6r=stem; +pos4(hair,0); pos6(hair,180); % left and right of loop + bot y3r=bot y7r=-oo; x3=.5[x2,x4]; x7+.25u=.5[x6,x8]; + pos3(vstem,-150); pos7(vstem,330); % left and right bottom + top y1r=x_height+o=top y9r; % left tip + x1=.5[x2,.5w]; pos1(.2[stem,hair],angle(-.5w,y2-x_height)-90); +x9=.5[x8,.5w]; pos9(.8[stem,hair],angle(-.5w,x_height-y2)-90); % rt tip + filldraw stroke z1e{(z2-z1) xscaled 2}...z2e{down}...z3e{right}; + filldraw stroke z7e{right}...{up}z8e...{(z9-z8) xscaled 2}z9e; + drawloop(3,4,6,7); + numeric x_baryctr; x_baryctr=.5[x4,x6]; + numeric pos_stem; pos_stem=x_baryctr; +enddef; + +cmchar "Lowercase omega"; +beginchar("w",dims); +this_letter; penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +cmchar "Lowercase omega with rough breathing"; +beginchar(oct"015",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase omega with smooth breathing"; +beginchar(oct"016",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase omega with acute"; +beginchar(oct"017",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase omega with rough breathing and acute"; +beginchar(oct"020",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase omega with smooth breathing and acute"; +beginchar(oct"021",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase omega with circumflex"; +beginchar(oct"022",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; + +picture pic.iota; +picture savedpicture; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/rgrpunct.mf b/Master/texmf-dist/fonts/source/public/yannisgr/rgrpunct.mf new file mode 100644 index 00000000000..55f7ea8ccc7 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/rgrpunct.mf @@ -0,0 +1,235 @@ +cmchar "Open quotes (eisagwgik'a)"; +beginchar("{",7.5u#,x_height#,0); +adjust_fit(0,0); +pos0(.5[hair,stem],0); pos1(1.5stem,0); pos2(.5[hair,stem],0); +pos3(.5[hair,stem],0); pos4(1.5stem,0); pos5(.5[hair,stem],0); +y0=y3=.9h; y1=y4=.5h; y2=y5=h-y0; +x1-.1stem=hround(.5u); +x3r=w-u; +x4-x1=2stem; x3-x4=x0-x1; x0=x2; x3=x5; +if x1>=x0: x1:=x0-1; x4:=x3-1; +x1l:=x1-.5stem; x1r:=x1+.5stem; +x4l:=x4-.5stem; x4r:=x4+.5stem; fi +filldraw stroke z0e---z1e---z2e; +filldraw stroke z3e---z4e---z5e; +penlabels(0,1,2,3,4,5); endchar; + +cmchar "Close quotes (eisagwgik'a)"; +beginchar("}",7.5u#,x_height#,0); +adjust_fit(0,0); +pos0(.5[hair,stem],0); pos1(1.5stem,0); pos2(.5[hair,stem],0); +pos3(.5[hair,stem],0); pos4(1.5stem,0); pos5(.5[hair,stem],0); +y0=y3=.9h; y1=y4=.5h; y2=y5=h-y0; +x1+.1stem=hround(w-.5u); +x3l=u; +x1-x4=2stem; x3-x4=x0-x1; x0=x2; x3=x5; +if x1<=x0: x1:=x0+1; x4:=x3+1; +x1l:=x1-.5stem; x1r:=x1+.5stem; +x4l:=x4-.5stem; x4r:=x4+.5stem; fi +filldraw stroke z0e---z1e---z2e; +filldraw stroke z3e---z4e---z5e; +penlabels(0,1,2,3,4,5); endchar; + +cmchar "Exclamation point"; +beginchar("!",5u#+width_adj#,asc_height#,0); +italcorr asc_height#*slant-2u#-.5width_adj#+.5dot_size#; +adjust_fit(0,0); +pickup tiny.nib; pos3(dot_size,0); pos4(dot_size,90); +lft x3l=hround(.5w-.5dot_size); bot y4l=0; z3=z4; dot(3,4); % dot +numeric bot_width; +bot_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi; +pickup fine.nib; pos1(dot_size,0); pos2(bot_width,0); +x1=x2=x3; bot y2=.25[top y4r,x_height]+1; +if square_dots: top y1=h; + filldraw stroke z1e--z2e; % stem +else: top z0=(x1,h+o); y1+.5dot_size=h+o; + filldraw z1r...z0...z1l---z2l--z2r---cycle; fi % stem and bulb +penlabels(0,1,2,3,4); endchar; + +cmchar "Per cent sign"; +beginchar("% ",9u#+max(6u#,2fudge*(hair#+stem#)), + body_height#,body_height#-asc_height#); +italcorr if hefty: .4asc_height#*slant-.5u# else: h#*slant-u# fi; +adjust_fit(0,0); pickup fine.nib; +numeric left_curve,right_curve; +left_curve=hround 5/6[fudged.hair,fudged.stem]; +right_curve=max(fine.breadth,hround(fudged.hair if hefty:-2stem_corr fi)); +pos1(vair,90); pos2(left_curve,180); pos3(vair,270); pos4(right_curve,360); +top y1r=h; lft x2r=hround u; rt x4r=hround(.5w-1.5u); +bot y3r=floor(if monospace: .7 else: .5 fi\\ asc_height); +x1=x3=.5[x2,x4]; y2=y4=.5[y1,y3]; +filldraw stroke pulled_super_arc.e(1,2)(superpull) + & pulled_super_arc.e(2,3)(superpull); % left half of upper bowl +filldraw stroke super_arc.e(3,4) + & super_arc.e(4,1); % right half of upper bowl +pos5(vair,90); pos6(left_curve,180); pos7(vair,270); pos8(right_curve,360); +bot y7r=-d; rt x8r=hround(w-u); lft x6r=hround(.5w+1.5u); +top y5r=vround(if monospace: .3 else: .5 fi\\ asc_height); +x5=x7=.5[x6,x8]; y6=y8=.5[y5,y7]; +filldraw stroke pulled_super_arc.e(5,6)(superpull) + & pulled_super_arc.e(6,7)(superpull); % left half of lower bowl +filldraw stroke super_arc.e(7,8) & super_arc.e(8,5); % right half of lower bo +pickup rule.nib; top y9=h; bot y10=-d; +if hefty: x9=good.x(x5-eps); x10=good.x(x1+eps); + draw z9--z10; % diagonal +else: rt x9=hround(w-2.5u); lft x10=hround 2.5u; draw z9--z10; % diagonal + pickup fine.nib; pos9(rule_thickness,angle(z9-z10)+90); + pos11(vair,angle(z1r-z4r)-90); pos12(vair,angle(z9-z10)+90); + path p; p=super_arc.r(1,4); z11r=point 2/3 of p; z12r=z9r; + filldraw stroke z11e{direction 2/3 of p}...{z9-z10}z12e; fi % link +penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; + +def dims = 6u#,asc_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= +x1-.5dot_size=hround(.5w-u-.5dot_size); y1+.5dot_size=h; +if monospace: comma(1,a,dot_size,.28u,vround 1.5comma_depth); % large comma +else: comma(1,a,dot_size,.25u,comma_depth); fi % comma with increased jut +enddef; + +cmchar "Apostrophe"; +beginchar(oct"035",dims); +this_letter; penlabels(1); endchar; + +picture savedpicture; + +cmchar "Left parenthesis"; +beginchar("(",7u# if monospace: -u# fi,body_height#,paren_depth#); +italcorr body_height#*slant-.5u#; +adjust_fit(0,0); pickup fine.nib; +pos1(vair,0); pos2(.75[hair,stem],0); pos3(vair,0); +rt x1r=rt x3r=hround(w-u); lft x2l=hround(x1-4u if monospace: +4/3u fi); +top y1=h; y2=.5[y1,y3]=math_axis; +filldraw stroke z1e{3(x2e-x1e),y2-y1}...z2e + ...{3(x3e-x2e),y3-y2}z3e; % arc +penlabels(1,2,3); endchar; + +cmchar "Right parenthesis"; +beginchar(")",7u# if monospace: -u# fi,body_height#,paren_depth#); +italcorr math_axis#*slant-.5u#; +adjust_fit(0,0); pickup fine.nib; +pos1(vair,0); pos2(.75[hair,stem],0); pos3(vair,0); +lft x1l=lft x3l=hround u; rt x2r=hround(x1+4u if monospace: -4/3u fi); +top y1=h; y2=.5[y1,y3]=math_axis; +filldraw stroke z1e{3(x2e-x1e),y2-y1}...z2e + ...{3(x3e-x2e),y3-y2}z3e; % arc +penlabels(1,2,3); endchar; + +cmchar "Asterisk"; +beginchar("*",9u#, + if low_asterisk:math_axis#+.5x_height# else: body_height# fi,0); +italcorr h#*slant-.75u#; +adjust_fit(0,0); +numeric ast_flare; ast_flare=hround .7[thin_join,stem]; +x0=.5w; y0=h-.5x_height; +for d=-150 step 60 until 150: z[d]=z0+.5dir d xscaled 7.5u yscaled x_height; + numeric theta; theta=angle(z[d]-z0); + fill z0+.5(0,-thin_join)rotated theta + ---z[d]+.5(-ast_flare,-ast_flare)rotated theta + ..z[d]..z[d]+.5(-ast_flare,ast_flare)rotated theta + ---z0+.5(0,thin_join)rotated theta--cycle; endfor % diagonal at angle |d| +labels(0,[-150],[-90],[-30],30,90,150); endchar; + +cmchar "Plus sign"; +beginarithchar("+"); pickup rule.nib; +x1=x2=good.x .5w; top y1=h+eps; .5[y1,y2]=math_axis; +lft x3=hround u-eps; x4=w-x3; y3=y4=math_axis; +draw z1--z2; % stem +draw z3--z4; % crossbar +labels(1,2,3,4); endchar; + +cmchar "Comma"; +numeric dot_diam#; dot_diam#=if monospace: 5/4 fi\\ dot_size#; +define_whole_blacker_pixels(dot_diam); +beginchar(",",5u#,dot_diam#,comma_depth#); +adjust_fit(0,0); +x1-.5dot_diam=hround(.5w-.5dot_diam); y1-.5dot_diam=0; +comma(1,a,dot_diam,.2u,comma_depth); % dot and tail +penlabels(1); endchar; + +cmchar "Period"; +numeric dot_diam#; dot_diam#=if monospace: 5/4 fi\\ dot_size#; +define_whole_blacker_pixels(dot_diam); +beginchar(".",5u#,dot_diam#,0); +adjust_fit(0,0); pickup fine.nib; +pos1(dot_diam,0); pos2(dot_diam,90); +lft x1l=hround(.5w-.5dot_diam); bot y2l=0; z1=z2; dot(1,2); % dot +penlabels(1,2); endchar; + +cmchar "Virgule (slash)"; +beginchar("/",9u#,body_height#,paren_depth#); +italcorr body_height#*slant-.5u#; +adjust_fit(0,0); pickup rule.nib; +rt x1=hround(w-u)+eps; top y1=h+eps; +lft x2=hround u-eps; bot y2=-d-eps; +draw z1--z2; % diagonal +penlabels(1,2); endchar; + +cmchar "Colon"; +numeric dot_diam#; dot_diam#=if monospace: 5/4 fi\\ dot_size#; +define_whole_blacker_pixels(dot_diam); +beginchar(":",5u#,x_height#,0); +italcorr x_height#*slant+.5dot_diam#-2u#; +adjust_fit(0,0); pickup fine.nib; +pos1(dot_diam,0); pos2(dot_diam,90); +lft x1l=hround(.5w-.5dot_diam); top y2r=h; z1=z2; dot(1,2); % upper dot +pos3(dot_diam,0); pos4(dot_diam,90); +x3=x1; bot y4l=0; z3=z4; dot(3,4); % lower dot +penlabels(1,2,3,4); endchar; + +cmchar "'Anw tele'ia"; +numeric dot_diam#; dot_diam#=if monospace: 5/4 fi\\ dot_size#; +define_whole_blacker_pixels(dot_diam); +beginchar(";",5u#,x_height#,0); +italcorr x_height#*slant+.5dot_diam#-2u#; +adjust_fit(0,0); pickup fine.nib; +pos1(dot_diam,0); pos2(dot_diam,90); +lft x1l=hround(.5w-.5dot_diam); top y2r=h; z1=z2; dot(1,2); % upper dot +penlabels(1,2); endchar; + +cmchar "Question mark"; +numeric dot_diam#; dot_diam#=if monospace: 5/4 fi\\ dot_size#; +define_whole_blacker_pixels(dot_diam); +beginchar("?",5u#,x_height#,comma_depth#); +italcorr x_height#*slant+.5dot_diam#-2u#; +adjust_fit(0,0); pickup fine.nib; +pos1(dot_diam,0); pos2(dot_diam,90); +lft x1l=hround(.5w-.5dot_diam); top y2r=h; z1=z2; dot(1,2); % upper dot +x3-.5dot_diam=hround(.5w-.5dot_diam); y3-.5dot_diam=0; +comma(3,a,dot_diam,.05u,comma_depth); % lower dot and tail +penlabels(1,2,3); endchar; + +cmchar "Equals sign"; +compute_spread(.45x_height#,.55x_height#); +beginchar("=",14u#,v_center(spread#+rule_thickness#)); +italcorr h#*slant-.5u#; +adjust_fit(0,0); pickup rule.nib; +lft x1=hround u-eps; x3=x1; x2=x4=w-x1; +y1=y2; y3=y4; y1-y3=spread; .5[y1,y3]=math_axis; +draw z1--z2; % upper bar +draw z3--z4; % lower bar +labels(1,2,3,4); endchar; + + +cmchar "Hyphen"; +beginchar("-",6u#,x_height#,0); +italcorr .5x_height#*slant-.5u#; +adjust_fit(0,0); +numeric thickness; thickness=if hefty:bar else:.75[hair,stem] fi; +pickup crisp.nib; pos1(thickness,90); pos2(thickness,90); +top y1r=top y2r=vround(.5h+.5thickness); rt x2=hround(w-u)+eps; +if monospace: x2=w-x1 else: lft x1=hround .2u-eps fi; +filldraw stroke z1e--z2e; % bar +penlabels(1,2); endchar; + +cmchar "En dash"; +beginchar(oct"000",9u#,x_height#,0); +italcorr .61803x_height#*slant+.5u#; +adjust_fit(0,0); +pickup crisp.nib; pos1(vair,90); pos2(vair,90); +top y1r=top y2r=vround(.61803h+.5vair); lft x1=-eps; rt x2=w+eps; +filldraw stroke z1e--z2e; % bar +penlabels(1,2); endchar; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/rgrrg10.mf b/Master/texmf-dist/fonts/source/public/yannisgr/rgrrg10.mf new file mode 100644 index 00000000000..0c36d51e702 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/rgrrg10.mf @@ -0,0 +1,85 @@ +% Reduced Greek Regular 10 point +if unknown cmbase: input cmbase fi +if unknown grbase: input rgrbase fi + +font_identifier:="rgrrg"; font_size 10pt#; + +u#:=20/36pt#; % unit width +width_adj#:=0pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=5/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=270/36pt#; % height of tallest characters +asc_height#:=250/36pt#; % height of lowercase ascenders +cap_height#:=246/36pt#; % height of caps +fig_height#:=232/36pt#; % height of numerals +x_height#:=155/36pt#; % height of lowercase without ascenders +math_axis#:=90/36pt#; % axis of symmetry for math symbols +bar_height#:=82/36pt#; % height of crossbar in lowercase e +comma_depth#:=70/36pt#; % depth of comma below baseline +desc_depth#:=90/36pt#; % depth of lowercase descenders +acc_ht#:=250/36pt#; +circ_ht#:=225/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=72/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=8/36pt#; % diameter of rounded corners +fine#:=7/36pt#; % diameter of sharply rounded corners +thin_join#:=7/36pt#; % width of extrafine details +hair#:=9/36pt#; % lowercase hairline breadth +stem#:=30/36pt#; % lowercase stem breadth +curve#:=30/36pt#; % lowercase curve breadth +ess#:=27/36pt#; % breadth in middle of lowercase s +flare#:=27/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=38/36pt#; % diameter of dots +cap_hair#:=11/36pt#; % uppercase hairline breadth +cap_stem#:=32/36pt#; % uppercase stem breadth +cap_curve#:=37/36pt#; % uppercase curve breadth +cap_ess#:=35/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.4pt#; % thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=20/36pt#; % vertical distance from serif base to tangent +jut#:=28/36pt#; % protrusion of lowercase serifs +cap_jut#:=37/36pt#; % protrusion of uppercase serifs +beak_jut#:=10/36pt#; % horizontal protrusion of beak serifs +beak#:=70/36pt#; % vertical protrusion of beak serifs +vair#:=8/36pt#; % vertical diameter of hairlines +notch_cut#:=10pt#; % maximum breadth above or below notches +bar#:=11/36pt#; % lowercase bar thickness +slab#:=11/36pt#; % serif and arm thickness +cap_bar#:=11/36pt#; % uppercase bar thickness +cap_band#:=11/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=10pt#; % max breadth above/below uppercase notches +serif_drop#:=4/36pt#; % vertical drop of sloped serifs +stem_corr#:=1/36pt#; % for small refinements of stem breadth +vair_corr#:=1/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=8/36pt#; % amount of overshoot for curves +apex_o#:=8/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; % tilt of inner bowl for the letter omicron +fudge:=1; % factor applied to weights of heavy characters +math_spread:=0; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/6; % extra openness inside bowls +beak_darkness:=11/30; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=false; % should stems, etc. be straight? +monowidth:=false; %are stem and hair more or less the same width? +italics:=false; + +generate rgreek; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/rgrsc10.mf b/Master/texmf-dist/fonts/source/public/yannisgr/rgrsc10.mf new file mode 100644 index 00000000000..18ac98eaff8 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/rgrsc10.mf @@ -0,0 +1,171 @@ +% Greek Small Capitals 10 point yannis.Berlin.29.11.88 and Lille 5.2.90 + +if unknown cmbase: input cmbase fi +if unknown grbase: input rgrbase fi + +font_identifier:="rgrsc"; font_size 10pt#; + +% first come parameters used to set the uppercase letters +% including for lowercase. + +u#:=20/36pt#; % unit width +width_adj#:=0pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=5/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=270/36pt#; % height of tallest characters +asc_height#:=250/36pt#; % height of lowercase ascenders +cap_height#:=246/36pt#; % height of caps +fig_height#:=232/36pt#; % height of numerals +x_height#:=155/36pt#; % height of lowercase without ascenders +math_axis#:=90/36pt#; % axis of symmetry for math symbols +bar_height#:=82/36pt#; % height of crossbar in lowercase e +comma_depth#:=70/36pt#; % depth of comma below baseline +desc_depth#:=90/36pt#; % depth of lowercase descenders +acc_ht#:=250/36pt#; +circ_ht#:=225/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=72/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=8/36pt#; % diameter of rounded corners +fine#:=7/36pt#; % diameter of sharply rounded corners +thin_join#:=7/36pt#; % width of extrafine details +hair#:=9/36pt#; % lowercase hairline breadth +stem#:=30/36pt#; % lowercase stem breadth +curve#:=30/36pt#; % lowercase curve breadth +ess#:=27/36pt#; % breadth in middle of lowercase s +flare#:=27/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=38/36pt#; % diameter of dots +cap_hair#:=11/36pt#; % uppercase hairline breadth +cap_stem#:=32/36pt#; % uppercase stem breadth +cap_curve#:=37/36pt#; % uppercase curve breadth +cap_ess#:=35/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.4pt#; % thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=20/36pt#; % vertical distance from serif base to tangent +jut#:=28/36pt#; % protrusion of lowercase serifs +cap_jut#:=37/36pt#; % protrusion of uppercase serifs +beak_jut#:=10/36pt#; % horizontal protrusion of beak serifs +beak#:=70/36pt#; % vertical protrusion of beak serifs +vair#:=8/36pt#; % vertical diameter of hairlines +notch_cut#:=10pt#; % maximum breadth above or below notches +bar#:=11/36pt#; % lowercase bar thickness +slab#:=11/36pt#; % serif and arm thickness +cap_bar#:=11/36pt#; % uppercase bar thickness +cap_band#:=11/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=10pt#; % max breadth above/below uppercase notches +serif_drop#:=4/36pt#; % vertical drop of sloped serifs +stem_corr#:=1/36pt#; % for small refinements of stem breadth +vair_corr#:=1/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=8/36pt#; % amount of overshoot for curves +apex_o#:=8/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; % tilt of inner bowl for the letter omicron +fudge:=1; % factor applied to weights of heavy characters +math_spread:=0; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/6; % extra openness inside bowls +beak_darkness:=11/30; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=false; +monowidth:=false; +italics:=false; +% now come replacements used to set the lowercase caps + +lower.u#:=16/36pt#; % unit width +lower.width_adj#:=0pt#; % width adjustment for certain characters +lower.cap_serif_fit#:=4/36pt#; % extra sidebar near uppercase serifs +lower.letter_fit#:=0pt#; % extra space added to all sidebars + +lower.body_height#:=200/36pt#; % height of tallest characters +lower.cap_height#:=185/36pt#; % height of caps +lower.x_height#:=116/36pt#; % height of lowercase without ascenders +lower.bar_height#:=65/36pt#; % height of crossbar in lowercase e +lower.comma_depth#:=52/36pt#; % depth of comma below baseline + +lower.flare#:=22/36pt#; % diameter of bulbs or breadth of terminals +lower.cap_hair#:=9.1/36pt#; % uppercase hairline breadth +lower.stem#:=22/36pt#; % lowercase stem breadth +lower.cap_stem#:=26/36pt#; % uppercase stem breadth +lower.cap_curve#:=31/36pt#; % uppercase curve breadth +lower.cap_ess#:=28/36pt#; % breadth in middle of uppercase s + +lower.cap_jut#:=26/36pt#; % protrusion of uppercase serifs +lower.beak_jut#:=7/36pt#; % horizontal protrusion of beak serifs +lower.beak#:=52/36pt#; % vertical protrusion of beak serifs +lower.slab#:=9.1/36pt#; % serif and arm thickness +lower.cap_bar#:=9.1/36pt#; % uppercase bar thickness +lower.cap_band#:=9.1/36pt#; % uppercase thickness above/below lobes +lower.cap_notch_cut#:=10pt#; % max breadth above/below uppercase notches + +lower.o#:=5/36pt#; % amount of overshoot for curves +lower.apex_o#:=4/36pt#; % amount of overshoot for diagonal junctions + +lower.fudge:=1; % factor applied to weights of heavy characters +italics:=false; + +% parameters for the four slanted characters + +ysl_slant:=1/6; + +% parameters for the four italic characters + +yit_u#:=19/36pt#; % unit width + +yit_hair#:=11/36pt#; % lowercase hairline breadth +yit_curve#:=28/36pt#; % lowercase curve breadth +yit_cap_stem#:=29/36pt#; % uppercase stem breadth +yit_cap_jut#:=34/36pt#; % protrusion of uppercase serifs +yit_beak_jut#:=9/36pt#; % horizontal protrusion of beak serifs + +yit_slant:=1/4; % tilt ratio $(\Delta x/\Delta y)$ + +% parameters for the four boldface characters + +ybf_u#:=22/36pt#; % unit width +ybf_width_adj#:=11/36pt#; % width adjustment for certain characters +ybf_cap_serif_fit#:=7/36pt#; % extra sidebar near uppercase serifs +ybf_cap_height#:=247/36pt#; % height of caps +ybf_x_height#:=160/36pt#; % height of lowercase without ascenders + +ybf_tiny#:=13/36pt#; % diameter of rounded corners +ybf_fine#:=10/36pt#; % diameter of sharply rounded corners +ybf_hair#:=13/36pt#; % lowercase hairline breadth +ybf_stem#:=50/36pt#; % lowercase stem breadth +ybf_curve#:=41/36pt#; % lowercase curve breadth +ybf_cap_stem#:=51/36pt#; % uppercase stem breadth +ybf_o#:=4/36pt#; + +ybf_cap_jut#:=39/36pt#; % protrusion of uppercase serifs +ybf_beak_jut#:=11/36pt#; % horizontal protrusion of beak serifs +ybf_vair#:=11/36pt#; % vertical diameter of hairlines +ybf_slab#:=17/36pt#; % serif and arm thickness +ybf_cap_bar#:=17/36pt#; % uppercase bar thickness +ybf_stem_corr#:=2/36pt#; % for small refinements of stem breadth + +ybf_slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +ybf_beak_darkness:=.4/30; % fraction of triangle inside beak serifs + +logo_ht#:=6pt#; % height of characters +logo_xgap#:=0.6pt#; % horizontal adjustment +logo_u#:=4/9pt#; % unit width +logo_s#:=0; % extra space at the left and the right +logo_o#:=1/9pt#; % overshoot +logo_px#:=2/3pt#; % horizontal thickness of pen + +generate greekcsc; % switch to the driver file + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/rgrsl10.mf b/Master/texmf-dist/fonts/source/public/yannisgr/rgrsl10.mf new file mode 100644 index 00000000000..1663e95c390 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/rgrsl10.mf @@ -0,0 +1,85 @@ +% Reduced Greek Slanted 10 point +if unknown cmbase: input cmbase fi +if unknown grbase: input rgrbase fi + +font_identifier:="rgrsl"; font_size 10pt#; + +u#:=20/36pt#; % unit width +width_adj#:=0pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=5/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=270/36pt#; % height of tallest characters +asc_height#:=250/36pt#; % height of lowercase ascenders +cap_height#:=246/36pt#; % height of caps +fig_height#:=232/36pt#; % height of numerals +x_height#:=155/36pt#; % height of lowercase without ascenders +math_axis#:=90/36pt#; % axis of symmetry for math symbols +bar_height#:=82/36pt#; % height of crossbar in lowercase e +comma_depth#:=70/36pt#; % depth of comma below baseline +desc_depth#:=90/36pt#; % depth of lowercase descenders +acc_ht#:=250/36pt#; +circ_ht#:=225/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=72/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=8/36pt#; % diameter of rounded corners +fine#:=7/36pt#; % diameter of sharply rounded corners +thin_join#:=7/36pt#; % width of extrafine details +hair#:=9/36pt#; % lowercase hairline breadth +stem#:=30/36pt#; % lowercase stem breadth +curve#:=30/36pt#; % lowercase curve breadth +ess#:=27/36pt#; % breadth in middle of lowercase s +flare#:=27/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=38/36pt#; % diameter of dots +cap_hair#:=11/36pt#; % uppercase hairline breadth +cap_stem#:=32/36pt#; % uppercase stem breadth +cap_curve#:=37/36pt#; % uppercase curve breadth +cap_ess#:=35/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.4pt#; % thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=20/36pt#; % vertical distance from serif base to tangent +jut#:=28/36pt#; % protrusion of lowercase serifs +cap_jut#:=37/36pt#; % protrusion of uppercase serifs +beak_jut#:=10/36pt#; % horizontal protrusion of beak serifs +beak#:=70/36pt#; % vertical protrusion of beak serifs +vair#:=8/36pt#; % vertical diameter of hairlines +notch_cut#:=10pt#; % maximum breadth above or below notches +bar#:=11/36pt#; % lowercase bar thickness +slab#:=11/36pt#; % serif and arm thickness +cap_bar#:=11/36pt#; % uppercase bar thickness +cap_band#:=11/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=10pt#; % max breadth above/below uppercase notches +serif_drop#:=4/36pt#; % vertical drop of sloped serifs +stem_corr#:=1/36pt#; % for small refinements of stem breadth +vair_corr#:=1/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=8/36pt#; % amount of overshoot for curves +apex_o#:=8/36pt#; % amount of overshoot for diagonal junctions + +slant:=1/6; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; % tilt of inner bowl for the letter omicron +fudge:=1; % factor applied to weights of heavy characters +math_spread:=0; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/6; % extra openness inside bowls +beak_darkness:=11/30; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at th +math_fitting:=false; % should math-mode spacing be used? +straight:=false; % should stems, etc. be straight? +monowidth:=false; %are stem and hair more or less the same width? +italics:=false; + +generate rgreek; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/rgrti10.mf b/Master/texmf-dist/fonts/source/public/yannisgr/rgrti10.mf new file mode 100644 index 00000000000..1c3d0d94389 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/rgrti10.mf @@ -0,0 +1,88 @@ +% This was CMTI10.MF in text format, as of Mar 31, 1986. +% Computer Modern Text Italic 10 point +% and now is rgrti10: reduced greek text italic, rgr-version 1.1 (experimental) +% as of Jan 22, 1990. +if unknown cmbase: input cmbase fi +if unknown grbase: input rgrbase fi + +font_identifier:="rgrti"; font_size 10pt#; + +u#:=19/36pt#; % unit width +width_adj#:=0pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=5/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=9.2/36pt#; % extra space added to all sidebars + +body_height#:=270/36pt#; % height of tallest characters +asc_height#:=250/36pt#; % height of lowercase ascenders +cap_height#:=246/36pt#; % height of caps +fig_height#:=232/36pt#; % height of numerals +x_height#:=155/36pt#; % height of lowercase without ascenders +math_axis#:=90/36pt#; % axis of symmetry for math symbols +bar_height#:=87/36pt#; % height of crossbar in lowercase e +comma_depth#:=70/36pt#; % depth of comma below baseline +desc_depth#:=70/36pt#; % depth of lowercase descenders +acc_ht#:=250/36pt#; +circ_ht#:=225/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=72/36pt#; + +crisp#:=8/36pt#; % diameter of serif corners +tiny#:=8/36pt#; % diameter of rounded corners +fine#:=7/36pt#; % diameter of sharply rounded corners +thin_join#:=7/36pt#; % width of extrafine details +hair#:=11/36pt#; % lowercase hairline breadth +stem#:=23/36pt#; % lowercase stem breadth +curve#:=28/36pt#; % lowercase curve breadth +ess#:=27/36pt#; % breadth in middle of lowercase s +flare#:=29/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=38/36pt#; % diameter of dots +cap_hair#:=11/36pt#; % uppercase hairline breadth +cap_stem#:=29/36pt#; % uppercase stem breadth +cap_curve#:=34/36pt#; % uppercase curve breadth +cap_ess#:=31/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.4pt#; % thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=20/36pt#; % vertical distance from serif base to tangent +jut#:=30/36pt#; % protrusion of lowercase serifs +cap_jut#:=34/36pt#; % protrusion of uppercase serifs +beak_jut#:=9/36pt#; % horizontal protrusion of beak serifs +beak#:=70/36pt#; % vertical protrusion of beak serifs +vair#:=8/36pt#; % vertical diameter of hairlines +notch_cut#:=10pt#; % maximum breadth above or below notches +bar#:=11/36pt#; % lowercase bar thickness +slab#:=11/36pt#; % serif and arm thickness +cap_bar#:=11/36pt#; % uppercase bar thickness +cap_band#:=11/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=10pt#; % max breadth above/below uppercase notches +serif_drop#:=4/36pt#; % vertical drop of sloped serifs +stem_corr#:=1/36pt#; % for small refinements of stem breadth +vair_corr#:=1/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=8/36pt#; % amount of overshoot for curves +apex_o#:=8/36pt#; % amount of overshoot for diagonal junctions + +slant:=.25; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; +fudge:=1; % factor applied to weights of heavy characters +math_spread:=0; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/6; % extra openness inside bowls +beak_darkness:=11/30; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=true; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=false; +monowidth:=false; +italics:=true; + +generate rgreek % switch to the driver file + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/rgrupper.mf b/Master/texmf-dist/fonts/source/public/yannisgr/rgrupper.mf new file mode 100644 index 00000000000..3c62514b396 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/rgrupper.mf @@ -0,0 +1,614 @@ +% This file is a rearrangement of code in Computer Modern's romanu.mf +% It contains definitions for Greek capitals. + +cmchar "Uppercase alpha"; +beginchar("A",13u#,cap_height#,0); +adjust_fit(cap_serif_fit#,cap_serif_fit#); +numeric left_stem,right_stem,outer_jut,alpha; +right_stem=cap_stem-stem_corr; +left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem); +outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; 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 +penlabels(0,1,2,3,4,5,6); endchar; + +cmchar "Uppercase beta"; +beginchar("B",12.5u#,cap_height#,0); +italcorr .75cap_height#*slant-.5u#; +adjust_fit(cap_serif_fit#,0); +numeric left_stem,right_curve,middle_weight; +left_stem=cap_stem-hround 2stem_corr; middle_weight=.6vair+.5; +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 +penpos3(cap_band,90); penpos4(cap_band,90); +penpos6(middle_weight,-90); penpos7(middle_weight,-90); +penpos8(middle_weight,90); penpos9(middle_weight,90); +penpos5(right_curve-stem_corr,0); penpos10(right_curve,0); +penpos11(cap_band,-90); penpos12(cap_band,-90); +z3r=top z1; y4=y3; y5=.5[y4,y6]; y6=y7; y7l-y8l=vair; +z12r=bot z2; y11=y12; y10=.5[y11,y9]; y8=y9; .5[y7l,y8l]=.52h; +x4=x6; x9=x11=x4+.5u; x7=x8=x1; x9l:=x4+.25u; +x5r=hround(w-1.5u); x10r=hround(w-u); +if serifs: right_curve=cap_curve-stem_corr; x4=.5[x1,w-1.5u]; +else: right_curve=cap_curve-3stem_corr; x4=.5[x1,w-2.5u]; + x4l:=x4l-.5u; x9l:=x9l-.5u; fi +x6l:=x6l-.5u; x11l:=x11l-.5u; +fill stroke z3e..super_arc.e(4,5) & super_arc.e(5,6)..z7e; % upper lobe +fill stroke z8e..super_arc.e(9,10) & super_arc.e(10,11)..z12e; % lower lobe +if serifs: dish_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,.5cap_jut); fi % lower serif +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; + +cmchar "Uppercase epsilon"; +beginchar("E",12u#-width_adj#,cap_height#,0); +italcorr cap_height#*slant-beak_jut#-.5u#; +adjust_fit(cap_serif_fit#,0); +h:=vround(h-stem_corr); +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 seri +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: dish_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,.5cap_jut); fi % lower serif +math_fit(0,.5ic#); penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +cmchar "Uppercase eta"; +beginchar("H",13u#+width_adj#,cap_height#,0); +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(cap_serif_fit#,cap_serif_fit#); +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 left serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,cap_jut); fi % lower left serif +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6); endchar; + +cmchar "Uppercase iota"; +beginchar("I",max(6u#,4u#+cap_stem#),cap_height#,0); +italcorr cap_height#*slant-.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); +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 +if serifs: 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 +math_fit(0,.5ic#); penlabels(1,2); endchar; + +cmchar "Uppercase kappa"; +beginchar("K",13.5u#,cap_height#,0); +italcorr cap_height#*slant-.5u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); +numeric right_jut,stem[],alpha[]; +if serifs: right_jut=.6cap_jut; +else: right_jut=.4tiny; fi +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 +stem2=max(tiny.breadth,fudged.cap_stem-3stem_corr); +stem1=max(tiny.breadth,fudged.hair if hefty:-3stem_corr fi); +top y3=h; rt x3r=hround(r-letter_fit-u-right_jut); +bot y6=0; rt x6r=hround(r-letter_fit-.75u-right_jut); +x4=x1; y4=1/3h; +alpha1=diag_ratio(1,.5(stem1-tiny),y3-y4,x3r-x4); +penpos3(alpha1*(stem1-tiny),0); penpos4(whatever,-90); +alpha2=diag_ratio(1,.5(stem2-tiny),y1-y6,x6r-x1); +penpos6(alpha2*(stem2-tiny),0); +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; + 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 + 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); % lower stem serif + dish_serif(3,4,e,2/3,1.2cap_jut,f,1/2,right_jut)(dark); % upper diagonal seri + dish_serif(6,5,g,1/2,inner_jut,h,1/3,right_jut)(dark);fi % lower diagonal ser +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6); endchar; + +cmchar "Uppercase mu"; +beginchar("M",16u#+width_adj#,cap_height#,0); +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(cap_serif_fit#,cap_serif_fit#); +numeric stem[]; % thicknesses of the four strokes +stem1=hround(fudged.hair+stem_corr); +stem2=hround(fudged.cap_stem-4stem_corr); +stem3=hround(fudged.hair-stem_corr); +stem4=hround(fudged.cap_stem-3stem_corr); +if stem4<stem1: stem4:=stem1; fi +pickup tiny.nib; pos1(stem1,0); pos2(stem1,0); +pos3(stem4,0); pos4(stem4,0); +x1=x2; x3=x4; x1l=w-x3r; rt x3r=hround min(w-2u,w-3u+.5stem4); +top y1=top y3=h; bot y2=bot y4=0; +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e--z4e; % right stem +penpos5(stem2,0); penpos6(stem2,0); penpos7(stem3,0); penpos8(stem3,0); +x5l=x1; x6l=x7l; x8=lft x3l; x6-x5=x8-x7; y5=y8=h; y6=y7; +if hefty: y6=if monospace: vround 1/3h else: o fi; + numeric upper_notch,lower_notch; + upper_notch=h-cap_notch_cut; lower_notch=y6+cap_notch_cut; + x1'=rt x1r; z1'=whatever[z5l,z6l]; x3'=lft x3l; z3'=whatever[z7r,z8r]; + z0=whatever[z5r,z6r]=whatever[z7l,z8l]; + fill z5l.. + if y1'<upper_notch: {right}(x1'+1,upper_notch){down}... fi + {z6-z5}diag_in(5l,6l,1,6r)..diag_out(7l,1,7r,8r){z8-z7} + if y3'<upper_notch: ...{up}(x3'-1,upper_notch){right} fi + ..z8r--diag_out(8r,1,8l,7l){z7-z8} + if y0<=lower_notch: ..{z7-z8}z0{z5-z6}.. + else: ...{down}(x0+.5,lower_notch)--(x0-.5,lower_notch){up}... fi + {z5-z6}diag_in(6r,5r,1,5l)--cycle; % diagonals +else: y6=0; z0=whatever[z5r,z6r]=whatever[z7l,z8l]; + fill z5l..{z6-z5}diag_in(5l,6l,1,6r)..diag_out(7l,1,7r,8r){z8-z7} + ..z8r--diag_out(8r,1,8l,7l){z7-z8}..{z7-z8}z0{z5-z6} + ..{z5-z6}diag_in(6r,5r,1,5l)--cycle; fi % diagonals +if serifs: serif(1,2,a,1/3,-cap_jut); % upper left serif + dish_serif(2,1,b,1/2,cap_jut,c,1/2,cap_jut)(dark); % lower left serif + serif(3,4,d,1/3,cap_jut); % upper right serif + dish_serif(4,3,e,1/3,cap_jut,f,1/3,cap_jut); fi % lower right serif +math_fit(0,max(.5ic#-.5u#,0)); +penlabels(0,1,1',2,3,3',4,5,6,7,8); endchar; + +cmchar "Uppercase nu"; +beginchar("N",13u#+width_adj#,cap_height#,0); +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(cap_serif_fit#,cap_serif_fit#); +numeric thin_stem; thin_stem=hround(fudged.hair+stem_corr); +pickup tiny.nib; pos1(thin_stem,0); pos2(thin_stem,0); +pos3(thin_stem,0); pos4(thin_stem,0); +pickup tiny.nib; top y1=top y3=h; bot y2=bot y4=0; +x1=x2; x3=x4; x1l=w-x3r; +rt x3r=hround min(w-2u,w-3u+.5fudged.cap_stem); +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e--z4e; % right stem +if hefty: penpos5(fudged.cap_stem,0); penpos6(fudged.cap_stem,0); + x5l=x1; x6r=x4; y5=h; y6=0; + numeric upper_notch,lower_notch; + upper_notch=h-cap_notch_cut; lower_notch=cap_notch_cut; + x1'=rt x1r; z1'=whatever[z5l,z6l]; x4'=lft x4l; z4'=whatever[z5r,z6r]; + fill z5l.. + if y1'<upper_notch: {right}(x1'+1,upper_notch){down}... fi + {z6-z5}diag_in(5l,6l,1,6r)--z6r.. + if y4'>lower_notch: {left}(x4'-1,lower_notch){up}... fi + {z5-z6}diag_in(6r,5r,1,5l)--cycle; % diagonal +else: penpos5(whatever,0); penpos6(whatever,90); + z5l=z1l; z6l=z4l; + z7=z6l+(max(eps,cap_stem-3stem_corr-tiny),0) rotated (angle(z5l-z6l)-90); + z5r=z7+whatever*(z5l-z6l); z6r=z7+whatever*(z5l-z6l); + filldraw stroke z5e..z6e; fi % diagonal +if serifs: if hefty: serif(1,2,a,1/3,-cap_jut); % upper left serif + else: serif(5,6,a,1/3,-cap_jut); fi % upper left serif + dish_serif(2,1,b,1/2,cap_jut,c,1/2,cap_jut)(dark); % lower left serif + dish_serif(3,4,e,1/2,cap_jut,f,1/2,cap_jut)(dark); fi % upper right serif +math_fit(0,max(.5ic#-.5u#,0)); penlabels(1,1',2,3,4,4',5,6,7); endchar; + +cmchar "Uppercase omicron"; +beginchar("O",14u#-width_adj#,cap_height#,0); +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 +math_fit(-.3cap_height#*slant-.5u#,ic#-.5u#); penlabels(1,2,3,4); endchar; + +cmchar "Uppercase rho"; +beginchar("R",12u#,cap_height#,0); +italcorr .75cap_height#*slant-.5u#; +adjust_fit(cap_serif_fit#,0); +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: dish_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 +math_fit(0,ic#-2.5u#); penlabels(0,1,2,3,4,5,6,7); endchar; + +cmchar "Uppercase tau"; +beginchar("T",13u#-width_adj#,cap_height#,0); +italcorr cap_height#*slant-beak_jut#-.25u#; +adjust_fit(0,0); +h:=vround(h-2stem_corr); +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(1,2,a,1/3,.5cap_jut,b,1/3,.5cap_jut); % upper bracketin + dish_serif(2,1,c,1/3,1.414cap_jut,d,1/3,1.414cap_jut); fi % lower serif +math_fit(-.75cap_height#*slant,ic#-2.5u#); penlabels(1,2,3,4,5,6); endchar; + +cmchar "Uppercase chi"; +beginchar("Q",13u#,cap_height#,0); +italcorr cap_height#*slant-.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); +numeric stem[],outer_jut,xjut,alpha[]; +stem1=cap_stem-2stem_corr; stem2=min(cap_hair,stem1); +outer_jut=.75cap_jut; xjut= if serifs: (stem1-stem2)/4 else: 0 fi; +x1l=l+letter_fit+.5u+outer_jut; x2r=r-letter_fit-u-outer_jut-xjut; +x3l=l+letter_fit+.25u+outer_jut+xjut; x4r=r-letter_fit-.25u-outer_jut; +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); +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$'=.1[z$,z0]; endfor + 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 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+cap_jut+.5u+1<=lft x2'l-cap_jut-xjut: inner_jut1=cap_jut; + else: rt x1'r+inner_jut1+.5u+1=lft x2'l-inner_jut1-xjut; fi + if rt x3'r+cap_jut+.5u+1<=lft x4'l-cap_jut-xjut: inner_jut2=cap_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 +math_fit(0,.5ic#); penlabels(0,1,2,3,4,12,13,24,34); endchar; + +cmchar "Uppercase zeta"; +beginchar("Z",11u#,cap_height#,0); +italcorr cap_height#*slant-.5u#; +adjust_fit(0,0); +numeric arm_thickness[],z_stem; +if hefty: arm_thickness1=Vround(slab-vair_corr); arm_thickness2=slab; + z_stem=.8[vair,cap_stem]; +else: arm_thickness1=slab; arm_thickness2=vround(slab+vair_corr); + z_stem=.9[vair,cap_stem]; fi +pickup tiny.nib; x3l=x4l=w-x1r=w-x2r; lft x3l=hround u; +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); +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 1.25u; y6=good.y(y5l-beak)-eps; +arm(5,6,a,beak_darkness**.8,-.4beak_jut); % upper arm and beak +pos7(arm_thickness2,-90); pos8(hair,0); +bot y7r=0; x7=x4; rt x8r=hround(w-.9u); y8=good.y(y7l+1.2beak)+eps; +arm(7,8,b,beak_darkness**.9,.6beak_jut); % lower arm and beak +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Uppercase gamma"; +beginchar("G",11u#-width_adj#,cap_height#,0); +italcorr cap_height#*slant-beak_jut#-.25u#; +adjust_fit(cap_serif_fit#,0); +h:=vround(h-stem_corr); +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); % arm and beak +if serifs: dish_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 +math_fit(0,ic#-2.5u#); penlabels(1,2,3,4); endchar; + +cmchar "Uppercase delta"; +beginchar("D",15u#,cap_height#,0); +adjust_fit(0,0); +numeric left_stem,alpha; +left_stem=cap_hair if hefty: -3stem_corr fi; +x1l=w-x4r=.75u; 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*cap_stem,0); penpos4(alpha*cap_stem,0); +fill diag_end(2l,1l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)--cycle; % triangle +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +y5=y6=cap_vstem; z5=whatever[z1r,z2r]; z6=whatever[z3l,z4l]; +if y0<h-cap_notch_cut: y0:=h-cap_notch_cut; + unfill z0+.5right{down}...{z4-z3}z6--z5{z2-z1} + ...{up}z0+.5left--cycle; % counter +else: unfill z0--z5--z6--cycle; fi % counter +penlabels(0,1,2,3,4,5,6); endchar; + +cmchar "Uppercase theta"; +beginchar("J",14u#,cap_height#,0); +italcorr .7cap_height#*slant-.5u#; +adjust_fit(0,0); +numeric light_curve; light_curve=hround(cap_curve-2stem_corr); +penpos1(vair,90); penpos3(vround(vair+.5vair_corr),-90); +penpos2(light_curve,180); penpos4(light_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; y2=y4=.5h-vair_corr; y3r=-o; +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 +pickup crisp.nib; pos5(cap_vstem,90); pos6(cap_vstem,90); +lft x5=w-rt x6=hround(x2l+u)+1; y5=y6=.5[y1l,y3l]; +filldraw stroke z5e--z6e; % bar +if serifs: pos7(hair,0); pos8(hair,0); pos9(hair,0); pos10(hair,0); + x7l=x8l=x5; x9r=x10r=x6; + y7-y5r=y9-y6r=y5l-y8=y6l-y10=vround .05h; + filldraw stroke z7e--z8e; % left serif + filldraw stroke z9e--z10e; fi % right serif +math_fit(-.3cap_height#*slant-.5u#,ic#-.5u#); +penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +cmchar "Uppercase lambda"; +beginchar("L",12u#,cap_height#,0); +adjust_fit(cap_serif_fit#,cap_serif_fit#); +numeric left_stem,outer_jut,alpha; +left_stem=cap_hair if hefty: -3stem_corr fi; +outer_jut=.7cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; 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*cap_stem,0); penpos4(alpha*cap_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 +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 +penlabels(0,1,2,3,4,5,6); endchar; + +cmchar "Uppercase xi"; +beginchar("X",12u#,cap_height#,0); +italcorr cap_height#*slant-.35u#; +adjust_fit(0,0); +h:=vround(h-2stem_corr); +numeric shaved_stem; shaved_stem=hround .9[vair,.85cap_stem]; +pickup crisp.nib; pos1(shaved_stem,90); pos2(hair,0); +top y1r=h; x1=.5w; rt x2r=hround(w-.85u); y2=good.y(y1l-4/9beak)-eps; +arm(1,2,a,.4beak_darkness,.3beak_jut); % upper right arm and beak +pos3(hair,180); x3=w-x2; y3=y2; +arm(1,3,b,.4beak_darkness,-.3beak_jut); % upper left arm and beak +pos4(shaved_stem,-90); pos5(hair,0); +bot y4r=0; x4=.5w; rt x5r=hround(w-.75u); y5=good.y(y4l+.5beak)+eps; +arm(4,5,c,.4beak_darkness,.3beak_jut); % lower right arm and beak +pos6(hair,180); x6=w-x5; y6=y5; +arm(4,6,d,.4beak_darkness,-.3beak_jut); % lower left arm and beak +pos7(shaved_stem,90); pos8(shaved_stem,90); +lft x7=w-rt x8=hround if serifs: 2.5 else: 2 fi\\ u; +top y7r=top y8r=vround(.52h+.5shaved_stem); +filldraw stroke z7e--z8e; % middle bar +if serifs: numeric xjut; + if bot y2>top y7r+.75cap_jut: xjut=.5cap_jut; + else: bot y2=top y7r+1.5xjut; fi + pos11(hair,0); pos12(hair,0); y11=y12; + pos13(hair,0); pos14(hair,0); y13=y14; + lft x11l=lft x13l=w-rt x12r=w-rt x14r=hround 2.5u; + top y11-bot y13=shaved_stem+2xjut; .5[y11,y13]=y7; + filldraw stroke z11e--z13e; filldraw stroke z12e--z14e; fi % middle serifs +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,11,12,13,14); endchar; + +cmchar "Uppercase pi"; +beginchar("P",13u#+width_adj#,cap_height#,0); +italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); +adjust_fit(cap_serif_fit#,cap_serif_fit#); pickup tiny.nib; +h:=vround(h-stem_corr); +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; y5r=y6r=h; +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,eps); % 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,eps,f,1/3,cap_jut); % upper left serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,cap_jut); fi % lower left serif +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6); endchar; + +cmchar "Uppercase sigma"; +beginchar("S",13u#,cap_height#,0); +italcorr cap_height#*slant-beak_jut#-.5u#; +adjust_fit(0,0); +numeric bot_arm_thickness; +bot_arm_thickness=Vround .25[slab,cap_vstem]; +pickup tiny.nib; lft x1l=hround u; x1l=x2l=x4l; +top y1=h; bot y2=h-slab; bot y4=0; x3l-x1l=4/11(w-2u); y3=.5h; +numeric alpha[]; alpha1=((x3l-x1l)++(y2-y3))/(y2-y3); +penpos1(alpha1*(cap_stem-tiny),0); penpos2(alpha1*(cap_stem-tiny),0); +penpos3(alpha1*(cap_stem-tiny),0); +alpha2=diag_ratio(1,cap_hair-tiny,y3-y4,x3r-x4l); +penpos4(alpha2*(cap_hair-tiny),0); +z0=whatever[z2l,z3l]=z4l+whatever*(z3r-z4r); +filldraw z1l--z2l--z0--z4l--z4r--z3r--z2r--z1r--cycle; % diagonals +pickup crisp.nib; pos5(slab,90); pos6(hair,0); +top y5r=h; x5=x1; rt x6r=hround(w-u); y6=good.y(y5l-beak)-eps; +arm(5,6,a,beak_darkness,beak_jut); % upper arm and beak +pos7(bot_arm_thickness,-90); pos8(hair,0); +bot y7r=0; z7l=whatever[z4,z3]; x7r:=x4; x8=x6; y8=good.y(y7l+beak)+eps; +arm(7,8,b,beak_darkness,beak_jut); % lower arm and beak +math_fit(0,.5ic#); penlabels(0,1,2,3,4,5,6,7,8); endchar; + +cmchar "Uppercase upsilon"; +beginchar("U",13u#,cap_height#,0); +italcorr cap_height#*slant+.45u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); +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 +math_fit(.5u#-cap_height#*slant,ic#-4u#); +penlabels(0,1,2,3,4,5,6); endchar; + +cmchar "Uppercase phi"; +beginchar("F",13u#,cap_height#,0); +italcorr .5cap_height#*slant-.5u#; +adjust_fit(0,0); +numeric shaved_stem,light_curve; +shaved_stem=cap_stem-hround 2stem_corr; +light_curve=cap_curve-hround stem_corr; +pickup tiny.nib; pos1(shaved_stem,0); pos2(shaved_stem,0); +lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +penpos3(vair,90); penpos5(vair,-90); +penpos4(light_curve,180); penpos6(light_curve,0); +x4r=hround u; x6r=w-x4r; x3=x5=.5w; +y3r=vround(.85h if serifs:-slab fi); y4=y6=.5[y3,y5]; +y5r=vround(.15h if serifs:+slab fi); +penstroke pulled_arc.e(3,4) & pulled_arc.e(4,5) + & pulled_arc.e(5,6) & pulled_arc.e(6,3) & cycle; % bowl +if serifs: dish_serif(1,2,a,1/3,1.25cap_jut,b,1/3,1.25cap_jut); % upper serif + dish_serif(2,1,c,1/3,1.25cap_jut,d,1/3,1.25cap_jut); fi % lower serif +math_fit(-.5cap_height#*slant-.5u#,ic#); penlabels(1,2,3,4,5,6); endchar; + +cmchar "Uppercase psi"; +beginchar("Y",14u#,cap_height#,0); +italcorr .8cap_height#*slant-.5u#; +adjust_fit(0,0); +numeric shaved_stem; +shaved_stem=cap_stem-hround 2stem_corr; +pickup tiny.nib; pos1(shaved_stem,0); pos2(shaved_stem,0); +lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +pos3(shaved_stem,-180); pos4(shaved_stem,-180); +pos5(vair,-90); x5=x1; bot y5r=vround(.15h if serifs:+slab fi); +pos6(shaved_stem,0); pos7(shaved_stem,0); +lft x3r=hround u; x7=w-x3; lft x4r=hround(3u-.5shaved_stem); x6=w-x4; +pos3'(vair,90); pos7'(vair,90); z3'r=z3r; z7'r=z7r; +y3=y7; y4=y6=.6h; y3=good.y(y3+.84h if serifs:-slab fi-y3'); +interim superness:=more_super; +filldraw z3'l{right}...z4r{down} & super_arc.r(4,5) + & super_arc.r(5,6) & z6r{up}...z7'l{right} + --z7r---z7l...z6l{down} & super_arc.l(6,5) + & super_arc.l(5,4) & z4l{up}...z3l---z3r--cycle; % stroke +if serifs: dish_serif(1,2,a,1/3,1.25cap_jut,b,1/3,1.25cap_jut); % upper serif + dish_serif(2,1,c,1/3,1.25cap_jut,d,1/3,1.25cap_jut); fi % lower serif +math_fit(-.8cap_height#*slant-.5u#,.4cap_height#*slant-1.25u#); +penlabels(1,2,3,4,5,6,7); endchar; + +cmchar "Uppercase omega"; +beginchar("W",13u#,cap_height#,0); +italcorr .75cap_height#*slant-.5u#; +adjust_fit(0,0); +pickup tiny.nib; pos1(vair,90); pos2(cap_curve,180); +pos3(vair,180); pos4(cap_curve,0); pos5(vair,0); +x1=.5w; top y1r=h+o; lft x2r=hround u; y2=y4=2/3h; x4=w-x2; +rt x3l=hround(1/3(w+.5u)+.5hair); bot y3=bot y5=0; x5=w-x3; +filldraw stroke z3e{up}...{up}z2e + & pulled_super_arc.e(2,1)(.5superpull) + & pulled_super_arc.e(1,4)(.5superpull) + & z4e{down}...{down}z5e; % bowl +numeric arm_thickness; path p; p=z3{up}...{up}z2; +arm_thickness=Vround(if hefty:slab+2stem_corr else:.75[slab,cap_vstem] fi); +pickup crisp.nib; pos6(arm_thickness,-90); pos7(fudged.hair,-180); +bot y6r=0; x6=x3; lft x7r=hround .8u; y7=good.y(y6l+.5beak)+eps; +(x,y)=p intersectionpoint((0,y6l)--(w,y6l)); x6l:=x; +arm(6,7,a,.5beak_darkness,-1.2beak_jut); % left arm and beak +pos8(arm_thickness,-90); pos9(fudged.hair,0); +y8=y6; y9=y7; x8+x6=x9+x7=w; x8l:=w-x6l; +arm(8,9,b,.5beak_darkness,1.2beak_jut); % right arm and beak +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9); endchar; + diff --git a/Master/texmf-dist/fonts/source/public/yannisgr/scsc.mf b/Master/texmf-dist/fonts/source/public/yannisgr/scsc.mf new file mode 100644 index 00000000000..773c00ca25e --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/yannisgr/scsc.mf @@ -0,0 +1,46 @@ +cmchar "Small capital sigma"; +beginchar("c",13u#,cap_height#,0); +italcorr cap_height#*slant-beak_jut#-.5u#; +adjust_fit(0,0); +numeric bot_arm_thickness; +bot_arm_thickness=Vround .25[slab,cap_vstem]; +pickup tiny.nib; lft x1l=hround u; x1l=x2l=x4l; +top y1=h; bot y2=h-slab; bot y4=0; x3l-x1l=4/11(w-2u); y3=.5h; +numeric alpha[]; alpha1=((x3l-x1l)++(y2-y3))/(y2-y3); +penpos1(alpha1*(cap_stem-tiny),0); penpos2(alpha1*(cap_stem-tiny),0); +penpos3(alpha1*(cap_stem-tiny),0); +alpha2=diag_ratio(1,cap_hair-tiny,y3-y4,x3r-x4l); +penpos4(alpha2*(cap_hair-tiny),0); +z0=whatever[z2l,z3l]=z4l+whatever*(z3r-z4r); +filldraw z1l--z2l--z0--z4l--z4r--z3r--z2r--z1r--cycle; % diagonals +pickup crisp.nib; pos5(slab,90); pos6(hair,0); +top y5r=h; x5=x1; rt x6r=hround(w-u); y6=good.y(y5l-beak)-eps; +arm(5,6,a,beak_darkness,beak_jut); % upper arm and beak +pos7(bot_arm_thickness,-90); pos8(hair,0); +bot y7r=0; z7l=whatever[z4,z3]; x7r:=x4; x8=x6; y8=good.y(y7l+beak)+eps; +arm(7,8,b,beak_darkness,beak_jut); % lower arm and beak +math_fit(0,.5ic#); penlabels(0,1,2,3,4,5,6,7,8); endchar; + +cmchar "The letter small capital digamma"; +beginchar(oct"140",11.5u#-width_adj#,cap_height#,0); +italcorr cap_height#*slant-beak_jut#-.25u#; +adjust_fit(cap_serif_fit#,0); +h:=vround(h-stem_corr); +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 +pos5(cap_bar,-90); pos6(hair,0); +top y5l=vround(.5[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-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 +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 +math_fit(0,ic#-2.5u#); penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + |