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/kdgreek | |
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/kdgreek')
20 files changed, 6636 insertions, 0 deletions
diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdaccent.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdaccent.mf new file mode 100644 index 00000000000..6ac1114a8b1 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdaccent.mf @@ -0,0 +1,489 @@ +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% Computer Classic Greek Font Accents +% KDACCENT.MF: defines all Greek diacritic marks. +% +% K J Dryllerakis May 1991. Code based on Haralambous Package. +% +if one_accent: gen_acc:=0; else: gen_acc:=1; fi +def acc_corr=0 enddef; +def separator= + if one_accent : + max(1,vround(1/12x_height)) + else: + max(1,vround(1/20x_height)) + fi +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 one_accent: + generate_universal(center); + else: + 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); + fi +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)= + if one_accent: + generate_universal(center); + else: + w:=w+corr; + generate_circumflex(center,false); + w:=w-corr; + fi +enddef; + +def circumflex(expr center)= + if one_accent: + generate_universal(center); + else: + if italics: w:= w + acc_corr; fi + generate_circumflex(center,false); % variable `squeeze' + if italics: w:=wi-acc_corr; fi + fi +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)= + if italics: w:= w + acc_corr; fi + generate_circumflex(center,true); + if italics: w:=w-acc_corr; fi + 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= + if one_accent: + ; + else: + 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); + fi +enddef; + +vardef spirit_acute(expr center) text type = + if one_accent: + generate_universal(center); + else: + 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); + fi +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= + if one_accent: + generate_universal(center); + else: + if italics: w:= w + acc_corr; fi + generate_circumflex(center,true); + if italics: w:=w-acc_corr; fi + 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); + fi +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; + +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; + +% +% Generate the Accents +% +cmchar "Acute accent"; +beginchar("'",9u#,acc_ht#,0); + adjust_fit(0,0); + if one_accent: + universal(.5w); + else: + acute(.5w); + fi +endchar; +% +cmchar "Grave accent"; +beginchar("`",9u#,acc_ht#,0); + adjust_fit(0,0); + if one_accent: + universal(.5w); + else: + grave(.5w); + fi +endchar; +% +cmchar "Circumflex accent"; +beginchar("~",9u#,circ_ht#,0); + adjust_fit(0,0); + if one_accent: + universal(.5w); + else: + circumflex(.5w); + fi +endchar; +% + +cmchar "Rough breathing"; +if one_accent: + beginchar("<",.1u#,acc_ht#,0); + adjust_fit(0,0); +else: + beginchar("<",9u#,acc_ht#,0); + adjust_fit(0,0);spirit(.5w)<; +fi +endchar; + +cmchar "Rough breathing with grave"; +beginchar(oct"001",9u#,acc_ht#,0); + adjust_fit(0,0); + spirit_grave(.5w)<; +endchar; +% +cmchar "Rough breathing with acute"; +beginchar(oct"126",9u#,acc_ht#,0); + adjust_fit(0,0); + if one_accent: + universal(.5w); + else: + spirit_acute(.5w)<; + fi +endchar; + +cmchar "Rough breathing with circumflex"; +beginchar(oct"100",9u#,acc_ht#,0); +adjust_fit(0,0); + if one_accent: + universal(.5w); + else: + spirit_circumflex(.5w)<; + fi +endchar; + +cmchar "Smooth breathing"; +if one_accent: + beginchar(">",.1u#,acc_ht#,0); + adjust_fit(0,0); +else: + beginchar(">",9u#,acc_ht#,0); + adjust_fit(0,0);spirit(.5w)>; +fi +endchar; + +cmchar "Smooth breathing with acute"; +beginchar(oct"136",9u#,acc_ht#,0); +adjust_fit(0,0); + if one_accent: + universal(.5w); + else: + spirit_acute(.5w)>; + fi +endchar; + +cmchar "Smooth breathing with grave"; +beginchar(oct"002",9u#,Circ_ht#,0); +adjust_fit(0,0); + spirit_grave(.5w)>; +endchar; + +cmchar "Smooth breathing and circumflex"; +beginchar(oct"134",9u#,Circ_ht#,0); +adjust_fit(0,0); + if one_accent: + universal(.5w); + else: + spirit_circumflex(.5w)>; + fi +endchar; + +cmchar "Diaeresis"; +beginchar(oct"042",9u#,circ_ht#,0); + adjust_fit(0,0);diaeresis(.5w); +endchar; + +cmchar "Diaeresis with acute"; +beginchar(oct"043",9u#,acc_ht#,0); +adjust_fit(0,0); + if one_accent: + diaeresis_universal(.5w); + else: + diaeresis_acute(.5w); + fi +endchar; + +cmchar "Diaeresis with grave"; +beginchar(oct"044",9u#,acc_ht#,0); +adjust_fit(0,0); + diaeresis_grave(.5w); +endchar; + +cmchar "Diaeresis with circumflex"; +beginchar(oct"040",9u#,Circ_ht#,0); +adjust_fit(0,0); + diaeresis_circumflex(.5w); +endchar; + +cmchar "Iota subscript"; +beginchar("|",9u#,0,.6desc_depth#); +adjust_fit(0,0); + if one_accent: + ; + else: + iota_sub(.5w); + fi +endchar; + + +cmchar "Breve accent"; +beginchar(oct"036",9u#,min(asc_height#,2x_height#),0); +italcorr h#*slant+.5vair#-1.5u#; +adjust_fit(0,0); +pickup crisp.nib; pos1(vair,-180); pos3(vair,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"037",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; + diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdbase.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdbase.mf new file mode 100644 index 00000000000..ec4311ce07e --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdbase.mf @@ -0,0 +1,300 @@ +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% Base File for Computer Classic Greek Fonts +% +% By K J Dryllerakis May 1991. Based on Sylvio-Levy's +% grbase. + +numeric kdbase; kdbase:=1; %don't read this file twice +% +% make reference to file in subdirectories less painful +% +def readfrom(expr filename) = scantokens ("input " & filename); enddef; +% +% Parameter Definitions +% +boolean one_accent; % are we working in |one_accent|-system? +boolean monowidth; % do characters have single width? +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 +% +% Expand the Standard Font setup +% +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; + +% This part defines macros for saving pictures to facilitate +% the design of composite characters +% 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 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 9: + 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; + +% End of KD Base + diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdbf10.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdbf10.mf new file mode 100644 index 00000000000..2102a1dbf96 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdbf10.mf @@ -0,0 +1,126 @@ +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% Computer Classic Greek Fonts. +% ----------------------------- +% Font: Boldface +% Dimn: 10pt +% +% Revision Date: 10.05.91 [KJD] +% ----------------------------- +% Load Bases +% +if unknown cmbase: input cmbase fi +if unknown kdbase: input kdbase fi + +font_identifier:="KDBF"; font_size 10pt#; +% +% CM Base Parameters +% +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 + +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; % are we creating italics ? +% +% KD Bases Parameters +% +acc_ht#:=250/36pt#; % Height of accent +circ_ht#:=230/36pt#; % +Circ_ht#:=250/36pt#; % +iota_dp#:=72/36pt#; % +one_accent:=false; % are we generating one_accent font ? +% +% Switch to Driver +% +generate kdgreek; + diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdbf8.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdbf8.mf new file mode 100644 index 00000000000..dbd29e05b70 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdbf8.mf @@ -0,0 +1,126 @@ +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% Computer Classic Greek Fonts. +% ----------------------------- +% Font: Boldface +% Dimn: 8pt +% +% Revision Date: 10.05.91 [KJD] +% ----------------------------- +% Load Bases +% +if unknown cmbase: input cmbase fi +if unknown kdbase: input kdbase fi + +font_identifier:="KDBF"; font_size 8pt#; +% +% CM Base Parameters +% +u#:=17.6/36pt#; % unit width +width_adj#:=9/36pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=5.6/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=216.0/36pt#; % height of tallest characters +asc_height#:=200.0/36pt#; % height of lowercase ascenders +cap_height#:=197.6/36pt#; % height of caps +fig_height#:=185.6/36pt#; % height of numerals +x_height#:=128.0/36pt#; % height of lowercase without ascenders +math_axis#:=72.0/36pt#; % axis of symmetry for math symbols +bar_height#:=68.0/36pt#; % height of crossbar in lowercase e +comma_depth#:=56.0/36pt#; % depth of comma below baseline +desc_depth#:=54.0/36pt#; % depth of lowercase descenders + +crisp#:=0pt#; % diameter of serif corners +tiny#:=104.0/36pt#; % diameter of rounded corners +fine#:=70.0/36pt#; % diameter of sharply rounded corners +thin_join#:=70.0/36pt#; % width of extrafine details +hair#:=11.7/36pt#; % lowercase hairline breadth +stem#:=34.2/36pt#; % lowercase stem breadth +curve#:=32.8/36pt#; % lowercase curve breadth +ess#:=34.2/36pt#; % breadth in middle of lowercase s +flare#:=36.9/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=44.8/36pt#; % diameter of dots +cap_hair#:=17.1/36pt#; % uppercase hairline breadth +cap_stem#:=40.8/36pt#; % uppercase stem breadth +cap_curve#:=44.0/36pt#; % uppercase curve breadth +cap_ess#:=42.4/36pt#; % breadth in middle of uppercase s +rule_thickness#:=0.54pt#;% thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=8.0/36pt#; % vertical distance from serif base to tangent +jut#:=20.0/36pt#; % protrusion of lowercase serifs +cap_jut#:=31.2/36pt#; % protrusion of uppercase serifs +beak_jut#:=8.8/36pt#; % horizontal protrusion of beak serifs +beak#:=56.0/36pt#; % vertical protrusion of beak serifs +vair#:=8.8/36pt#; % vertical diameter of hairlines +notch_cut#:=10/36pt#; % maximum breadth above or below notches +bar#:=15.3/36pt#; % lowercase bar thickness +slab#:=15.3/36pt#; % serif and arm thickness +cap_bar#:=15.3/36pt#; % uppercase bar thickness +cap_band#:=15.3/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=8.00pt#;% max breadth above/below uppercase notches +serif_drop#:=2.4/36pt#; % vertical drop of sloped serifs +stem_corr#:=2.0/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#:=3.2/36pt#; % amount of overshoot for curves +apex_o#:=2.4/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; % are we creating italics ? +% +% KD Bases Parameters +% +acc_ht#:=200.0/36pt#; +circ_ht#:=184.0/36pt#; +Circ_ht#:=200.0/36pt#; +iota_dp#:=57.6/36pt#; +one_accent:=false; % are we generating one_accent font ? +% +% Switch to Driver +% +generate kdgreek; + diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdbf9.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdbf9.mf new file mode 100644 index 00000000000..50f6346c3ea --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdbf9.mf @@ -0,0 +1,127 @@ +% +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% Computer Classic Greek Fonts. +% ----------------------------- +% Font: Boldface +% Dimn: 9pt +% +% Revision Date: 10.05.91 [KJD] +% ----------------------------- +% Load Bases +% +if unknown cmbase: input cmbase fi +if unknown kdbase: input kdbase fi + +font_identifier:="KDBF"; font_size 9pt#; +% +% CM Base Parameters +% +u#:=19.8/36pt#; % unit width +width_adj#:=10.0/36pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=6.3/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=243.0/36pt#; % height of tallest characters +asc_height#:=225.0/36pt#; % height of lowercase ascenders +cap_height#:=222.3/36pt#; % height of caps +fig_height#:=208.8/36pt#; % height of numerals +x_height#:=144.0/36pt#; % height of lowercase without ascenders +math_axis#:=81.0/36pt#; % axis of symmetry for math symbols +bar_height#:=75.8/36pt#; % height of crossbar in lowercase e +comma_depth#:=63.0/36pt#; % depth of comma below baseline +desc_depth#:=72.0/36pt#; % depth of lowercase descenders %was 70 + +crisp#:=0pt#; % diameter of serif corners +tiny#:=58.5/36pt#; % diameter of rounded corners +fine#:=40.0/36pt#; % diameter of sharply rounded corners +thin_join#:=40.0/36pt#; % width of extrafine details +hair#:=12.3/36pt#; % lowercase hairline breadth (was 17) +stem#:=36.1/36pt#; % lowercase stem breadth (was 41) +curve#:=36.9/36pt#; % lowercase curve breadth (was 46) +ess#:=36.1/36pt#; % breadth in middle of lowercase s +flare#:=39.0/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=50.4/36pt#; % diameter of dots +cap_hair#:=18.1/36pt#; % uppercase hairline breadth +cap_stem#:=45.9/36pt#; % uppercase stem breadth +cap_curve#:=49.5/36pt#; % uppercase curve breadth +cap_ess#:=47.7/36pt#; % breadth in middle of uppercase s +rule_thickness#:=0.57pt#;% thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=9.0/36pt#; % vertical distance from serif base to tangent +jut#:=22.5/36pt#; % protrusion of lowercase serifs +cap_jut#:=35.1/36pt#; % protrusion of uppercase serifs +beak_jut#:=9.9/36pt#; % horizontal protrusion of beak serifs +beak#:=63.0/36pt#; % vertical protrusion of beak serifs +vair#:=9.9/36pt#; % vertical diameter of hairlines (was 13) +notch_cut#:=10/36pt#; % maximum breadth above or below notches +bar#:=16.1/36pt#; % lowercase bar thickness +slab#:=16.1/36pt#; % serif and arm thickness +cap_bar#:=16.1/36pt#; % uppercase bar thickness +cap_band#:=16.1/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=9.00pt#;% max breadth above/below uppercase notches +serif_drop#:=2.7/36pt#; % vertical drop of sloped serifs +stem_corr#:=2.0/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#:=3.6/36pt#; % amount of overshoot for curves +apex_o#:=2.7/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; % are we creating italics ? +% +% KD Bases Parameters +% +acc_ht#:=225.0/36pt#; +circ_ht#:=207.0/36pt#; +Circ_ht#:=225.0/36pt#; +iota_dp#:=64.8/36pt#; +one_accent:=false; % are we generating one_accent font ? +% +% Switch to Driver +% +generate kdgreek; + diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kddigits.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kddigits.mf new file mode 100644 index 00000000000..02944c833af --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kddigits.mf @@ -0,0 +1,347 @@ +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% This file is the essentially the same as Computer Modern's romand.mf. +% It contains the ten digits in so-called roman style. +% Character codes \0060 through \0071 are generated. + +% All digits have the same height, width, depth, and italic correction. + +cmchar "The 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 max(.7u,1.45u-.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 "The numeral 1"; +beginchar("1",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric light_stem; light_stem=hround .4[stem',cap_stem']; +if light_stem <= tiny: light_stem:=tiny+eps; fi +pickup tiny.nib; +pos1(light_stem,0); pos2(light_stem,0); +lft x1l=lft x2l=hround(.5(w+.5u)-.5cap_stem'); top y1=h+o; bot y2=0; +filldraw stroke z1e--z2e; % stem +if not serifs: save slab; slab=bar; fi +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+o; top y4l=if monospace: .8 else: .9 fi\\ h+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+o+1)--(x3l,h+o+1)--cycle; % erase excess at top +filldraw stroke z3e{x4e-x3e,3(y4e-y3e)}..z4e{left}; % point +penlabels(1,2,3,4); endchar; + +cmchar "The numeral 2"; +beginchar("2",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric arm_thickness, hair_vair; hair_vair=.25[vair,hair]; +arm_thickness=Vround(if hefty:slab+2stem_corr else:.4[stem,cap_stem] fi); +pickup crisp.nib; pos7(arm_thickness,-90); pos8(hair,0); +bot y7r=0; lft x7=hround .9u; rt x8r=hround(w-.9u); y8=good.y(y7l+beak/2)+eps; +arm(7,8,a,.3beak_darkness,beak_jut); % arm and beak +pickup fine.nib; pos2(slab,90); pos3(.4[curve,cap_curve],0); +top y2r=h+o; x2=.5(w-.5u); rt x3r=hround(w-.9u); y3+.5vair=.75h; +if serifs: numeric bulb_diam; bulb_diam=hround(flare+2/3(cap_stem-stem)); + pos0(bulb_diam,180); pos1(cap_hair,180); + lft x1r=hround .9u; y1-.5bulb_diam=2/3h; + (x,y2l)=whatever[z1l,z2r]; x2l:=x; bulb(2,1,0); % bulb and arc +else: x2l:=x2l-.25u; pos1(flare,angle(-9u,h)); + lft x1r=hround .75u; bot y1l=vround .7h; y1r:=good.y y1r; x1l:=good.x x1l; + filldraw stroke term.e(2,1,left,.9,4); fi % terminal and arc +pos4(.25[hair_vair,cap_stem],0); +pos5(hair_vair,0); pos6(hair_vair,0); +y5=arm_thickness; y4=.3[y5,y3]; top y6=min(y5,slab,top y7l); +lft x6l=crisp.lft x7; z4l=whatever[z6l,(x3l,bot .58h)]; z5l=whatever[z6l,z4l]; +erase fill z4l--z6l--lft z6l--(lft x6l,y4l)--cycle; % erase excess at left +filldraw stroke z2e{right}..tension atleast .9 and atleast 1 + ..z3e{down}.. z4e---z5e--z6e; % stroke +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +cmchar "The numeral 3"; +beginchar("3",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric top_thickness,mid_thickness,bot_thickness; +top_thickness=max(fine.breadth,vround(slab-2vair_corr)); +mid_thickness=max(fine.breadth,vround 2/3vair); +bot_thickness=max(fine.breadth,vround(slab-vair_corr)); +pickup fine.nib; pos2(top_thickness,90); top y2r=h+o; +pos3(max(fine.breadth,.6[curve,cap_curve]-stem_corr),0); +rt x3r=hround(w-1.25u); +pos4(vair,-90); pos5(vair,-90); +pos6(mid_thickness,90); x2=x6=x8=.5[1.5u,x7]; +pos7(cap_curve,0); rt x7r=hround(w-.75u); lft x5=min(hround 3u,lft x6)-eps; +pos8(bot_thickness,-90); bot y8r=-o; +y3=.6[top y4l,bot y2l]; y7=.5[bot y6l,top y8l]; +top y5l=vround(.54h+.5vair); y5r=y6l; +x4=1/3[x5,x3l]; z4=z5+whatever*(150u,h); +filldraw stroke pulled_super_arc.e(2,3)(.5superpull) + & z3e{down}...z4e---z5e; % upper bowl +filldraw z5r--z6l--z6r--z5l---cycle; % middle tip +filldraw stroke pulled_super_arc.e(6,7)(.5superpull) + & pulled_super_arc.e(7,8)(.5superpull); % lower bowl +if serifs: numeric bulb_diam[]; + bulb_diam1=flare+.5(cap_stem-stem); bulb_diam2=flare+cap_stem-stem; + pos0(bulb_diam1,180); pos1(hair,180); + lft x0r=hround 1.25u; y0=min(.9h-.5bulb_diam1,.75h+.5bulb_diam1); + bulb(2,1,0); % upper bulb + pos10(bulb_diam2,-180); pos9(cap_hair,-180); + lft x10r=hround .75u; y10=max(.1h+.5bulb_diam2,.3h-.5bulb_diam2); + bulb(8,9,10); % lower bulb +else: pos1(.5[vair,flare],angle(-8u,h)); + lft x1r=hround u; bot y1l=vround .75h+o; + y1r:=good.y y1r+eps; x1l:=good.x x1l; + pos9(bot_thickness,angle(-2u,-h)); + lft x9r=hround .75u; top y9l=vround .25h-o; + y9r:=good.y y9r-eps; x9l:=good.x x9l; + filldraw stroke term.e(2,1,left,1,4); % upper terminal + filldraw stroke term.e(8,9,left,1,4); fi % lower terminal +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +cmchar "The numeral 4"; +beginchar("4",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric light_stem, light_stem', diag_stem, alpha, cut; cut=.75notch_cut; +light_stem=hround .4[fudged.stem,fudged.cap_stem]; +light_stem'=hround max(tiny.breadth,light_stem-2stem_corr); +diag_stem=max(tiny.breadth,.4[vair,fudged.hair]); +pickup crisp.nib; pos5(cap_bar,90); pos6(cap_bar,90); +lft x5=hround .5u; rt x6=hround(w-.5u); +top y5r=vround(if serifs: 5/18[slab,h-light_stem]+1 + else:.35(h-light_stem) fi+.5cap_bar); +z4l=top lft z5r; y2=y2'=y5=y6; x1r=x2r=hround(w-3u+.5light_stem); +penpos1(light_stem',0); penpos2(light_stem',0); y1=y3=h+apex_o+apex_oo; +x3r+apex_corr=x1r; alpha=diag_ratio(1,diag_stem,y3-y4l,x3r-x4l); +penpos3(alpha*diag_stem,0); penpos4(alpha*diag_stem,0); +x0=x1l; z0=whatever[z3r,z4r]; +x5'=x5; z5''=z5'+penoffset z4-z3 of currentpen=whatever[z4l,z3l]; +fill diag_end(2r,1r,1,.5,3l,4l)---z5''...lft z5' + ---lft z5l -- (x4r,y5l) -- z4r + if y0<h-cut:{z3r-z4r}...{up}(x1l-1,h-cut) + --(x1l,h-cut) else: -- z0 fi + --z2l--z2r--cycle; % diagonal and upper stem +filldraw stroke z5e--z6e; % bar +pickup tiny.nib; pos7(light_stem,0); rt x7r=x1r; bot y7=0; +pos2'(light_stem,0); x2'=x7; +filldraw stroke z2'e--z7e; % lower stem +if serifs: dish_serif(7,2',a,1/3,1.75u, + b,1/3,min(1.75u,w-.5u-rt x7r)); fi % serif +penlabels(0,1,2,3,4,5,6,7); endchar; + +cmchar "The 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=vround .61803h+o; +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 "The 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 "The numeral 7"; +beginchar("7",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric arm_thickness, bot_width, top_shift, top_hair; +if hefty: arm_thickness=Vround(slab+2stem_corr); top_shift=0; + bot_width=hround .51[curve,cap_curve]; top_hair=.4[thin_join,bot_width]; +else: arm_thickness=Vround .4[stem,cap_stem]; top_shift=.5u; + bot_width=flare; top_hair=cap_hair; fi +if top_hair<tiny.breadth: top_hair:=tiny.breadth; fi +pickup crisp.nib; pos2(arm_thickness,90); pos1(hair,180); +top y2r=h; rt x2=hround(w-.75u+top_shift); +lft x1r=hround(.75u+.5top_shift); y1=good.y(y2l-beak/2)-eps; +arm(2,1,a,.3beak_darkness,-beak_jut); % arm and beak +pos3(hair,180); y3=good.y(y2r+beak/6)+eps; z3r=whatever[z1r,z.a0]; +penpos2'(eps,-90); z2'=z2r; +arm(2',3,b,beak_darkness,x3r-x.a0); % upward extension of beak +pickup tiny.nib; pos4(top_hair,0); pos6(bot_width,0); +bot y4=max(h-arm_thickness,h-slab,bot y2l); rt x4r=crisp.rt x2; +lft x6l=hround(3.5u+top_shift-.5bot_width); +if serifs: y6-.5bot_width=-o; filldraw z6l{down}..{up}z6r--cycle; % bulb +else: bot y6=-oo; fi +if hefty: erase fill rt z4r--z4r...{down}z6r + --(rt x4r,y6)--cycle; % erase excess at top + filldraw stroke z4e...{down}z6e; % stroke +else: pos5(top_hair,0); y5=2/3h; z5=whatever[z4,(.75u,y6)]; + erase fill rt z4r--z4r--z5r--(rt x4r,y5)--cycle; % erase excess at top + filldraw stroke z4e---z5e...{down}z6e; fi % stroke +penlabels(1,2,3,4,5,6); endchar; + +cmchar "The 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 "The 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/kdgreek/kdgr10.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdgr10.mf new file mode 100644 index 00000000000..22914e8fda1 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdgr10.mf @@ -0,0 +1,120 @@ +% +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% Computer Classic Greek Font at 10 points +% +if unknown cmbase: input cmbase fi +if unknown kdbase: input kdbase fi + +font_identifier:="KDGR10"; font_size 10pt#; + +% Definitions for CMBase + +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 + +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? + +% Definitions For KDBase + +acc_ht#:=250/36pt#; +circ_ht#:=225/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=72/36pt#; +one_accent:=false; % are we generating a one accent system? +straight:=false; % should stems, etc. be straight? +monowidth:=false; % are stem and hair more or less the same width? +italics:=false; % are we generating italics ? + +% Switch to device driver + +generate kdgreek; + diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdgr8.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdgr8.mf new file mode 100644 index 00000000000..34e144c0c1e --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdgr8.mf @@ -0,0 +1,123 @@ +% +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% Computer Classic Greek Fonts. +% ----------------------------- +% Font: Regular +% Dimn: 8pt +% ----------------------------- +% Load Bases +% +if unknown cmbase: input cmbase fi +if unknown kdbase: input kdbase fi + +font_identifier:="KDGR"; font_size 8pt#; + +u#:=17/36pt#; % unit width +width_adj#:=0pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=4.1/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=216/36pt#; % height of tallest characters +asc_height#:=200/36pt#; % height of lowercase ascenders +cap_height#:=196.8/36pt#; % height of caps +fig_height#:=185.6/36pt#; % height of numerals +x_height#:=124/36pt#; % height of lowercase without ascenders +math_axis#:=72/36pt#; % axis of symmetry for math symbols +bar_height#:=69.6/36pt#; % height of crossbar in lowercase e +comma_depth#:=56/36pt#; % depth of comma below baseline +desc_depth#:=56/36pt#; % depth of lowercase descenders + +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#:=8/36pt#; % lowercase hairline breadth +stem#:=24/36pt#; % lowercase stem breadth +curve#:=25.5/36pt#; % lowercase curve breadth +ess#:=23/36pt#; % breadth in middle of lowercase s +flare#:=23/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=32/36pt#; % diameter of dots +cap_hair#:=9.5/36pt#; % uppercase hairline breadth +cap_stem#:=26.5/36pt#; % uppercase stem breadth +cap_curve#:=30/36pt#; % uppercase curve breadth +cap_ess#:=27/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.36pt#; % thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=16/36pt#; % vertical distance from serif base to tangent +jut#:=22/36pt#; % protrusion of lowercase serifs +cap_jut#:=29/36pt#; % protrusion of uppercase serifs +beak_jut#:=8.4/36pt#; % horizontal protrusion of beak serifs +beak#:=56/36pt#; % vertical protrusion of beak serifs +vair#:=6.6/36pt#; % vertical diameter of hairlines +notch_cut#:=8pt#; % maximum breadth above or below notches +bar#:=9.5/36pt#; % lowercase bar thickness +slab#:=9.5/36pt#; % serif and arm thickness +cap_bar#:=9.5/36pt#; % uppercase bar thickness +cap_band#:=9.5/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=8pt#; % max breadth above/below uppercase notches +serif_drop#:=3.2/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#:=6/36pt#; % amount of overshoot for curves +apex_o#:=6/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.4; % 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? + +% CC Base Parameters + +acc_ht#:=210/36pt#; +circ_ht#:=180/36pt#; +Circ_ht#:=210/36pt#; +iota_dp#:=57.6/36pt#; + +straight:=false; % should stems, etc. be straight? +monowidth:=false; % are stem and hair more or less the same width? +italics:=false; % Are we generating Italics? +one_accent:=false; % Are we generating one_accent font? + +generate kdgreek; % Switch to driver + + diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdgr9.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdgr9.mf new file mode 100644 index 00000000000..61a5e39f9db --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdgr9.mf @@ -0,0 +1,122 @@ +% +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% Computer Classic Greek Font at 9 points +% +if unknown cmbase: input cmbase fi +if unknown kdbase: input kdbase fi + +font_identifier:="KDGR9"; font_size 9pt#; + +% Definitions for CMBase + +u#:=18.5/36pt#; % unit width +width_adj#:=0pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=4.6/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=243/36pt#; % height of tallest characters +asc_height#:=225/36pt#; % height of lowercase ascenders +cap_height#:=221.4/36pt#; % height of caps +fig_height#:=208.8/36pt#; % height of numerals +x_height#:=139.5/36pt#; % height of lowercase without ascenders +math_axis#:=81/36pt#; % axis of symmetry for math symbols +bar_height#:=75.8/36pt#; % height of crossbar in lowercase e +comma_depth#:=63/36pt#; % depth of comma below baseline +desc_depth#:=73/36pt#; % depth of lowercase descenders + +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#:=8.5/36pt#; % lowercase hairline breadth +stem#:=25.5/36pt#; % lowercase stem breadth +curve#:=27.8/36pt#; % lowercase curve breadth +ess#:=25/36pt#; % breadth in middle of lowercase s +flare#:=25/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=35/36pt#; % diameter of dots +cap_hair#:=10.3/36pt#; % uppercase hairline breadth +cap_stem#:=29.3/36pt#; % uppercase stem breadth +cap_curve#:=33.5/36pt#; % uppercase curve breadth +cap_ess#:=31/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.38pt#; % thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=18/36pt#; % vertical distance from serif base to tangent +jut#:=25/36pt#; % protrusion of lowercase serifs +cap_jut#:=33/36pt#; % protrusion of uppercase serifs +beak_jut#:=9.2/36pt#; % horizontal protrusion of beak serifs +beak#:=63/36pt#; % vertical protrusion of beak serifs +vair#:=7.3/36pt#; % vertical diameter of hairlines +notch_cut#:=9pt#; % maximum breadth above or below notches +bar#:=10.3/36pt#; % lowercase bar thickness +slab#:=10.3/36pt#; % serif and arm thickness +cap_bar#:=10.3/36pt#; % uppercase bar thickness +cap_band#:=10.3/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=9pt#; % max breadth above/below uppercase notches +serif_drop#:=3.6/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#:=7/36pt#; % amount of overshoot for curves +apex_o#:=7/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:=.2; % 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? + +% Definitions For KDBase + +acc_ht#:=230/36pt#; +circ_ht#:=202.5/36pt#; +Circ_ht#:=230/36pt#; % +iota_dp#:=64.8/36pt#; % Depth of i under vowel +one_accent:=false; % are we generating a one accent system? +straight:=false; % should stems, etc. be straight? +monowidth:=false; % are stem and hair more or less the same width? +italics:=false; % are we generating italics ? + +% Switch to greek device driver + +generate kdgreek; + + + diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdgreek.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdgreek.mf new file mode 100644 index 00000000000..0f4702eb002 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdgreek.mf @@ -0,0 +1,59 @@ +% +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% Computer Classic Greek Family of Fonts +% Adapted by K J Dryllerakis +% +if ligs>1: font_coding_scheme:="TeX greek text"; +else: font_coding_scheme:="TeX greek typewriter text";fi + +mode_setup; font_setup; + +readfrom("kdaccent"); % accents +if italics: + readfrom("kdilower"); + readfrom("kdidigit"); +else: + readfrom("kdlower"); + readfrom("kddigits"); +fi +if ligs>0: + readfrom("kdlig"); +else: + readfrom("kdligcom"); +fi +readfrom("kdupper"); +readfrom("kdpunct"); + +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/kdgreek/kdidigit.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdidigit.mf new file mode 100644 index 00000000000..329906df90e --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdidigit.mf @@ -0,0 +1,287 @@ +% This is KDITALD.MF +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% 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/kdgreek/kdilower.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdilower.mf new file mode 100644 index 00000000000..a94780a8958 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdilower.mf @@ -0,0 +1,1282 @@ +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% +% File : kdilower.mf +% +% +% + +% ====================================================================== +% 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 acc_corr = 1.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"200",width#+u#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase alpha with smooth breathing"; +beginchar(oct"210",width#+u#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; +% +cmchar "Lowercase alpha with acute"; +beginchar(oct"220",width#+u#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; +% +cmchar "Lowercase alpha with rough breathing and acute"; +beginchar(oct"230",width#+u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; +% +cmchar "Lowercase alpha with smooth breathing and acute"; +beginchar(oct"240",width#+u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; +% +cmchar "Lowercase alpha with rough breathing and grave"; +beginchar(oct"260",width#+u#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)<; endchar; +% +cmchar "Lowercase alpha with smooth breathing and grave"; +beginchar(oct"270",width#+u#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)>; endchar; +% +cmchar "Lowercase alpha with circumflex"; +beginchar(oct"207",width#+u#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; +% +cmchar "Lowercase alpha with grave"; +beginchar(oct"250",width#+u#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; +% + +cmchar "Lowercase alpha with rough breathing and circumflex"; +beginchar(oct"300",width#+u#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)<; endchar; + +cmchar "Lowercase alpha with smooth breathing and circumflex"; +beginchar(oct"310",width#+u#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)>; endchar; +% +cmchar "Lowercase alpha with iota subscript"; +beginchar(oct"320",width#+u#,height#,iota_dp#); +this_letter; iota_sub(pos_stem); endchar; +% +cmchar "Lowercase alpha with acute and iota subscript"; +beginchar(oct"301",width#+u#,acc_ht#,iota_dp#); +this_letter; acute(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with grave and iota subscript"; +beginchar(oct"330",width#+u#,acc_ht#,iota_dp#); +this_letter; grave(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with rough breathing and iota subscript"; +beginchar(oct"340",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with smooth breathing and iota subscript"; +beginchar(oct"350",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with rough breathing, grave and iota subscript"; +beginchar(oct"360",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit_grave(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with smooth breathing, grave and iota subscript"; +beginchar(oct"361",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit_grave(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with rough breathing and acute and iota subscript"; +beginchar(oct"311",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with smooth breathing and acute and iota subscript"; +beginchar(oct"321",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with circumflex and iota subscript"; +beginchar(oct"331",width#+u#,circ_ht#,iota_dp#); +this_letter; circumflex(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with rough breathing, circumflex and iota subscript"; +beginchar(oct"341",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit_circumflex(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with smooth breathing, circumflex and iota subscript"; +beginchar(oct"351",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); 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 acc_corr = 1.5u 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"201",width#+1.2u#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase epsilon with smooth breathing"; +beginchar(oct"211",width#+1.2u#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase epsilon with acute"; +beginchar(oct"221",width#+1.2u#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase epsilon with rough breathing and acute"; +beginchar(oct"231",width#+1.2u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase epsilon with smooth breathing and acute"; +beginchar(oct"241",width#+1.2u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase epsilon with rough breathing and grave"; +beginchar(oct"261",width#+1.2u#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)<; endchar; + +cmchar "Lowercase epsilon with smooth breathing and grave"; +beginchar(oct"271",width#+1.2u#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)>; endchar; + +cmchar "Lowercase epsilon with grave"; +beginchar(oct"251",width#+1.2u#,acc_ht#,0); +this_letter; grave(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 [Bug fixed by Knappen June 1992] +% ====================================================================== +% +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 acc_corr = 1.5u 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=x2; % 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"202",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing"; +beginchar(oct"212",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase eta with acute"; +beginchar(oct"222",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase eta with rough breathing and acute"; +beginchar(oct"232",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing and acute"; +beginchar(oct"242",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)>; endchar; +% +cmchar "Lowercase eta with rough breathing and grave"; +beginchar(oct"262",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit_grave(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing and grave"; +beginchar(oct"272",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit_grave(x_baryctr)>; endchar; +% +cmchar "Lowercase eta with circumflex"; +beginchar(oct"217",width#+1.3u#,circ_ht#,desc_depth#); +this_letter; circumflex(x_baryctr); endchar; +% +cmchar "Lowercase eta with grave"; +beginchar(oct"252",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; grave(x_baryctr); endchar; +% + +cmchar "Lowercase eta with rough breathing and circumflex"; +beginchar(oct"302",width#+1.3u#,Circ_ht#,desc_depth#); +this_letter; spirit_circumflex(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing and circumflex"; +beginchar(oct"312",width#+1.3u#,Circ_ht#,desc_depth#); +this_letter; spirit_circumflex(x_baryctr)>; endchar; + +cmchar "Lowercase eta with grave and iota subscript"; +beginchar(oct"332",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; grave(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with rough breathing and iota subscript"; +beginchar(oct"342",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with smooth breathing and iota subscript"; +beginchar(oct"352",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with acute and iota subscript"; +beginchar(oct"303",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; acute(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with rough breathing, acute and iota subscript"; +beginchar(oct"313",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with smooth breathing and acute and iota subscript"; +beginchar(oct"323",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with rough breathing, grave and iota subscript"; +beginchar(oct"362",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit_grave(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with smooth breathing and grave and iota subscript"; +beginchar(oct"363",width#+1.3u#,acc_ht#,desc_depth#); +this_letter; spirit_grave(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with circumflex and iota subscript"; +beginchar(oct"333",width#+1.3u#,circ_ht#,desc_depth#); +this_letter; circumflex(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with rough breathing, circumflex and iota subscript"; +beginchar(oct"343",width#+1.3u#,Circ_ht#,desc_depth#); +this_letter; spirit_circumflex(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with smooth breathing, circumflex and iota subscript"; +beginchar(oct"353",width#+1.3u#,Circ_ht#,desc_depth#); +this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with iota subscript"; +beginchar(oct"322",width#+1.3u#,x_height#,desc_depth#); +this_letter; iota_sub(pos_stem); 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 acc_corr = 0 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"205",width#,acc_ht#,0); +this_letter; spirit(x_baryctr if serifs: +.25u fi)<; endchar; +% +cmchar "Lowercase iota with smooth breathing"; +beginchar(oct"215",width#,acc_ht#,0); +this_letter; spirit(x_baryctr if serifs: -.25u fi)>; endchar; +% +cmchar "Lowercase iota with acute"; +beginchar(oct"225",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; +% +cmchar "Lowercase iota with rough breathing and acute"; +beginchar(oct"235",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; +% +cmchar "Lowercase iota with smooth breathing and acute"; +beginchar(oct"245",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; +% +cmchar "Lowercase iota with rough breathing and grave"; +beginchar(oct"265",width#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)<; endchar; +% +cmchar "Lowercase iota with smooth breathing and grave"; +beginchar(oct"275",width#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)>; endchar; +% +cmchar "Lowercase iota with circumflex"; +beginchar(oct"237",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; +% +cmchar "Lowercase iota with grave"; +beginchar(oct"255",width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; +% +cmchar "Lowercase iota with rough breathing and circumflex"; +beginchar(oct"305",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)<; endchar; + +cmchar "Lowercase iota with smooth breathing and circumflex"; +beginchar(oct"315",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)>; endchar; + +cmchar "Lowercase iota with diaeresis"; +beginchar(oct"010",width#,circ_ht#,0); +this_letter; diaeresis(x_baryctr); endchar; + +cmchar "Lowercase iota with diaeresis and grave"; +beginchar(oct"012",width#,acc_ht#,0); +this_letter; diaeresis_grave(x_baryctr); endchar; + +cmchar "Lowercase iota with diaeresis and acute"; +beginchar(oct"011",width#,acc_ht#,0); +this_letter; diaeresis_acute(x_baryctr); endchar; + +cmchar "Lowercase iota with diaeresis and circumflex"; +beginchar(oct"013",width#,Circ_ht#,0); +this_letter; diaeresis_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"203",width#+.6u#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; +% +cmchar "Lowercase omicron with smooth breathing"; +beginchar(oct"213",width#+.6u#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; +% +cmchar "Lowercase omicron with acute"; +beginchar(oct"223",width#+.6u#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; +% +cmchar "Lowercase omicron with rough breathing and acute"; +beginchar(oct"233",width#+.6u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; +% +cmchar "Lowercase omicron with smooth breathing and acute"; +beginchar(oct"243",width#+.6u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; +% +cmchar "Lowercase omicron with rough breathing and grave"; +beginchar(oct"263",width#+.6u#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)<; endchar; +% +cmchar "Lowercase omicron with smooth breathing and grave"; +beginchar(oct"273",width#+.6u#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)>; endchar; +% +cmchar "Lowercase omicron with grave"; +beginchar(oct"253",width#+.6u#,acc_ht#,0); +this_letter; grave(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; +% + +cmchar "Lowercase rho with rough breathing"; +beginchar(oct"346",width#,acc_ht#,depth#); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase rho with smooth breathing"; +beginchar(oct"356",width#,acc_ht#,depth#); +this_letter; spirit(x_baryctr)>; 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 +% ====================================================================== + +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; + +% ====================================================================== +% YPSILON +% ====================================================================== + + +def width = 8.5u enddef; +def dims = width#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; +def acc_corr =.5u 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"206",width#+.9u#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; +% +cmchar "Lowercase upsilon with smooth breathing"; +beginchar(oct"216",width#+.9u#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; +% +cmchar "Lowercase upsilon with acute"; +beginchar(oct"226",width#+.9u#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; +% +cmchar "Lowercase upsilon with rough breathing and acute"; +beginchar(oct"236",width#+.9u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; +% +cmchar "Lowercase upsilon with smooth breathing and acute"; +beginchar(oct"246",width#+.9u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; +% +cmchar "Lowercase upsilon with rough breathing and grave"; +beginchar(oct"266",width#+.9u#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)<; endchar; +% +cmchar "Lowercase upsilon with smooth breathing and grave"; +beginchar(oct"276",width#+.9u#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)>; endchar; +% +cmchar "Lowercase upsilon with circumflex"; +beginchar(oct"247",width#+.9u#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; +% +cmchar "Lowercase upsilon with grave"; +beginchar(oct"256",width#+.9u#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; +% +cmchar "Lowercase upsilon with rough breathing and circumflex"; +beginchar(oct"306",width#+.9u#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)<; endchar; +% +cmchar "Lowercase upsilon with smooth breathing and circumflex"; +beginchar(oct"316",width#+.9u#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)>; endchar; +% +cmchar "Lowercase upsilon with diaeresis"; +beginchar(oct"014",width#+.9u#,circ_ht#,0); +this_letter; diaeresis(x_baryctr); endchar; + +cmchar "Lowercase upsilon with diaeresis and grave"; +beginchar(oct"016",width#+.9u#,acc_ht#,0); +this_letter; diaeresis_grave(x_baryctr); endchar; + +cmchar "Lowercase upsilon with diaeresis and acute"; +beginchar(oct"015",width#+.9u#,acc_ht#,0); +this_letter; diaeresis_acute(x_baryctr); endchar; + +cmchar "Lowercase upsilon with diaeresis and circumflex"; +beginchar(oct"017",width#+.9u#,Circ_ht#,0); +this_letter; diaeresis_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 = +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 acc_corr=.5u 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"204",width#+u#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; +% +cmchar "Lowercase omega with smooth breathing"; +beginchar(oct"214",width#+u#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; +% +cmchar "Lowercase omega with acute"; +beginchar(oct"224",width#+u#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; +% +cmchar "Lowercase omega with rough breathing and acute"; +beginchar(oct"234",width#+u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; +% +cmchar "Lowercase omega with smooth breathing and acute"; +beginchar(oct"244",width#+u#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; +% +cmchar "Lowercase omega with rough breathing and grave"; +beginchar(oct"264",width#+u#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)<; endchar; +% +cmchar "Lowercase omega with smooth breathing and grave"; +beginchar(oct"274",width#+u#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)>; endchar; +% +cmchar "Lowercase omega with circumflex"; +beginchar(oct"227",width#+u#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; +% +% +cmchar "Lowercase omega with grave"; +beginchar(oct"254",width#+u#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; +% +cmchar "Lowercase omega with rough breathing and circumflex"; +beginchar(oct"304",width#+u#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)<; endchar; + +cmchar "Lowercase omega with smooth breathing and circumflex"; +beginchar(oct"314",width#+u#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)>; endchar; +% +cmchar "Lowercase omega with grave and iota subscript"; +beginchar(oct"334",width#+u#,acc_ht#,iota_dp#); +this_letter; grave(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with rough breathing and iota subscript"; +beginchar(oct"344",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with smooth breathing and iota subscript"; +beginchar(oct"354",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with acute and iota subscript"; +beginchar(oct"325",width#+u#,acc_ht#,iota_dp#); +this_letter; acute(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with rough breathing, acute and iota subscript"; +beginchar(oct"335",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit_acute(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with smooth breathing and acute and iota subscript"; +beginchar(oct"345",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with rough breathing, grave and iota subscript"; +beginchar(oct"364",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit_grave(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with smooth breathing and grave and iota subscript"; +beginchar(oct"365",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit_grave(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with circumflex and iota subscript"; +beginchar(oct"355",width#+u#,circ_ht#,iota_dp#); +this_letter; circumflex(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with rough breathing, circumflex and iota subscript"; +beginchar(oct"326",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit_circumflex(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with smooth breathing, circumflex and iota subscript"; +beginchar(oct"336",width#+u#,acc_ht#,iota_dp#); +this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with iota subscript"; +beginchar(oct"324",width#+u#,height#,iota_dp#); +this_letter; iota_sub(pos_stem); endchar; + +picture pic.iota; +picture savedpicture; + +endinput; +% ====================================================================== + diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdlig.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdlig.mf new file mode 100644 index 00000000000..570a3d6d9f3 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdlig.mf @@ -0,0 +1,264 @@ +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% File : kdlig.mf +% +% Main ligature Table for Greek Characters +% +% K J Dryllerakis May 1991 +% +% JK 3-Jun-1992: included ligatures for <`a and >`a etc. +% +k#:=-.7u#;kk#:=-1.8u#;kkk#:=-2.5u#; % Some units +mk#:=-1.2u#; % more units +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 +% +% Dase'ia + something +% +ligtable "<": + "~" =: oct"100", "'" =: oct"126", + "`" =: oct"001", "r" =: oct"346", + "a" =: oct"200", "e" =: oct"201", "h" =: oct"202", + "o" =: oct"203", "w" =: oct"204", "i" =: oct"205", "u" =: oct"206", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +% +% Psili + Something +% +ligtable ">": + "~" =: oct"134", "'" =: oct"136", + "`" =: oct"002", "r" =: oct"356", + "a" =: oct"210", "e" =: oct"211", "h" =: oct"212", + "o" =: oct"213", "w" =: oct"214", "i" =: oct"215", "u" =: oct"216", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +% +% Daseia + Ojeia + Something +% +ligtable oct"126": % rough breathing and acute, + "a" =: oct"230", "e" =: oct"231", "h" =: oct"232", + "o" =: oct"233", "w" =: oct"234", "i" =: oct"235", "u" =: oct"236", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +% +% Psili + Ojeia + something +% +ligtable oct"136": % smooth breathing and acute + "a" =: oct"240", "e" =: oct"241", "h" =: oct"242", + "o" =: oct"243", "w" =: oct"244", "i" =: oct"245", "u" =: oct"246", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +% +% Daseia + Vareia + Something +% +ligtable oct"001": % rough breathing and grave, + "a" =: oct"260", "e" =: oct"261", "h" =: oct"262", + "o" =: oct"263", "w" =: oct"264", "i" =: oct"265", "u" =: oct"266", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +% +% Psili + Vareia + something +% +ligtable oct"002": % smooth breathing and grave + "a" =: oct"270", "e" =: oct"271", "h" =: oct"272", + "o" =: oct"273", "w" =: oct"274", "i" =: oct"275", "u" =: oct"276", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +% +% +% Daseia + Perisp + Something +% +ligtable oct"100": % smooth breathing and acute + "a" =: oct"300", "h" =: oct"302", + "w" =: oct"304", "i" =: oct"305", "u" =: oct"306", + "A" kern 2kk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +% +% Psili + Perisp + something +% +ligtable oct"134": % rough breathing and acute, + "a" =: oct"310", "h" =: oct"312", + "w" =: oct"314", "i" =: oct"315", "u" =: oct"316", + "A" kern 2kk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +% +% Diairesis +% +ligtable diaer: "'" =: oct"043", "`" =: oct"044", "~" =: oct"040", + "i" =: oct"010", "u" =: oct"014"; +ligtable oct"043": "i" =: oct"011", "u" =: oct"015"; +ligtable oct"044": "i" =: oct"012", "u" =: oct"016"; +ligtable oct"040": "i" =: oct"013", "u" =: oct"017"; +% +% Ojeia + something +% +ligtable "'": diaer =: oct"043", "'" =: oct"035", + "a" =: oct"220", "e" =: oct"221", "h" =: oct"222", + "o" =: oct"223", "w" =: oct"224", "i" =: oct"225", "u" =: oct"226", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +% +% +% Perisp + something +% +ligtable "~": diaer =: oct"040", + "a" =: oct"207", "h" =: oct"217", "i" =: oct "237", "u" =: oct "247", + "w" =: oct"227"; +% +% Vareia + something +% +ligtable "`": diaer =: oct"044", "`" =: oct"034", + "a" =: oct"250", "e" =: oct"251", "h" =: oct"252", + "o" =: oct"253", "w" =: oct"254", "i" =: oct"255", "u" =: oct"256", + "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#, + "W" kern kk#, "H" kern kkk#; +% + +% +ligtable "l": + "h" kern mk#, + oct"262" kern mk#, oct"272" kern mk#, oct"363" kern mk#, oct"363" kern mk#, + oct"222" kern mk#, oct"252" kern mk#, oct"322" kern mk#, + oct"332" kern mk#, oct"303" kern mk#, oct"333" kern mk#, oct"217" kern mk#, + "u" kern mk#, oct"226" kern mk#, oct"256" kern mk#, oct"247" kern mk#, + oct"266" kern mk#, oct"276" kern mk#, + "o" kern k#, oct"223" kern k#, oct"253" kern k#, oct"263" kern k#, + oct"273" kern k#, + "a" kern k#, + oct"220" kern mk#, oct"250" kern mk#, oct"320" kern mk#, + oct"330" kern mk#, oct"301" kern mk#, oct"331" kern mk#, oct"207" kern mk#, + "i" kern k#, oct"225" kern k#, oct"255" kern k#, oct"237" kern k#, + oct"265" kern k#, oct"275" kern k#; + +ligtable "u": oct"206" : oct"216" : oct"226" : oct"236" : oct"246" : oct"256": + oct"306": oct"316": oct"247": oct"266" : oct"276": + "g" kern k#, "r" kern -k#; + +ligtable "e": oct"201" : oct"211" : oct"221" : oct"231" : oct"241" : oct"251": + oct"261" : oct"271": + "i" kern k#, oct"205" kern k#, oct"215" kern k#, oct"225" kern k#, + oct"235" kern k#, oct"245" kern k#, oct"255" kern k#, + oct"305" kern k#, oct"315" kern k#, oct"010" kern k#, + oct"011" kern k#, oct"012" kern k#, oct"013" kern k#, "n" kern k#; + +ligtable "D" : "u" kern k#, oct"226" kern k#, oct"256" kern k#, "h" kern mk#, + oct"222" kern mk#, oct"252" kern mk#; + +ligtable "k" : "o" kern k#, oct"223" kern k#, oct"253" kern k#; + +ligtable "R" : "a" kern k#, oct"220" kern k#, oct"250" kern k#, + oct"270" kern k#, oct"260" kern k#, oct"360" kern k#, oct"361" kern k#, + oct"207" kern k#, "w" kern k#, + oct"224" kern k#, oct"244" kern k#, oct"227" kern k#; +ligtable "h": "|" =: oct"322", "m" kern -k#, "r" kern -k#; +ligtable oct"202": "|" =: oct"342", "m" kern -k#, "r" kern -k#; +ligtable oct"212": "|" =: oct"352", "m" kern -k#, "r" kern -k#; +ligtable oct"222": "|" =: oct"303", "m" kern -k#, "r" kern -k#; +ligtable oct"232": "|" =: oct"313", "m" kern -k#, "r" kern -k#; +ligtable oct"242": "|" =: oct"323", "m" kern -k#, "r" kern -k#; +ligtable oct"252": "|" =: oct"332", "m" kern -k#, "r" kern -k#; +ligtable oct"302": "|" =: oct"343", "m" kern -k#, "r" kern -k#; +ligtable oct"312": "|" =: oct"353", "m" kern -k#, "r" kern -k#; +ligtable oct"217": "|" =: oct"333", "m" kern -k#, "r" kern -k#; +ligtable oct"262": "|" =: oct"362", "m" kern -k#, "r" kern -k#; +ligtable oct"272": "|" =: oct"363", "m" kern -k#, "r" kern -k#; + +ligtable "m" : "n" kern k#, "a" kern k#, oct"220" kern k#, oct"250" kern k#, + oct"270" kern k#, oct"260" kern k#, oct"360" kern k#, oct"361" kern k#, + oct"207" kern k#; + +ligtable "o" : oct"203" : oct"213" : oct"223" : oct"233" : oct"243" : + oct"253" : + "u" kern k#, oct"206" kern k#, oct"216" kern k#, oct"226" kern k#, + oct"236" kern k#, oct"246" kern k#, oct"256" kern k#, + oct"306" kern k#, oct"316" kern k#, oct"247" 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"223" kern k#, "a" kern k#, + oct"270" kern k#, oct"260" kern k#, oct"360" kern k#, oct"361" kern k#, + oct"220" kern k#, oct"250" kern k#, oct"320" kern k#, + oct"330" kern k#, oct"301" kern k#, oct"331" kern k#, oct"207" kern k#, + oct"262" kern k#, oct"272" kern k#, oct"363" kern k#, oct"363" kern k#, + "h" kern k#, oct"222" kern k#, oct"252" kern k#, oct"217" kern k#; + +ligtable "K" : "a" kern k#, + oct"220" kern k#, oct"250" kern k#, oct"320" kern k#, + oct"270" kern k#, oct"260" kern k#, oct"360" kern k#, oct"361" kern k#, + oct"330" kern k#, oct"301" kern k#, oct"331" kern k#, oct"207" kern k#; + +ligtable "w": "|" =: oct"324", "q" kern k#; +ligtable oct"204": "|" =: oct"344", "q" kern k#; +ligtable oct"214": "|" =: oct"354", "q" kern k#; +ligtable oct"224": "|" =: oct"325", "q" kern k#; +ligtable oct"234": "|" =: oct"335", "q" kern k#; +ligtable oct"244": "|" =: oct"345", "q" kern k#; +ligtable oct"254": "|" =: oct"334", "q" kern k#; +ligtable oct"304": "|" =: oct"326", "q" kern k#; +ligtable oct"314": "|" =: oct"336", "q" kern k#; +ligtable oct"227": "|" =: oct"355", "q" kern k#; +ligtable oct"264": "|" =: oct"364", "q" kern k#; +ligtable oct"274": "|" =: oct"365", "q" kern k#; + +ligtable "g" : "w" kern k#, oct"227" kern k#, oct"254" kern k#, oct"224" kern k#; + +ligtable "T" : "h" kern k#, + oct"222" kern k#, oct"252" kern k#, oct"322" kern k#, + oct"262" kern k#, oct"272" kern k#, oct"363" kern k#, oct"363" kern k#, + oct"332" kern k#, oct"303" kern k#, oct"333" kern k#, oct"217" kern k#, + "o" kern mk#, + oct"223" kern mk#, oct"253" kern mk#; + +ligtable "x" : "o" kern k#, oct"223" kern k#, oct"253" kern k#, + "a" kern k#, + oct"220" kern k#, oct"250" kern k#, oct"320" kern k#, + oct"270" kern k#, oct"260" kern k#, oct"360" kern k#, oct"361" kern k#, + oct"330" kern k#, oct"301" kern k#, oct"331" kern k#, oct"207" kern k#; + +ligtable "A" : "g" kern mk#, "d" kern k#; +ligtable "O" : "l" kern k#; + +ligtable "a": "|" =: oct"320", "n" kern k#; +ligtable oct"200": "|" =: oct"340", "n" kern k#; +ligtable oct"210": "|" =: oct"350", "n" kern k#; +ligtable oct"220": "|" =: oct"301", "n" kern k#; +ligtable oct"230": "|" =: oct"311", "n" kern k#; +ligtable oct"240": "|" =: oct"321", "n" kern k#; +ligtable oct"250": "|" =: oct"330", "n" kern k#; +ligtable oct"300": "|" =: oct"341", "n" kern k#; +ligtable oct"310": "|" =: oct"351", "n" kern k#; +ligtable oct"207": "|" =: oct"331", "n" kern k#; +ligtable oct"260": "|" =: oct"360", "n" kern k#; +ligtable oct"270": "|" =: oct"361", "n" kern k#; + +ligtable "U" : "p" kern mk#; + +endinput; + diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdligcom.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdligcom.mf new file mode 100644 index 00000000000..5bb7a6f7b6f --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdligcom.mf @@ -0,0 +1,142 @@ +% +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% Computer Classic Greek Fonts +% +% Ligature Table for MonoSpace Greek Characters +% +% K J Dryllerakis May 1991 +% +k#:=-.7u#;kk#:=-1.8u#;kkk#:=-2.5u#; % Some units +mk#:=-1.2u#; % more units +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 +% +% Dase'ia + something +% +ligtable "<": + "~" =: oct"100", "'" =: oct"126", + "`" =: oct"001", "r" =: oct"346", + "a" =: oct"200", "e" =: oct"201", "h" =: oct"202", + "o" =: oct"203", "w" =: oct"204", "i" =: oct"205", "u" =: oct"206"; +% +% Psili + Something +% +ligtable ">": + "~" =: oct"134", "'" =: oct"136", + "`" =: oct"002", "r" =: oct"356", + "a" =: oct"210", "e" =: oct"211", "h" =: oct"212", + "o" =: oct"213", "w" =: oct"214", "i" =: oct"215", "u" =: oct"216"; +% +% Daseia + Ojeia + Something +% +ligtable oct"126": % rough breathing and acute, + "a" =: oct"230", "e" =: oct"231", "h" =: oct"232", + "o" =: oct"233", "w" =: oct"234", "i" =: oct"235", "u" =: oct"236"; +% +% Psili + Ojeia + something +% +ligtable oct"136": % smooth breathing and acute + "a" =: oct"240", "e" =: oct"241", "h" =: oct"242", + "o" =: oct"243", "w" =: oct"244", "i" =: oct"245", "u" =: oct"246"; +% +% +% Daseia + Perisp + Something +% +ligtable oct"134": % rough breathing and acute, + "a" =: oct"300", "h" =: oct"302", + "w" =: oct"304", "i" =: oct"305", "u" =: oct"306"; +% +% Psili + Perisp + something +% +ligtable oct"100": % smooth breathing and acute + "a" =: oct"310", "h" =: oct"312", + "w" =: oct"314", "i" =: oct"315", "u" =: oct"316"; +% +% Diairesis +% +ligtable diaer: "'" =: oct"043", "`" =: oct"044", "~" =: oct"040", + "i" =: oct"010", "u" =: oct"014"; +ligtable oct"043": "i" =: oct"011", "u" =: oct"015"; +ligtable oct"044": "i" =: oct"012", "u" =: oct"016"; +ligtable oct"040": "i" =: oct"013", "u" =: oct"017"; +% +% Ojeia + something +% +ligtable "'": diaer =: oct"043", "'" =: oct"035", + "a" =: oct"220", "e" =: oct"221", "h" =: oct"222", + "o" =: oct"223", "w" =: oct"224", "i" =: oct"225", "u" =: oct"226"; +% +% +% Perisp + something +% +ligtable "~": diaer =: oct"040", + "a" =: oct"207", "h" =: oct"217", "i" =: oct "237", "u" =: oct "247", + "w" =: oct"227"; +% +% Vareia + something +% +ligtable "`": diaer =: oct"044", "`" =: oct"034", + "a" =: oct"250", "e" =: oct"251", "h" =: oct"252", + "o" =: oct"253", "w" =: oct"254", "i" =: oct"255", "u" =: oct"256"; +% +% +ligtable "h": "|" =: oct"322"; +ligtable oct"202": "|" =: oct"342"; +ligtable oct"212": "|" =: oct"352"; +ligtable oct"222": "|" =: oct"303"; +ligtable oct"232": "|" =: oct"313"; +ligtable oct"242": "|" =: oct"323"; +ligtable oct"252": "|" =: oct"332"; +ligtable oct"302": "|" =: oct"343"; +ligtable oct"312": "|" =: oct"353"; +ligtable oct"217": "|" =: oct"333"; + +ligtable "w": "|" =: oct"324"; +ligtable oct"204": "|" =: oct"344"; +ligtable oct"214": "|" =: oct"354"; +ligtable oct"224": "|" =: oct"325"; +ligtable oct"234": "|" =: oct"335"; +ligtable oct"244": "|" =: oct"345"; +ligtable oct"254": "|" =: oct"334"; +ligtable oct"304": "|" =: oct"326"; +ligtable oct"314": "|" =: oct"336"; +ligtable oct"227": "|" =: oct"355"; + +ligtable "a": "|" =: oct"320"; +ligtable oct"200": "|" =: oct"340"; +ligtable oct"210": "|" =: oct"350"; +ligtable oct"220": "|" =: oct"301"; +ligtable oct"230": "|" =: oct"311"; +ligtable oct"240": "|" =: oct"321"; +ligtable oct"250": "|" =: oct"330"; +ligtable oct"300": "|" =: oct"341"; +ligtable oct"310": "|" =: oct"351"; +ligtable oct"207": "|" =: oct"331"; + diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdlower.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdlower.mf new file mode 100644 index 00000000000..a3cca3604ef --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdlower.mf @@ -0,0 +1,1383 @@ +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% File : kdlower.mf +% +% Lower Case Greek Letters KD PAckage +% +% ====================================================================== +% Lowercase 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"200",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase alpha with smooth breathing"; +beginchar(oct"210",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; +% +cmchar "Lowercase alpha with acute"; +beginchar(oct"220",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; +% +cmchar "Lowercase alpha with rough breathing and acute"; +beginchar(oct"230",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; +% +cmchar "Lowercase alpha with smooth breathing and acute"; +beginchar(oct"240",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; +% +cmchar "Lowercase alpha with rough breathing and grave"; +beginchar(oct"260",width#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)<; endchar; +% +cmchar "Lowercase alpha with smooth breathing and grave"; +beginchar(oct"270",width#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)>; endchar; +% +cmchar "Lowercase alpha with circumflex"; +beginchar(oct"207",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; +% +cmchar "Lowercase alpha with grave"; +beginchar(oct"250",width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; +% + +cmchar "Lowercase alpha with rough breathing and circumflex"; +beginchar(oct"300",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)<; endchar; + +cmchar "Lowercase alpha with smooth breathing and circumflex"; +beginchar(oct"310",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)>; endchar; +% +cmchar "Lowercase alpha with iota subscript"; +beginchar(oct"320",width#,height#,iota_dp#); +this_letter; iota_sub(pos_stem); endchar; +% +cmchar "Lowercase alpha with grave and iota subscript"; +beginchar(oct"330",width#,acc_ht#,iota_dp#); +this_letter; grave(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with rough breathing and iota subscript"; +beginchar(oct"340",width#,acc_ht#,iota_dp#); +this_letter; spirit(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with smooth breathing and iota subscript"; +beginchar(oct"350",width#,acc_ht#,iota_dp#); +this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with acute and iota subscript"; +beginchar(oct"301",width#,acc_ht#,iota_dp#); +this_letter; acute(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with rough breathing, acute and iota subscript"; +beginchar(oct"311",width#,acc_ht#,iota_dp#); +this_letter; spirit_acute(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with smooth breathing and acute and iota subscript"; +beginchar(oct"321",width#,acc_ht#,iota_dp#); +this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with rough breathing, grave and iota subscript"; +beginchar(oct"360",width#,acc_ht#,iota_dp#); +this_letter; spirit_grave(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with smooth breathing and grave and iota subscript"; +beginchar(oct"361",width#,acc_ht#,iota_dp#); +this_letter; spirit_grave(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with circumflex and iota subscript"; +beginchar(oct"331",width#,circ_ht#,iota_dp#); +this_letter; circumflex(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with rough breathing, circumflex and iota subscript"; +beginchar(oct"341",width#,acc_ht#,iota_dp#); +this_letter; spirit_circumflex(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with smooth breathing, circumflex and iota subscript"; +beginchar(oct"351",width#,acc_ht#,iota_dp#); +this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); endchar; + + +picture pic.iota; +picture savedpicture; +% +% ====================================================================== +% lowercase beta [KJD 19.02.91] +% ====================================================================== +% +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); %bottom + 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; +% +% ====================================================================== +% lowercase 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; if monowidth: y3=0 else: y3-.5stem=vround(-.8d) fi; + 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); %hook and cusp + 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; +% +% ====================================================================== +% Lowercase Epsilon [KJD 19.02.91] +% ====================================================================== +% +def width = 7.75u 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(vstem,90); % * pos2(.75vstem,90) + x2=.5w; top y2r=x_height+o; %top point + pos7(vstem,630); x2=x7; bot y7r=-o; %bottom point + rt x1r=hround(w-.75u); bot y1l=.3[bot y2l,bar_height];%top end + % * rt x1r=w; + z1'=(x1r,y1l+.5(flare-currentbreadth)); %approximation to z1 + numeric slope; slope=angle((z2-z1')yscaled 2); + pos1(flare,slope-90); % * pos1(.5flare,slope-90); + 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"201",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase epsilon with smooth breathing"; +beginchar(oct"211",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase epsilon with acute"; +beginchar(oct"221",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase epsilon with rough breathing and acute"; +beginchar(oct"231",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase epsilon with smooth breathing and acute"; +beginchar(oct"241",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase epsilon with rough breathing and grave"; +beginchar(oct"261",width#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)<; endchar; + +cmchar "Lowercase epsilon with smooth breathing and grave"; +beginchar(oct"271",width#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)>; endchar; + +cmchar "Lowercase epsilon with grave"; +beginchar(oct"251",width#,acc_ht#,0); +this_letter; grave(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"202",width#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing"; +beginchar(oct"212",width#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase eta with acute"; +beginchar(oct"222",width#,acc_ht#,desc_depth#); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase eta with rough breathing and acute"; +beginchar(oct"232",width#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing and acute"; +beginchar(oct"242",width#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)>; endchar; +% +cmchar "Lowercase eta with rough breathing and grave"; +beginchar(oct"262",width#,acc_ht#,desc_depth#); +this_letter; spirit_grave(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing and grave"; +beginchar(oct"272",width#,acc_ht#,desc_depth#); +this_letter; spirit_grave(x_baryctr)>; endchar; +% +cmchar "Lowercase eta with circumflex"; +beginchar(oct"217",width#,circ_ht#,desc_depth#); +this_letter; circumflex(x_baryctr); endchar; +% +cmchar "Lowercase eta with grave"; +beginchar(oct"252",width#,acc_ht#,desc_depth#); +this_letter; grave(x_baryctr); endchar; +% +cmchar "Lowercase eta with rough breathing and circumflex"; +beginchar(oct"302",width#,Circ_ht#,desc_depth#); +this_letter; spirit_circumflex(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing and circumflex"; +beginchar(oct"312",width#,Circ_ht#,desc_depth#); +this_letter; spirit_circumflex(x_baryctr)>; endchar; +% +cmchar "Lowercase eta with grave and iota subscript"; +beginchar(oct"332",width#,acc_ht#,desc_depth#); +this_letter; grave(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with rough breathing and iota subscript"; +beginchar(oct"342",width#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with smooth breathing and iota subscript"; +beginchar(oct"352",width#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with acute and iota subscript"; +beginchar(oct"303",width#,acc_ht#,desc_depth#); +this_letter; acute(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with rough breathing, acute and iota subscript"; +beginchar(oct"313",width#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with smooth breathing and acute and iota subscript"; +beginchar(oct"323",width#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with rough breathing, grave and iota subscript"; +beginchar(oct"362",width#,acc_ht#,desc_depth#); +this_letter; spirit_grave(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with smooth breathing and grave and iota subscript"; +beginchar(oct"363",width#,acc_ht#,desc_depth#); +this_letter; spirit_grave(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with circumflex and iota subscript"; +beginchar(oct"333",width#,circ_ht#,desc_depth#); +this_letter; circumflex(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with rough breathing, circumflex and iota subscript"; +beginchar(oct"343",width#,Circ_ht#,desc_depth#); +this_letter; spirit_circumflex(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with smooth breathing, circumflex and iota subscript"; +beginchar(oct"353",width#,Circ_ht#,desc_depth#); +this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with iota subscript"; +beginchar(oct"322",width#,x_height#,desc_depth#); +this_letter; iota_sub(pos_stem); 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"205",width#,acc_ht#,0); +this_letter; spirit(x_baryctr if serifs: +.25u fi)<; endchar; +% +cmchar "Lowercase iota with smooth breathing"; +beginchar(oct"215",width#,acc_ht#,0); +this_letter; spirit(x_baryctr if serifs: -.25u fi)>; endchar; +% +cmchar "Lowercase iota with acute"; +beginchar(oct"225",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; +% +cmchar "Lowercase iota with rough breathing and acute"; +beginchar(oct"235",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; +% +cmchar "Lowercase iota with smooth breathing and acute"; +beginchar(oct"245",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; +% +cmchar "Lowercase iota with rough breathing and grave"; +beginchar(oct"265",width#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)<; endchar; +% +cmchar "Lowercase iota with smooth breathing and grave"; +beginchar(oct"275",width#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)>; endchar; +% +cmchar "Lowercase iota with circumflex"; +beginchar(oct"237",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; +% +cmchar "Lowercase iota with grave"; +beginchar(oct"255",width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; +% +cmchar "Lowercase iota with rough breathing and circumflex"; +beginchar(oct"305",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)<; endchar; + +cmchar "Lowercase iota with smooth breathing and circumflex"; +beginchar(oct"315",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)>; endchar; + +cmchar "Lowercase iota with diaeresis"; +beginchar(oct"010",width#,circ_ht#,0); +this_letter; diaeresis(x_baryctr); endchar; + +cmchar "Lowercase iota with diaeresis and grave"; +beginchar(oct"012",width#,acc_ht#,0); +this_letter; diaeresis_grave(x_baryctr); endchar; + +cmchar "Lowercase iota with diaeresis and acute"; +beginchar(oct"011",width#,acc_ht#,0); +this_letter; diaeresis_acute(x_baryctr); endchar; + +cmchar "Lowercase iota with diaeresis and circumflex"; +beginchar(oct"013",width#,Circ_ht#,0); +this_letter; diaeresis_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"203",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; +% +cmchar "Lowercase omicron with smooth breathing"; +beginchar(oct"213",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; +% +cmchar "Lowercase omicron with acute"; +beginchar(oct"223",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; +% +cmchar "Lowercase omicron with rough breathing and acute"; +beginchar(oct"233",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; +% +cmchar "Lowercase omicron with smooth breathing and acute"; +beginchar(oct"243",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; +% +cmchar "Lowercase omicron with rough breathing and grave"; +beginchar(oct"263",width#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)<; endchar; +% +cmchar "Lowercase omicron with smooth breathing and grave"; +beginchar(oct"273",width#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)>; endchar; +% +cmchar "Lowercase omicron with grave"; +beginchar(oct"253",width#,acc_ht#,0); +this_letter; grave(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-.7stem=-oo; % left stem + numeric slope; slope=angle((z5-z6)xscaled2); pos6(1.2stem,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; +% + +cmchar "Lowercase rho with rough breathing"; +beginchar(oct"346",width#,acc_ht#,depth#); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase rho with smooth breathing"; +beginchar(oct"356",width#,acc_ht#,depth#); +this_letter; spirit(x_baryctr)>; 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"206",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; +% +cmchar "Lowercase upsilon with smooth breathing"; +beginchar(oct"216",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; +% +cmchar "Lowercase upsilon with acute"; +beginchar(oct"226",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; +% +cmchar "Lowercase upsilon with rough breathing and acute"; +beginchar(oct"236",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; +% +cmchar "Lowercase upsilon with smooth breathing and acute"; +beginchar(oct"246",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; +% +cmchar "Lowercase upsilon with rough breathing and grave"; +beginchar(oct"266",width#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)<; endchar; +% +cmchar "Lowercase upsilon with smooth breathing and grave"; +beginchar(oct"276",width#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)>; endchar; +% +cmchar "Lowercase upsilon with circumflex"; +beginchar(oct"247",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; +% +cmchar "Lowercase upsilon with grave"; +beginchar(oct"256",width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; +% +cmchar "Lowercase upsilon with rough breathing and circumflex"; +beginchar(oct"306",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)<; endchar; +% +cmchar "Lowercase upsilon with smooth breathing and circumflex"; +beginchar(oct"316",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)>; endchar; +% +cmchar "Lowercase upsilon with diaeresis"; +beginchar(oct"014",width#,circ_ht#,0); +this_letter; diaeresis(x_baryctr); endchar; + +cmchar "Lowercase upsilon with diaeresis and grave"; +beginchar(oct"016",width#,acc_ht#,0); +this_letter; diaeresis_grave(x_baryctr); endchar; + +cmchar "Lowercase upsilon with diaeresis and acute"; +beginchar(oct"015",width#,acc_ht#,0); +this_letter; diaeresis_acute(x_baryctr); endchar; + +cmchar "Lowercase upsilon with diaeresis and circumflex"; +beginchar(oct"017",width#,Circ_ht#,0); +this_letter; diaeresis_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; +% +% ====================================================================== +% HI +% ====================================================================== +% +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"204",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; +% +cmchar "Lowercase omega with smooth breathing"; +beginchar(oct"214",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; +% +cmchar "Lowercase omega with acute"; +beginchar(oct"224",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; +% +cmchar "Lowercase omega with rough breathing and acute"; +beginchar(oct"234",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; +% +cmchar "Lowercase omega with smooth breathing and acute"; +beginchar(oct"244",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; +% +cmchar "Lowercase omega with rough breathing and grave"; +beginchar(oct"264",width#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)<; endchar; +% +cmchar "Lowercase omega with smooth breathing and grave"; +beginchar(oct"274",width#,acc_ht#,0); +this_letter; spirit_grave(x_baryctr)>; endchar; +% +cmchar "Lowercase omega with circumflex"; +beginchar(oct"227",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; +% +% +cmchar "Lowercase omega with grave"; +beginchar(oct"254",width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; +% +cmchar "Lowercase omega with rough breathing and circumflex"; +beginchar(oct"304",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)<; endchar; + +cmchar "Lowercase omega with smooth breathing and circumflex"; +beginchar(oct"314",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)>; endchar; +% +cmchar "Lowercase omega with grave and iota subscript"; +beginchar(oct"334",width#,acc_ht#,iota_dp#); +this_letter; grave(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with rough breathing and iota subscript"; +beginchar(oct"344",width#,acc_ht#,iota_dp#); +this_letter; spirit(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with smooth breathing and iota subscript"; +beginchar(oct"354",width#,acc_ht#,iota_dp#); +this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with acute and iota subscript"; +beginchar(oct"325",width#,acc_ht#,iota_dp#); +this_letter; acute(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with rough breathing, acute and iota subscript"; +beginchar(oct"335",width#,acc_ht#,iota_dp#); +this_letter; spirit_acute(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with smooth breathing and acute and iota subscript"; +beginchar(oct"345",width#,acc_ht#,iota_dp#); +this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with rough breathing, grave and iota subscript"; +beginchar(oct"364",width#,acc_ht#,iota_dp#); +this_letter; spirit_grave(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with smooth breathing and grave and iota subscript"; +beginchar(oct"365",width#,acc_ht#,iota_dp#); +this_letter; spirit_grave(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with circumflex and iota subscript"; +beginchar(oct"355",width#,circ_ht#,iota_dp#); +this_letter; circumflex(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with rough breathing, circumflex and iota subscript"; +beginchar(oct"326",width#,acc_ht#,iota_dp#); +this_letter; spirit_circumflex(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with smooth breathing, circumflex and iota subscript"; +beginchar(oct"336",width#,acc_ht#,iota_dp#); +this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with iota subscript"; +beginchar(oct"324",width#,height#,iota_dp#); +this_letter; iota_sub(pos_stem); endchar; + +picture pic.iota; +picture savedpicture; + +endinput; +% ====================================================================== + diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdpunct.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdpunct.mf new file mode 100644 index 00000000000..faba0c168c5 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdpunct.mf @@ -0,0 +1,336 @@ + +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +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; + + +cmchar "Left bracket"; +numeric wd#; wd#=max(5u#,4.5u#+.5if hefty:stem# else:rule_thickness# fi); +beginchar("[",wd#,body_height#,paren_depth#); +italcorr body_height#*slant; +adjust_fit(0,0); +numeric top_thickness,side_thickness; +if hefty: top_thickness=vair; + side_thickness=max(crisp.breadth,stem-2stem_corr); +else: top_thickness=side_thickness=rule_thickness; fi; +pickup crisp.nib; pos1(side_thickness,0); pos2(side_thickness,0); +top y1=h; bot y2=-d; lft x1l=lft x2l=hround(2.5u-.5side_thickness)-1-eps; +filldraw stroke z1e--z2e; % stem +pos3(top_thickness,90); pos4(top_thickness,90); +pos5(top_thickness,90); pos6(top_thickness,90); +x3=x5=x1l; rt x4=rt x6=ceiling(w-.4u)+eps; y3r=y4r=y1; y5l=y6l=y2; +filldraw stroke z3e--z4e; % upper bar +filldraw stroke z5e--z6e; % lower bar +penlabels(1,2,3,4,5,6); endchar; + +cmchar "Right bracket"; +numeric wd#; wd#=max(5u#,4.5u#+.5if hefty:stem# else:rule_thickness# fi); +beginchar("]",wd#,body_height#,paren_depth#); +italcorr body_height#*slant-2u#+.5if hefty:stem# else:rule_thickness# fi; +adjust_fit(0,0); +numeric top_thickness,side_thickness; +if hefty: top_thickness=vair; + side_thickness=max(crisp.breadth,stem-2stem_corr); +else: top_thickness=side_thickness=rule_thickness; fi; +pickup crisp.nib; pos1(side_thickness,0); pos2(side_thickness,0); +top y1=h; bot y2=-d; rt x1r=rt x2r=hround(w-2.5u+.5side_thickness)+1+eps; +filldraw stroke z1e--z2e; % stem +pos3(top_thickness,90); pos4(top_thickness,90); +pos5(top_thickness,90); pos6(top_thickness,90); +x3=x5=x1r; lft x4=lft x6=floor .4u-eps; y3r=y4r=y1; y5l=y6l=y2; +filldraw stroke z3e--z4e; % upper bar +filldraw stroke z5e--z6e; % lower bar +penlabels(1,2,3,4,5,6); endchar; + +cmchar "Reverse apostrophe"; +beginchar(oct"034",5u#,asc_height#,0); +italcorr asc_height#*slant+.5dot_size#-2u#; +adjust_fit(0,0); +x1-.5dot_size=hround(.5w-.5dot_size); y1+.5dot_size=h-comma_depth; +if monospace: ammoc(1,a,dot_size,.28u,vround 1.5comma_depth); % large ammoc +else: ammoc(1,a,dot_size,.25u,comma_depth); fi % normal ammoc +penlabels(1); endchar; + +cmchar "Em dash"; +beginchar(oct"177",18u#,x_height#,0); +italcorr .61803x_height#*slant+.5u#; +adjust_fit(letter_fit#,letter_fit#); +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/kdgreek/kdsl10.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdsl10.mf new file mode 100644 index 00000000000..e5b0dc31230 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdsl10.mf @@ -0,0 +1,117 @@ +% +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% Computer Classic Greek Fonts. +% ----------------------------- +% Font: Slanted +% Dimn: 10pt +% ----------------------------- +% Load Bases +% +if unknown cmbase: input cmbase fi +if unknown kdbase: input kdbase fi + +font_identifier:="KDSL"; 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; +one_accent:=false; +% +generate kdgreek; diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdti10.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdti10.mf new file mode 100644 index 00000000000..96dc05ac54a --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdti10.mf @@ -0,0 +1,119 @@ +% +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% Computer Classic Greek Fonts. +% ----------------------------- +% Font: Italics +% Dimn: 10pt +% ----------------------------- +% Load Bases +% +if unknown cmbase: input cmbase fi +if unknown kdbase: input kdbase fi + +font_identifier:="KDTI"; 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 + +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; + +acc_ht#:=250/36pt#; +circ_ht#:=225/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=72/36pt#; +one_accent:=false; + +generate kdgreek % switch to the driver file + diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdtt10.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdtt10.mf new file mode 100644 index 00000000000..a66e2b5d6c7 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdtt10.mf @@ -0,0 +1,122 @@ +% +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% Computer Classic Greek Fonts. +% ----------------------------- +% Font: Typewriter +% Dimn: 10pt +% Rev : 1.0a [EXP] +% ----------------------------- +% +% Load Bases +% +if unknown cmbase: input cmbase fi +if unknown kdbase: input kdbase fi + +font_identifier:="KDTT"; font_size 10pt#; + +u#:=21/36pt#; % unit width +width_adj#:=0pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=0pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=250/36pt#; % height of tallest characters +asc_height#:=230/36pt#; % height of lowercase ascenders %was 220 +cap_height#:=230/36pt#; % height of caps %was 220 +fig_height#:=230/36pt#; % height of numerals %was 220 +x_height#:=155/36pt#; % height of lowercase without ascenders +math_axis#:=110/36pt#; % axis of symmetry for math symbols +bar_height#:=79/36pt#; % height of crossbar in lowercase e +comma_depth#:=50/36pt#; % depth of comma below baseline +desc_depth#:=80/36pt#; % depth of lowercase descenders + +crisp#:=22/36pt#; % diameter of serif corners +tiny#:=22/36pt#; % diameter of rounded corners +fine#:=21/36pt#; % diameter of sharply rounded corners +thin_join#:=21/36pt#; % width of extrafine details +hair#:=24/36pt#; % lowercase hairline breadth +stem#:=24/36pt#; % lowercase stem breadth +curve#:=24/36pt#; % lowercase curve breadth +ess#:=22/36pt#; % breadth in middle of lowercase s +flare#:=24/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=36/36pt#; % diameter of dots +cap_hair#:=25/36pt#; % uppercase hairline breadth +cap_stem#:=25/36pt#; % uppercase stem breadth +cap_curve#:=25/36pt#; % uppercase curve breadth +cap_ess#:=25/36pt#; % breadth in middle of uppercase s +rule_thickness#:=25/36pt#; % thickness of lines in math symbols + +dish#:=0pt#; % amount erased at top or bottom of serifs +bracket#:=0pt#; % vertical distance from serif base to tangent +jut#:=34/36pt#; % protrusion of lowercase serifs +cap_jut#:=34/36pt#; % protrusion of uppercase serifs +beak_jut#:=0pt#; % horizontal protrusion of beak serifs +beak#:=34/36pt#; % vertical protrusion of beak serifs +vair#:=22/36pt#; % vertical diameter of hairlines +notch_cut#:=25/36pt#; % maximum breadth above or below notches +bar#:=22/36pt#; % lowercase bar thickness +slab#:=22/36pt#; % serif and arm thickness +cap_bar#:=22/36pt#; % uppercase bar thickness +cap_band#:=22/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=25/36pt#; % max breadth above/below uppercase notches +serif_drop#:=0pt#; % vertical drop of sloped serifs +stem_corr#:=0pt#; % for small refinements of stem breadth +vair_corr#:=0pt#; % for small refinements of hairline height +apex_corr#:=10/36pt#; % 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:=0.81; % factor applied to weights of heavy characters +math_spread:=-1; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=0; % extra openness inside bowls +beak_darkness:=0; % fraction of triangle inside beak serifs +ligs:=0; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=true; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=true; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=true; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=true; % should stems, etc. be straight? +monowidth:=true; % are stem and hair more or less the same width? +italics:=false; + +% KD Base Definitions + +acc_ht#:=230/36pt#; +circ_ht#:=230/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=64/36pt#; +one_accent:=false; + +generate kdgreek; diff --git a/Master/texmf-dist/fonts/source/public/kdgreek/kdupper.mf b/Master/texmf-dist/fonts/source/public/kdgreek/kdupper.mf new file mode 100644 index 00000000000..2e47c90737b --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/kdgreek/kdupper.mf @@ -0,0 +1,645 @@ +% Computer Classic Greek Font +% ====================================================================== +% KD Classical Greek Family of Fonts +% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +% +% A set of MF source fonts for use with TeX version 3.0 or higher +% accompanied with macros and hyphenation tables to facilitate +% the typesetting of greek texts +% +% This piece of work is partially based on original work of +% Sylvio Levi (design of an excellent set of fonts) +% and Yianni Haralambous (ideas about macros other fonts). +% +% This file is part of the greektex package and abides to +% copyright laws of the GNU general public software licence +% +% You are allowed to use or modify this file as long as the +% original authors are clearly mentioned. It is ILLEGAL to sell +% any part of this work or work derived from it. You may not +% charge for this work except to cover for reasonable media +% expensess. +% +% K J Dryllerakis (C) 1991-1992 +% +% ====================================================================== +% +% Upper Case Letter driver +% This file is a rearrangement of code in Computer Modern's romanu.mf +% + +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; + |