diff options
Diffstat (limited to 'Master/texmf-dist/fonts/source/public/cmbright')
103 files changed, 19996 insertions, 0 deletions
diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ams10pt.mf b/Master/texmf-dist/fonts/source/public/cmbright/ams10pt.mf new file mode 100644 index 00000000000..85ab8312227 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ams10pt.mf @@ -0,0 +1,70 @@ +% Parameters for ams fonts, 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#:=95/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#:=9/36pt#; % lowercase hairline breadth +stem#:=24/36pt#; % lowercase stem breadth +curve#:=29/36pt#; % lowercase curve breadth +ess#:=27/36pt#; % breadth in middle of lowercase s +flare#:=32/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=38/36pt#; % diameter of dots +cap_hair#:=11/36pt#; % uppercase hairline breadth +cap_stem#:=30/36pt#; % uppercase stem breadth +cap_curve#:=35/36pt#; % uppercase curve breadth +cap_ess#:=33/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#:=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 + +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:=true; % should math-mode spacing be used? + +% end of ams10pt.mf diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ams8pt.mf b/Master/texmf-dist/fonts/source/public/cmbright/ams8pt.mf new file mode 100644 index 00000000000..7e193a620b5 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ams8pt.mf @@ -0,0 +1,70 @@ +% Parameters for ams fonts, 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#:=76/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#:=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#:=9/36pt#; % lowercase hairline breadth +stem#:=21.5/36pt#; % lowercase stem breadth +curve#:=25/36pt#; % lowercase curve breadth +ess#:=23/36pt#; % breadth in middle of lowercase s +flare#:=26.5/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#:=25.5/36pt#; % uppercase stem breadth +cap_curve#:=29/36pt#; % uppercase curve breadth +cap_ess#:=26/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#:=24/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#:=8/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 + +fudge:=1; % factor applied to weights of heavy characters +math_spread:=.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:=true; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=true; % should math-mode spacing be used? + +% end of ams8pt.mf diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ams9pt.mf b/Master/texmf-dist/fonts/source/public/cmbright/ams9pt.mf new file mode 100644 index 00000000000..c40b84b710d --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ams9pt.mf @@ -0,0 +1,70 @@ +% Parameters for ams fonts, 9pt +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#:=85.5/36pt#; % axis of symmetry for math symbols +bar_height#:=78.3/36pt#; % height of crossbar in lowercase e +comma_depth#:=63/36pt#; % depth of comma below baseline +desc_depth#:=63/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#:=9/36pt#; % lowercase hairline breadth +stem#:=23/36pt#; % lowercase stem breadth +curve#:=27/36pt#; % lowercase curve breadth +ess#:=25/36pt#; % breadth in middle of lowercase s +flare#:=29/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=35/36pt#; % diameter of dots +cap_hair#:=10/36pt#; % uppercase hairline breadth +cap_stem#:=28/36pt#; % uppercase stem breadth +cap_curve#:=32/36pt#; % uppercase curve breadth +cap_ess#:=30/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#:=27/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#:=8/36pt#; % vertical diameter of hairlines +notch_cut#:=9pt#; % maximum breadth above or below notches +bar#:=10/36pt#; % lowercase bar thickness +slab#:=10/36pt#; % serif and arm thickness +cap_bar#:=10/36pt#; % uppercase bar thickness +cap_band#:=10/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 + +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:=true; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=true; % should math-mode spacing be used? + +% end of ams9pt.mf diff --git a/Master/texmf-dist/fonts/source/public/cmbright/baccent.mf b/Master/texmf-dist/fonts/source/public/cmbright/baccent.mf new file mode 100644 index 00000000000..81e54a3e2b0 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/baccent.mf @@ -0,0 +1,213 @@ +% This file contains accents common to text roman and italic fonts. +% Modified by WaS for the CM Bright fonts [1995/10/15 v0.998]. +% Character codes \0022--\0030, \0040, \0136--\0137, \0175--\0177 are generated. +% (Actually the accents in positions \0040, \0137, and \0175 are not generated +% unless |ligs>0|, since other symbols are substituted +% for those accents in non-ligature fonts.) + +cmchar "Grave accent"; +beginchar(oct"022",9u#,min(asc_height#,2x_height#),0); +adjust_fit(0,0); +if serifs: pickup crisp.nib; x1-.5stem=hround 2u; x2=2/3[x1,w-x1]; + y1+.5stem=h+eps; y2=max(2/3[h,x_height],x_height+o+hair); + numeric theta; theta=angle(z2-z1)+90; + pos1(stem,theta); pos2(hair,theta); + filldraw circ_stroke z1e--z2e; % diagonal +else: pickup fine.nib; pos1(stem,0); pos2(vair,0); + lft x1l=hround 1.5u; rt x2r=hround(.5w+.25u+.5vair); + top y1=h; bot y2=vround 2/3[h,x_height]; + filldraw stroke z1e--z2e; fi % diagonal +penlabels(1,2); endchar; + +cmchar "Acute accent"; +beginchar(oct"023",9u#,min(asc_height#,2x_height#),0); +italcorr h#*slant-if serifs: 1.5 fi u#; +adjust_fit(0,0); +if serifs: pickup crisp.nib; x1+.5stem=hround(w-2u); x2=2/3[x1,w-x1]; + y1+.5stem=h+eps; y2=max(2/3[h,x_height],x_height+o+hair); + numeric theta; theta=angle(z2-z1)+90; + pos1(stem,theta); pos2(hair,theta); + filldraw circ_stroke z1e--z2e; % diagonal +else: pickup fine.nib; pos1(stem,0); pos2(vair,0); + rt x1r=hround(w-1.5u); lft x2l=hround(.5w-.25u-.5vair); + top y1=h; bot y2=vround 2/3[h,x_height]; + filldraw stroke z1e--z2e; fi % diagonal +penlabels(1,2); endchar; + +cmchar "Hachek (check) accent"; +beginchar(oct"024",9u#,.75[x_height#,min(asc_height#,2x_height#)],0); +h':=vround min(asc_height,2x_height); % height of circumflex being inverted +if serifs: italcorr h#*slant+.5hair#-1.75u#; + adjust_fit(0,0); + pickup crisp.nib; pos2'(.5[vair,curve],90); top y2'r=h; + pos2(.5[vair,curve],90); x2=.5w; + x1=w-x3=good.x 2.25u; top y1=top y3=h; y1-y2=.5(y2'-x_height); + pos1(hair,angle(z2-z1)+90); pos3(hair,angle(z3-z2)+90); + filldraw stroke z1e--z2e--z3e; % diagonals +else: italcorr h#*slant-.5stem#+.5vair#-.75u#; + adjust_fit(0,0); + pickup fine.nib; pos1(vair,0); pos3(vair,0); x1=w-x3; + pos2(stem,0); bot y2=vround(1/12[x_height,h']+o); x2=.5w; + top y1=top y3=h+o; lft x1l=hround(rt x2r-3.25u-.5vair); + z0=whatever[z1r,z2r]=whatever[z2l,z3l]; + y4l=y4r=y2; x4l=good.x .2[x2l,x2]; x4r=w-x4l; + filldraw z4l--z1l--z1r--z0--z3l--z3r--z4r--cycle; fi % diagonals +penlabels(0,1,2,3,4); endchar; + +cmchar "Breve accent"; +beginchar(oct"025",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 +penlabels(1,2,3); endchar; + +cmchar "Macron (bar) accent"; +numeric macron_breadth#; macron_breadth#=.2[vair#,stem#]; +beginchar(oct"026",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 +penlabels(1,2); endchar; + +cmchar "Scandinavian circle accent"; +beginchar(oct"027",13u#+4/3(asc_height#-x_height#)*slant,asc_height#,0); +adjust_fit(cap_serif_fit#,cap_serif_fit#); +numeric circ_hair,circ_vair; +circ_hair=hround min(hair,u+.5); circ_vair=vround min(vair,(h-x_height)/6+.5); +penpos1(circ_vair,90); penpos3(circ_vair,-90); +penpos2(circ_hair,180); penpos4(circ_hair,0); +x2r=hround(.5w-1.5u-.5circ_hair); +x4r=w-x2r; x1=x3=.5w; y1r=h+apex_o; y2=y4=.5[y1,y3]; +y3r=vround(1/3[x_height,h]+apex_o); +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 "Cedilla accent"; +beginchar(oct"030",8u#,0,.875desc_depth#); +adjust_fit(0,0); +x1=.5w+.5u; +if serifs: pickup crisp.nib; pos1(stem,0); pos2(stem,0); + pos3(vair,90); pos4(stem,0); pos5(vair,-90); + x1=x2; z3l=z2l; x4=x2+1.5u; x5=x3-1.5u; + bot y1=-o; bot y2=-vround 2/7d-o; y4=.5[y3,y5]; bot y5=-d-o; + filldraw stroke z1e--z2e; % stem + filldraw stroke z3e{right}...z4e{down}...{left}z5e; % hook +else: pickup fine.nib; pos1(vair,0); top y1=-o-2; + pos2(.5[vair,stem],0); bot y2=-d-o; x2=x1-1.25u; + filldraw stroke z1e--z2e; fi % diagonal +penlabels(1,2,3,4,5); endchar; + +iff ligs>0: cmchar "Cross for Polish l and L"; +if unknown l_width#: + l_width#:=5u#+2serif_fit#; fi % nominal width of `l' +if unknown L_stem#: + L_stem#:=cap_serif_fit#+max(2u#+.5cap_stem#,3u#); fi % center of `L' stem +ligtable oct"040": "l" kern -l_width#-2letter_fit#, + "L" kern -.5l_width#-L_stem#-2letter_fit#; +beginchar(oct"040",l_width#,x_height#,0); +adjust_fit(stem_shift#,-stem_shift#); +pickup crisp.nib; x2-x1=max(4u,2.8u+stem); .5[x1,x2]=.5w; +y1-.5bar=.2[bar_height,x_height]; y2+.5bar=.8[bar_height,x_height]; +numeric theta; theta=angle(z2-z1)+90; +pos1(bar,theta); pos2(bar,theta); +filldraw stroke z1e--z2e; % diagonal +penlabels(1,2); endchar; + +cmchar "Circumflex (hat) accent"; +beginchar(oct"136",9u#,min(asc_height#,2x_height#),0); +if serifs: italcorr .5[x_height#,h#]*slant+.5hair#-1.75u#; + adjust_fit(0,0); + pickup crisp.nib; pos2(.5[vair,curve],90); top y2r=h; x2=.5w; + x1=w-x3=good.x 2.25u; y1=y3=.5[x_height,y2]; + pos1(hair,angle(z2-z1)+90); pos3(hair,angle(z3-z2)+90); + filldraw stroke z1e--z2e--z3e; % diagonals +else: italcorr 2/3[x_height#,h#]*slant-.5stem#+.5vair#-.75u#; + adjust_fit(0,0); + pickup fine.nib; pos1(vair,0); pos3(vair,0); x1=w-x3; + pos2(stem,0); top y2=h; x2=.5w; bot y1=bot y3=vround 2/3[h,x_height]-eps; + lft x1l=hround(rt x2r-3.25u-.5vair); % same slope as in the acute accent + z0=whatever[z1r,z2r]=whatever[z2l,z3l]; + y4l=y4r=y2; x4l=good.x .2[x2l,x2]; x4r=w-x4l; + filldraw z4l--z1l--z1r--z0--z3l--z3r--z4r--cycle; fi % diagonals +penlabels(0,1,2,3,4); endchar; + +iff ligs>0: cmchar "Dot accent"; % (WaS) +% numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); +dot_diam#:=min(dot_size#,stem'/hppp); +beginchar(oct"137",5u#,min(asc_height#,1.3x_height#+.5dot_diam#),0); +% define_whole_blacker_pixels(dot_diam); +dot_diam:=min(stem',dot_size); +italcorr h#*slant+.5dot_diam#-2u#; +adjust_fit(0,0); +pickup tiny.nib; pos1(dot_diam,0); pos2(dot_diam,90); +x1=x2=.5w; top y2r=h+1; +if bot y2l<x_height+o+slab: y2l:=min(y2r-eps,x_height+o+slab+.5tiny); fi +y1=.5[y2l,y2r]; dot(1,2); % dot +penlabels(1,2); endchar; + +iff ligs>0: cmchar "Long Hungarian umlaut accent"; +beginchar(oct"175",9u#,min(asc_height#,2x_height#),0); +italcorr h#*slant-u#; +adjust_fit(0,0); +x3-x1=x4-x2=hround 3u; y3=y1; y4=y2; +if serifs: pickup crisp.nib; x3+.5stem=hround(w-1.5u); x2=2.5u; + y1+.5stem=h; y2=max(2/3[h,x_height],x_height+o+hair); + numeric theta; theta=angle(z2-z1)+90; + pos1(stem,theta); pos2(hair,theta); + pos3(stem,theta); pos4(hair,theta); + filldraw circ_stroke z1e--z2e; % left diagonal + filldraw circ_stroke z3e--z4e; % right diagonal +else: pickup fine.nib; pos1(stem,0); pos2(vair,0); + pos3(stem,0); pos4(vair,0); + rt x3r=hround(w-1.5u); lft x4l=hround(.5w+u-.5vair); + top y1=h; bot y2=vround 2/3[h,x_height]; + filldraw stroke z1e--z2e; % left diagonal + filldraw stroke z3e--z4e; fi % right diagonal +penlabels(1,2,3,4); endchar; + +cmchar "Tilde (squiggle) accent"; +beginchar(oct"176",9u#,min(asc_height#,10/7x_height#+.5dot_size#),0); +italcorr h#*slant-u#; +adjust_fit(0,0); +if serifs: numeric theta; theta=angle(1/6(6u-vair),1/4(h-x_height)); + pickup crisp.nib; numeric mid_width; mid_width=.4[vair,stem]; + pos1(vair,theta+90); pos2(vair,theta+90); + pos3(vair,theta+90); pos4(vair,theta+90); + z2-z1=z4-z3=(mid_width-crisp)*dir theta; + lft x1r=w-rt x4l=hround 1.5u; top y4r=h; + bot y1l=vround(bot y1l+min(2/3[x_height,h],y3l-.25vair)-top y1r); + pair delta; ypart delta=3(y3l-y1l); delta=whatever*dir theta; + filldraw z1l..controls(z1l+delta)and(z3l-delta)..z3l..z4l + --z4r..controls(z4r-delta)and(z2r+delta)..z2r..z1r--cycle; % stroke +else: pickup fine.nib; pos1(vair,180); pos2(vair,90); + pos3(.5[vair,slab],90); pos4(vair,90); pos5(vair,180); + lft x1r=w-rt x5l=hround 1.5u; x2-x1=x3-x2=x4-x3=x5-x4; + bot y1=bot y4l=vround(.75[x_height,h]-vair); + top y2r=top y5=h; y3=.5[y2,y4]; + filldraw stroke z1e{up}...z2e{right}..z3e..{right}z4e...{up}z5e; fi % stroke +penlabels(1,2,3,4,5); endchar; + +cmchar "Umlaut (double dot) accent"; % (WaS) +dot_diam#:=min(dot_size#,stem'/hppp); +%beginchar(oct"177",9u#,min(asc_height#,10/7x_height#+.5dot_diam#),0); +beginchar(oct"177",9u#,min(asc_height#,1.3x_height#+.5dot_diam#),0); +dot_diam:=min(stem',hround(dot_size-2stem_corr)); +italcorr h#*slant+.5dot_diam#-2.25u#; +adjust_fit(0,0); +pickup tiny.nib; pos1(dot_diam,0); pos2(dot_diam,90); +x1=x2=2.75u; top y2r=h+1; +if bot y2l<x_height+o+slab: y2l:=min(y2r-eps,x_height+o+slab+.5tiny); fi +y1=.5[y2l,y2r]; dot(1,2); % left dot +pos3(dot_diam,0); penpos4(y2r-y2l,90); y3=y4=y1; x3=x4=w-x1; +dot(3,4); % right dot +penlabels(1,2,3,4); endchar; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/bgreeku.mf b/Master/texmf-dist/fonts/source/public/cmbright/bgreeku.mf new file mode 100644 index 00000000000..4659c3319a2 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/bgreeku.mf @@ -0,0 +1,257 @@ +% Computer Modern Greek caps, analogous to the uppercase Roman letters. +% changed for CM Bright [1995/10/01 v0.997 WaS] + +% Character codes \0000 through \0012 are generated, +% using plain \TeX's standard text font layout conventions. + +cmchar "Uppercase Greek Gamma"; +beginchar(oct"000",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: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,1.25cap_jut); fi % lower serif +math_fit(0,ic#-2.5u#); penlabels(1,2,3,4); endchar; + +cmchar "Uppercase Greek Delta"; +%beginchar(oct"001",15u#,cap_height#,0); +beginchar(oct"001",12u#,cap_height#,0);% (WaS) +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 Greek Theta"; +beginchar(oct"002",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 Greek Lambda"; +beginchar(oct"003",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 Greek Xi"; +beginchar(oct"004",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]; +if shaved_stem<crisp.breadth: shaved_stem:=crisp.breadth; fi +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 Greek Pi"; +beginchar(oct"005",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 + nodish_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 + nodish_serif(3,4,e,1/3,eps,f,1/3,cap_jut); % upper right serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,cap_jut); fi % lower right serif +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6); endchar; + +cmchar "Uppercase Greek Sigma"; +beginchar(oct"006",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-eps; 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 Greek Upsilon"; +beginchar(oct"007",14u#,cap_height#,0); +italcorr .8cap_height#*slant-.5u#; +adjust_fit(0,0); +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +lft x1l=lft x2l=hround(.5w-.5cap_stem); y1=.5h; bot y2=0; +filldraw stroke z1e--z2e; % stem +penpos3(.6cap_stem,0); penpos4(.75cap_curve,90); penpos5(cap_hair,180); +z3l=lft z1l; x5r=hround u; y5=bot .8h; x4=.61803[x3l,x5l]; y4r=h+o; +penpos5'(cap_hair,180); x5'=x5; y5'=h; +fill z3r{up}...z4r{left}...{down}diag_end(5'r,5r,1,1,5l,5'l){up} + ...{right}z4l...{down}z3l--cycle; % left arc +penpos6(.6cap_stem,0); penpos7(.75cap_curve,-90); penpos8(cap_hair,-180); +z6r=rt z1r; x8=w-x5; y8=y5; x7=w-x4; y7=y4; +penpos8'(cap_hair,-180); x8'=x8; y8'=h; +fill z6r{up}...z7r{right}...{down}diag_end(8'r,8r,1,1,8l,8'l){up} + ...{left}z7l...{down}z6l--cycle; % right arc +if serifs: dish_serif(2,1,a,1/3,1.25cap_jut,b,1/3,1.25cap_jut); fi % serif +math_fit(-.8cap_height#*slant-.5u#,ic#-2.5u#); +penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Uppercase Greek Phi"; +beginchar(oct"010",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-.5shaved_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 Greek Psi"; +beginchar(oct"011",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-.5shaved_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 Greek Omega"; +beginchar(oct"012",13u#,cap_height#,0); +italcorr .75cap_height#*slant-.5u#; +adjust_fit(0,0); +pickup tiny.nib; pos1(vair,90); pos2(cap_curve,180); +pos3(vair,180); pos4(cap_curve,0); pos5(vair,0); +x1=.5w; top y1r=h+o; lft x2r=hround u; y2=y4=2/3h; x4=w-x2; +rt x3l=hround(1/3(w+.5u)+.5hair); bot y3=bot y5=0; x5=w-x3; +filldraw stroke z3e{up}...{up}z2e + & pulled_super_arc.e(2,1)(.5superpull) + & pulled_super_arc.e(1,4)(.5superpull) + & z4e{down}...{down}z5e; % bowl +numeric arm_thickness; path p; p=z3{up}...{up}z2; +arm_thickness=Vround(if hefty:slab+2stem_corr else:.75[slab,cap_vstem] fi); +pickup crisp.nib; pos6(arm_thickness,-90); pos7(fudged.hair,-180); +bot y6r=0; x6=x3; lft x7r=hround .8u; y7=good.y(y6l+.5beak)+eps; +(x,y)=p intersectionpoint((0,y6l)--(w,y6l)); x6l:=x; +arm(6,7,a,.5beak_darkness,-1.2beak_jut); % left arm and beak +pos8(arm_thickness,-90); pos9(fudged.hair,0); +y8=y6; y9=y7; x8+x6=x9+x7=w; x8l:=w-x6l; +arm(8,9,b,.5beak_darkness,1.2beak_jut); % right arm and beak +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9); endchar; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/bitalms.mf b/Master/texmf-dist/fonts/source/public/cmbright/bitalms.mf new file mode 100644 index 00000000000..d53d62f7440 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/bitalms.mf @@ -0,0 +1,133 @@ +% This file contains miscellaneous symbols of math italic fonts. +% The character codes are \0100, \0140, and \0173--\0177. +% Changed for the CM Bright fonts [1995/10/18 v0.998 WaS]; +% changes are marked by (CMBR). + +cmchar "Partial differential sign"; +beginchar(oct"100",10u#,asc_height#,0); +italcorr .7asc_height#*slant+.5curve#-1.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,90); +pos3(side_thickness,0); pos4(bot_thickness,-90); +pos5(side_thickness,-180); pos6(vair,-270); +lft x5r=w-rt x3r=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; {{interim superness:=more_super; p=pulled_super_arc.l(3,4)(pull)}}; +numeric t; t=xpart(p intersectiontimes((x3r,y5)--(x4,y5))); +pos7(thin_join,0); 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 +pos1(hair,180); pos0(flare,180); +lft x0r=min(lft x2-eps,hround 1.2u); +y0=vround min(.85h-.5flare,.8h+.5flare)+o; +{{less_tense; bulb(2,1,0)}}; % arc and bulb +math_fit(-.3x_height#*slant+.5curve#-u#,ic#-u#); +penlabels(0,1,2,3,4,5,6,7); endchar; + +cmchar "Lowercase italic script l"; +beginchar(oct"140",4.5u#+max(1.5u#,stem#),asc_height#,0); +italcorr .8asc_height#*slant-u#; +adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib; +pos1(hair,-45); pos2(hair,0); pos3(vair,90); +pos4(stem,180); pos5(vair,270); pos6(hair,315); +lft x1l=hround(lft x1l-x1); rt x2r=hround(w-1.5u); x3=.5w; +lft x4r=hround .5u; x5=x3+.75u; x6=x1+w+1; +y1=y6=.125h; y2=.8h; top y3r=h+oo; y4=.5[y3,y5]; bot y5=-oo; +filldraw stroke z1e{10u,asc_height}...z2e{up}...pulled_arc.e(3,4) + & pulled_arc.e(4,5)...z6e{10u,asc_height}; % bowl and hook +math_fit(0,ic#); penlabels(1,2,3,4,5,6); endchar; + +cmchar "Dotless letter i"; % (CMBR) +beginchar(oct"173",5u#,x_height#,0); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs: sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif + dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif +penlabels(1,2); endchar; + +cmchar "Dotless letter j"; % (CMBR) +beginchar(oct"174",5.5u#,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+2stem_shift# if monospace:+.5u# fi, + serif_fit#-2stem_shift# if monospace:-.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +rt x1r=hround(.5w+.25u+.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=-1/3d; +filldraw stroke z1e--z2e; % stem +if serifs: sloped_serif.l(1,2,a,1/3,1.1jut,serif_drop); % upper serif + pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); + x5=.5[x2,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; + if monospace: lft x6r=0 else: z6r=z7r; rt x7l=floor .75u fi; + (x,y5r)=whatever[z5l,z2l]; x5r:=max(x,.5[x6r,x5]); + filldraw stroke z2e{down}...z5e{left}; bulb(5,6,7); % arc and bulb +else: pickup fine.nib; pos2'(stem',0); z2'=z2; + pos6(.2[vair,stem'],-90); pos7(vair,-90); + lft x7r=hround -.75u; bot y7r=vround 5/6(-d-oo); + x3r=x1r; top y4r=min(2x_height,h+1); + (x,y7l)=whatever[z7r,(x1,min(h,asc_height))]; x7l:=x; + z5r=z2'r; (x2'l,y5l)=whatever[z7l,z5r]; x5l=x2'l; y5=y5r; + x6r=.5[x7r,x5r]; x6l:=.5[x7l,x5l]; bot y6r=-d-oo; + filldraw stroke z2'e..{down}z5e & super_arc.e(5,6) + & term.e(6,7,left,1,4); fi % arc and terminal +penlabels(1,2,5,6,7); endchar; + +cmchar "Weierstrass p"; +beginchar(oct"175",11u#,x_height#,desc_depth#); +italcorr .7x_height#*slant+.5stem#-u# if math_fitting:-.5u# fi; +adjust_fit(0,0); pickup fine.nib; +numeric theta; theta=90-angle(8u,h); slope:=-h/8u; % angle at middle +pos2(vair,-90); pos1(vstem,theta); pos7(vair,-90); +x2+.5u=x1=x7-.5u=3u; top y2l=h+o; bot y7r=-d-o; y1=.4[-d,h]; +lft x3l=hround .5u; rt x6r=hround max(rt x7+.5,.5w-.25u); +x3r-x3l=x6r-x6l=(hround .5[vair,vstem])-fine; +ellipse_set(2l,3l,4l,1l); ellipse_set(2r,3r,4r,1r); y3=y3r; +ellipse_set(7l,6l,5l,1l); ellipse_set(7r,6r,5r,1r); y6=y6r; +filldraw stroke super_arc.e(2,3) & z3e{down} + ..z4e---z5e..z6e{down} & super_arc.e(6,7); % flourish +pos8(hair,180); pos9(vair,90); pos10(stem,0); +pos11(vair,-90); pos12(hair,-180); pos13(.3[hair,flare],-180); +rt x10r=hround(w-1.5u+.5stem); lft x12r=hround(.5w-.5u); +rt x8l=hround 2.25u; x9=x11=max(x12l+eps,.5w+1.5u); +y8=0; top y9r=vround(.9h+o); y10=.5[y9,y11]; bot y11r=-oo; +filldraw stroke z7e{left}...z8e{up}...pulled_arc.e(9,10) + & pulled_arc.e(10,11); % stem and bowl +y13-.5(.6[hair,flare])=.15h; bulb(11,12,13); % bulb +math_fit(0,ic#); penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; + +cmchar "Arrow (vector) accent"; +beginchar(oct"176",9u#,asc_height#+.5rule_thickness#,0); +italcorr .7[x_height#,asc_height#]*slant; +adjust_fit(0,0); pickup rule.nib; +lft x1=hround .5u; x2=w-x1; y1=y2=good.x .7[x_height,asc_height]; +draw z1--z2; % bar +rt x3=rt x4=hround(x2-u); +y3=y2+.3(asc_height-x_height); y4=y2-.3(asc_height-x_height); +draw z3{x2-x3,2(y2-y3)}...{2(x2-x3),y2-y3}z2; % upper point +draw z4{x2-x4,2(y2-y4)}...{2(x2-x4),y2-y4}z2; % lower point +labels(1,2,3,4); endchar; + +cmchar "Tie accent"; +beginchar(oct"177",5u#,asc_height#,0); +italcorr 4/9[x_height#,asc_height#]*slant+4.5u#+2letter_fit#+.5hair#; +adjust_fit(if monospace:2u#,2u# else:serif_fit#,serif_fit# fi); +pickup fine.nib; pos1(hair,180); pos2(vround 1/5[vair,stem],90); pos3(hair,0); +lft x1r=hround(.5w-.5hair); x2=.5[x1,x3]; +rt x3r=hround(w+4u+2letter_fit+.5hair); +y1=y3=4/9[x_height,asc_height]; top y2r=vround 8/9[x_height,asc_height]; +filldraw stroke super_arc.e(1,2) & super_arc.e(2,3); % arc +penlabels(1,2,3); endchar; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/bpunct.mf b/Master/texmf-dist/fonts/source/public/cmbright/bpunct.mf new file mode 100644 index 00000000000..bcb2df9cb18 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/bpunct.mf @@ -0,0 +1,290 @@ +% This file contains punctuation marks common to roman and italic styles. +% Modified for the CM Bright fonts [1995/10/23 v0.999 WaS] + +% Codes \0041, \0043, \0045, \0047--\0054,\ % +%% \0056, \0057, \0072, \0073, \0075, \0100,\par +% \0133, \0135, and \0140 are generated, as well as code |spanish_shriek| +% (for a Spanish exclamation point) if that code value is known. + +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; + +iff known spanish_shriek: cmchar "Spanish open exclamation point"; +beginchar(spanish_shriek,5u#+width_adj#,asc_height#-desc_depth#,desc_depth#); +italcorr h#*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); top y4r=h; z3=z4; dot(3,4); % dot +numeric top_width; +top_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi; +pickup fine.nib; pos1(dot_size,0); pos2(top_width,0); +x1=x2=x3; top y2=.25[bot y4l,h-x_height]-1; +if square_dots: bot y1=-d; + filldraw stroke z1e--z2e; % stem +else: bot z0=(x1,-d-o); y1-.5dot_size=-d-o; + filldraw z1l...z0...z1r---z2r--z2l---cycle; fi % stem and bulb +penlabels(0,1,2,3,4); endchar; + +cmchar "Hash mark (number sign)"; +if monospace: compute_spread(.6x_height#,.7x_height#); +else: compute_spread(.45x_height#,.55x_height#); fi +beginchar("#",15u#,asc_height#,asc_depth#); +italcorr (math_axis#+.5(spread#+rule_thickness#))*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 +lft x6=hround 3u; rt x7=hround(w-3u); x5-x6=x7-x8; +x8=good.x if monospace: .6 else: .5 fi\\w; +top y5=top y7=h+eps; bot y6=bot y8=-d-eps; +y15=y1; z15=whatever[z5,z6]; y36=y3; z36=whatever[z5,z6]; +y27=y2; z27=whatever[z7,z8]; y48=y4; z48=whatever[z7,z8]; +draw z5--if x5>x6+1:(good.x(x15+.5),y1)--(good.x(x15-.5),y1) + --(good.x(x36+.5),y3)--(good.x(x36-.5),y3)--fi\\z6; % left diagonal +draw z7--if x7>x8+1:(good.x(x27+.5),y2)--(good.x(x27-.5),y2) + --(good.x(x48+.5),y4)--(good.x(x48-.5),y4)--fi\\z8; % right diagonal +labels(1,2,3,4,5,6,7,8,15,27,36,48); 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 bowl +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; + +cmchar "Apostrophe"; +beginchar("'",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; +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 +penlabels(1); endchar; + +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.5sym_u yscaled sym_height; % (CMBR) + 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("+"); +beginchar("+",14sym_u#,6sym_u#+math_axis#,6sym_u#-math_axis#); +italcorr math_axis#*slant-.5sym_u#; +adjust_fit(0,0); +pickup rule.nib; +x1=x2=good.x .5w; top y1=h+eps; .5[y1,y2]=math_axis; +lft x3=hround sym_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 "Semicolon"; +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(.45sym_height#,.55sym_height#); +beginchar("=",14sym_u#,v_center(spread#+rule_thickness#)); +italcorr h#*slant-.5sym_u#; +adjust_fit(0,0); pickup rule.nib; +lft x1=hround sym_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 "At sign"; +beginchar("@",14u#,asc_height#,0); +italcorr .7asc_height#*slant-.5u#; +adjust_fit(0,if hefty or monospace:-2u# else: 0 fi); +pickup fine.nib; pos0(fudged.hair,0); pos1(vair,90); +pos2(fudged.stem,180); pos3(vair,270); +pos4(fudged.stem,-180); pos5(fudged.stem,-180); +pos6(vair,-90); pos7(fudged.hair,0); +pos8(vair,90); pos9(fudged.hair,180); +pos10(vair,270); pos11(.5[vair,flare],360); +x1=x3=.5[x0,x2]; y0=y2=.5[y1,y3]; +x8=x10=.5w; y7=y9=.5[y8,y10]; +lft x9r=hround u; x7=w-x9; top y8r=h+oo; bot y10r=-oo; +top y1r=vround(.8[y10,y8]+.5vair); bot y3r=vround(.2[y10,y8]-.5vair); +x6l=1/3[x5l,x7l]; y6=y3; y11=good.y(.1[y10,y8]-.5); +x0=x4=x5; y4=.8[y3,y1]; y5=2/3[y7,y6]; +if hefty or monospace: lft x2r=hround(5u-.5fudged.stem); + rt x0r=hround(w-3u); x11r=x0r; +else: lft x2r=hround 3.4u; x0=w-x2; x11r=x7r; fi +filldraw stroke super_arc.e(1,2) & super_arc.e(2,3); % left inner bowl +filldraw stroke super_arc.e(3,0) & super_arc.e(0,1); % right inner bowl +filldraw stroke super_arc.e(8,9) & super_arc.e(9,10) + & term.e(10,11,right,1,4); % left outer bowl and terminal +if hefty or monospace: {{interim superness:=hein_super; + filldraw stroke super_arc.e(0,8)}}; % link +else: (x,y6r)=whatever[z6l,z7l]; x6r:=x; + filldraw stroke z4e---z5e...z6e{right}...{up}z7e + & super_arc.e(7,8); fi % stem and link +penlabels(0,1,2,3,4,5,6,7,8,9,10,11); 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("`",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; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/br10pt.mf b/Master/texmf-dist/fonts/source/public/cmbright/br10pt.mf new file mode 100644 index 00000000000..e94ae1feab4 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/br10pt.mf @@ -0,0 +1,70 @@ +% Dimensions for Computer Modern Bright at 10pt [1996/07/02 v1.0 (WaS)] + +u#:=21/36pt#; % unit width +width_adj#:=12/36pt#; % width adjustment for certain characters +serif_fit#:=-12/36pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=-15/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#:=250/36pt#; % height of caps +fig_height#:=236/36pt#; % height of numerals +x_height#:=170/36pt#; % height of lowercase without ascenders +math_axis#:=95/36pt#; % axis of symmetry for math symbols +bar_height#:=90/36pt#; % height of crossbar in lowercase e (.53 x_height) +comma_depth#:=40/36pt#; % depth of comma below baseline +desc_depth#:=60/36pt#; % depth of lowercase descenders + +crisp#:=0pt#; % diameter of serif corners +tiny#:=0pt#; % diameter of rounded corners +fine#:=0pt#; % diameter of sharply rounded corners +thin_join#:=8/36pt#; % width of extrafine details +hair#:=23/36pt#; % lowercase hairline breadth +stem#:=23/36pt#; % lowercase stem breadth +curve#:=23/36pt#; % lowercase curve breadth +ess#:=23/36pt#; % breadth in middle of lowercase s +flare#:=21/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=28/36pt#; % diameter of dots +cap_hair#:=23/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#:=.4pt#; % 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#:=0pt#; % protrusion of lowercase serifs +cap_jut#:=0pt#; % protrusion of uppercase serifs +beak_jut#:=0pt#; % horizontal protrusion of beak serifs +beak#:=0pt#; % vertical protrusion of beak serifs +vair#:=18/36pt#; % vertical diameter of hairlines +notch_cut#:=23/36pt#; % maximum breadth above or below notches +bar#:=18/36pt#; % lowercase bar thickness +slab#:=19/36pt#; % serif and arm thickness +cap_bar#:=19/36pt#; % uppercase bar thickness +cap_band#:=19/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=23/36pt#; % max breadth above/below uppercase notches +serif_drop#:=0pt#; % vertical drop of sloped serifs +stem_corr#:=.5/36pt#; % for small refinements of stem breadth +vair_corr#:=.5/36pt#; % for small refinements of hairline height +apex_corr#:=4/36pt#; % extra width at diagonal junctions + +o#:=6/36pt#; % amount of overshoot for curves +apex_o#:=2/36pt#; % amount of overshoot for diagonal junctions + +fudge:=.95; % factor applied to weights of heavy characters +math_spread:=0; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/10; % extra openness inside bowls +beak_darkness:=0; % fraction of triangle inside beak serifs + +square_dots:=true; % should dots be square? +hefty:=true; % should we try hard not to be overweight? +serifs:=false; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? + +sym_u#:=20/36pt#; % unit of width for math symbols +sym_height#:=155/36pt#; % unit of height for math symbols + +% end of br10pt.mf diff --git a/Master/texmf-dist/fonts/source/public/cmbright/br17pt.mf b/Master/texmf-dist/fonts/source/public/cmbright/br17pt.mf new file mode 100644 index 00000000000..4270bb8bc2e --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/br17pt.mf @@ -0,0 +1,72 @@ +% Dimensions for Computer Modern Bright 17pt [1997/05/14 v1.0b (WaS)] + +numeric Pt#; +1Pt#=1.728pt#; + +u#:=21/36Pt#; % unit width +width_adj#:=15/36Pt#; % width adjustment for certain characters +serif_fit#:=-15/36Pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=-18.75/36Pt#; % extra sidebar near uppercase serifs +letter_fit#:=-3/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#:=250/36Pt#; % height of caps +fig_height#:=236/36Pt#; % height of numerals +x_height#:=170/36Pt#; % height of lowercase without ascenders +math_axis#:=95/36Pt#; % axis of symmetry for math symbols +bar_height#:=90/36Pt#; % height of crossbar in lowercase e (.53 x_height) +comma_depth#:=40/36Pt#; % depth of comma below baseline +desc_depth#:=60/36Pt#; % depth of lowercase descenders + +crisp#:=0Pt#; % diameter of serif corners +tiny#:=0Pt#; % diameter of rounded corners +fine#:=0Pt#; % diameter of sharply rounded corners +thin_join#:=8/36Pt#; % width of extrafine details +hair#:=23/36Pt#; % lowercase hairline breadth +stem#:=23/36Pt#; % lowercase stem breadth +curve#:=23/36Pt#; % lowercase curve breadth +ess#:=23/36Pt#; % breadth in middle of lowercase s +flare#:=21/36Pt#; % diameter of bulbs or breadth of terminals +dot_size#:=28/36Pt#; % diameter of dots +cap_hair#:=23/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#:=.4Pt#; % 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#:=0Pt#; % protrusion of lowercase serifs +cap_jut#:=0Pt#; % protrusion of uppercase serifs +beak_jut#:=0Pt#; % horizontal protrusion of beak serifs +beak#:=0Pt#; % vertical protrusion of beak serifs +vair#:=18/36Pt#; % vertical diameter of hairlines +notch_cut#:=23/36Pt#; % maximum breadth above or below notches +bar#:=18/36Pt#; % lowercase bar thickness +slab#:=19/36Pt#; % serif and arm thickness +cap_bar#:=19/36Pt#; % uppercase bar thickness +cap_band#:=19/36Pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=23/36Pt#; % max breadth above/below uppercase notches +serif_drop#:=0Pt#; % vertical drop of sloped serifs +stem_corr#:=.5/36Pt#; % for small refinements of stem breadth +vair_corr#:=.5/36Pt#; % for small refinements of hairline height +apex_corr#:=4/36Pt#; % extra width at diagonal junctions + +o#:=7.5/36pt#; % amount of overshoot for curves (v1.0b) +apex_o#:=2.5/36pt#; % amount of overshoot for diagonal junctions (v1.0b) +fudge:=.95; % factor applied to weights of heavy characters +math_spread:=0; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/10; % extra openness inside bowls +beak_darkness:=0; % fraction of triangle inside beak serifs + +square_dots:=true; % should dots be square? +hefty:=true; % should we try hard not to be overweight? +serifs:=false; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? + +sym_u#:=20/36Pt#; % unit of width for math symbols +sym_height#:=155/36Pt#; % unit of height for math symbols + +% end of br17pt.mf diff --git a/Master/texmf-dist/fonts/source/public/cmbright/br8pt.mf b/Master/texmf-dist/fonts/source/public/cmbright/br8pt.mf new file mode 100644 index 00000000000..3246a0937e4 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/br8pt.mf @@ -0,0 +1,69 @@ +% Dimensions for Computer Modern Bright at 8pt [1996/07/02 v1.0 (WaS)] + +u#:=17.8/36pt#; % unit width +width_adj#:=9.6/36pt#; % width adjustment for certain characters +serif_fit#:=-10/36pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=-12/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#:=200/36pt#; % height of caps +fig_height#:=189/36pt#; % height of numerals +x_height#:=136/36pt#; % height of lowercase without ascenders +math_axis#:=76/36pt#; % axis of symmetry for math symbols +bar_height#:=72/36pt#; % height of crossbar in lowercase e (.53 x_height) +comma_depth#:=32/36pt#; % depth of comma below baseline +desc_depth#:=48/36pt#; % depth of lowercase descenders + +crisp#:=0pt#; % diameter of serif corners +tiny#:=0pt#; % diameter of rounded corners +fine#:=0pt#; % diameter of sharply rounded corners +thin_join#:=7/36pt#; % width of extrafine details +hair#:=21/36pt#; % lowercase hairline breadth +stem#:=21/36pt#; % lowercase stem breadth +curve#:=21/36pt#; % lowercase curve breadth +ess#:=21/36pt#; % breadth in middle of lowercase s +flare#:=19/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=24/36pt#; % diameter of dots +cap_hair#:=21/36pt#; % uppercase hairline breadth +cap_stem#:=21.75/36pt#; % uppercase stem breadth +cap_curve#:=21.75/36pt#; % uppercase curve breadth +cap_ess#:=21/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.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#:=0pt#; % protrusion of lowercase serifs +cap_jut#:=0pt#; % protrusion of uppercase serifs +beak_jut#:=0pt#; % horizontal protrusion of beak serifs +beak#:=0pt#; % vertical protrusion of beak serifs +vair#:=16/36pt#; % vertical diameter of hairlines +notch_cut#:=21/36pt#; % maximum breadth above or below notches +bar#:=16/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#:=21/36pt#; % max breadth above/below uppercase notches +serif_drop#:=0pt#; % vertical drop of sloped serifs +stem_corr#:=.5/36pt#; % for small refinements of stem breadth +vair_corr#:=.5/36pt#; % for small refinements of hairline height +apex_corr#:=2/36pt#; % extra width at diagonal junctions + +o#:=4.5/36pt#; % amount of overshoot for curves +apex_o#:=1.9/36pt#; % amount of overshoot for diagonal junctions +fudge:=.92; % factor applied to weights of heavy characters +math_spread:=0.4; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/10; % extra openness inside bowls +beak_darkness:=0; % fraction of triangle inside beak serifs + +square_dots:=true; % should dots be square? +hefty:=true; % should we try hard not to be overweight? +serifs:=false; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? + +sym_u#:=17/36pt#; +sym_height#:=124/36pt#; % unit of height for math symbols + +% end of br8pt.mf diff --git a/Master/texmf-dist/fonts/source/public/cmbright/br9pt.mf b/Master/texmf-dist/fonts/source/public/cmbright/br9pt.mf new file mode 100644 index 00000000000..7ade091c6a4 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/br9pt.mf @@ -0,0 +1,69 @@ +% Dimensions for Computer Modern Bright at 9pt [1996/07/02 v1.0 (WaS)] + +u#:=19.4/36pt#; % unit width +width_adj#:=10.8/36pt#; % width adjustment for certain characters +serif_fit#:=-11/36pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=-13.5/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#:=225/36pt#; % height of caps +fig_height#:=212/36pt#; % height of numerals +x_height#:=153/36pt#; % height of lowercase without ascenders +math_axis#:=85.5/36pt#; % axis of symmetry for math symbols +bar_height#:=81/36pt#; % height of crossbar in lowercase e (.53 x_height) +comma_depth#:=36/36pt#; % depth of comma below baseline +desc_depth#:=54/36pt#; % depth of lowercase descenders + +crisp#:=0pt#; % diameter of serif corners +tiny#:=0pt#; % diameter of rounded corners +fine#:=0pt#; % diameter of sharply rounded corners +thin_join#:=7.5/36pt#; % width of extrafine details +hair#:=22/36pt#; % lowercase hairline breadth +stem#:=22/36pt#; % lowercase stem breadth +curve#:=22/36pt#; % lowercase curve breadth +ess#:=22/36pt#; % breadth in middle of lowercase s +flare#:=20/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=26/36pt#; % diameter of dots +cap_hair#:=22/36pt#; % uppercase hairline breadth +cap_stem#:=22.75/36pt#; % uppercase stem breadth +cap_curve#:=22.75/36pt#; % uppercase curve breadth +cap_ess#:=22.75/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.38pt#; % 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#:=0pt#; % protrusion of lowercase serifs +cap_jut#:=0pt#; % protrusion of uppercase serifs +beak_jut#:=0pt#; % horizontal protrusion of beak serifs +beak#:=0pt#; % vertical protrusion of beak serifs +vair#:=17/36pt#; % vertical diameter of hairlines +notch_cut#:=22/36pt#; % maximum breadth above or below notches +bar#:=17/36pt#; % lowercase bar thickness +slab#:=18/36pt#; % serif and arm thickness +cap_bar#:=18/36pt#; % uppercase bar thickness +cap_band#:=18/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=22/36pt#; % max breadth above/below uppercase notches +serif_drop#:=0pt#; % vertical drop of sloped serifs +stem_corr#:=.5/36pt#; % for small refinements of stem breadth +vair_corr#:=.5/36pt#; % for small refinements of hairline height +apex_corr#:=3.6/36pt#; % extra width at diagonal junctions + +o#:=5/36pt#; % amount of overshoot for curves +apex_o#:=1.95/36pt#; % amount of overshoot for diagonal junctions +fudge:=.93; % factor applied to weights of heavy characters +math_spread:=.2; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/10; % extra openness inside bowls +beak_darkness:=0; % fraction of triangle inside beak serifs + +square_dots:=true; % should dots be square? +hefty:=true; % should we try hard not to be overweight? +serifs:=false; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? + +sym_u#:=18.5/36pt#; +sym_height#:=139.5/36pt#; + +% end of br9pt.mf diff --git a/Master/texmf-dist/fonts/source/public/cmbright/brmsa.mf b/Master/texmf-dist/fonts/source/public/cmbright/brmsa.mf new file mode 100644 index 00000000000..50698c17c37 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/brmsa.mf @@ -0,0 +1,111 @@ +% MSA symbols, bright style [1996/07/02 v1.0 (WaS)] + +numeric circ_w#; % +circ_w#=2u#+body_height#+max(paren_depth#,desc_depth#); + +cmchar "Yen symbol"; +% Change (jk): Use correct pen for horizontal bars +compute_spread(.45x_height#, .55x_height#); +beginchar(oct"125",13u#,cap_height#,0); %% adapted from "Y" +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 & 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 +pickup pencircle scaled min(hair,vair); +x7=x9=x1l; x8=x10=x4r; y9=y10; +top y7=bar_height; y7=y8; draw z7--z8; +y9-y7=spread; draw z9--z10; % crossing bars +penlabels(0,1,2,3,4,5,6,1',2',3',4',5',6',7,8,9,10); endchar; + +% the next characters have been taken from Joerg Knappen's TC fonts: + +cmchar"Registered"; +beginchar(oct"162",circ_w#,body_height#,max(paren_depth#,desc_depth#)); +autorounded; +adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); +clearxy; autorounding:=0; +numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-6u); +rr=hround(.5w+6u); +pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); +lft x1l=lft x2l=ll+hround max(2u,3u-.5cap_stem'); top y1=hh; bot y2=0; +filldraw stroke z1e--z2e; % stem +penpos3(cap_band,90); penpos4(cap_band,90); +penpos5(cap_curve if hefty:-3stem_corr fi,0); +penpos6(vair,-90); penpos7(vair,-90); +z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7; +x7=x2; y7l=vround(.5hh+.5vair); x4=x6; +if serifs: x4=.5w-.5u; x5r=hround(rr-2.25u); +else: x4=.5w+.5u; x5r=hround(rr-u); fi +x4l:=x6l:=x4-.125cap_curve; +fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe +if serifs: pos6'(vair,-90); pos0(cap_stem,180); + pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0); + z6'=z6; lft x0r=lft x8r=hround(x5-2/3u-.5cap_curve); + y8=1/3[y2,y7]; y0=3/5[y2,y7]; x9=.5[x8l,x10r]; + bot y9r=-o; rt x10r=hround(rr-.25u); y10=1/3[y2,y7]; + filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up}; % tail + nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower serif +else: penpos8(cap_stem-2stem_corr,0); penpos9(cap_stem,0); + x8=x6+.5u; y8=y6; x9r=hround(rr-.5u); y9=0; + fill z8l--diag_end(8l,9l,.5,1,9r,8r)--z8r--cycle; fi % tail +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +cmchar"circledS"; +beginchar(oct"163",circ_w#,body_height#,max(paren_depth#,desc_depth#)); +autorounded; +adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); +clearxy; autorounding:=0; +numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-5u); +rr=hround(.5w+5u); +numeric theta; theta=90-angle(50u,hh); slope:=-hh/50u; % angle at middle +numeric s_slab; s_slab=vround .2[slab,cap_stem]; +numeric ess'; ess'=max(fine.breadth,cap_ess); +pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-90); +pos0(ess',theta); pos7(s_slab,-90); +x2+x7=2x0=w; x7-x2=0; top y2l=hh+o; bot y7r=-o; +y0=.52hh; lft x3l=ll+hround u; rt x6r=hround(rr-u); +x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine; +ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; +ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; +filldraw stroke super_arc.e(2,3) & z3e{down} + ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke +pos1(1.2flare,-100); pos8(1.2flare,-100); + x1l=good.x(x1l+rr-1.75u-rt x1); lft x8r=ll+hround .8u; + top y1l=vround .93hh+o; bot y8r=vround .1hh-o; + filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal + filldraw stroke term.e(7,8,left,1,4); % lower arc and terminal +math_fit(0,.5ic#); penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); endchar; + diff --git a/Master/texmf-dist/fonts/source/public/cmbright/brmsb.mf b/Master/texmf-dist/fonts/source/public/cmbright/brmsb.mf new file mode 100644 index 00000000000..081e4acaf38 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/brmsb.mf @@ -0,0 +1,171 @@ +% MSB symbols, bright style [1996/07/02 v1.0 (WaS)] + +cmchar "Lowercase variation of Greek kappa"; +% will use same dimensions as standard Greek lowercase kappa +% see vol E, p 155. +beginchar(oct"173", 12u#, x_height#, 0); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(0,0); pickup rule.nib; +pos1(stem,0); pos2(stem,0);x1l=hround(2u-.5stem); x2r=w-x1l; +top y2+.3stem=h+oo; bot y1-.3stem=-oo; +filldraw z1l---z2l...z2r---z1r...cycle; +pickup crisp.nib; +pos3(hair,180); x3=lft x1l; y3=3/4h; pos4(stem,90); +top y4r+.15stem=h+oo; x4-x3=.05[x1,x2]; +pos4'(hair,0); y4'=y3; x4'=1/4[x1,x2]; +pos5(hair,90); z5=z1; +filldraw super_arc.r(3,4)&super_arc.r(4,4')...{z1-z2}z5&z5{z2-z1} +...super_arc.l(4',4)&super_arc.l(4,3)---cycle; % left arm +pos8(hair,-90); pos6(hair,0); +z8=z2; pos7(stem, -90); bot y7r-.15stem=-oo; x6-x7=x4-x3; +x6=w-x3; +pos7'(hair,180); y7'=y6; x7'=w-x4'; +y6=h-y3; +filldraw super_arc.r(6,7)&super_arc.r(7,7')...{z2-z1}z8&z8{z1-z2} +...super_arc.l(7',7)&super_arc.l(7,6)---cycle; % right arm +%filldraw z8{z1-z2}..z7l...{up}z6r---z6l{-u,-2u}...z7r..{z2-z1}z8---cycle; %right arm +penlabels(range 1 thru 8,4'); endchar; + +cmchar "H-bar symbol, slanted bar"; +beginchar(oct"175",10u#,asc_height#,0); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos1'(stem',0); pos2'(stem',0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=h; bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif + +numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; +pickup if serifs: crisp.nib else: fine.nib fi; +pos5(macron_breadth,90); pos6(macron_breadth,90); +y5=0.7h; y6=7/8h; +lft x5=w-2.5u-rt x6=hround 0.5u; +filldraw stroke z5e--z6e; % bar + +penlabels(1,2,3,4,5,6); endchar; + +cmchar "H-bar symbol, vertical bar"; +beginchar(oct"176",10u#,asc_height#,0); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos1'(stem',0); pos2'(stem',0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=h; bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif + +numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; +pickup if serifs: crisp.nib else: fine.nib fi; +pos5(macron_breadth,90); pos6(macron_breadth,90); +top y5r=top y6r=0.81h; %h+o; +lft x5=w-2.5u-rt x6=hround 0.5u; +filldraw stroke z5e--z6e; % bar + +penlabels(1,2,3,4,5,6); endchar; + +cmchar "Reversed, reflected, lowercase Greek epsilon"; +beginchar(oct"177",8u#,x_height#,0); +italcorr x_height#*slant+.5hair#-2u#; +adjust_fit(0,0); pickup fine.nib; +pos0(bar,90); pos1(bar,90); pos2(curve,180); +pos3(vair,270); pos4(hair,300); pos6(bar,90); pos7(bar,90); +x1=.5w+.5u; x0=x1+u; lft x2r=hround(1.5u-.5curve); x3=.5[x0,x1]; +x4r=good.x(w-u); x5=w+.5u; x6=x0; z7=z2l; +top y0r=top y1r=h; y2=y5=y6=bar_height; bot y3r=-oo; +path p; p=z3r{right}...{up}z5; +numeric t; t=ypart(((x4r,y3r)--(x4r,y5))intersectiontimes p); +y4r=ypart point t of p; +filldraw circ_stroke z0e..pulled_arc.e(1,2) & pulled_arc.e(2,3) + ...z4e{direction t of p}; % arc +filldraw circ_stroke z6e--z7e; % bar +math_fit(-.3x_height#*slant+.5curve#-u#,ic#); +picture v; +v:=currentpicture; +v:=v reflectedabout((0,h*aspect_ratio/2),(w,h*aspect_ratio/2)); +v:=v reflectedabout((w/2,-d),(w/2,h)); +currentpicture:=v shifted (2u,0); +penlabels(0,1,2,3,4,5,6,7); endchar; + +slant:=mono_charic#:=0; % the remaining characters will not be slanted +currenttransform:=identity yscaled aspect_ratio scaled granularity; + +cmchar "Upsidedown, uppercase Greek Omega"; +beginchar(oct"146",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#); +picture v; v:=currentpicture; +numeric t; t=h-d; +v:=v reflectedabout((0,0),(w,0)); +currentpicture:=v shifted(0,aspect_ratio*cap_height); +penlabels(1,2,3,4,5,6,7,8,9); endchar; + +cmchar "The letter Edh (Old English rune, like thorn)"; +% adapted from cm partial differential sign, vol E, p 233. +beginchar(oct"147",10u#,asc_height#,0); +italcorr .7asc_height#*slant+.5curve#-1.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,90); +pos3(side_thickness,0); pos4(bot_thickness,-90); +pos5(side_thickness,-180); pos6(vair,-270); +lft x5r=w-rt x3r=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,0); z7l=point t of p; +(x,y6r)=whatever[z7l,z6l]; x6r:=max(x,.5[x5r,x6]); +x2:=x5; x2l:=x2r:=x2; +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 +%pos1(hair,180); pos0(flare,180); % commenting out the arc and bulb +%lft x0r=min(lft x2-eps,hround 1.2u); +%y0=vround min(.85h-.5flare,.8h+.5flare)+o; +%{{less_tense; bulb(2,1,0)}}; % arc and bulb +%math_fit(-.3x_height#*slant+.5curve#-u#,ic#-u#); +pickup pencircle xscaled 1.4rule_thickness yscaled .5rule_thickness; +x10=x11=x5; x12=x13=w-x10; y10=y13; +y10-y11=y12-y13=cap_stem; .5[y11,y10]=.5[y6,y2]; +draw z10--z11--z12--z13; % cross piece +penlabels(2,3,4,5,6,7,10,11,12,,13); endchar; + diff --git a/Master/texmf-dist/fonts/source/public/cmbright/broman.mf b/Master/texmf-dist/fonts/source/public/cmbright/broman.mf new file mode 100644 index 00000000000..3471aeb3262 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/broman.mf @@ -0,0 +1,71 @@ +% The Computer Modern Roman family of fonts (by D. E. Knuth, 1979--1985) +% Modified for the CM Bright fonts [1995/10/04 v0.997 WaS] +if ligs>1: font_coding_scheme:="TeX text"; + spanish_shriek=oct"074"; spanish_query=oct"076"; +else: font_coding_scheme:=if ligs=0: "TeX typewriter text" + else: "TeX text without f-ligatures" fi; + spanish_shriek=oct"016"; spanish_query=oct"017"; fi + +mode_setup; font_setup; +define_pixels(sym_u);define_whole_vertical_pixels(sym_height); +% lowres_fix(stem,cap_stem)1.12; + +input romanu; % upper case (majuscules) +input bromanl; % lower case (minuscules) +input bgreeku; % upper case Greek letters +input romand; % numerals +input romanp; % ampersand, question marks, currency sign +input romspl; % lowercase specials (dotless \i, ligature \ae, etc.) +input romspu; % uppercase specials (\AE, \OE, \O) +input bpunct; % punctuation symbols common to roman and italic text +input baccent; % accents common to roman and italic text +if ligs>1: input bromlig; fi % letter ligatures +if ligs>0: input comlig; fi % ligatures common with italic text +if ligs<=1: input romsub; fi % substitutes for ligatures + +ligtable "!": "`" =: spanish_shriek; +ligtable "?": "`" =: spanish_query; +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 5.7u#+2letter_fit#; + font_normal_stretch 2.85u#; font_normal_shrink 1.9u#; + font_quad 18u#+4letter_fit#; + font_extra_space 1.9u#; + k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning + ligtable "k": if serifs: "v": "a" kern -u#, fi\\"w": "e" kern k#, + "a" kern k#, "o" kern k#, "c" kern k#; + ligtable "P": "A" kern kk#, + "y": "o" kern k#, "e" kern k#, "a" kern k#, "." kern kk#, "," kern kk#; + ligtable "F": "V": "W": if serifs: "o" kern kk#, "e" kern kk#, "u" kern kk#, + "r" kern kk#, "a" kern kk#, "A" kern kkk#, + else: "o" kern k#, "e" kern k#, "u" kern k#, + "r" kern k#, "a" kern k#, "A" kern kk#, fi + "K": "X": "O" kern k#, "C" kern k#, "G" kern k#, "Q" kern k#; + ligtable "T": "y" kern if serifs: k# else: kk# fi, + "Y": "e" kern kk#, "o" kern kk#, + "r" kern kk#, "a" kern kk#, "A" kern kk#, "u" kern kk#; + ligtable "O": "D": "X" kern k#, "W" kern k#, "A" kern k#, + "V" kern k#, "Y" kern k#; + if serifs: ligtable "h": "m": "n": + "t" kern k#, "u" kern k#, "b" kern k#, "y" kern k#, "v" kern k#, "w" kern k#; + ligtable "c": "h" kern k#, "k" kern k#; fi + ligtable "o": "b": "p": +if known bx_kerning: + "e" kern -k#, "o" kern -k#, + "d" kern -k#, + "c" kern -k#, "q" kern -k#, +fi + "x" kern k#, + "a": if serifs: "v" kern k#, "j" kern u#, else: "r" kern k#, fi + "t": "y" kern k#, + "u": "w" kern k#; + ligtable "A": if serifs: "R": fi\\ "t" kern k#, + "C" kern k#, "O" kern k#, "G" kern k#, "U" kern k#, "Q" kern k#, + "L": "T" kern kk#, "Y" kern kk#, "V" kern kkk#, "W" kern kkk#; + ligtable "g": "j" kern -k#; % logjam + ligtable "I": "I" kern -k#; fi % Richard III + % there are ligature/kern programs for |"f"| in the {\tt romlig} file + % and for |"-"|, |"`"|, and |"'"| in the {\tt comlig} file +bye. diff --git a/Master/texmf-dist/fonts/source/public/cmbright/bromanl.mf b/Master/texmf-dist/fonts/source/public/cmbright/bromanl.mf new file mode 100644 index 00000000000..24d46426e15 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/bromanl.mf @@ -0,0 +1,832 @@ +% Computer Modern Roman lower case: +% These letters were originally coded by D. E. Knuth in November, 1979, +% inspired by the Monotype faces used in {\sl The Art of Computer Programming}. +% Sans serif designs by Richard Southall were added in April, 1982. +% The programs were revised for the new \MF\ conventions in 1985. +% Modified by WaS for the CM Bright fonts in 1995. +% Character codes \0141 through \0172 are generated. + +cmchar "The letter a"; +beginchar("a",9u#,x_height#,0); +bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); +italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; +adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); +pickup fine.nib; top y3r=h+vround 1.5oo; +if serifs: pos1(flare,180); pos2(hair,180); + pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; + y1=min(bh+.5flare+2vair+2,.9[bh,h]-.5flare); + bulb(3,2,1); % bulb +else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; + pos3(1/8[vair,thin_join],90); + x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; + filldraw stroke term.e(3,1,left,.9,4); fi % terminal +pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,h]; +pos5(stem,0); x5=x4; y5=max(.55bh,2vair); +filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem +pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; +pos7(hround(curve-2stem_corr),180); +lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; +pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; +pos9(thin_join,360); z9l=z5l; +(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); +{{interim superness:=more_super; + filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl +if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); + if hair#+.5stem#>1.5u#: pickup tiny.nib; + pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; + pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; + pos12(shaved_stem,0); x11=x12; top y12=slab+eps; + filldraw z5'l---z10l...z11l{right}--z11r + --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot + else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=1/3bh; + pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; + pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); + pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); + (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); + filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook +else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); + pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; bot y10=0; + filldraw stroke z5'e--z10e; fi % base of stem +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; + +cmchar "The letter b"; +beginchar("b",10u#+serif_fit#,asc_height#,0); +italcorr .5x_height#*slant+min(.5curve#-u#,-.25u#); +adjust_fit(serif_fit#,0); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; +lft x1l=hround(2.5u-.5stem'); top y1=h; +numeric edge; edge=rt x2r; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); +pos4(vair,90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); +rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l),1/3[rt x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; +rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x4,x5r]); +(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x6,x5r]); +filldraw stroke z3e{up}...pulled_arc.e(4,5)&pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); +y2=ypart(((edge,h)--(edge,0))intersectionpoint(z6l{left}...{up}z7l)); +pickup tiny.nib; filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; pos8(hair,0); pos7'(stem,0); +z7'=z2; x8l=x7'l; bot y8=0; +filldraw stroke z7'e--z8e; % point +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +cmchar "The letter c"; +beginchar("c",8u#,x_height#,0); +italcorr x_height#*slant-.2u#; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +pickup fine.nib; pos2(vair',90); pos4(vair',270); +x2=x4=.5(w+u); top y2r=vround(h+1.5oo); bot y4r=-oo; +pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5h; +if serifs: pos1(hair,0); pos0(flare,0); + y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare); + rt x1r=hround(w-.7u); bulb(2,1,0); % bulb + pos5(hair,0); rt x5r=hround(w-.5u); + y5=max(good.y(.5bar_height-.9),y4l+vair'); + (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) + ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal +else: pos1(4/7[vair',flare],80); + rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2,1,right,.8,4); % upper terminal + pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; + if angle direction 1 of p.e>75: + p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal +penlabels(0,1,2,3,4,5); endchar; + +cmchar "The letter d"; +beginchar("d",10u#+serif_fit#,asc_height#,0); +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(0,serif_fit#); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); top y1=h; +numeric edge; edge=lft x2l; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...pulled_arc.e(4,5) + & pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); +pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif +penlabels(0,1,2,3,4,5,6,7); endchar; + +cmchar "The letter e"; +beginchar("e",7.25u#+max(.75u#,.5curve#),x_height#,0); +italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); +adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); +numeric left_curve,right_curve; +left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; +if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; pos1(right_curve,0); +pos2(vair,90); pos3(left_curve,180); +y1=good.y bar_height; top y2r=h+vround 1.5oo; y0l=bot y1; +rt x1r=hround min(w-.5u,w-u+.5right_curve); +lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; +if serifs: pos4(vair',270); pos5(hair,360); + y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; + (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal +else: pos4(vair,270); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,270); z4=z4'; + pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke term.e(4',5,right,1,4); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: + x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +penlabels(0,1,2,3,4,5); endchar; + +cmchar "The letter f"; +beginchar("f",5.5u#,asc_height#,0); +italcorr asc_height#*slant+if serifs:flare#-.25u# else: 1.25u# fi; +adjust_fit(stem_shift#,if monospace: .5u# else:-stem_shift# fi); +pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); +pickup fine.nib; numeric bulb_diam; +if serifs: bulb_diam=hround .8[stem,flare]; + pos2(bulb_diam,0); y2+.5bulb_diam=.9[x_height,h+oo]; + if monospace: rt x2r=hround(w-.5u)+1 else: lft x2l=hround(w-.75u+.5) fi; +else: pos2(5/7[vair,flare],90); top y2r=h; + rt x2=hround(if monospace:w-.5u else:w+.75u fi); fi +f_stroke(1,2,a,b,c,jut,if not monospace:1.25fi\\ jut); % stem, terminal, serif +pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; +pos3(bar,90); pos4(bar,90); +rt x4=hround(w-if monospace:.75u+1 else:1/3u fi); +filldraw stroke z3e--z4e; % bar +penlabels(1,2,3,4); endchar; + +iff not variant_g: cmchar "The letter g"; +beginchar("g",9u#,x_height#,desc_depth#); +italcorr x_height#*slant+.25u#; +adjust_fit(0,0); +numeric light_vair,light_curve,loop_top,loop_side; +light_vair=Vround(.5[thin_join,vair]+vair_corr); +light_curve=max(fine.breadth,hround(curve-3stem_corr)); +loop_top=Vround .77[vair,fudged.stem]; +loop_side=hround .64[vair,fudged.stem]; +pickup fine.nib; pos1(light_vair,90); +pos2(light_curve,180); pos3(light_vair,270); +pos4(light_curve,360); pos11(loop_top,90); +y11r=good.y(y11r+.15bar_height-y11); x1=x3=.5[x2,x4]; y2=y4=.5[y1,y3]; +lft x2r=hround(1.75u-.5light_curve); rt x4r=hround(w-2.75u+.5light_curve); +top y1r=h+oo; y3r=good.y(y3r+.27[top y11r,bot y1l]-y3); +filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3); % left half of bowl +filldraw stroke pulled_arc.e(3,4) & pulled_arc.e(4,1); % right half of bowl +x0=superness[x1r,x4r]; y0=superness[y4r,y1r]; % NE point on the super bowl +x8'=superness[x3r,x2r]; y8'=superness[y2r,y3r]; % SW point on the super bowl +x8''=superness[x3,x2]; y8''=superness[y2,y3]; +pos0(thin_join,angle(z0-z8')+90); +pos8(thin_join,angle(z0-z8')-90); z8=.618[z8',z8'']; +if serifs: pos5(vair,90); + pos6(hair,0); pos7(.5[hair,flare],0); x5=.75[x0,x6]; top y5r=h+o; + rt x6r=hround(w-.25u); y6+(.5[hair,flare])/2=.95[bar_height,h]+oo; + filldraw stroke z0e..{right}z5e; bulb(5,6,7); % ear +else: pos5(vair',100); top y5r=h+oo; + rt x5l=hround(w-.25u); y5l:=good.y y5l; + filldraw z0l{z5-z0}..z5l--z5r{left}..{curl 1}z0r--cycle; fi % ear +pos10(loop_top,90); x10=x8+.75u; y10=y11; +pos12(loop_side,0); pos13(light_vair,-90); +pos14(loop_side,-180); pos10'(.5[thin_join,vair],-270); +rt x12r=hround max(w-1.25u+.5loop_side,w-.5u); y12=y14=.5[y11,y13]; +x11=x13=max(.5w,x10+eps); bot y13r=-d-oo-1; x14=w-x12; z10'l=z10l; +filldraw stroke z8e{z8-z0}..z10e---z11e; % link +filldraw stroke {{interim superness:=hein_super; super_arc.e(11,12)}} + & super_arc.e(12,13) & super_arc.e(13,14) & super_arc.e(14,10'); % loop +penlabels(0,1,2,3,4,5,6,7,8,10,11,12,13,14); labels(8',8''); endchar; + +iff variant_g: cmchar "Variant letter g"; +beginchar("g",10u#+serif_fit#,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi; +adjust_fit(0,serif_fit# if serifs: -.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); +numeric edge; edge=lft x2l; +path edge_path; edge_path=(edge,h)--(edge,0); +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),2/3[lft x2,edge]); y3=bar_height; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=vround 1/3vair; +lft x7l=edge; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{left}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{right}...{up}z7e; % bowl +y1=ypart(edge_path intersectionpoint(z3l{up}...{left}z4l)); +y0=ypart(edge_path intersectionpoint(z7l{down}...{left}z6l)); +pickup tiny.nib; bot y2=if serifs: -.25d else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; +pos8(hround(hair-stem_corr),0); pos7'(stem',0); +z7'=z1; x8r=x7'r; top y8=h+oo; +filldraw stroke z7'e--z8e; % point +if serifs: pickup tiny.nib; + pos9(vair,-90); x9=.5[x2,x10]; bot y9r=-d-o-1; + pos10(hair,-180); lft x10r=hround u; y10=-.75d+.5flare; + pos11(flare,-180); z11r=z10r; + bulb(9,10,11); filldraw stroke super_arc.e(2,9); % tail +else: pickup fine.nib; pos2'(stem,0); z2'=z2; + z2''r=z2'r; z2''=z2'; z2''l=(x2'l,0); + pos9(vair,-90); x9=4.5u; bot y9r=-d-o-1; + pos10(.5[vair,flare],-90); lft x10=hround 1.25u; + y10r=good.y -5/6d; y10l:=good.y y10l; + filldraw stroke z2'e..z2''e&super_arc.e(2'',9) + & term.e(9,10,left,.9,4); fi % tail +penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; + +cmchar "The letter h"; +beginchar("h",10u#,asc_height#,0); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos1'(stem',0); pos2'(stem',0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=h; bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +penlabels(1,2,3,4); endchar; + +cmchar "The letter i"; +numeric dot_diam#; +% diameter of dot = stem width; +% do the same trick later once more with the unsharped dimension: +% dot_diam#=max(dot_size#,cap_curve#); +dot_diam#=stem'/hppp; +beginchar("i",5u#,min(asc_height#,10/7x_height#+.5dot_diam#),0); +%define_whole_blacker_pixels(dot_diam); +dot_diam:=stem'; +italcorr h#*slant-serif_fit# + .5dot_diam# -2u#; +adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; +filldraw stroke z1e--z2e; % stem +pos3(dot_diam,0); pos4(dot_diam,90); +if serifs: x3r=max(x1r,hround(x1+.5dot_diam-.2jut)-.5tiny) +else: x3=x1-.5 fi; +%top y4r=h+1; +top y4r=h; +if bot y4l-top y1<slab: y4l:=min(y4r-eps,y1+tiny+slab); fi +x3=x4; y3=.5[y4l,y4r]; dot(3,4); % dot +if serifs: sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif + dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif +penlabels(1,2,3,4); endchar; + +cmchar "The letter j"; +numeric dot_diam#; +% diameter of dot = stem width; +% do the same trick later once more with the unsharped dimension: +%dot_diam#=max(dot_size#,cap_curve#); +dot_diam#=stem'/hppp; +beginchar("j",5.5u#,min(asc_height#,10/7x_height#+.5dot_diam#),desc_depth#); +%define_whole_blacker_pixels(dot_diam); +dot_diam:=stem'; +italcorr h#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+2stem_shift# if monospace:+\\.5u# fi, + serif_fit#-2stem_shift# if monospace:-.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +rt x1r=hround(.5w+.25u+.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=-1/3d; +filldraw stroke z1e--z2e; % stem +pos3(dot_diam,0); pos4(dot_diam,90); +x3r=x1r;% top y4r=h+1; +top y4r=h; +if bot y4l-top y1<slab: y4l:=min(y4r-eps,y1+tiny+slab); fi +x3=x4; y3=.5[y4l,y4r]; dot(3,4); % dot +if serifs: sloped_serif.l(1,2,a,1/3,1.1jut,serif_drop); % upper serif + pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); + x5=.5[x2,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; + if monospace: lft x6r=0 else: z6r=z7r; rt x7l=floor .75u fi; + (x,y5r)=whatever[z5l,z2l]; x5r:=max(x,.5[x6r,x5]); + filldraw stroke z2e{down}...z5e{left}; bulb(5,6,7); % arc and bulb +else: pickup fine.nib; pos2'(stem',0); z2'=z2; + pos6(.2[vair,stem'],-90); pos7(vair,-90); + lft x7r=hround -.75u; bot y7r=vround 5/6(-d-oo); + (x,y7l)=whatever[z7r,z3]; x7l:=x; + z5r=z2'r; (x2'l,y5l)=whatever[z7l,z5r]; x5l=x2'l; y5=y5r; + x6r=.5[x7r,x5r]; x6l:=.5[x7l,x5l]; bot y6r=-d-oo; + filldraw stroke z2'e..{down}z5e & super_arc.e(5,6) + & z6e{left}..z7e; fi % arc and terminal +penlabels(1,2,3,4,5,6,7); endchar; + +cmchar "The letter k"; +beginchar("k",9.5u#,asc_height#,0); +italcorr x_height#*slant-.2u#; +adjust_fit(serif_fit#,serif_fit#); pickup tiny.nib; +numeric right_jut,stem[],alpha[]; +stem1=max(tiny.breadth,hround(fudged.stem-stem_corr)); +stem2=max(tiny.breadth,hround(fudged.stem-2stem_corr)); +stem3=max(tiny.breadth,hround(fudged.hair if hefty:-\\4stem_corr fi)); +stem4=max(tiny.breadth,hround(fudged.stem-3stem_corr)); +if serifs: right_jut=.6jut; else: right_jut=.4tiny; fi +pos1(stem1,0); pos2(stem2,0); top y1=h; bot y2=0; +lft x1l=lft x2l=hround(2.5u-.5stem1); +top y3=x_height; rt x3r=hround(r-letter_fit-.7u-right_jut)+eps; +bot y6=0; rt x6r=hround(r-letter_fit-.3u-right_jut)+eps; +x4=x11=x1; y4=.7bar_height; y11=y3; +alpha1=diag_ratio(1,.5(stem3-tiny),y3-y4,x3r-x4); +alpha2=diag_ratio(1,.5(stem4-tiny),y11-y6,x6r-x1); +penpos3(alpha1*(stem3-tiny),0); penpos4(whatever,-90); +z5=.5[z5l,z5r]; penpos6(alpha2*(stem4-tiny),0); +forsuffixes $=l,r: y3'$=x_height; y6'$=0; z4$=z3'$+whatever*(z3-z4); + z5$=z6'$+whatever*(z11-z6)=whatever[z3,z4]; endfor +z3'r=z3r+penoffset z3-z4 of currentpen+whatever*(z3-z4); +% we have also |z3'l=z3l+penoffset z4-z3 of currentpen+whatever*(z3-z4)|;\] +z6'r=z6r+penoffset z11-z6 of currentpen+whatever*(z11-z6); +z6'l=z6l+penoffset z6-z11 of currentpen+whatever*(z11-z6); +fill z4r--diag_end(4r,3'r,1,.5,3'l,4l)--z4l--cycle; % upper diagonal +fill z5l--diag_end(5l,6'l,.5,1,6'r,5r)--z5r--cycle; % lower diagonal +pos0(stem1,0); pos0'(stem2,0); y0=y0'; x0=x1; x0'=x2; +rt z0r=whatever[z3,z4]; filldraw stroke z1e..z0e--z0'e..z2e; % stem +if serifs: numeric inner_jut; + if rt x2r+jut+.5u+1<=lft x6l-jut: inner_jut=jut; + else: rt x2r+inner_jut+.5u+1=lft x6l-inner_jut; fi + sloped_serif.l(1,0,a,1/3,jut,serif_drop); % upper stem serif + dish_serif(2,0',b,1/3,jut,c,1/3,inner_jut); % lower stem serif + dish_serif(3,4,d,2/3,1.4jut,e,1/2,right_jut)(dark); % upper diagonal serif + dish_serif(6,5,f,1/2,inner_jut,g,1/3,right_jut)(dark);fi % lower diagonal serif +penlabels(0,1,2,3,4,5,6,11); endchar; + +cmchar "The letter l"; +beginchar("l",5u#,asc_height#,0); l_width#:=5u#+2serif_fit#; +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif + dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif +penlabels(1,2); endchar; + +cmchar "The letter m"; +beginchar("m",15u#,x_height#,0); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +numeric shaved_stem; shaved_stem=hround(mfudged.stem-2stem_corr); +pickup tiny.nib; pos1(mfudged.stem,0); pos2(mfudged.stem,0); +pos1'(shaved_stem,0); pos2'(shaved_stem,0); +pos3(mfudged.stem,0); pos5(mfudged.stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; % stem, sic +lft x3l=hround(.5w-.5mfudged.stem); x5-x3=x3-x1; +if not monospace: r:=hround(x5+x1)+r-w; fi % change width for better fit +top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % left arch and middle stem +h_stroke(4,b,5,6); % right arch and right stem +if serifs: sloped_serif.l(1',2',c,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,d,1/3,jut,e,1/3,jut); % lower left serif + dish_serif(4,3,f,1/3,inner_jut,g,1/3,jut); % lower middle serif + dish_serif(6,5,h,1/3,inner_jut,i,1/3,jut); fi % lower right serif +penlabels(1,2,3,4,5,6); endchar; + +cmchar "The letter n"; +beginchar("n",10u#,x_height#,0); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); +pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +penlabels(1,2,3,4); endchar; + +cmchar "The letter o"; +beginchar("o",9u#,x_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +penpos1(vair,90); penpos3(vair',-90); +penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +penlabels(1,2,3,4); endchar; + +cmchar "The letter p"; +beginchar("p",10u#+serif_fit#,x_height#,desc_depth#); +italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); +adjust_fit(serif_fit#,0); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; +lft x1l=hround(2.5u-.5stem'); top y1=h if serifs: +min(oo,serif_drop) fi; +numeric edge; edge=rt x2r; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); +pos4(vair',90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); +rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l), 1/3[rt x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; +rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{left}...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); +pickup tiny.nib; bot y2=-d; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; pos8(hair,0); pos7'(stem,0); +z7'=z2; x8l=x7'l; bot y8=0; +filldraw stroke z7'e--z8e; % point +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +cmchar "The letter q"; +beginchar("q",10u#+serif_fit#,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi; +adjust_fit(0,serif_fit# if serifs: -.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); +numeric edge; edge=lft x2l; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair',90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),2/3[lft x2,edge]); y3=bar_height; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; y7=min(y3,y6+y4-y3+.6vair); +lft x7l=min(lft x7l-(rt x7r-tiny.rt x2r),1/3[lft x2,edge]); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{left}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{right}...{up}z7e; % bowl +y1=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z6l{right}...{up}z7l)); +pickup tiny.nib; bot y2=-d; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; +pos8(hround(hair-stem_corr),0); pos7'(stem',0); +z7'=z1; x8r=x7'r; top y8=h+oo; +filldraw stroke z7'e--z8e; % point +if serifs: dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +cmchar "The letter r"; +numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#]; +define_whole_blacker_pixels(r_flare); +beginchar("r",if serifs:max(7u#,5.5u#+r_flare#) else:6.5u# fi,x_height#,0); +italcorr x_height#*slant if not serifs: +.25u# fi; +adjust_fit(serif_fit#,0); +pickup fine.nib; top y4r=h+oo; +if serifs: pos4(vair,90); pos5(hair,0); + x4=w-max(1.75u,.25u+r_flare); + rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,h]+oo; + pos6(r_flare,0); bulb(4,5,6); % bulb +else: pos4(r_flare,90); rt x4=hround(w-.25u); fi +pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height; +filldraw stroke z3e{up}...{right}z4e; % arc +pickup tiny.nib; pos0(stem',0); pos2(stem',0); +pos1(hround(stem-3stem_corr),0); top y1=h+min(oo,serif_drop); +pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l; +lft x1l=hround(2.5u-.5stem'); bot y2=0; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi % lower serif +penlabels(1,2,3,4,5,6); endchar; + +cmchar "The letter s"; +beginchar("s",7.1u#,x_height#,0); +italcorr x_height#*slant-if serifs:.55u# else:.3u# fi; +adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi); +numeric theta; theta=90-angle(40u,h); slope:=-h/40u; % angle at middle +numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi; +numeric ess'; ess'=max(fine.breadth,ess); +pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100); +pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w; +top y2l=h+vround 1.5oo; bot y7r=-oo; +y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess'); +lft x3l=hround .6u; rt x6r=hround(w-.6u); +x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine; +ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; +ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; +interim superness:=more_super; +filldraw stroke super_arc.e(2,3) & z3e{down} + ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke +if serifs: pos1(hair,180); pos8(hair,180); + rt x1l=hround(w-1.05u); lft x8r=hround .6u; + bot y1=min(bot y2r,vround 1/5[top y5r,h]); + top y8=max(top y7l,vround 5/6 bot y4l); + filldraw stroke z1e{up}....{left}z2e; % upper arc + filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e; % lower arc + path upper_arc, lower_arc; + upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8; + pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0); + x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r; + x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8; + numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1')); + filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle; % upper barb + t:=xpart(lower_arc intersectiontimes(z9r--z8')); + filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle; % lower barb +else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100); + x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u; + top y1l=vround(.93h+1.5oo); bot y8r=vround .1h-oo; + filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal + filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal +penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); endchar; + +cmchar "The letter t"; +beginchar("t",6u#+max(u#,.5stem#), + min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),0); +italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; +adjust_fit(0,if serifs: 0 else: -.5u# fi); +numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); +pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180); +lft x2r=lft x3r=hround(2.5u-.5shaved_stem); +y2=y8; y3=max(.5bar_height,2vair); +pickup crisp.nib; pos8(bar,90); +rt x8=hround(w-1.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l; +if hefty: pos7(bar,90); + filldraw stroke z7e--z8e; % crossbar + pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0); + rt x1r=fine.rt x2l; top y1=h; + penpos2'(x1r-x1l,0); x2'=x1; y2'=y2; + filldraw stroke z1e--z2'e; % upper terminal +else: pos7(vair,90); pos1(hair,0); + rt x1r=fine.rt x2l; top y1=h; + filldraw z1l{down}...{left}z7r--z7l--z8l + --z8r--(x1r,y8r)--z1r--cycle; fi % upper terminal and crossbar +pickup fine.nib; interim superness:=more_super; +pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u); +if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l]; + (x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]); + filldraw stroke z2e..super_arc.e(3,4)...{up}z5e; % stem and hook + pickup crisp.nib; pos6(hair,0); pos5'(hair,0); + x6=x5=x5'; top y6=max(vround .75bar_height,top y5); y5=y5'; + filldraw stroke z5'e--z6e; % terminal +else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height]; + x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair; + filldraw stroke z2e..super_arc.e(3,4); % stem and hook + path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal + if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): + filldraw stroke z4e{right}...{up}z5e; + else: filldraw p; fi fi; +penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "The letter u"; +beginchar("u",10u#,x_height#,0); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; +if light_vair<fine.breadth: light_vair:=fine.breadth; fi +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos3(stem,0); pos4(stem',0); +lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; +if serifs: top y1=h+min(oo,serif_drop); bot y4=-min(oo,serif_drop); +else: top y1=h; bot y4=0; fi +pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; +penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; +penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); +y6=y0=2/3bar_height; +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e..z0e--z0'e..z4e; % right stem +pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; +(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); +filldraw stroke {{interim superness:=hein_super; + pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif + sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif + sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif +penlabels(1,2,3,4,5); labels(6); endchar; + +cmchar "The letter v"; +beginchar("v",if serifs: 9.5u# else:9u# fi,x_height#,0); +italcorr x_height#*slant+.25u#; +adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); +numeric left_stem,right_stem,outer_jut,alpha; +left_stem=fudged.stem-stem_corr; +right_stem=min(fudged.hair if hefty:-2stem_corr fi,left_stem); +outer_jut=.75jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4=h; +x2-x1=x4-x3; x2l+apex_corr=x3l; y2=y3=-apex_oo; +alpha=diag_ratio(2,right_stem,y1-y2,x4r-x1l-apex_corr); +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0>notch_cut: y0:=notch_cut; + fill z0+.5right{up}...{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} + ...{down}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+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif + dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); fi % right serif +penlabels(0,1,2,3,4); endchar; + +cmchar "The letter w"; +beginchar("w",13u#,x_height#,0); +italcorr x_height#*slant+.25u#; +adjust_fit(serif_fit#,serif_fit#); +numeric stem[],outer_jut,upper_notch,alpha,mid_corr; +outer_jut=.7jut; x1l=w-x8r=l+letter_fit+outer_jut+.25u; +stem1=fudged.stem-stem_corr; +stem4=min(fudged.hair if hefty:-2stem_corr fi,stem1); +stem2=if hefty:.1[vair,stem4] else: stem4 fi; +stem3=max(stem2,stem1-3stem_corr); +x2-x1=x4-x3=x6-x5=x8-x7; x2l+apex_corr=x3l; x6l+apex_corr=x7l; +y1=y8=h; y2=y3=y6=y7=-apex_oo; +y4=y5=if monospace: vround .6 fi\\ h; upper_notch=y4-notch_cut; +mid_corr=if monospace or hefty:-.3apex_corr else: .5jut fi; +alpha=diag_ratio(4,stem2-stem3+stem4,y1-y2,x8r-x1l+mid_corr-2apex_corr); +penpos1(alpha*stem1,0); penpos2(alpha*stem1,0); +penpos3(alpha*stem2,0); penpos4(alpha*stem2,0); +penpos5(alpha*stem3,0); penpos6(alpha*stem3,0); +penpos7(alpha*stem4,0); penpos8(alpha*stem4,0); +x4l-x1l=floor(x4l-x1l+.5(x5r+mid_corr-x4r)); % |x5r| $\approx$ |x4r+mid_corr| +z23=whatever[z1r,z2r]=whatever[z3l,z4l]; +z45=whatever[z3r,z4r]=whatever[z5l,z6l]; +z67=whatever[z5r,z6r]=whatever[z7l,z8l]; +fill diag_end(1l,2l,1,1,3r,4r){z4-z3} + ...if y45<upper_notch:(x45,upper_notch)+.5left{up} + --(x45,upper_notch)+.5right{down} else: z45&z45 fi + ...{z6-z5}diag_end(5l,6l,1,1,7r,8r)--diag_end(7r,8r,1,1,8l,7l){z7-z8} + ...if y67>notch_cut:(x67,notch_cut)+.5right{down} + --(x67,notch_cut)+.5left{up} else: z67&z67 fi + ...{z5-z6}special_diag_end(6,5,4,3){z3-z4} + ...if y23>notch_cut:(x23,notch_cut)+.5right{down} + --(x23,notch_cut)+.5left{up} else: z23&z23 fi + ...{z1-z2}diag_end(2r,1r,1,1,1l,2l)--cycle; % diagonals +if serifs: numeric inner_jut[]; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(5,6); prime_points_inside(8,7); + if monospace: inner_jut1=inner_jut4=1.5jut; + elseif hefty: inner_jut1=inner_jut4=jut; + else: fill diag_end(6r,5r,1,1,5l,6l)--.9[z5l,z6l] + ..{z5-z6}.1[z5r,z6r]--cycle; % middle stem + inner_jut2=.7inner_jut1; inner_jut4=1.1inner_jut3; + if rt x1'r+jut+.5u+1<=lft x5'l-.7jut: inner_jut1=jut; + else: rt x1'r+inner_jut1+.5u+1=lft x5'l-inner_jut2; fi + if rt x5'r+jut+.5u+1<=lft x8'l-1.1jut: inner_jut3=jut; + else: rt x5'r+inner_jut3+.5u+1=lft x8'l-inner_jut4; fi + dish_serif(5',6,e,1/3,inner_jut2,f,1/2,inner_jut3); fi % middle serif + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut1); % left serif + dish_serif(8',7,c,.6,inner_jut4,d,1/2,outer_jut)(dark); fi % right serif +penlabels(0,1,2,3,4,5,6,7,8,23,45,67); endchar; + +cmchar "The letter x"; +beginchar("x",if serifs:9.5u# else:9u# fi,x_height#,0); +italcorr x_height#*slant-.05u#; +adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); +numeric stem[],outer_jut,xjut,alpha[]; +stem1=fudged.stem-4stem_corr; stem2=min(fudged.hair,stem1); +outer_jut=.75jut; xjut= if serifs: (stem1-stem2)/4 else: 0 fi; +x1l=l+letter_fit+.1u+outer_jut; x2r=r-letter_fit-.3u-outer_jut-xjut; +x3l=l+letter_fit+outer_jut+xjut; x4r=r-letter_fit-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$'=.2[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+jut+.5u+1<=lft x2'l-jut-xjut: inner_jut1=jut; + else: rt x1'r+inner_jut1+.5u+1=lft x2'l-inner_jut1-xjut; fi + if rt x3'r+jut+.5u+1<=lft x4'l-jut-xjut: inner_jut2=jut; + else: rt x3'r+inner_jut2+.5u+1=lft x4'l-inner_jut2-xjut; fi + dish_serif(1',4,a,1/3,outer_jut,b,2/3,inner_jut1); % upper left serif + dish_serif(4',1,c,2/3,inner_jut2,d,1/3,outer_jut); % lower right serif + dish_serif(2',3,e,2/3,inner_jut1+xjut, + f,1/2,outer_jut+xjut)(dark); % upper right serif + dish_serif(3',2,g,1/2,outer_jut+xjut, + h,2/3,inner_jut2+xjut)(dark); fi % lower left serif +penlabels(0,1,2,3,4,12,13,24,34); endchar; + +cmchar "The letter y"; +beginchar("y",if serifs:9.5u# else:9u# fi,x_height#,desc_depth#); +italcorr x_height#*slant+.25u#; +adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); +numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; +left_stem=fudged.stem-stem_corr; +right_stem=fudged.hair if hefty:-2stem_corr fi; +bot_stem=fudged.hair if hefty:-8stem_corr fi; +bot_vair=Vround(if serifs: vair else:.5[vair,bot_stem] fi); +outer_jut=.75jut; +x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4r=h; y2=y3=0; x2l=x3l; +numeric alpha,alpha[]; x9=3u; y9=bot_vair-d-oo; +alpha1=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-apex_corr); +alpha2=diag_ratio(1,bot_stem,y1-y9,x4r-x9); +if alpha1<alpha2: x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1; +else: alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); +if y0>notch_cut: y0:=notch_cut; + fill z0+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) + --z3r--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0+.5left--cycle; % left and right diagonals +else: fill z0--diag_end(0,4l,1,1,4r,3r)--z3r--z2l + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals +penpos5(alpha*bot_stem,0); z5r=whatever[z3r,z4r]; y5-.5vair=-.5d; +if serifs: numeric light_bulb; light_bulb=hround 7/8[hair,flare]; clearpen; + penpos6(vair,-90); penpos7(hair,-180); penpos8(light_bulb,-180); + x6=2u; y6r=-d-oo; y8-.5light_bulb=-.85d; x8r=hround .35u; + fill stroke z3e---z5e...{left}z6e; bulb(6,7,8); % arc and bulb + numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(4,3); + if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif + dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif +else: penpos6(bot_vair,-90); x6=2.5u; y6r=-d-oo; + fill stroke z3e---z5e...{left}z6e; % arc + pickup fine.nib; pos6'(bot_vair,-90); z6'=z6; + pos7(2/3[bot_vair,flare],-85); + lft x7l=hround u; bot y7r=vround-.96d-oo; y7l:=good.y y7l; + filldraw stroke term.e(6',7,left,1,4); fi % arc and terminal +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +cmchar "The letter z"; +beginchar("z",8u#,x_height#,0); +italcorr x_height#*slant-.5serif_fit#-.3u#; +adjust_fit(0,.5serif_fit#); +numeric arm_thickness[],z_stem; +if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; + z_stem=.6[vair,stem]; +else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi +pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u; +top y1=h; y2=min(y1,h-2/3arm_thickness1); +bot y4=0; y3=max(y4,2/3arm_thickness2); +numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); +penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); +penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); +pair delta; delta=penoffset z3-z2 of currentpen; +fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l + ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r + ---cycle; % diagonal +pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); +top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; +arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak +pos7(arm_thickness2,-90); pos8(hair,0); +bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps; +arm(7,8,b,beak_darkness,.6beak_jut); % lower arm and beak +penlabels(1,2,3,4,5,6,7,8); endchar; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/bromlig.mf b/Master/texmf-dist/fonts/source/public/cmbright/bromlig.mf new file mode 100644 index 00000000000..fdb142d9c9e --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/bromlig.mf @@ -0,0 +1,170 @@ +% This file describes five roman ligatures that begin with `f' +% and puts them in code positions \0013--\0017. +% Modified by WaS for the CM Bright fonts in 1995. +numeric itc#; % modified italic correction on `f' and `ff' +itc#=if serifs: max(0,flare#-.25u#) else: 1.25u# fi; + +ligtable "f": "i"=:oct"014", "f"=:oct"013", "l"=:oct"015", + "'" kern itc#, "?" kern itc#, "!" kern itc#, ")" kern itc#, "]" kern itc#; +ligtable oct"013": "i"=:oct"016", "l"=:oct"017", + "'" kern itc#, "?" kern itc#, "!" kern itc#, ")" kern itc#, "]" kern itc#; + +cmchar "The ligature ff"; +beginchar(oct"013",10.5u#+2letter_fit#,asc_height#,0); +italcorr asc_height#*slant+if serifs:flare#-.25u# else: 1.25u# fi; +adjust_fit(0,0); +pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); +pos11(stem',0); rt x11r=hround(w-3u+.5stem'); +pickup fine.nib; numeric bulb_diam, inner_jut; +if serifs: bulb_diam=hround .8[stem,flare]; + pos2(bulb_diam,0); pos12(bulb_diam,0); + rt x2r=hround(rt x11r-stem_corr); lft x12l=hround(w-.75u+.5); + y2+.5bulb_diam=.85[x_height,h+oo]; y12+.5bulb_diam=.9[x_height,h+oo]; + if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; + else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi +else: pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 6.25u; + pos12(5/7[vair,flare],90); y12=y2; rt x12=hround(w+.75u); fi +f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif +f_stroke(11,12,d,e,f,inner_jut,1.25jut); % right stem, arc, terminal, serif +pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; +pos3(bar,90); pos4(bar,90); +rt x4=hround(w-1/3u); +if hefty: pos3'(bar,90); x3'-x1=x4-x11; y3'=y3; + pos4'(bar,90); x4'=x11; y4'=y4; + filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars +else: filldraw stroke z3e--z4e; fi % bar +penlabels(1,2,3,4,11,12); endchar; + +cmchar "The ligature fi"; +beginchar(oct"014",10u#+2letter_fit#,asc_height#,0); +numeric dot_diam#; +% diameter of dot = stem width of `i' +dot_diam#=stem'/hppp; +italcorr asc_height#*slant-serif_fit#+.5if serifs:stem# else:dot_diam# fi-2u#; +adjust_fit(0,serif_fit#); +pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); +pos11(stem',0); rt x11r=hround(w-2.5u+.5stem'); +pos12(stem',0); x11=x12; bot y12=0; +pickup fine.nib; numeric bulb_diam, inner_jut; +if serifs: bulb_diam=hround 1/4[.8[stem,flare],dot_size]; + pos2(bulb_diam,0); x2r=x12r; + y2+.5bulb_diam=.8[x_height,h+oo]; top y11=x_height+min(oo,serif_drop); + if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; + else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi +else: bulb_diam=stem'; + pos2(6/7[vair,flare],90); top y2r=h; rt x2=hround 5.3u; + pickup tiny.nib; pos13(bulb_diam,0); pos14(bulb_diam,90); + x13=x11-.5; top y14r=min(2x_height,h+1); top y11=x_height; + if bot y14l-x_height<tiny: y14l:=min(y14r-eps,y11+2tiny); fi + x13=x14; y13=.5[y14l,y14r]; dot(13,14); % dot +fi; % this is the ligature we're drawing +f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif +pickup tiny.nib; filldraw stroke z11e--z12e; % right stem +pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; +pos3(bar,90); pos4(bar,90); +if serifs: x4=x11; % bar will overlap upper right serif + sloped_serif.l(11,12,d,1/3,jut,min(oo,serif_drop)); % upper right serif + dish_serif(12,11,e,1/3,inner_jut,f,1/3,jut); % lower right serif +else: rt x4= hround 5.3u; fi +pickup crisp.nib; filldraw stroke z3e--z4e; % bar +penlabels(1,2,3,4,11,12,13,14); endchar; + +cmchar "The ligature fl"; +beginchar(oct"015",10u#+2letter_fit#,asc_height#,0); +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(0,serif_fit#); +pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); +pos11(stem',0); rt x11r=hround(w-2.5u+.5stem'); +pos12(stem',0); x11=x12; bot y12=0; top y11=h; +filldraw stroke z11e--z12e; % right stem +pickup fine.nib; numeric bulb_diam, inner_jut; +if serifs: bulb_diam=hround .8[stem,flare]; + pos2(bulb_diam,0); x2r=x11r-stem_corr; + y2+.5bulb_diam=.9[x_height,h+oo]; + sloped_serif.l(11,12,d,1/3,eps,max(serif_drop,oo)); % erase excess at top + if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; + else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi +else: pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.3u; fi +f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif +pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; +pos3(bar,90); pos4(bar,90); +if serifs: x4=x11; + dish_serif(12,11,e,1/3,inner_jut,f,1/3,jut); % lower right serif +else: rt x4= hround 5.3u; fi +pickup crisp.nib; filldraw stroke z3e--z4e; % bar +penlabels(1,2,3,4,11,12); endchar; + +cmchar "The ligature ffi"; +beginchar(oct"016",15u#+4letter_fit#,asc_height#,0); +numeric dot_diam#; +% diameter of dot = stem width of `i', if we don't make serifs; +% do the same trick later once more with the unsharped dimension: +if serifs: dot_diam#=dot_size# else: dot_diam#=stem'/hppp fi; +italcorr asc_height#*slant-serif_fit#+.5if serifs:stem# else:dot_diam# fi-2u#; +adjust_fit(0,serif_fit#); +pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); +pos11(stem',0); lft x11l=hround(.5w-.5stem'); +pos21(stem',0); rt x21r=hround(w-2.5u+.5stem'); +pos22(stem',0); x21=x22; bot y22=0; +pickup fine.nib; numeric bulb_diam, inner_jut; +if serifs: bulb_diam=hround 1/4[.8[stem,flare],dot_size]; + pos2(bulb_diam,0); x2r=x11r-stem_corr; + pos12(bulb_diam,0); x12r=x21r; + top y21=x_height+min(oo,serif_drop); + y2+.5bulb_diam=.8[x_height,h+oo]; y12=y2; + if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; + else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi +else: bulb_diam=stem'; + pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; + pos12(6/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); + pickup tiny.nib; pos23(bulb_diam,0); pos24(bulb_diam,90); + x23=x21-.5; top y24r=min(2x_height,h+1); top y21=x_height; + if bot y24l-x_height<tiny: y24l:=min(y24r-eps,y21+2tiny); fi + x23=x24; y23=.5[y24l,y24r]; dot(23,24); fi % dot +f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif +f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto +pickup tiny.nib; filldraw stroke z21e--z22e; % right stem +pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; +pos3(bar,90); pos4(bar,90); +if serifs: x4=x21; % bar will overlap upper right serif + sloped_serif.l(21,22,g,1/3,jut,min(oo,serif_drop)); % upper right serif + dish_serif(22,21,h,1/3,inner_jut,i,1/3,jut); % lower right serif +else: rt x4=hround(.5w+2.8u); fi +pickup crisp.nib; +if hefty: pos3'(bar,90); x3'-x1=x4-x11; y3'=y3; + pos4'(bar,90); x4'=x11; y4'=y4; + filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars +else: filldraw stroke z3e--z4e; fi % bar +penlabels(1,2,3,4,11,12,21,22,23,24); endchar; + +cmchar "The ligature ffl"; +beginchar(oct"017",15u#+4letter_fit#,asc_height#,0); +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(0,serif_fit#); +pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); +pos11(stem',0); lft x11l=hround(.5w-.5stem'); +pos21(stem',0); rt x21r=hround(w-2.5u+.5stem'); +pos22(stem',0); x21=x22; bot y22=0; top y21=h; +filldraw stroke z21e--z22e; % right stem +pickup fine.nib; numeric bulb_diam, inner_jut; +if serifs: bulb_diam=hround .8[stem,flare]; + pos2(bulb_diam,0); x2r=x11r-stem_corr; + pos12(bulb_diam,0); x12r=x21r-stem_corr; + y2+.5bulb_diam=.85[x_height,h+oo]; y12+.5bulb_diam=.9[x_height,h+oo]; + sloped_serif.l(21,22,g,1/3,eps,max(serif_drop,oo)); % erase excess at top + if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; + else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi +else: pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; + pos12(5/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); fi +f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif +f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto +pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; +pos3(bar,90); pos4(bar,90); +if serifs: dish_serif(22,21,h,1/3,inner_jut,i,1/3,jut); % lower right serif + pickup crisp.nib; x4=x21; +else: rt x4=hround(.5w+2.8u); fi +if hefty: pos3'(bar,90); x3'-x1=x4-x11; y3'=y3; + pos4'(bar,90); x4'=x11; y4'=y4; + filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars +else: filldraw stroke z3e--z4e; fi % bar +penlabels(1,2,3,4,11,12,21,22); endchar; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/bromms.mf b/Master/texmf-dist/fonts/source/public/cmbright/bromms.mf new file mode 100644 index 00000000000..9987a9c8aa5 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/bromms.mf @@ -0,0 +1,243 @@ +% This file contains special characters of ``math italic'' fonts +% that actually are not supposed to be slanted. +% Changed for the CM Bright fonts [1995/09/23 v0.997 WaS] + +% Codes \0050--\0057, \0072--\0077, and \0133--\0137 are generated. + +% The italic corrections are zero in all of these characters. + +cmchar "Leftward top half arrow"; +compute_spread(.45sym_height#,.55sym_height#); +beginchar(oct"050",18sym_u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,90); pos2(rule_thickness,90); +pos3(rule_thickness,0); pos4(rule_thickness,0); +y0=y1=y2=math_axis; x1+.5rule_thickness=hround(w-sym_u); lft x0=hround sym_u; +y3-y0=y0-y4=.36asc_height+eps; x3=x4=x0+4sym_u+eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +numeric t; path p; p=z4r..{2(x0-x4),y0-y4}z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +filldraw z0--(x0,y2l)---z1l..z1r---z2r + ..subpath (t,0) of\\(z3r..{2(x0-x3),y0-y3}z5r) + --z3l..{2(x0-x3),y0-y3}cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6); endchar; + +cmchar "Leftward bottom half arrow"; +compute_spread(.45sym_height#,.55sym_height#); +beginchar(oct"051",18sym_u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,90); pos2(rule_thickness,90); +pos3(rule_thickness,0); pos4(rule_thickness,0); +y0=y1=y2=math_axis; x1+.5rule_thickness=hround(w-sym_u); lft x0=hround sym_u; +y3-y0=y0-y4=.36asc_height+eps; x3=x4=x0+4sym_u+eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +numeric t; path p; p=z4r..{2(x0-x4),y0-y4}z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +filldraw z0{2(x4-x0),y4-y0}..z4l + --subpath (0,t) of\\(z4r..{2(x0-x4),y0-y4}z6r) + ..z2l---z1l..z1r---(x0,y2r)--cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6); endchar; + +cmchar "Rightward top half arrow"; +compute_spread(.45sym_height#,.55sym_height#); +beginchar(oct"052",18sym_u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,90); pos2(rule_thickness,90); +pos3(rule_thickness,0); pos4(rule_thickness,0); +y0=y1=y2=math_axis; x1-.5rule_thickness=hround sym_u; rt x0=hround(w-sym_u); +y3-y0=y0-y4=.36asc_height+eps; x3=x4=x0-4sym_u-eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +numeric t; path p; p=z4l..{2(x0-x4),y0-y4}z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +filldraw z0--(x0,y2l)---z1l..z1r---z2r + ..subpath (t,0) of\\(z3l..{2(x0-x3),y0-y3}z5r) + --z3r..{2(x0-x3),y0-y3}cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6); endchar; + +cmchar "Rightward bottom half arrow"; +compute_spread(.45sym_height#,.55sym_height#); +beginchar(oct"053",18sym_u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,90); pos2(rule_thickness,90); +pos3(rule_thickness,0); pos4(rule_thickness,0); +y0=y1=y2=math_axis; x1-.5rule_thickness=hround sym_u; rt x0=hround(w-sym_u); +y3-y0=y0-y4=.36asc_height+eps; x3=x4=x0-4sym_u-eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +numeric t; path p; p=z4l..{2(x0-x4),y0-y4}z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +filldraw z0{2(x4-x0),y4-y0}..z4r + --subpath (0,t) of\\(z4l..{2(x0-x4),y0-y4}z6r) + ..z2l---z1l..z1r---(x0,y2r)--cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6); endchar; + +cmchar "Left hook"; +compute_spread(.45sym_height#,.55sym_height#); +beginchar(oct"054",5sym_u#,v_center(2spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x2=hround sym_u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]; y3=math_axis; +draw z1{left}...z2{down}...z3{right}; % hook +labels(1,2,3); endchar; + +cmchar "Right hook"; +compute_spread(.45sym_height#,.55sym_height#); +beginchar(oct"055",5sym_u#,v_center(2spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +rt x2=hround(w-sym_u)+eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]; y3=math_axis; +draw z1{right}...z2{down}...z3{left}; % hook +labels(1,2,3); endchar; + +cmchar "Triangle pointing right"; +beginchar(oct"056",9sym_u#,v_center(sym_height#)); +adjust_fit(0,0); pickup rule.nib; +numeric a,b; a=sqrt(3.14159\\ /sqrt3); % triangle area $=$ circle area +b=.5w-(rt hround sym_u); .5[x1',x2']=.5w; x2'-x1'=a*b*sqrt3; +x1=x3=good.x x1'; x2=good.x x2'; +y2=.5[y1,y3]=math_axis; y1=good.y(y2+a*b); +draw z1--z2--z3--cycle; % triangle +labels(1,2,3); endchar; + +cmchar "Triangle pointing left"; +beginchar(oct"057",9sym_u#,v_center(sym_height#)); +adjust_fit(0,0); pickup rule.nib; +numeric a,b; a=sqrt(3.14159\\ /sqrt3); % triangle area $=$ circle area +b=.5w-(rt hround sym_u); .5[x1',x2']=.5w; x1'-x2'=a*b*sqrt3; +x1=x3=good.x x1'; x2=good.x x2'; +y2=.5[y1,y3]=math_axis; y1=good.y(y2+a*b); +draw z1--z2--z3--cycle; % triangle +labels(1,2,3); endchar; + +cmchar "Period"; +numeric dot_diam#; dot_diam#=if monospace: 5/4 fi\\ dot_size#; +define_whole_blacker_pixels(dot_diam); +beginchar(oct"072",5u#,dot_diam#,0); % non-ASCII position +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 "Comma"; +numeric dot_diam#; dot_diam#=if monospace: 5/4 fi\\ dot_size#; +define_whole_blacker_pixels(dot_diam); +beginchar(oct"073",5u#,dot_diam#,comma_depth#); % non-ASCII position +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 "Less than sign"; +compute_spread(5/4sym_height#,3/2sym_height#); +beginchar("<",14sym_u#,v_center(spread#+rule_thickness#)); +italcorr h#*slant-sym_u#; +adjust_fit(0,0); pickup rule.nib; +lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]=math_axis; +draw z1--z2--z3; % diagonals +labels(1,2,3); endchar; + +cmchar "Virgule (slash)"; +beginchar(oct"075",9sym_u#,body_height#,paren_depth#); % non-ASCII position +italcorr body_height#*slant-.5sym_u#; +adjust_fit(0,0); pickup rule.nib; +rt x1=hround(w-sym_u)+eps; top y1=h+eps; +lft x2=hround sym_u-eps; bot y2=-d-eps; +draw z1--z2; % diagonal +penlabels(1,2); endchar; + +cmchar "Greater than sign"; +compute_spread(5/4sym_height#,3/2sym_height#); +beginchar(">",14sym_u#,v_center(spread#+rule_thickness#)); +italcorr math_axis#*slant-sym_u#; +adjust_fit(0,0); pickup rule.nib; +rt x2=hround(w-1.5sym_u)+eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]=math_axis; +draw z1--z2--z3; % diagonals +labels(1,2,3); endchar; + +cmchar "Five-pointed star"; +beginchar(oct"077",9sym_u#,v_center(sym_height#)); +adjust_fit(0,0); pickup tiny.nib; +numeric theta; theta=360/5; % degrees between points +pos0(curve,0); pos1(rule_thickness,90); x0=x1=good.x .5w; +top y1r=vround(math_axis+.5x_height+.5rule_thickness); +ypart(.5[z1,z0+(z1-z2) rotated 2theta])=math_axis; +pos2(curve,theta); pos3(rule_thickness,90+theta); +z2=z0; z3-z0=(z1-z0) rotated theta; +z4=whatever[z0l,z1r]=whatever[z2r,z3r]; +filldraw for n=0 upto 4: + z0+(z1r-z0)rotated(n*theta)--z0+(z4-z0)rotated(n*theta)--endfor + cycle; % star +penlabels(0,1,2,3,4); endchar; + +cmchar "Musical flat sign"; +beginchar(oct"133",7u#,body_height#,0); +adjust_fit(0,0); pickup crisp.nib; +numeric light_hair; light_hair=if hefty: vair else: hair fi; +pos1(light_hair,0); pos2(light_hair,180); pos3(light_hair,0); x1=x2=x3; +pos4(.25[light_hair,curve],60); pos5(curve,0); +lft x1l=hround u; x4=.5w; rt x5r=hround(w-u); +top y1=h; bot y3=-o; top y4=x_height+o; +y2=y4-.2x_height; y5=3/4x_height; +filldraw stroke z1e--z3e; % stem +filldraw stroke z2e{up}...z4e{right}...z5e{down} + ...{2(x3-x5e),y3-y5e}z3e; % bowl +penlabels(1,2,3,4,5); endchar; + +cmchar "Musical natural sign"; +beginchar(oct"134",7u#,asc_height#,desc_depth#); +adjust_fit(0,0); pickup crisp.nib; +numeric light_hair; light_hair=if hefty: vair else: hair fi; +pos1(light_hair,0); pos2(curve,90); pos3(curve,90); +pos4(curve,90); pos5(curve,90); pos6(light_hair,0); +rt x1r=hround 15/8u; x2=x4=x1l; x3=x5=x6r=w-x2; +y1=h+o; top y2r=0; .5[y2,y3]=0; y4-y2=y5-y3=x_height; bot y6=-d-o; +x2'=x1r; z2'=whatever[z2r,z3r]; x5'=x6l; z5'=whatever[z4l,z5l]; +(x1r,y)=z1l+whatever*(z5-z4); y6l:=y6l-(y-y1r); y1r:=y; +filldraw z1l--z2l--z3l--z3r--z2'--z1r--cycle; % left stem and lower bar +filldraw z6r--z5r--z4r--z4l--z5'--z6l--cycle; % right stem and upper bar +penlabels(1,2,3,4,5,6); endchar; + +cmchar "Musical sharp sign"; +beginchar(oct"135",7u#,asc_height#,desc_depth#); +adjust_fit(0,0); pickup crisp.nib; +numeric light_hair; light_hair=if hefty: vair else: hair fi; +pos1(curve,90); pos2(curve,90); pos3(curve,90); pos4(curve,90); +lft x1=lft x3=hround u; x2=x4=w-x1; +top y3r=0; .5[y3,y4]=0; y1-y3=y2-y4=x_height; +filldraw stroke z1e--z2e; filldraw stroke z3e--z4e; % bars +numeric theta,hstem; theta=angle(z2-z1); +(hstem-crisp)*cosd theta=light_hair-crisp; +pos5(hstem,theta); pos6(hstem,theta); pos7(hstem,theta); pos8(hstem,theta); +lft x5l=lft x6l=hround(2u-.5light_hair); x7=x8=w-x6; +top y7l=h+o; bot y6r=-d-o; z7-z5=z8-z6=(whatever,0) rotated theta; +filldraw stroke z5e--z6e; filldraw stroke z7e--z8e; % stems +penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Slur below (smile)"; +beginchar(oct"136",18sym_u#,v_center(.5sym_height#)); +adjust_fit(0,0); pickup fine.nib; +numeric light_stem; light_stem=Vround .5[vair,stem]; +x1-.5hair=hround sym_u; y1+.5hair=vround(h+.5hair); x3=w-x1; y3=y1; +pos2(light_stem,90); x2=.5w; y2l=good.y -d; +numeric theta; theta=angle((z2-z1)yscaled 3); +pos1(hair,90+theta); pos3(hair,90-theta); +filldraw z1l{dir theta}...z2l...{dir-theta}z3l + ..z3r{-dir-theta}...z2r...{-dir theta}z1r..cycle; % arc +penlabels(1,2,3); endchar; + +cmchar "Slur above (frown)"; +beginchar(oct"137",18sym_u#,v_center(.5sym_height#)); +adjust_fit(0,0); pickup fine.nib; +numeric light_stem; light_stem=Vround .5[vair,stem]; +x1-.5hair=hround sym_u; y1-.5hair=vround(-d-.5hair); x3=w-x1; y3=y1; +pos2(light_stem,90); x2=.5w; y2=good.y h; +numeric theta; theta=angle((z2-z1)yscaled 3); +pos1(hair,90+theta); pos3(hair,90-theta); +filldraw z1l{dir theta}...z2l...{dir-theta}z3l + ..z3r{-dir-theta}...z2r...{-dir theta}z1r..cycle; % arc +penlabels(1,2,3); endchar; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/brs10pt.mf b/Master/texmf-dist/fonts/source/public/cmbright/brs10pt.mf new file mode 100644 index 00000000000..88c2c1f7392 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/brs10pt.mf @@ -0,0 +1,74 @@ +% Dimensions for Computer Modern Bright semibold 10pt [1997/04/25 v1.0 (WaS)] + +numeric spt#; +1spt#=1.5pt#; + +u#:=21/36pt#; % unit width +width_adj#:=12/36pt#; % width adjustment for certain characters +serif_fit#:=-12/36pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=-15/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#:=250/36pt#; % height of caps +fig_height#:=236/36pt#; % height of numerals +x_height#:=170/36pt#; % height of lowercase without ascenders +math_axis#:=95/36pt#; % axis of symmetry for math symbols +bar_height#:=90/36pt#; % height of crossbar in lowercase e (.53 x_height) +comma_depth#:=40/36pt#; % depth of comma below baseline +desc_depth#:=60/36pt#; % depth of lowercase descenders + +crisp#:=0pt#; % diameter of serif corners +tiny#:=0pt#; % diameter of rounded corners +fine#:=0pt#; % diameter of sharply rounded corners +thin_join#:=8/36spt#; % width of extrafine details +hair#:=23/36spt#; % lowercase hairline breadth +stem#:=23/36spt#; % lowercase stem breadth +curve#:=23/36spt#; % lowercase curve breadth +ess#:=23/36spt#; % breadth in middle of lowercase s +flare#:=21/36spt#; % diameter of bulbs or breadth of terminals +dot_size#:=28/36spt#; % diameter of dots +cap_hair#:=23/36spt#; % uppercase hairline breadth +cap_stem#:=25/36spt#; % uppercase stem breadth +cap_curve#:=25/36spt#; % uppercase curve breadth +cap_ess#:=25/36spt#; % breadth in middle of uppercase s +%rule_thickness#:=.4spt#; % thickness of lines in math symbols +rule_thickness#:=.49pt#; % 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#:=0pt#; % protrusion of lowercase serifs +cap_jut#:=0pt#; % protrusion of uppercase serifs +beak_jut#:=0pt#; % horizontal protrusion of beak serifs +beak#:=0pt#; % vertical protrusion of beak serifs +vair#:=18/36spt#; % vertical diameter of hairlines +notch_cut#:=23/36spt#; % maximum breadth above or below notches +bar#:=18/36spt#; % lowercase bar thickness +slab#:=19/36spt#; % serif and arm thickness +cap_bar#:=19/36spt#; % uppercase bar thickness +cap_band#:=19/36spt#; % uppercase thickness above/below lobes +cap_notch_cut#:=23/36spt#; % max breadth above/below uppercase notches +serif_drop#:=0pt#; % vertical drop of sloped serifs +stem_corr#:=.5/36spt#; % for small refinements of stem breadth +vair_corr#:=.5/36spt#; % for small refinements of hairline height +apex_corr#:=4/36spt#; % extra width at diagonal junctions + +o#:=6/36pt#; % amount of overshoot for curves +apex_o#:=2/36pt#; % amount of overshoot for diagonal junctions + +fudge:=.95; % factor applied to weights of heavy characters +math_spread:=0; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/10; % extra openness inside bowls +beak_darkness:=0; % fraction of triangle inside beak serifs + +square_dots:=true; % should dots be square? +hefty:=true; % should we try hard not to be overweight? +serifs:=false; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? + +sym_u#:=20/36pt#; % unit of width for math symbols +sym_height#:=155/36pt#; % unit of height for math symbols + +% end of br10pt.mf diff --git a/Master/texmf-dist/fonts/source/public/cmbright/brs17pt.mf b/Master/texmf-dist/fonts/source/public/cmbright/brs17pt.mf new file mode 100644 index 00000000000..9316517f94f --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/brs17pt.mf @@ -0,0 +1,75 @@ +% Dimensions for Computer Modern Bright semibold 17pt [1997/05/26 v1.0c (WaS)] + +numeric Pt#; +1Pt#=1.728pt#; +numeric sPt#; +1sPt#=1.5Pt#; + +u#:=21/36Pt#; % unit width +width_adj#:=12/36Pt#; % width adjustment for certain characters +serif_fit#:=-15/36Pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=-15/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#:=250/36Pt#; % height of caps +fig_height#:=236/36Pt#; % height of numerals +x_height#:=170/36Pt#; % height of lowercase without ascenders +math_axis#:=95/36Pt#; % axis of symmetry for math symbols +bar_height#:=90/36Pt#; % height of crossbar in lowercase e (.53 x_height) +comma_depth#:=40/36Pt#; % depth of comma below baseline +desc_depth#:=60/36Pt#; % depth of lowercase descenders + +crisp#:=0Pt#; % diameter of serif corners +tiny#:=0Pt#; % diameter of rounded corners +fine#:=0Pt#; % diameter of sharply rounded corners +thin_join#:=8/36sPt#; % width of extrafine details +hair#:=23/36sPt#; % lowercase hairline breadth +stem#:=23/36sPt#; % lowercase stem breadth +curve#:=23/36sPt#; % lowercase curve breadth +ess#:=23/36sPt#; % breadth in middle of lowercase s +flare#:=21/36sPt#; % diameter of bulbs or breadth of terminals +dot_size#:=28/36sPt#; % diameter of dots +cap_hair#:=23/36sPt#; % uppercase hairline breadth +cap_stem#:=25/36sPt#; % uppercase stem breadth +cap_curve#:=25/36sPt#; % uppercase curve breadth +cap_ess#:=25/36sPt#; % breadth in middle of uppercase s +%rule_thickness#:=.4sPt#; % thickness of lines in math symbols +rule_thickness#:=.49Pt#; % 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#:=0Pt#; % protrusion of lowercase serifs +cap_jut#:=0Pt#; % protrusion of uppercase serifs +beak_jut#:=0Pt#; % horizontal protrusion of beak serifs +beak#:=0Pt#; % vertical protrusion of beak serifs +vair#:=18/36sPt#; % vertical diameter of hairlines +notch_cut#:=23/36sPt#; % maximum breadth above or below notches +bar#:=18/36sPt#; % lowercase bar thickness +slab#:=19/36sPt#; % serif and arm thickness +cap_bar#:=19/36sPt#; % uppercase bar thickness +cap_band#:=19/36sPt#; % uppercase thickness above/below lobes +cap_notch_cut#:=23/36sPt#; % max breadth above/below uppercase notches +serif_drop#:=0Pt#; % vertical drop of sloped serifs +stem_corr#:=.5/36sPt#; % for small refinements of stem breadth +vair_corr#:=.5/36sPt#; % for small refinements of hairline height +apex_corr#:=4/36sPt#; % extra width at diagonal junctions + +o#:=7.5/36pt#; % amount of overshoot for curves +apex_o#:=2.5/36pt#; % amount of overshoot for diagonal junctions +fudge:=.95; % factor applied to weights of heavy characters +math_spread:=0; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/10; % extra openness inside bowls +beak_darkness:=0; % fraction of triangle inside beak serifs + +square_dots:=true; % should dots be square? +hefty:=true; % should we try hard not to be overweight? +serifs:=false; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? + +sym_u#:=20/36Pt#; % unit of width for math symbols +sym_height#:=155/36Pt#; % unit of height for math symbols + +% end of brs17pt.mf diff --git a/Master/texmf-dist/fonts/source/public/cmbright/brs8pt.mf b/Master/texmf-dist/fonts/source/public/cmbright/brs8pt.mf new file mode 100644 index 00000000000..d9ea980be97 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/brs8pt.mf @@ -0,0 +1,73 @@ +% Dimensions for Computer Modern Bright semibold 8pt [1997/05/26 v1.0c (WaS)] + +numeric spt#; +1spt#=1.5pt#; + +u#:=17.8/36pt#; % unit width +width_adj#:=9.6/36pt#; % width adjustment for certain characters +serif_fit#:=-10/36pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=-12/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#:=200/36pt#; % height of caps +fig_height#:=189/36pt#; % height of numerals +x_height#:=136/36pt#; % height of lowercase without ascenders +math_axis#:=76/36pt#; % axis of symmetry for math symbols +bar_height#:=72/36pt#; % height of crossbar in lowercase e (.53 x_height) +comma_depth#:=32/36pt#; % depth of comma below baseline +desc_depth#:=48/36pt#; % depth of lowercase descenders + +crisp#:=0pt#; % diameter of serif corners +tiny#:=0pt#; % diameter of rounded corners +fine#:=0pt#; % diameter of sharply rounded corners +thin_join#:=7/36spt#; % width of extrafine details +hair#:=21/36spt#; % lowercase hairline breadth +stem#:=21/36spt#; % lowercase stem breadth +curve#:=21/36spt#; % lowercase curve breadth +ess#:=21/36spt#; % breadth in middle of lowercase s +flare#:=19/36spt#; % diameter of bulbs or breadth of terminals +dot_size#:=24/36spt#; % diameter of dots +cap_hair#:=21/36spt#; % uppercase hairline breadth +cap_stem#:=21.75/36spt#; % uppercase stem breadth +cap_curve#:=21.75/36spt#; % uppercase curve breadth +cap_ess#:=21/36spt#; % breadth in middle of uppercase s +%rule_thickness#:=.36spt#; % thickness of lines in math symbols +rule_thickness#:=.44pt#; % 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#:=0pt#; % protrusion of lowercase serifs +cap_jut#:=0pt#; % protrusion of uppercase serifs +beak_jut#:=0pt#; % horizontal protrusion of beak serifs +beak#:=0pt#; % vertical protrusion of beak serifs +vair#:=16/36spt#; % vertical diameter of hairlines +notch_cut#:=21/36spt#; % maximum breadth above or below notches +bar#:=16/36spt#; % lowercase bar thickness +slab#:=17/36spt#; % serif and arm thickness +cap_bar#:=17/36spt#; % uppercase bar thickness +cap_band#:=17/36spt#; % uppercase thickness above/below lobes +cap_notch_cut#:=21/36spt#; % max breadth above/below uppercase notches +serif_drop#:=0pt#; % vertical drop of sloped serifs +stem_corr#:=.5/36spt#; % for small refinements of stem breadth +vair_corr#:=.5/36spt#; % for small refinements of hairline height +apex_corr#:=2/36spt#; % extra width at diagonal junctions + +o#:=4.5/36pt#; % amount of overshoot for curves +apex_o#:=1.9/36pt#; % amount of overshoot for diagonal junctions +fudge:=.92; % factor applied to weights of heavy characters +math_spread:=0.4; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/10; % extra openness inside bowls +beak_darkness:=0; % fraction of triangle inside beak serifs + +square_dots:=true; % should dots be square? +hefty:=true; % should we try hard not to be overweight? +serifs:=false; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? + +sym_u#:=17/36pt#; +sym_height#:=124/36pt#; % unit of height for math symbols + +% end of brs8pt.mf diff --git a/Master/texmf-dist/fonts/source/public/cmbright/brs9pt.mf b/Master/texmf-dist/fonts/source/public/cmbright/brs9pt.mf new file mode 100644 index 00000000000..a99e2ac2b09 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/brs9pt.mf @@ -0,0 +1,73 @@ +% Dimensions for Computer Modern Bright semibold 9pt [1997/05/26 v1.0c (WaS)] + +numeric spt#; +1spt#=1.5pt#; + +u#:=19.4/36pt#; % unit width +width_adj#:=10.8/36pt#; % width adjustment for certain characters +serif_fit#:=-11/36pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=-13.5/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#:=225/36pt#; % height of caps +fig_height#:=212/36pt#; % height of numerals +x_height#:=153/36pt#; % height of lowercase without ascenders +math_axis#:=85.5/36pt#; % axis of symmetry for math symbols +bar_height#:=81/36pt#; % height of crossbar in lowercase e (.53 x_height) +comma_depth#:=36/36pt#; % depth of comma below baseline +desc_depth#:=54/36pt#; % depth of lowercase descenders + +crisp#:=0pt#; % diameter of serif corners +tiny#:=0pt#; % diameter of rounded corners +fine#:=0pt#; % diameter of sharply rounded corners +thin_join#:=7.5/36spt#; % width of extrafine details +hair#:=22/36spt#; % lowercase hairline breadth +stem#:=22/36spt#; % lowercase stem breadth +curve#:=22/36spt#; % lowercase curve breadth +ess#:=22/36spt#; % breadth in middle of lowercase s +flare#:=20/36spt#; % diameter of bulbs or breadth of terminals +dot_size#:=26/36spt#; % diameter of dots +cap_hair#:=22/36spt#; % uppercase hairline breadth +cap_stem#:=22.75/36spt#; % uppercase stem breadth +cap_curve#:=22.75/36spt#; % uppercase curve breadth +cap_ess#:=22.75/36spt#; % breadth in middle of uppercase s +%rule_thickness#:=.38spt#; % thickness of lines in math symbols +rule_thickness#:=.47pt#; % 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#:=0pt#; % protrusion of lowercase serifs +cap_jut#:=0pt#; % protrusion of uppercase serifs +beak_jut#:=0pt#; % horizontal protrusion of beak serifs +beak#:=0pt#; % vertical protrusion of beak serifs +vair#:=17/36spt#; % vertical diameter of hairlines +notch_cut#:=22/36spt#; % maximum breadth above or below notches +bar#:=17/36spt#; % lowercase bar thickness +slab#:=18/36spt#; % serif and arm thickness +cap_bar#:=18/36spt#; % uppercase bar thickness +cap_band#:=18/36spt#; % uppercase thickness above/below lobes +cap_notch_cut#:=22/36spt#; % max breadth above/below uppercase notches +serif_drop#:=0pt#; % vertical drop of sloped serifs +stem_corr#:=.5/36spt#; % for small refinements of stem breadth +vair_corr#:=.5/36spt#; % for small refinements of hairline height +apex_corr#:=3.6/36spt#; % extra width at diagonal junctions + +o#:=5/36pt#; % amount of overshoot for curves +apex_o#:=1.95/36pt#; % amount of overshoot for diagonal junctions +fudge:=.93; % factor applied to weights of heavy characters +math_spread:=.2; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/10; % extra openness inside bowls +beak_darkness:=0; % fraction of triangle inside beak serifs + +square_dots:=true; % should dots be square? +hefty:=true; % should we try hard not to be overweight? +serifs:=false; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? + +sym_u#:=18.5/36pt#; +sym_height#:=139.5/36pt#; + +% end of br9pt.mf diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbr10.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbr10.mf new file mode 100644 index 00000000000..30cafd0c741 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbr10.mf @@ -0,0 +1,13 @@ +% Computer Modern Bright 10 point [1996/05/01 v1.0 (WaS)] +if unknown cmbase: input cmbase fi + +font_identifier:="CMBR"; font_size 10pt#; +input br10pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +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? +ligs:=2; + +generate broman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbr17.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbr17.mf new file mode 100644 index 00000000000..8d00ec53ab6 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbr17.mf @@ -0,0 +1,13 @@ +% Computer Modern Bright 17 point [1996/05/01 v1.0 (WaS)] +if unknown cmbase: input cmbase fi + +font_identifier:="CMBR"; font_size 17.28pt#; +input br17pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +ligs:=2; % level of ligatures to be included +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? + +generate broman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbr8.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbr8.mf new file mode 100644 index 00000000000..eb3ccf32f0f --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbr8.mf @@ -0,0 +1,13 @@ +% Computer Modern Bright 8 point [1996/05/01 v1.0 (WaS)] +if unknown cmbase: input cmbase fi + +font_identifier:="CMBR"; font_size 8pt#; +input br8pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +ligs:=2; % level of ligatures to be included +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? + +generate broman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbr9.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbr9.mf new file mode 100644 index 00000000000..ab8c8d2bb91 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbr9.mf @@ -0,0 +1,13 @@ +% Computer Modern Bright 9 point [1996/05/01 v1.0 (WaS)] +if unknown cmbase: input cmbase fi + +font_identifier:="CMBR"; font_size 9pt#; +input br9pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +ligs:=2; % level of ligatures to be included +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? + +generate broman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbras10.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbras10.mf new file mode 100644 index 00000000000..49543db0060 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbras10.mf @@ -0,0 +1,31 @@ +% Computer Modern Bright MSA symbols 10pt [1996/05/01 v1.0 (WaS)] + +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRAS"; font_size 10pt#; + +input ams10pt; +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ + +mode_setup; font_setup; + +autorounding:=0; + +font_slant slant; font_x_height x_height#; +font_quad 18u# if not monospace:+4letter_fit# fi; +% (The spacing is zero so that \TeX\ will always add the italic correction.) +% (The calling file should give the other math symbol font parameters.) + + + +input msa; % the symbols, roman style + +% the remaining characters are to be generated with the parameters +% of cmbrmi10 +input br10pt; + +font_setup; +input brmsa; % the symbols, bright style + +bye. + diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbras8.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbras8.mf new file mode 100644 index 00000000000..170b72c5ace --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbras8.mf @@ -0,0 +1,30 @@ +% Computer Modern Bright MSA symbols 8pt [1996/05/01 v1.0 (WaS)] + +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRAS"; font_size 8pt#; + +input ams8pt; +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ + +mode_setup; font_setup; + +autorounding:=0; + +font_slant slant; font_x_height x_height#; +font_quad 18u# if not monospace:+4letter_fit# fi; +% (The spacing is zero so that \TeX\ will always add the italic correction.) +% (The calling file should give the other math symbol font parameters.) + + + +input msa; % the symbols, roman style + +% the remaining characters are to be generated with the parameters +% of cmbrmi10 +input br8pt; + +font_setup; +input brmsa; % the symbols, bright style + +bye. diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbras9.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbras9.mf new file mode 100644 index 00000000000..1c50a36ffb4 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbras9.mf @@ -0,0 +1,31 @@ +% Computer Modern Bright MSA symbols 9pt [1996/05/01 v1.0 (WaS)] + +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRAS"; font_size 9pt#; + +input ams9pt; +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ + +mode_setup; font_setup; + +autorounding:=0; + +font_slant slant; font_x_height x_height#; +font_quad 18u# if not monospace:+4letter_fit# fi; +% (The spacing is zero so that \TeX\ will always add the italic correction.) +% (The calling file should give the other math symbol font parameters.) + + + +input msa; % the symbols, roman style + +% the remaining characters are to be generated with the parameters +% of cmbrmi10 +input br9pt; + +font_setup; +input brmsa; % the symbols, bright style + +bye. + diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrbs10.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrbs10.mf new file mode 100644 index 00000000000..e2ea0039f78 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrbs10.mf @@ -0,0 +1,31 @@ +% Computer Modern Bright MSB symbols [1996/05/01 v1.0 (WaS)] + +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRBS"; font_size 10pt#; + +input ams10pt; +slant:=sind 12/ cosd 12; % tilt ratio $(\Delta x/\Delta y)$ + +mode_setup; font_setup; + +autorounding:=0; + +font_slant slant; font_x_height x_height#; +font_quad 18u# if not monospace:+4letter_fit# fi; +% (The spacing is zero so that \TeX\ will always add the italic correction.) +% (The calling file should give the other math symbol font parameters.) + +slant:=mono_charic#:=0; % the next characters will not be slanted +currenttransform:=identity yscaled aspect_ratio scaled granularity; +input msb; % symbols, roman style + +% the remaining characters are to be generated with the parameters +% of cmbrmi10 +input br10pt; +slant:=sind12/ cosd 12; +font_setup; +input brmsb; % symbols, bright style +input xbbold; % blackboard bold +bye. + diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrbs8.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrbs8.mf new file mode 100644 index 00000000000..f5b1863ee65 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrbs8.mf @@ -0,0 +1,31 @@ +% Computer Modern Bright MSB symbols 8pt [1996/05/01 v1.0 (WaS)] + +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRBS"; font_size 8pt#; + +input ams8pt; +slant:=sind 12/ cosd 12; % tilt ratio $(\Delta x/\Delta y)$ + +mode_setup; font_setup; + +autorounding:=0; + +font_slant slant; font_x_height x_height#; +font_quad 18u# if not monospace:+4letter_fit# fi; +% (The spacing is zero so that \TeX\ will always add the italic correction.) +% (The calling file should give the other math symbol font parameters.) + +slant:=mono_charic#:=0; % the next characters will not be slanted +currenttransform:=identity yscaled aspect_ratio scaled granularity; +input msb; % symbols, roman style + +% the remaining characters are to be generated with the parameters +% of cmbrmi10 +input br8pt; +slant:=sind12/ cosd 12; +font_setup; +input brmsb; % symbols, bright style +input xbbold; % blackboard bold +bye. + diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrbs9.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrbs9.mf new file mode 100644 index 00000000000..77b21a41d1b --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrbs9.mf @@ -0,0 +1,31 @@ +% Computer Modern Bright MSB symbols 9pt [1996/05/01 v1.0 (WaS)] + +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRBS"; font_size 9pt#; + +input ams9pt; +slant:=sind 12/ cosd 12; % tilt ratio $(\Delta x/\Delta y)$ + +mode_setup; font_setup; + +autorounding:=0; + +font_slant slant; font_x_height x_height#; +font_quad 18u# if not monospace:+4letter_fit# fi; +% (The spacing is zero so that \TeX\ will always add the italic correction.) +% (The calling file should give the other math symbol font parameters.) + +slant:=mono_charic#:=0; % the next characters will not be slanted +currenttransform:=identity yscaled aspect_ratio scaled granularity; +input msb; % symbols, roman style + +% the remaining characters are to be generated with the parameters +% of cmbrmi10 +input br9pt; +slant:=sind12/ cosd 12; +font_setup; +input brmsb; % symbols, bright style +input xbbold; % blackboard bold +bye. + diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrbx10.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrbx10.mf new file mode 100644 index 00000000000..1c40cbf9713 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrbx10.mf @@ -0,0 +1,79 @@ +% Computer Modern Bright Bold Extended 10 pt [1996/05/01 v1.0 (WaS)] +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRBX"; font_size 10pt#; + +u#:=22/36pt#; % unit width +width_adj#:=22/36pt#; % width adjustment for certain characters +serif_fit#:=-9/36pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=-11/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#:=250/36pt#; % height of caps +fig_height#:=250/36pt#; % height of numerals +x_height#:=170/36pt#; % height of lowercase without ascenders +math_axis#:=95/36pt#; % axis of symmetry for math symbols +bar_height#:=90/36pt#; % height of crossbar in lowercase e (.53 x_height) +comma_depth#:=40/36pt#; % depth of comma below baseline +desc_depth#:=60/36pt#; % depth of lowercase descenders + +crisp#:=0pt#; % diameter of serif corners +tiny#:=0pt#; % diameter of rounded corners +fine#:=0pt#; % diameter of sharply rounded corners +thin_join#:=9/36pt#; % width of extrafine details +hair#:=49/36pt#; % lowercase hairline breadth +stem#:=49/36pt#; % lowercase stem breadth +curve#:=49/36pt#; % lowercase curve breadth +ess#:=43/36pt#; % breadth in middle of lowercase s +flare#:=40/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=47/36pt#; % diameter of dots +cap_hair#:=49/36pt#; % uppercase hairline breadth +cap_stem#:=53/36pt#; % uppercase stem breadth +cap_curve#:=53/36pt#; % uppercase curve breadth +cap_ess#:=51/36pt#; % breadth in middle of uppercase s +rule_thickness#:=30/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#:=0pt#; % protrusion of lowercase serifs +cap_jut#:=0pt#; % protrusion of uppercase serifs +beak_jut#:=0pt#; % horizontal protrusion of beak serifs +beak#:=1.5/36pt#; % vertical protrusion of beak serifs +vair#:=26/36pt#; % vertical diameter of hairlines +notch_cut#:=49/36pt#; % maximum breadth above or below notches +bar#:=26/36pt#; % lowercase bar thickness +slab#:=36/36pt#; % serif and arm thickness +cap_bar#:=34/36pt#; % uppercase bar thickness +cap_band#:=31/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=45/36pt#; % max breadth above/below uppercase notches +serif_drop#:=2/36pt#; % vertical drop of sloped serifs +stem_corr#:=1/36pt#; % for small refinements of stem breadth +vair_corr#:=2/36pt#; % for small refinements of hairline height +apex_corr#:=18/36pt#; % extra width at diagonal junctions + +o#:=8/36pt#; % amount of overshoot for curves +apex_o#:=0pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +fudge:=.88; % factor applied to weights of heavy characters +math_spread:=.5; % extra openness of math symbols +superness:=3/4; % parameter for superellipses +superpull:=1/18; % extra openness inside bowls +beak_darkness:=0; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=true; % should dots be square? +hefty:=true; % should we try hard not to be overweight? +serifs:=false; % 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? + +bx_kerning:=1; % different kerning for bold extended fonts +sym_u#:=u#; % unit of width for math symbols +sym_height#:=x_height#; % unit of height for math symbols + +generate broman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrmb10.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrmb10.mf new file mode 100644 index 00000000000..9f65ad197b1 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrmb10.mf @@ -0,0 +1,78 @@ +% Computer Modern Bright Math Slanted Bold 10 pt [1996/05/01 v1.0 (WaS)] +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRMB"; font_size 10pt#; + +u#:=21/36pt#; % unit width +width_adj#:=15/36pt#; % width adjustment for certain characters +serif_fit#:=-8/36pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=-9/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#:=250/36pt#; % height of caps +fig_height#:=232/36pt#; % height of numerals +x_height#:=170/36pt#; % height of lowercase without ascenders +math_axis#:=95/36pt#; % axis of symmetry for math symbols +bar_height#:=90/36pt#; % height of crossbar in lowercase e +comma_depth#:=40/36pt#; % depth of comma below baseline +desc_depth#:=60/36pt#; % depth of lowercase descenders + +crisp#:=0pt#; % diameter of serif corners +tiny#:=0pt#; % diameter of rounded corners +fine#:=0pt#; % diameter of sharply rounded corners +thin_join#:=8/36pt#; % width of extrafine details +hair#:=40/36pt#; % lowercase hairline breadth +stem#:=40/36pt#; % lowercase stem breadth +curve#:=40/36pt#; % lowercase curve breadth +ess#:=37/36pt#; % breadth in middle of lowercase s +flare#:=31/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=38/36pt#; % diameter of dots +cap_hair#:=40/36pt#; % uppercase hairline breadth +cap_stem#:=44/36pt#; % uppercase stem breadth +cap_curve#:=44/36pt#; % uppercase curve breadth +cap_ess#:=42/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#:=0pt#; % protrusion of lowercase serifs +cap_jut#:=0pt#; % protrusion of uppercase serifs +beak_jut#:=0pt#; % horizontal protrusion of beak serifs +beak#:=1.5/36pt#; % vertical protrusion of beak serifs +vair#:=23/36pt#; % vertical diameter of hairlines +notch_cut#:=40/36pt#; % maximum breadth above or below notches +bar#:=23/36pt#; % lowercase bar thickness +slab#:=31/36pt#; % serif and arm thickness +cap_bar#:=29/36pt#; % uppercase bar thickness +cap_band#:=27/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=37/36pt#; % max breadth above/below uppercase notches +serif_drop#:=2/36pt#; % vertical drop of sloped serifs +stem_corr#:=1/36pt#; % for small refinements of stem breadth +vair_corr#:=2/36pt#; % for small refinements of hairline height +apex_corr#:=14/36pt#; % extra width at diagonal junctions + +o#:=7/36pt#; % amount of overshoot for curves +apex_o#:=0pt#; % amount of overshoot for diagonal junctions + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +fudge:=.91; % factor applied to weights of heavy characters +math_spread:=.3; % extra openness of math symbols +superness:=.74; % parameter for superellipses +superpull:=1/18; % extra openness inside bowls +beak_darkness:=0; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=true; % should dots be square? +hefty:=true; % should we try hard not to be overweight? +serifs:=false; % 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:=true; % should math-mode spacing be used? + +sym_u#:=20/36pt#; % unit of width for math symbols +sym_height#:=155/36pt#; % unit of height for math symbols + +generate mathsl % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrmi10.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrmi10.mf new file mode 100644 index 00000000000..cb946aa81dc --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrmi10.mf @@ -0,0 +1,13 @@ +% Computer Modern Bright Math Slanted 10 point [1996/05/01 v1.0 (WaS)] +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRMI"; font_size 10pt#; +input br10pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +variant_g:=true; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=true; % should math-mode spacing be used? +ligs:=2; + +generate mathsl % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrmi8.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrmi8.mf new file mode 100644 index 00000000000..2771a55b7f7 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrmi8.mf @@ -0,0 +1,13 @@ +% Computer Modern Bright Math Slanted 8 point [1996/05/01 v1.0 (WaS)] +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRMI"; font_size 8pt#; +input br8pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +ligs:=2; % level of ligatures to be included +variant_g:=true; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=true; % should math-mode spacing be used? + +generate mathsl % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrmi9.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrmi9.mf new file mode 100644 index 00000000000..c4b1f1c2736 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrmi9.mf @@ -0,0 +1,13 @@ +% Computer Modern Bright Math Slanted 9 point [1996/05/01 v1.0 (WaS)] +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRMI"; font_size 9pt#; +input br9pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +ligs:=2; % level of ligatures to be included +variant_g:=true; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=true; % should math-mode spacing be used? + +generate mathsl % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrsl10.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrsl10.mf new file mode 100644 index 00000000000..6510888c869 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrsl10.mf @@ -0,0 +1,13 @@ +% Computer Modern Bright Slanted 10 point [1996/05/01 v1.0 (WaS)] +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRSL"; font_size 10pt#; +input br10pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +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? +ligs:=2; + +generate broman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrsl17.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrsl17.mf new file mode 100644 index 00000000000..8012bfdc1c8 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrsl17.mf @@ -0,0 +1,13 @@ +% Computer Modern Bright Slanted 17 point [1996/05/01 v1.0 (WaS)] +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRSL"; font_size 17.28pt#; +input br17pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +ligs:=2; % level of ligatures to be included +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? + +generate broman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrsl8.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrsl8.mf new file mode 100644 index 00000000000..876753ef2e7 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrsl8.mf @@ -0,0 +1,13 @@ +% Computer Modern Bright Slanted 8 point [1996/07/02 v1.0 (WaS)] +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRSL"; font_size 8pt#; +input br8pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +ligs:=2; % level of ligatures to be included +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? + +generate broman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrsl9.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrsl9.mf new file mode 100644 index 00000000000..12eba4c3ca4 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrsl9.mf @@ -0,0 +1,13 @@ +% Computer Modern Bright 9 point slanted [1996/05/01 v1.0 (WaS)] +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRSL"; font_size 9pt#; +input br9pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +ligs:=2; % level of ligatures to be included +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? + +generate broman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrsy10.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrsy10.mf new file mode 100644 index 00000000000..9dbcd3e13a7 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrsy10.mf @@ -0,0 +1,97 @@ +% Computer Modern Bright Math Symbols 10 point [1996/05/01 v1.0 (WaS)] +% (identical to cmsy10, except math_axis) + +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRSY"; 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#:=95/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#:=9/36pt#; % lowercase hairline breadth +stem#:=24/36pt#; % lowercase stem breadth +curve#:=29/36pt#; % lowercase curve breadth +ess#:=27/36pt#; % breadth in middle of lowercase s +flare#:=32/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=38/36pt#; % diameter of dots +cap_hair#:=11/36pt#; % uppercase hairline breadth +cap_stem#:=30/36pt#; % uppercase stem breadth +cap_curve#:=35/36pt#; % uppercase curve breadth +cap_ess#:=33/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#:=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:=.25; % tilt ratio $(\Delta x/\Delta y)$ +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:=true; % should math-mode spacing be used? + +% the following font parameters are explained in {\sl The \TeX book}, Appendix G +subs:=7/10; % subscripts to 10pt will normally be in 7pt type +rth#:=.4pt#; % assume that rules will come from cmex10 +fontdimen 8: % parameters $\sigma_8$ through $\sigma_{22}$ will now be listed + math_axis#+3.51rth#+54/36pt#+subs*desc_depth#, % num1 + math_axis#+1.51rth#+30/36pt#, % num2 + math_axis#+1.51rth#+48/36pt#, % num3 + -(math_axis#-3.51rth#-subs*fig_height#-124/36pt#), % denom1 + -(math_axis#-1.51rth#-subs*fig_height#-30/36pt#), % denom2 + 8.99pt#-subs*asc_height#, % sup1 + 8.49pt#-subs*asc_height#, % sup2 + 104/36pt#, % sup3 + 54/36pt#, % sub1 + -(8.49pt#-2subs*asc_height#-3.1rth#), % sub2 + subs*asc_height#-36/36pt#, % sup\_drop + 18/36pt#, % sub\_drop + 23.9pt#, % delim1 + 10.1pt#, % delim2 + math_axis#; % axis\_height + +generate mathsy % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrsy8.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrsy8.mf new file mode 100644 index 00000000000..2d73cce34ce --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrsy8.mf @@ -0,0 +1,97 @@ +% Computer Modern Bright Math Symbols 8 point [1996/05/01 v1.0 (WaS)] +% (identical to cmsy8, except math_axis) + +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRSY"; 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#:=76/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#:=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#:=9/36pt#; % lowercase hairline breadth +stem#:=21.5/36pt#; % lowercase stem breadth +curve#:=25/36pt#; % lowercase curve breadth +ess#:=23/36pt#; % breadth in middle of lowercase s +flare#:=26.5/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#:=25.5/36pt#; % uppercase stem breadth +cap_curve#:=29/36pt#; % uppercase curve breadth +cap_ess#:=26/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#:=24/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#:=8/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:=.25; % tilt ratio $(\Delta x/\Delta y)$ +fudge:=1; % factor applied to weights of heavy characters +math_spread:=.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:=true; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=true; % should math-mode spacing be used? + +% the following font parameters are explained in {\sl The \TeX book}, Appendix G +subs:=6/8; % subscripts to 8pt will normally be in 6pt type +rth#:=.4pt#; % assume that rules will come from cmex10 +fontdimen 8: % parameters $\sigma_8$ through $\sigma_{22}$ will now be listed + math_axis#+3.51rth#+36/36pt#+subs*desc_depth#, % num1 + math_axis#+1.51rth#+24/36pt#, % num2 + math_axis#+1.51rth#+38/36pt#, % num3 + -(math_axis#-3.51rth#-subs*fig_height#-98/36pt#), % denom1 + -(math_axis#-1.51rth#-subs*fig_height#-24/36pt#), % denom2 + 7.49pt#-subs*asc_height#, % sup1 + 6.99pt#-subs*asc_height#, % sup2 + 82/36pt#, % sup3 + 36/36pt#, % sub1 + 72/36pt#, % sub2 + subs*asc_height#-36/36pt#, % sup\_drop + 18/36pt#, % sub\_drop + 11.9pt#, % delim1 + 9.1pt#, % delim2 + math_axis#; % axis\_height + +generate mathsy % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmbrsy9.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmbrsy9.mf new file mode 100644 index 00000000000..b08e0ff1d9f --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmbrsy9.mf @@ -0,0 +1,97 @@ +% Computer Modern Bright Math Symbols 9 point [1996/05/01 v1.0 (WaS)] +% (identical to cmsy9, except math_axis) + +if unknown cmbase: input cmbase fi + +font_identifier:="CMBRSY"; font_size 9pt#; + +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#:=85.5/36pt#; % axis of symmetry for math symbols +bar_height#:=78.3/36pt#; % height of crossbar in lowercase e +comma_depth#:=63/36pt#; % depth of comma below baseline +desc_depth#:=63/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#:=9/36pt#; % lowercase hairline breadth +stem#:=23/36pt#; % lowercase stem breadth +curve#:=27/36pt#; % lowercase curve breadth +ess#:=25/36pt#; % breadth in middle of lowercase s +flare#:=29/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=35/36pt#; % diameter of dots +cap_hair#:=10/36pt#; % uppercase hairline breadth +cap_stem#:=28/36pt#; % uppercase stem breadth +cap_curve#:=32/36pt#; % uppercase curve breadth +cap_ess#:=30/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#:=27/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#:=8/36pt#; % vertical diameter of hairlines +notch_cut#:=9pt#; % maximum breadth above or below notches +bar#:=10/36pt#; % lowercase bar thickness +slab#:=10/36pt#; % serif and arm thickness +cap_bar#:=10/36pt#; % uppercase bar thickness +cap_band#:=10/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:=.25; % tilt ratio $(\Delta x/\Delta y)$ +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:=true; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=true; % should math-mode spacing be used? + +% the following font parameters are explained in {\sl The \TeX book}, Appendix G +subs:=6/9; % subscripts to 9pt will normally be in 6pt type +rth#:=.4pt#; % assume that rules will come from cmex10 +fontdimen 8: % parameters $\sigma_8$ through $\sigma_{22}$ will now be listed + math_axis#+3.51rth#+36/36pt#+subs*desc_depth#, % num1 + math_axis#+1.51rth#+30/36pt#, % num2 + math_axis#+1.51rth#+43/36pt#, % num3 + -(math_axis#-3.51rth#-subs*fig_height#-111/36pt#), % denom1 + -(math_axis#-1.51rth#-subs*fig_height#-30/36pt#), % denom2 + 8.49pt#-subs*asc_height#, % sup1 + 7.99pt#-subs*asc_height#, % sup2 + 93/36pt#, % sup3 + 36/36pt#, % sub1 + -(7.99pt#-2subs*asc_height#-3.1rth#), % sub2 + subs*asc_height#-36/36pt#, % sup\_drop + 18/36pt#, % sub\_drop + 23.9pt#, % delim1 + 9.1pt#, % delim2 + math_axis#; % axis\_height + +generate mathsy % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmsltl10.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmsltl10.mf new file mode 100644 index 00000000000..82e6e04cbdd --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmsltl10.mf @@ -0,0 +1,80 @@ +% CM Typewriter Light Slanted 10 point [1996/05/01 v1.0 (WaS)] + +% This is a slanted 10 pt typewriter font with all stroke widths +% taken from cmtt8, so that it looks lighter than cmsltt10 and +% may be used together with the CM Bright fonts. + +if unknown cmbase: input cmbase fi + +font_identifier:="CMSLTL"; 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#:=220/36pt#; % height of lowercase ascenders +cap_height#:=220/36pt#; % height of caps +fig_height#:=220/36pt#; % height of numerals +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#:=19/36pt#; % diameter of serif corners +tiny#:=19/36pt#; % diameter of rounded corners +fine#:=18/36pt#; % diameter of sharply rounded corners +thin_join#:=18/36pt#; % width of extrafine details +hair#:=22/36pt#; % lowercase hairline breadth +stem#:=22/36pt#; % lowercase stem breadth +curve#:=22/36pt#; % lowercase curve breadth +ess#:=19/36pt#; % breadth in middle of lowercase s +flare#:=28/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=31/36pt#; % diameter of dots +cap_hair#:=22/36pt#; % uppercase hairline breadth +cap_stem#:=22/36pt#; % uppercase stem breadth +cap_curve#:=22/36pt#; % uppercase curve breadth +cap_ess#:=22/36pt#; % breadth in middle of uppercase s +rule_thickness#:=22/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#:=19/36pt#; % vertical diameter of hairlines +notch_cut#:=22/36pt#; % maximum breadth above or below notches +bar#:=19/36pt#; % lowercase bar thickness +slab#:=19/36pt#; % serif and arm thickness +cap_bar#:=19/36pt#; % uppercase bar thickness +cap_band#:=19/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=22/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#:=8/36pt#; % extra width at diagonal junctions + +o#:=3/36pt#; % amount of overshoot for curves +apex_o#:=3/36pt#; % amount of overshoot for diagonal junctions + +slant:=1/6; % tilt ratio $(\Delta x/\Delta y)$ +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? + +generate roman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/cmtl10.mf b/Master/texmf-dist/fonts/source/public/cmbright/cmtl10.mf new file mode 100644 index 00000000000..c9354a66fb4 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/cmtl10.mf @@ -0,0 +1,80 @@ +% CM Typewriter Light 10 point [1996/05/01 v1.0 (WaS)] + +% This is a 10 pt typewriter font with all stroke widths +% taken from cmtt8, so that it looks lighter than cmtt10 +% and may be used together with the CM Bright fonts. + +if unknown cmbase: input cmbase fi + +font_identifier:="CMTL"; 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#:=220/36pt#; % height of lowercase ascenders +cap_height#:=220/36pt#; % height of caps +fig_height#:=220/36pt#; % height of numerals +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#:=19/36pt#; % diameter of serif corners +tiny#:=19/36pt#; % diameter of rounded corners +fine#:=18/36pt#; % diameter of sharply rounded corners +thin_join#:=18/36pt#; % width of extrafine details +hair#:=22/36pt#; % lowercase hairline breadth +stem#:=22/36pt#; % lowercase stem breadth +curve#:=22/36pt#; % lowercase curve breadth +ess#:=19/36pt#; % breadth in middle of lowercase s +flare#:=28/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=31/36pt#; % diameter of dots +cap_hair#:=22/36pt#; % uppercase hairline breadth +cap_stem#:=22/36pt#; % uppercase stem breadth +cap_curve#:=22/36pt#; % uppercase curve breadth +cap_ess#:=22/36pt#; % breadth in middle of uppercase s +rule_thickness#:=22/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#:=19/36pt#; % vertical diameter of hairlines +notch_cut#:=22/36pt#; % maximum breadth above or below notches +bar#:=19/36pt#; % lowercase bar thickness +slab#:=19/36pt#; % serif and arm thickness +cap_bar#:=19/36pt#; % uppercase bar thickness +cap_band#:=19/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=22/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#:=8/36pt#; % extra width at diagonal junctions + +o#:=3/36pt#; % amount of overshoot for curves +apex_o#:=3/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +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? + +generate roman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebaccess.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebaccess.mf new file mode 100644 index 00000000000..32c88b4f753 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebaccess.mf @@ -0,0 +1,893 @@ +% ebaccess.mf +% +% This file is part of ecfonts version 1.0 +% +% Please read the files 00readme.txt, 00inst.txt, 00error.txt, and +% copyrite.txt for further information +% +% You find some documentation in ecdoc.tex (needs LaTeX2e) +% +% Accessories and special definitions for polish letters +% Adapted to the ec fonts by J\"org Knappen +% Adapted to the cm bright fonts by Walter Schmidt, see (CMBR) +% +% Copyright (c) 1992 Bogus\l{}aw Jackowski \& Marek Ry\'cko +% Copyright (c) 1995, 1996, 1997 J\"org Knappen +% --------------------------------------------------------------------------- +% This was PL_DOD.MF ({\bif{}dodatkowy}, i.e., additional file for the Polish +% extension of CM family) in text format. +% --------------------------------------------------------------------------- +%%{\let\:\sl +%\: This file provides accessories for making Polish diacritical characters: +%\: acute accent for |"C"|, |"N"|, |"L"|, |"S"|, |"Z"|, dot accent for |"Z"|, +%\: cross for |"L"| and ogonek for |"A"| and |"E"|. In order to avoid extra +%\: parameters (62 should be enough) the macros do a lot of ``clever'' stuff, +%\: trying to figure out needed dimensions. This is not always a trivial +%\: task and in some cases such extra parameters may prove to be unavoidable. +%\: Several additional parameters may be assigned a value, prior to reading +%\: the driver file, in order to override the default behaviour. + +%\: One of them is +%\: --- the factor controlling the slope of accents over majuscules, +%\: |cap_flat|; if the default slope is, say, $\beta$, the resulting +%\: slope is equal to |(1-cap_flat)*|$\beta$; this parameter is used +%\: in the sources of the following fonts: +%\ PLCSC10, PLDUNH10, PLTCSC10 + +%\: Unexpectedly difficult to program turned out to be ogoneks. We decided +%\: that the best looking are ogoneks such that a single B\`ezier segment +%\: describes each of ogonek's edges. This necessitated introducing many +%\: parameters controlling the positions of control points (for more details +%\: see comments in the section ``OGONEK ACCESSORIES''). All these +%\: (optional) parameters may be splitted into three groups of importance: +%\: primary, secondary and tertiary. The primary parameters are intended +%\: to be ``normally'' accessible to users, the secondary ones---only in +%\: case of emergency, the tertiary ones---rather not at all. + +%\: The primary parameters are: + +%\: --- the factor controlling the depth of ogoneks, |depth_corr|; the +%\: resulting depth is equal to |depth_corr*desc_depth#| if the value +%\: of |depth_corr| is known, |desc_depth#| otherwise +%\: --- the factor controlling the leftmost and tip positions +%\: of an ogonek, |left_corr|, |tip_xcorr| and |tip_ycorr|; +%\: the default distances are scaled using the values of the +%\: corresponding parameters +%\: --- the scaling factor for the top and tip breadths of an ogonek, +%\: |top_breadth_corr|, |tip_breadth_corr| + +%\: Some of the primary parameters are used in the sources of the following +%\: fonts: +% PLB10, PLBX5, PLBX6, PLBX7, PLBX8, PLFI10, PLITT10, PLR5, PLR6, PLR7, +% PLR8, PLR9, PLR12, PLR17, PLSL8, PLSL9, PLSL12, PLSSQ8, PLSSQI8, PLTI7, +% PLTI8, PLTI12, PLVTT10 + +%\: The following four parameters we regard as of a secondary importance: + +%\: --- the pen ogoneks are to be filled with, |ogonek_pen#| (this is +%\: the only sharp ogonek parameter and is used in the sources of +%\: the {\commfont{}PLFF10} and {\commfont{}PLFI10} fonts) +%\: --- the darkness of ogoneks may be controlled using two parameters, +%\: |0<pre_lightness<1| and |0<post_lightness<1|, referring to the top +%\: and tip of an ogonek, respectively; used in {\commfont{}PLB10.MF} +%\: --- next two parameters, |pre_deflexion| and |post_deflexion|, control +%\: a rather small deflexion angle (in degrees) of the inner ogonek +%\: outline as compared to the outer one; they refere to the top and +%\: tip of an ogonek, respectively + +%\: The complete list of `ogonek' parameters can be found in the section +%\: ``OGONEK ACCESSORIES.'' + +%\: There is one more (rather unimportant) parameter, |is_smoke|. If this +%\: variable is assigned a known value, `smoked' proofs will not contain +%\: a rule marking the height of accented letters. +%%} +% --------------------------------------------------------------------------- +% HISTORY +% 7 Feb 1992: version 1.00 +% 11 Feb 1992: version 1.01 +% (no changes; the new version number due to changes in \MeX{} format) +% 25 May 1992: version 1.02 +% The following two erroneous assignments: +%| z_a:=(x_down+the_left_pos,.5penkind); %| starting point +%| z_d:=(xpart(z_a)-.5penkind,y_right+.5penkind)+the_tip_pos; %| ending point +% changed to the following ones: +%| z_a:=(x_down+the_left_pos,ypart(ogonek_pos)); %| starting point +%| z_d:=(xpart(z_a)-.5penkind,y_right+ypart(ogonek_pos))+| +%| the_tip_pos; %| ending point +% Some comments changed. +% 18 Dec 1992: version 1.03 +% (no changes; the new version number due to changes in FIK_MIK.MF +% and some cosmetic changes in CMBX11.MF, CMR11.MF, CMTI11.MF, CMSL11.MF, +% CMSSBI10.MF, and POLAN.MF) +% 21 Apr 1995: Adaption for dxbase and dcfonts: +% Deleted character code (those are fixed by the Cork standard) +% Deleted |improve_kerns| +% Avoid double rounding in the definition of |fisp| by defining |fisp#| +% Made |the_ogonek_depth| explicitly sharp (|the_ogonek_depth#|) +% Changed definition of |is_cap| +% Replaced all occurences of |ogonked_a| and |ogonked_e| with the +% Cork code values |oct"241"| and |oct"246"| respectively +% Replaced |dotted_Z| and |dotted_z| with |oct"233"| and |oct"273"| +% respectively +% Renamed |expansion_factor| to |expansion_faktor| because of +% conflicting definition +% 7 May 1995 Appended material from czechoslovak fonts (csaccent.mf) +% 18 May 1995 Changed |put_accent| because I want to use it twice in +% one character. To achieve this, the variables |z.top| and |z.right| +% were renamed |z[jj].top| and |z[jj].right| respectively +% Changed |is_cap| again (included |168| for l with acute) +% 29 May 1995 Added accessories for the grave accent +% Changes one comment to point to dxcsc.mf instead of polkap.mf +% 18 Jun 1995 Made provision in |put_cross| for the blank symbol +% Made provision in |put_dot| for turkish dotted `I' +% 10 Jul 1995 Changed condition in |put_dot| to refer to |is_cap|. Needed +% with the tc fonts. +% 11 Jul 1995 Added another proviso to |put_dot| to produce floating dot +% 23 Jul 1995 Added proviso in |put_cross| for recipe sign +% 17 Aug 1995 Tuned height of accent again, added |hi.x_height@#+acc_height@#| +% to the minimum condition +% 14 Apr 1996 Buildt in Bogus\l{}aw Jackowski's fixes to avoid resolution +% dependent font metrics. +% I did not apply the change to the |put_dot| macro, because there is +% no chance to keep it consistent for the floating dot accent +% Macros for processing characters twice put to |exbase.mf| +% 26 Apr 1996 Put in version checking +% Moved last minute font setup to |expseudo.mf| +% 10-MAY-1996 Corrected |corrital| to make use of the canonical sharp mode +% Added |version_check| +% 22-DEC-1996 Moved definition of |is_small_cap| and |hi.| to |exbase.mf| +% Changed the documentation to know about ec fonts instead of dc fonts. +% --------------------------------------------------------------------------- +% VERSION CHECKING +% --------------------------------------------------------------------------- +version_check(1,0); % |version_check| was introduced in dc1.3 +% --------------------------------------------------------------------------- +% LAYOUT SETUP: +% (A MIXTURE OF EXTENDED CM, EXTENDED ASCII, AND ``LOCAL'') +% --------------------------------------------------------------------------- +% [deleted] +% --------------------------------------------------------------------------- +% EXTRA PARAMETERS +% --------------------------------------------------------------------------- +% [deleted and/or moved] +% +% The variable |limit_dist| is set to |5/4u| in PL_DL.MF, PL_ML.MF and +% PL_MLK.MF, and used in |put_accent| and |put_cross|. It was introduced +% because of some funny (although troublesome) fonts. The value of |u| is +% changed by |mono_adjust|, hence it is set outside |beginchar| ... |endchar| +% rather than inside. +numeric limit_dist; +% --------------------------------------------------------------------------- +% GENERAL PURPOSE ACCESSORIES +% --------------------------------------------------------------------------- +vardef is_egyptian = +% |false| for most of the CM fonts, except funny fonts; +% |true| for the CC fonts + serifs and (1.4max(fine#,crisp#, tiny#)<slab#) and (1.6slab#>stem#) +enddef; + +vardef is_bold = if serifs: (hair#+.5stem#)>1.5u# else: stem#>2u# fi\\ enddef; + +vardef is_cap = + (((127 < charcode) and (charcode < 158)) or\\ + ((191 < charcode) and (charcode < 224))) or\\ + (charcode = 168) % true for l with acute +enddef; + +%%% top is_known +%%% top fix_virgin +vardef is_known z suffix $ = +% an auxiliary macro for |fix_virgin z|, used also while constructing ogoneks + (known x$) or (known x$l) or (known x$r)\\ or + (known y$) or (known y$l) or (known y$r) +enddef; + +vardef fix_virgin z = % find a pair of virgin pairs + numeric ii,jj; jj:=1; + forever: + if is_known z[jj] or is_known z[jj+1]: % unknown gaps may occur + jj:=incr jj else: jj=ii fi; exitif known ii; + endfor; + jj:=ii+1; +% now |ii| and |jj| are such that |z[ii]| and |z[jj]| are ``untouched'' +enddef; + +%%% italcorr corrital +% correction of italic correction (cf. D. E. Knuth, The \MF{}book, p. 105): +vardef corrital z suffix $ = +% |z$| is the rightmost position of a pen (in accent path) + if known sharp_calc: + if not monospace: + save charic_; charic_=(rt(x$)-r)/hppp+slant*y$/vppp+.5u#; + if charic_>charic: charic:=charic_; fi + fi +%| else: %| |charic=mono_charic#|, do nothing + fi +enddef; + +%%% top prepare_pen +def prepare_pen suffix $ = +%%% fine $ %%%% temporary MFT convention + if $>fudged.hair: $:=fudged.hair; fi + $.breadth:=$; + pickup if $=0: nullpen else: pencircle scaled $; $:=$-eps fi; + $.nib:=savepen; breadth_[$.nib]:=$; + forsuffixes $$=lft,rt,top,bot: shiftdef($.$$,$$ 0); endfor +%%% qq $ %%%% ordinary MFT convention +enddef; + +% The proportion of |vair/stem| depends drastically on resolution; +% e.g., for 300 dpi cmbx10 |vair=1| and |stem=5|, for 746 dpi cmbx10 +% (300 dpi, magstep 5) |vair=4| and |stem=12|, while, sharply speaking, +% |stem#/vair#=3.15381|; hence a new variable |xvair| has been introduced +% to be used in some crucial places instead of |vair|. +vardef xvair = stem*vair#/stem# enddef; +% --------------------------------------------------------------------------- +% ACCENT ACCESSORIES +% --------------------------------------------------------------------------- +% |the_cap_flat| is a factor controlling the flatness of accents over +% majuscules; a default value may be overriden by assigning a value to the +% variable |cap_flat| (cf. also |the_|... macros in ogonek accessories). +vardef the_cap_flat = + if known cap_flat: cap_flat elseif serifs and hefty: 1/5 else: 1/3 fi +enddef; +% --------------------------------------------------------------------------- +% The |hpos_corr| variable is an optional parameter to |put_ogonek|, meant +% to be set locally inside |beginchar| ... |endchar|, if a horizontal +% correction of the accent position is needed: +numeric hpos_corr; +% --------------------------------------------------------------------------- +%%%% temporary MFT convention: +%%% top x_height diam a_wd a_ht i_ht u asc_height cap_A_wd +% width of the acute accent: +vardef a_wd@# = 9hi.u@# enddef; +% height of the acute accent: +vardef a_ht@# = + min(asc_height@#,2hi.x_height@#,hi.x_height@#+acc_height@#) enddef; +% height of the letter `i': +vardef i_ht@#(suffix diam) = + if is_small_cap: a_ht@# % usually there is no dot over a small cap `i' + else: min(asc_height@#, 10/7hi.x_height@#+.5diam@#) fi +enddef; +% width of the letter `A' (used in |put_ogonek|): +vardef cap_A_wd@# = 13u@# enddef; +%%%% ordinary MFT convention: +%%% qq x_height diam a_wd a_ht i_ht u asc_height cap_A_wd + +def mark_height(expr sharp_h)= +% |sharp_h| is the height of an accented minuscule + if known sharp_calc: + charht:=if is_cap: h/vppp else: sharp_h fi; + if\\ (proofing>0) and is_cap: +% BJ likes to have proofs vertically aligned (somehow): + proofoffset(0,h-charht*vppp-1mm); + fi + fi +% say earlier, e.g., |is_smoke=1| if you're making `smoked' proofs +% and you don't like to have a rule marking the height + if unknown is_smoke: + if proofing>0: proofrule((l+w/2,charht*hppp)t_,(r+u,charht*hppp)t_); fi + if displaying>0: screenrule((l+w/2,charht*hppp)t_,(r+u,charht*hppp)t_); fi + fi +enddef; + +def fix_acc_pairs = + fix_virgin z; + begingroup +% excerpt from |beginchar|: + save w,h; w=round(a_wd); h=round(a_ht); +% excerpt from |mono_adjust|: + if monospace: + save u_; numeric u_; u_:=hi.u#; save u; u#:=u_; + numeric expansion_faktor; + mono_charwd#=2 hi.letter_fit#+expansion_faktor*a_wd#; + hi.u:=u#*expansion_faktor*hppp; + w:=mono_charwd-shrink_fit-2 hi.letter_fit; + fi +% end of the excerpts + numeric accent_gap,mid_stem; mid_stem=2/3[stem,hi.stem]; + if serifs: + pickup crisp.nib; + x[jj]'=hround(w-2hi.u)-.5mid_stem; x[jj]':=x[jj]'-2/3[x[jj]',w-x[jj]']; + y[jj]'=h-.5mid_stem+eps-max(2/3[h,hi.x_height],hi.x_height+o+hair); + accent_gap=a_ht-(y[jj]'+.5mid_stem)-hi.x_height; + bot z[ii]=round(accent_hpos, + accent_gap+if is_cap: cap_height else: hi.x_height fi); + z[jj]=z[ii]+(z[jj]' + if is_cap: rotated (-the_cap_flat*angle(z[jj]')) fi); + numeric theta; theta=angle(z[ii]-z[jj])+90; + pos[jj](mid_stem,theta); pos[ii](hair,theta); + else: + pickup fine.nib; + rt x[jj]'r=hround(.5w-1.25hi.u); + top y[jj]'=h-vround(2/3[h,hi.x_height]); + z[ii]'=origin; pos[jj]'(mid_stem,0); pos[ii]'(vair,0); + accent_gap=a_ht-y[jj]'-hi.x_height; + if is_cap: + numeric beta; beta=-the_cap_flat*angle(z[jj]'-z[ii]'); + z[ii]=round(accent_hpos,accent_gap+cap_height); + z[jj]=z[ii]+(z[jj]' rotated beta); + y[jj]r=y[jj]l=y[jj]; y[ii]r=y[ii]l=y[ii]; + for xx:=jj,ii: forsuffixes $:=l,r: + (z[xx]$-z[ii]) rotated -beta=whatever[z[jj]'$,z[ii]'$]; + endfor\\ endfor + else: + for xx:=jj,ii: forsuffixes $:=r, ,l: + z[xx]$=z[xx]'$+round(accent_hpos, + accent_gap+if is_small_cap: cap_height else: x_height fi); + endfor\\ endfor + fi + fi + endgroup; +enddef; + +def put_accent= + numeric accent_hpos; + accent_hpos=.5w - if is_cap: .75 else: .5 fi\\ u + if known hpos_corr: +hpos_corr fi; + fix_acc_pairs; % |fix_acc_pairs| uses private values of |w|, |h| \& |u| + numeric hpos_corr; % |hpos_corr| is local: forget its value +% draw the diagonal: + if serifs: + pickup crisp.nib; filldraw circ_stroke (z[jj]e--z[ii]e); + z[jj].right=directionpoint up of (z[jj]r{z[jj]r-z[ii]r}..{z[ii]l-z[jj]l}z[jj]l); + z[jj].top=directionpoint left of (z[jj]r{z[jj]r-z[ii]r}..{z[ii]l-z[jj]l}z[jj]l); + else: + pickup fine.nib; filldraw stroke (z[jj]e--z[ii]e); + z[jj].right=z[jj].top=z[jj]r; + fi + corrital z[jj].right; % correct italic correction +% adjust and save height (it is used in the program for the dotted `Z'): + h:=if is_cap: y[jj].top else: a_ht fi; + if known sharp_calc: saved_height:=h; fi + mark_height(a_ht#); + penlabels([ii],[jj]); +enddef; +% --------------------------------------------------------------------------- +% GRAVE ACCENT ACCESSORIES +% --------------------------------------------------------------------------- +% This section borrows heavily from the (acute) accent accessories +def fix_grav_pairs = + fix_virgin z; + begingroup +% excerpt from |beginchar|: + save w,h; w=round(a_wd); h=round(a_ht); +% excerpt from |mono_adjust|: + if monospace: + save u_; numeric u_; u_:=hi.u#; save u; u#:=u_; + numeric expansion_faktor; + mono_charwd#=2 hi.letter_fit#+expansion_faktor*a_wd#; + hi.u:=u#*expansion_faktor*hppp; + w:=mono_charwd-shrink_fit-2 hi.letter_fit; + fi +% end of the excerpts + numeric accent_gap,mid_stem; mid_stem=2/3[stem,hi.stem]; + if serifs: + pickup crisp.nib; + x[jj]'=hround(w-2hi.u)-.5mid_stem; x[jj]':= -x[jj]'+ 2/3[x[jj]',w-x[jj]']; + y[jj]'=h-.5mid_stem+eps-max(2/3[h,hi.x_height],hi.x_height+o+hair); + accent_gap=a_ht-(y[jj]'+.5mid_stem)-hi.x_height; + bot z[ii]=round(accent_hpos, + accent_gap+if is_cap: cap_height else: hi.x_height fi); + z[jj]=z[ii]+(z[jj]' + if is_cap: rotated (-the_cap_flat*(angle(z[jj]')-180)) fi); + numeric theta; theta=angle(z[ii]-z[jj])+90; + pos[jj](mid_stem,theta); pos[ii](hair,theta); + else: + pickup fine.nib; + lft x[jj]'l=-hround(.5w-1.25hi.u); + top y[jj]'=h-vround(2/3[h,hi.x_height]); + z[ii]'=origin; pos[jj]'(mid_stem,0); pos[ii]'(vair,0); + accent_gap=a_ht-y[jj]'-hi.x_height; + if is_cap: + numeric beta; beta=-the_cap_flat*(angle(z[jj]'-z[ii]')-180); + z[ii]=round(accent_hpos,accent_gap+cap_height); + z[jj]=z[ii]+(z[jj]' rotated beta); + y[jj]r=y[jj]l=y[jj]; y[ii]r=y[ii]l=y[ii]; + for xx:=jj,ii: forsuffixes $:=l,r: + (z[xx]$-z[ii]) rotated -beta=whatever[z[jj]'$,z[ii]'$]; + endfor\\ endfor + else: + for xx:=jj,ii: forsuffixes $:=r, ,l: + z[xx]$=z[xx]'$+round(accent_hpos, + accent_gap+if is_small_cap: cap_height else: x_height fi); + endfor\\ endfor + fi + fi + endgroup; +enddef; + +def put_gravis= + numeric accent_hpos; + accent_hpos=.5w + if is_cap: .75 else: .5 fi\\ u + if known hpos_corr: +hpos_corr fi; + fix_grav_pairs; % |fix_grav_pairs| uses private values of |w|, |h| \& |u| + numeric hpos_corr; % |hpos_corr| is local: forget its value +% draw the diagonal: + if serifs: + pickup crisp.nib; filldraw circ_stroke (z[jj]e--z[ii]e); + z[jj].right=directionpoint down of (z[jj]r{z[jj]r-z[ii]r}..{z[ii]l-z[jj]l}z[jj]l); + z[jj].top=directionpoint left of (z[jj]r{z[jj]r-z[ii]r}..{z[ii]l-z[jj]l}z[jj]l); + else: + pickup fine.nib; filldraw stroke (z[jj]e--z[ii]e); + z[jj].right=z[jj].top=z[jj]r; + fi +% adjust and save height (tho the height is never needed): + h:=if is_cap: y[jj].top else: a_ht fi; + if known sharp_calc: saved_height:=h; fi + mark_height(a_ht#); + penlabels([ii],[jj]); +enddef; +% --------------------------------------------------------------------------- +% DOT ACCENT ACCESSORIES +% --------------------------------------------------------------------------- +%%% good penkind +def put_dot (suffix penkind) (expr dd_) = % dot of the lowercase letter `i' + fix_virgin z; + numeric dd#; % sharp dot diameter + dd#=dd_; define_whole_blacker_pixels(dd); +% adjust height temporarily: + h:=vround(if is_cap: (cap_height#+1.5u#+dd#) + elseif (charcode=oct"273") or (charcode=oct"012"): i_ht#(dd) + fi\\ *hppp); + pickup penkind.nib; pos[jj](dd,90); pos[ii](dd,0); + x[jj]=x[ii]=good.x(.5w+if charcode=oct"233": .5 else: if charcode=oct"235": 0 + else: .25 fi\\fi\\ u); + top y[jj]r=h+1; y[ii]=.5[y[jj]l,y[jj]r]; +% draw the dot: + dot([ii],[jj]); +% dotted `Z' inherits the recently saved height (if known; usually the height +% of the accented `Z') which allows to decrease by one the number of different +% heights in a font; dotted `z' has the height of a lowercase `i' (exception: +% caps and small caps) + if known saved_height: h:=saved_height; fi\\ mark_height(i_ht#(dd)); + penlabels([ii],[jj]); +enddef; +% --------------------------------------------------------------------------- +% L's CROSS ACCESSORIES +% --------------------------------------------------------------------------- +def put_cross(expr l_jut,r_jut) = + fix_virgin z; + numeric dd; dd=if is_cap: cap_bar else: bar fi; + numeric theta; theta=angle(11u#,.3[x_height#,cap_height#]); + pickup crisp.nib; pos[ii](dd,theta+90); pos[jj](dd,theta+90); + lft x[ii]r = hround(x1-l_jut)-eps; + rt x[jj]l = hround(x1+r_jut)+eps; + z[ii]-z[jj]=whatever*dir theta; +% |.52| is one of CM (Computer Magic) numbers appearing in many CM programs, +% among others in the programs for B, F, and H: + whatever[z[ii],z[jj]]=if not is_cap and hefty: top fi\\ + (x1,if charcode=32: .3[x_height,asc_height-serif_drop] % tc blank sign + elseif charcode=147: .3x_height % tc recipe sign + else: .52cap_height fi\\); +% before drawing the stroke improve discretization: + save eps_; + eps_:=y[ii]l-good.y(y[ii]l); + forsuffixes $:=l, ,r: y[ii]$:=y[ii]$-eps_; endfor + eps_:=y[jj]r-good.y(y[jj]r); + forsuffixes $:=l, ,r: y[jj]$:=y[jj]$-eps_; endfor + filldraw stroke z[ii]e--z[jj]e; % now draw the stroke + corrital z[jj]l; % correct italic correction + penlabels([ii],[jj]); +enddef; +% --------------------------------------------------------------------------- +% OGONEK ACCESSORIES +% --------------------------------------------------------------------------- +% This part is admittedly sophisticated, however, a wide spectrum of +% different ogonek shapes is in fact to be programmed: one shape is needed +% for caps, another for `a' with ogonek, yet another for `e' with ogonek, +% as they all have different joins. Moreover, a sansserif ogonek differs +% significantly from a serif one, a bold ogonek from a non-bold, an ogonek +% for hefty fonts should still be different. And if you take into account +% that the basic font unit |u| may change during one session of font +% generation (monospace and caps-small-caps) and that a few different +% pens may be used to draw a single letter, you'll understand why so many +% |if| ... |else:| ... |fi| commands are used in the following code. +% +% Outer and inner edges of an ogonek (suffixed with |l| and |r|, resp.) +% are single B\`ezier segments; the outer one, a path +% |p=z_a..controls z_b and z_c ..z_d| +% is constructed as follows: given pairs |z_a|, |z_d|, angles |alpha_a|, +% |alpha_d| and two numbers |x_down|, |y_right|, find pairs |z_b| and |z_c| +% such that the path |p| has the following properties: +% (a) |direction p(z_a)=alpha_a| +% (b) |direction p(z_d)=alpha_d-180| +% (c) |direction p(x_down,some_y)=down| +% (d) |direction p(some_x,y_right)=right| +% The problem is solved using a ``double'' bisection method, provided +% that appropriate limits |z_b'|, |z_b''| and |z_c'|, |z_c''| for |z_b| +% and |z_c|, respectively, are given; more precisely, +% |z_b=|$\lambda_b$|[z_b',zb'']| and |z_c=|$\lambda_c$|[z_c',zc'']| +% is supposed to hold for given |z_b'|, |z_b''|, |z_c'|, |z_c''| and +% some $0<\lambda_b,\lambda_c<1$. +% +% The inner edge is constructed by a careful modification of the outer one. +% +% If a default behaviour of our program is not satisfying, the user may +% assign a value to the following ``emergency'' parameters (provided E knows +% what E is doing): +% |depth_corr|, |left_corr|, |top_breadth_corr|, |tip_breadth_corr|, +% |tip_xcorr|, |tip_ycorr|, |pre_angle|, |post_angle|, +% |pre_limit|, |post_limit|, |pre_lightness|, |post_lightness|, +% |pre_deflexion|, and |post_deflexion|. +% Any of these parameters, if known while generating a font, is used instead +% of a default setting. The parameters are accessed only via macros: +% |the_ogonek_depth#|, |the_left_pos|, |the_top_breadth_corr|, +% |the_tip_breadth_corr|, |the_tip_pos|, +% |the_pre_angle|, |the_post_angle|, |the_pre_limit|, |the_post_limit|, +% |the_pre_lightness|, |the_post_lightness|, +% |the_pre_deflexion|, and |the_post_deflexion|. +% There is one sharp ogonek parameter, |ogonek_pen#|; a respective pen is +% defined at the end of this file (and once again in POLKAP.MF after +% |font_setup|) and used in the files PL_DL.MF, PL_ML.MF, PL_MLK.MF. +% Any parameter may have its |lower| variant (see the file POLKAP.MF). +% --------------------------------------------------------------------------- +% two handy macros: +vardef cross_point(expr a,b) (expr c,d) = + save z_; pair z_; z_=whatever[a,b]; z_=whatever[c,d]; z_ +% the crossing point of lines (not segments) |a--b| and |c--d| is returned +enddef; + +vardef touch_time(expr p,q) = % a variant of |intersectionpoint| + save x_,y_; (x_,y_)=p intersectiontimes q; if x_<0: 0 else: y_ fi +enddef; +% --------------------------------------------------------------------------- +% the kernel routine for the ogonek: +numeric x_down,x_down',y_right,y_right',alpha_a,alpha_d; +pair z_a,z_b,z_b',z_b'',z_c,z_c',z_c'',z_d; + +pair nz_,pz_; +% with plain's |solve| embeded calls are not allowed, hence a bit tricky +% variation: +%%% known zsolve +vardef zsolve@#(suffix z_)= +% |@#| is the name of a real monotonic function; it is assumed that +% |@#(z_')<=0|, |@#(z_'')>0| holds for given |z_'| and |z_''| + save nz_,pz_; pair nz_,pz_; % recursive calls are possible + nz_:=z_'; pz_:=z_''; + forever: + z_:=.5[nz_,pz_]; exitif abs(nz_-pz_)<=tolerance; % by default |tolerance=.1| + if @#(z_)<=0: nz_ else: pz_ fi :=z_; + endfor +% on exit |z_| is (hopefully) near the point where |@#| changes from +% negative to positive +enddef; + +vardef down_dir(expr z_b)= + zsolve right_dir(z_c); % here |z_c| is computed + lft(xpart(directionpoint down of (z_a..controls z_b and z_c..z_d)))-x_down +enddef; + +vardef right_dir(expr z_c)= + bot(ypart(directionpoint right of (z_a..controls z_b and z_c..z_d)))-y_right +enddef; +% --------------------------------------------------------------------------- +% ogonek defaults: +vardef the_ogonek_depth# = % sharp value + if known depth_corr: depth_corr* fi\\ desc_depth# +enddef; + +vardef the_left_pos = + if known left_corr: left_corr* fi + if monospace: 3.75 elseif serifs: + if hefty: 2.3 elseif is_bold: 1.7 else: 1.9 fi + else: % sansserif + if is_bold: 1.65 else: 1.55 fi\\ fi\\ hi.u +enddef; + +vardef the_tip_pos = + (if monospace: 1.9 elseif serifs: if hefty: 1.85 + elseif is_bold: 1.75 else: 2 fi\\ else: % sansserif + if is_bold: 2.1 else: 1.95 fi\\ fi\\ hi.u, + if serifs: + if monospace: 1.25 elseif hefty: 1 elseif is_bold: .75 else: 1.45 fi + else: % sansserif + .45 fi\\ hi.u) + if known tip_xcorr: xscaled\\ tip_xcorr fi + if known tip_ycorr: yscaled\\ tip_ycorr fi +enddef; + +vardef the_top_breadth_corr = + if known top_breadth_corr: top_breadth_corr else: + if serifs: 1 elseif is_bold: 1.12 elseif is_cap: 1.06 else: .96 fi\\ fi +enddef; + +vardef the_tip_breadth_corr = + if known tip_breadth_corr: tip_breadth_corr else: 1 fi +enddef; + +vardef the_pre_angle = % refers to the outer edge + if known pre_angle: pre_angle else: + if serifs: if hefty: 208 elseif is_bold: 211 else: 214 fi\\ else: 211 fi + fi +enddef; + +vardef the_post_angle = % refers to the outer edge + if known post_angle: post_angle else: + if serifs: if monospace: 60 elseif hefty: 66 elseif is_bold: 55 else: 74 fi + else: 25 fi\\ fi +enddef; + +vardef the_pre_limit = % refers to the outer edge + if known pre_limit: pre_limit else: x_down-3.5hi.u fi +enddef; + +vardef the_post_limit = % refers to the outer edge + if known post_limit: post_limit else: x_down-2hi.u fi +enddef; + +vardef the_pre_lightness = % refers to the inner edge + if known pre_lightness: pre_lightness else: + if serifs and hefty: .97 elseif not serifs and is_bold: .6 + elseif is_bold: .66 else: .78 fi\\ fi +enddef; + +vardef the_post_lightness = % refers to the inner edge + if known post_lightness: post_lightness else: + if serifs: + if hefty: .95 elseif is_bold: .66 else: .82 fi + else: % sansserif + .75 fi\\ fi +enddef; + +vardef the_post_deflexion = % refers to the inner edge + if known post_deflexion: post_deflexion elseif serifs and hefty: 0 + else: -5 fi +enddef; + +vardef the_pre_deflexion = % refers to the inner edge + if known pre_deflexion: pre_deflexion + elseif known join_angle and not serifs: + if is_bold: -4 else: -2 fi\\ + elseif not serifs: if is_bold: -8 else: -4 fi\\ else: 0 fi +enddef; +% --------------------------------------------------------------------------- +%%% fine lo +vardef lo suffix z = % in a way |lo| is a counterpart to |hi| + if is_small_cap: z_a+((z-z_a) scaled sqrt(body_height#/higher.body_height#)) + else: z fi +enddef; +% --------------------------------------------------------------------------- +% parameters to |put_ogonek|: +numeric join_angle; % starting (inner) ogonek direction, if known +numeric ogonek_breadth; % ogonek breadth at the tip +% starting (inner for `e' with ogonek, otherwise outer) ogonek position: +pair ogonek_pos; +% --------------------------------------------------------------------------- +def put_ogonek(suffix penkind) = + begingroup + if monospace: +% excerpt from |mono_adjust|: + save u_; numeric u_; u_:=hi.u#; save u; u#:=u_; + numeric expansion_faktor; + mono_charwd#=2hi.letter_fit#+expansion_faktor*cap_A_wd#; % cap_A_wd=13u + hi.u:=u#*expansion_faktor*hppp; +% now |u| is like in the letter `A' + fi + + fix_virgin z; pickup penkind.nib; + +% `a' with ogonek attached to the hook deserves a special treatment: + if\\ (not is_small_cap) and (charcode=oct"241") and serifs and not is_bold: + if ypart(ogonek_pos)>.5penkind: + z[ii]~l=ogonek_pos; + pos[ii]~(max(the_top_breadth_corr*ogonek_breadth,penkind+epsilon),0); + ogonek_pos:=cross_point((0,.5penkind),(1,.5penkind)) + (z[ii]~l,z[ii]~l+dir(the_pre_angle)); + fi + fi + +% similarly, `e' with ogonek deserves a special treatment: + if\\ (not is_small_cap) and (charcode=oct"246"): + if ypart(ogonek_pos)>.5penkind: + z[ii]~r=ogonek_pos; + pos[ii]~(max(the_top_breadth_corr*ogonek_breadth,penkind+epsilon),0); + ogonek_pos:=cross_point((0,.5penkind),(1,.5penkind)) + (z[ii]~l,z[ii]~l+dir(join_angle)); + fi + fi + +% invariant: |ypart(ogonek_pos)|$\le$|.5penkind|; +% moreover, for `A' and `E': |ypart(ogonek_pos)=.5penkind| + +% OUTER EDGE: + alpha_a:=the_pre_angle; % starting direction + alpha_d:=180+the_post_angle; % ending direction + x_down:=if serifs: hround else: ceiling fi + (xpart(ogonek_pos)-the_left_pos); % left bound + y_right:=-vround(d+hi.o); % bottom bound + z_a:=(x_down+the_left_pos,ypart(ogonek_pos)); % starting point + z_d:=(xpart(z_a)-.5penkind,y_right+ypart(ogonek_pos))+ + the_tip_pos; % ending point +% guess the boundaries for control points: + z_b':=cross_point (z_a,z_a+dir alpha_a) + ((the_pre_limit,0),(the_pre_limit,1)); + z_b'':=cross_point (z_b',z_a)\\ ((x_down,0),(x_down,1)); + z_c':=cross_point (z_d,z_d+dir alpha_d) + ((the_post_limit,0),(the_post_limit,1)); + z_c'':=cross_point (z_c',z_d)\\ ((0,y_right),(1,y_right)); +% THE PIVOT STEP OF THE OGONEK PROCEDURE, i.e., +% determine the control points (|z_b| and |z_c|) of the outer path: + zsolve down_dir(z_b); % |down_dir| calls `|zsolve right_dir(z_c)|' + x_down':=xpart(lft(directionpoint down of + (z_a..controls z_b and z_c..z_d))); + y_right':=ypart(bot(directionpoint right of + (z_a..controls z_b and z_c..z_d))); + if abs(x_down'-x_down,y_right'-y_right)>sqrt2: + message "ERROR: `ogonek' iteration hasn't converged! Final values:"; + message "x_down="&decimal x_down'&" (should be "&decimal x_down&")"; + message "y_right="&decimal y_right'&" (should be "&decimal y_right&")"; + errhelp "Maybe Jackowski knows how to change them..."; + errmessage "Probably, you have to change somehow the boundary values"; + fi + +% small caps have ogoneks a bit smaller: + z[ii]l=z_a; z[ii]'l=lo.z_b; z[jj]'l=lo.z_c; z[jj]l=lo.z_d; + +% INNER EDGE: + pos[ii](max(the_top_breadth_corr*ogonek_breadth,penkind+epsilon),0); + pos[jj](max(the_tip_breadth_corr*ogonek_breadth,penkind+epsilon), + angle(direction 1 of (z_a..controls z_b and z_c..z_d))+ + if serifs: 90 else: 80 fi); + + z[ii]'r=z[ii]r+((z[ii]'l-z[ii]l) scaled the_pre_lightness + rotated the_pre_deflexion); + z[jj]'r=z[jj]r+((z[jj]'l-z[jj]l) scaled the_post_lightness + rotated the_post_deflexion); + +% trim the top of the ogonek, if necessary: + path ogonek.l, ogonek.r; numeric tt.r, tt.l; + + ogonek.l=if is_known z[ii]~: % minuscule with ogonek + z[ii]~l{dir if charcode=oct"241": the_pre_angle else: join_angle fi}..fi + z[ii]l..controls z[ii]'l and z[jj]'l..z[jj]l; + ogonek.r=if is_known z[ii]~: % ditto + z[ii]~r{dir if charcode=oct"241": the_pre_angle else: join_angle fi}..fi + z[ii]r..controls z[ii]'r and z[jj]'r..z[jj]r; + + tt.r=if serifs and (not is_small_cap) and (charcode=oct"241"): + touch_time(p.l,ogonek.r) else: 0 fi; + tt.l=if\\ (not is_small_cap) and (charcode=oct"246"): + touch_time(p.r,ogonek.l) else: 0 fi; +% at last, draw the ogonek: + if ogonek_breadth>.5: + interim turningcheck:=0; filldraw + if\\ (not is_small_cap) and (charcode=oct"246"): + (point tt.r of ogonek.r){direction tt.r of ogonek.r}..{curl 1} fi + subpath (tt.l,length ogonek.l) of ogonek.l-- + reverse(subpath (tt.r,length ogonek.r) of ogonek.r) + if is_small_cap or (charcode<>oct"246"): -- else: & fi\\ cycle; +% the |draw| command covers with ink unwanted breaks: + pickup pensquare scaled (.5*sqrt2) rotated 45; + draw .5[z[ii]l,z[ii]r]..controls .5[z[ii]'l,z[ii]'r] and + .5[z[jj]'l,z[jj]'r].. .5[z[jj]l,z[jj]r]; + else: % poor resolution: + pickup pensquare scaled (.5*sqrt2) rotated 45; + draw z[ii]l..controls z[ii]'l and z[jj]'l..z[jj]l; + fi + + numeric join_angle, ogonek_breadth; pair ogonek_pos; % all they are local + + penlabels([ii],[jj]); + + endgroup +enddef; +%******************************************************************************* +% +% This was csaccent.mf in text format, as of 89/05/08 +% written by P. Novak, Prague +% Czech and Slovak letters with accents +% Changed paths for acute and hachek accent added 26/04/92, 11/08/92 +% Accent definitions |lc_circle_accent| modified +% |uc_Circle_accent| added for Duerer font +% +% 7 May 1995 did whole sale surgery to this part. Moved parameters to +% dxpseudo.mf to be able to manipulate them from there. The Acute +% accent is done the polish way, therefore removed all acute related +% macros. Pseudoparametrised all kinds of |dot_diam|. +% 17 Jun 1995 adjusted hachek height parameters to blend better with acute +% parameters. Removed lots of stuff not used by the dc and tc fonts. +% 17 Jul 1995 corrected uppercase hachek height for sans serif case +% Removed many macros, which aren't used anymore +% 23 Aug 1996 Adjusted |lc_hachek_accent| for dcsx font +% 23 Dec 1996 Done provisions for small caps fonts, consequently +% applied |hi.|, replaced |curve| by |cap_curve| for |uc_hachek_accent|, +% adjusted numeric factors to the usually higher value of |cap_curve|. +% 19 Jan 1997 The |uc_hacheck_accent| comes out too high, because of +% unwanted white space above it. Changed appropriately. +% 26 May 1997 Adjusted |lc_hachek_accent| for CM Bright (CMBR). +%=============================================================================== + +def lc_hachek_accent(expr ref) = + if serifs: + pickup crisp.nib; + pos52'(0.75[vair,curve],90); + pos52(0.75[vair,curve],90); + x52=good.x ref; + x52-x51=x53-x52=good.x if hach_sharp:2.5 else:3 fi + accent_u-accent_thin; + top y52' = top y51 = top y53 = lc_hachek_height; + if hach_sharp: + y52=max(2/3[h,hi.x_height],hi.x_height+o+hair); % lower point + pos51(1.5stem,0); pos53(accent_thin,180); + else: + 0.5[y52,y52r] = 0.5[hi.x_height,y52']; + pos51(accent_thin,angle(z52-z51)+90); + pos53(accent_thin,angle(z53-z52)+90); + fi + filldraw stroke z51e -- z52e -- z53e; + else: + pickup fine.nib; + pos51(vair,0); + pos53(vair,0); + x52=good.x ref; + x52-lft x51=rt x53-x52= hround(1.25accent_u + vair); + pos52(stem,0); + bot y52=vround(0.33[x_height,lc_hachek_height]);% (CMBR) +% bot y52=vround(max(2/3[h,hi.x_height],hi.x_height+o+hair)); + top y51 = top y53 = lc_hachek_height; + z50 = whatever[z51r,z52r] = whatever[z52l,z53l]; + y54l=y54r=y52; + x54l=good.x .2[x52l,x52]; + x54r-x52 = x52-x54l; + filldraw z54l -- z51l-- z51r -- z50 -- z53l -- z53r -- z54r -- cycle; + fi + penlabels(50,51,52,52',53,54); +enddef; + +def dtl_hachek(text x_ref,y_ref) = +pickup fine.nib; + pickup fine.nib; + x51=hround(x_ref); y51=vround(y_ref); + comma(51,q,pdot_diam,.25accent_u,2/3comma_depth); + penlabels(51); +enddef; + +def uc_hachek_accent(expr ref) = + if serifs: + pickup crisp.nib; + pos52'(0.5[vair,cap_curve],90); + pos52(0.5[vair,cap_curve],90); + x52=good.x ref; + x52-x51=x53-x52=good.x 3accent_u-accent_thin; + top y52' = top y51 = top y53 = % upper points + uc_acc_height-.5[vair,cap_curve]+eps + -max(2/3[uc_acc_height,hi.x_height],hi.x_height+o+hair)+cap_height; + if hach_sharp: + y52=max(2/3[uc_acc_height,hi.x_height],hi.x_height+o+hair) + -hi.x_height+cap_height; % lower point + pos51(cap_stem,0); pos53(2accent_thin,180); + else: + 0.5[y52,y52r] = + if not hefty: + max(2/3[uc_acc_height,hi.x_height],hi.x_height+o+hair) + -hi.x_height+cap_height; + else: + max(2/3[uc_acc_height,hi.x_height],hi.x_height+o) + -hi.x_height+cap_height-hair; + fi + pos51(accent_thin,angle(z52-z51)+90); + pos53(accent_thin,angle(z53-z52)+90); + fi + filldraw stroke z51e -- z52e -- z53e; + else: + pickup fine.nib; + pos51(vair,0); + pos53(vair,0); + x52=good.x ref; + x52-x51=x53-x52= 1.75accent_u + .5vair; + pos52(cap_stem,0); + bot y52= cap_height + .5 accent_gap; + top y51 = top y53 = cap_height + acc_height; + z50 = whatever[z51r,z52r] = whatever[z52l,z53l]; + y54l=y54r=y52; + x54l=good.x .2[x52l,x52]; + x54r-x52 = x52-x54l; + filldraw z54l -- z51l-- z51r -- z50 -- z53l -- z53r -- z54r -- cycle; + fi +penlabels(50,51,52,52',53,54); +enddef; + +endinput; +%% diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebbase.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebbase.mf new file mode 100644 index 00000000000..aaab6280ab1 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebbase.mf @@ -0,0 +1,1347 @@ +% ebbase.mf +% [=exbase.mf, changed by Walter Schmidt, see (CMBR)] +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% (c) Copyright 1990, 1992 Norbert Schwarz +% +% This file is part of EC Bright v1.0 +% +% Content: +% +% The base file needed for generation of the EC Bright fonts + +ebbase:=1; % if |ebbase| is known, this file has been input + +ec_maj_version:=1; ec_min_version:=0; % version identification + +def version_check(expr e,f)= + if e=ec_maj_version: + if f=ec_min_version: + message " Ok"; + elseif: f>ec_min_version: + message "ec font warning: Obsolete base"; + elseif: f<ec_min_version: + message "ec font warning: File from old release found"; + fi + elseif: e>ec_maj_version: + message "ec font warning: Obsolete base"; + elseif: e<ec_maj_version: + message "ec font warning: File from old release found"; + fi +enddef; + +let stop_eventually=relax; + +% The following checks require, that |bye| is an |inner| command. +% This is usually set by |local.mf| or |modes.mf|, however we cannot +% rely on this feature, therefore we do it here again. + +inner bye; + +% Check for existence of |boundarychar| +if unknown boundarychar: + message "You are using out-of-date METAFONT 1.*,"; + message "please update to METFONT 2.718 or newer."; + let stop_eventually=bye; +fi + +% Check for old version of |plain.mf| (2.0 or older) +if known begingroup killtext whatever endgroup: + relax; +else: + message "You are using plain.mf 2.0 or older"; + message "please update to plain.mf 2.71 or newer"; + let stop_eventually=bye; +fi + +% Check for |cmbase| +if known cmbase: + message "You are using METAFONT with cmbase preloaded,"; + message "please use only plain METAFONT to generate the ec fonts."; + let stop_eventually=bye; +fi + +stop_eventually; + +boolean slitex; slitex := false; % |true| simulates behaviour of |sroman| +boolean one_serif; one_serif:=true; % |false| suppresses base serif on `1' +boolean classic_serif; classic_serif := false; +boolean suppress_i_dot; suppress_i_dot :=false; +boolean hach_sharp; hach_sharp:=false; +boolean classic_sharp_s; classic_sharp_s:=true; % (CMBR) +boolean true_mono; true_mono:=false; % |true| forces ligatures to monowidth +boolean knuthian_ae; knuthian_ae:=false; % |true| reproduces cm italic \ae +boolean fancy_thorn; fancy_thorn:=false; % |true| produces \th with fancier bulb +boolean is_small_cap; is_small_cap:=false; +tracingstats:=1; % Print statistics at the end of run + +let ecchar=\; % `|ecchar|' should precede each character +let generate=input; % `|generate|' should follow the parameters + +autorounding:=0; smoothing:=0; % we do our own rounding +def autorounded = interim autorounding:=2 enddef; + +newinternal slant,fudge,math_spread,superness,superpull,beak_darkness; +boolean square_dots,hefty,serifs, + monospace,variant_g,low_asterisk,math_fitting; + +boolean dark,dark.dark,skewed,skewed.skewed; % for fast option testing +dark=skewed=false; dark.dark=skewed.skewed=true; + +vardef Vround primary y = y_:=vround y; + if y_<min_Vround: min_Vround else: y_ fi enddef; +newinternal y_,min_Vround; + +vardef serif(suffix $,$$,@) % serif at |z$| for stroke from |z$$| + (expr darkness,jut) suffix modifier = + pickup crisp.nib; numeric bracket_height; pair downward; + bracket_height=if dark.modifier: 1.5 fi\\ bracket; + if y$<y$$: y@2=min(y$+bracket_height,y$$); + top y@1-slab=bot y@0+eps=tiny.bot y$; downward=z$-z$$; + if y@1>y@2: y@2:=y@1; fi + else: y@2=max(y$-bracket_height,y$$); + bot y@1+slab=top y@0-eps=tiny.top y$; downward=z$$-z$; + if y@1<y@2: y@2:=y@1; fi fi + y@3=y@2; z@3=whatever[z$,z$$]; + if jut<0: z@2+penoffset downward of currentpen = + z$l+penoffset downward of pen_[tiny.nib]+whatever*downward; + lft x@0=lft x@1=tiny.lft x$l+jut; + if x@3<x@2+eps: x@3:=x@2+eps; fi + else: z@2-penoffset downward of currentpen = + z$r-penoffset downward of pen_[tiny.nib]+whatever*downward; + rt x@0=rt x@1=tiny.rt x$r+jut; + if x@3>x@2-eps: x@3:=x@2-eps; fi fi + pair corner; ypart corner=y@1; corner=z@2+whatever*downward; + filldraw z@2{z$-z$$} + ...darkness[corner,.5[z@1,z@2] ]{z@1-z@2} + ...{jut,0}z@1--z@0--(x$,y@0)--z@3--cycle; % the serif + labels (@1,@2); enddef; + +def dish_serif(suffix $,$$,@)(expr left_darkness,left_jut) + (suffix @@)(expr right_darkness,right_jut) suffix modifier = + serif($,$$,@,left_darkness,-left_jut) modifier; + serif($,$$,@@,right_darkness,right_jut) modifier; + if dish>0: pickup tiny.nib; numeric dish_out,dish_in; + if y$<y$$: dish_out=bot y$; dish_in=dish_out+dish; let rev_=reverse; + else: dish_out=top y$; dish_in=dish_out-dish; let rev_=relax; fi + erase fill rev_ + ((x@1,dish_out)..(x$,dish_in){right}..(x@@1,dish_out)--cycle); + fi enddef; + +def nodish_serif(suffix $,$$,@)(expr left_darkness,left_jut) + (suffix @@)(expr right_darkness,right_jut) suffix modifier = + serif($,$$,@,left_darkness,-left_jut) modifier; + serif($,$$,@@,right_darkness,right_jut) modifier; enddef; + +vardef sloped_serif.l(suffix $,$$,@)(expr darkness,jut,drop) = + pickup crisp.nib; pos@2(slab,90); + lft x@0=tiny.lft x$l; rt x@1=tiny.rt x$r; top y@1=tiny.top y$r; + lft x@2=lft x@0-jut; y@2r=y@1-drop; + y@0=max(y@2l-bracket,y$$)-eps; + if drop>0: erase fill z@1--top z@1 + --(x@2r,top y@1)--z@2r--cycle; fi % erase excess at top + filldraw z@1--z@2r--z@2l{right} + ...darkness[(x@0,y@2l),.5[z@2l,z@0] ]{z@0-z@2l} + ...{down}z@0--(x@1,y@0)--cycle; % sloped serif + labels(@0,@1,@2); enddef; + +vardef sloped_serif.r(suffix $,$$,@)(expr darkness,jut,drop) = + pickup crisp.nib; pos@2(slab,-90); + rt x@0=tiny.rt x$r; lft x@1=tiny.lft x$l; bot y@1=tiny.bot y$l; + rt x@2=rt x@0+jut; y@2r=y@1+drop; + y@0=min(y@2l+bracket,y$$)+eps; +if drop>0: erase fill z@1--bot z@1 + --(x@2r,bot y@1)--z@2r--cycle; fi % erase excess at bottom + filldraw z@1--z@2r--z@2l{left} + ...darkness[(x@0,y@2l),.5[z@2l,z@0] ]{z@0-z@2l} + ...{up}z@0--(x@1,y@0)--cycle; % sloped serif + labels(@0,@1,@2); enddef; + +vardef term.l(suffix $,$$)(expr d,t,s)= % ``robust'' sans-serif terminal + path p_; p_=z$l{d}..tension t..z$$l; + pair d_; d_=(x$$l-x$l,s*(y$$l-y$l)); + if (abs angle direction 1 of p_ < abs angle d_)<>(x$l<x$$l): + p_:=z$l{d}..tension atleast t..{d_}z$$l; fi + p_ enddef; +vardef term.r(suffix $,$$)(expr d,t,s)= + path p_; p_=z$r{d}..tension t..z$$r; + pair d_; d_=(x$$r-x$r,s*(y$$r-y$r)); + if (abs angle direction 1 of p_ < abs angle d_)<>(x$r<x$$r): + p_:=z$r{d}..tension atleast t..{d_}z$$r; fi + p_ enddef; +def rterm=reverse term enddef; + +vardef arm(suffix $,$$,@)(expr darkness,jut) = % arm from |z$| to |z$$| + x@0=good.x(x$$r-jut); y@0=y$r; + if serifs: y@1=y$l; z@1=z$$l+whatever*(z$$r-z@0); + z@2=.5[z$l,z@1]; + filldraw z$$l{z@1-z$$l}...darkness[z@1,.5[z@2,z$$l] ]...z@2 + ---z$l--z$r--z@0--z$$r--cycle; % arm and beak + else: filldraw z$l--z$r--z@0--z$$r--cycle; fi % sans-serif arm + penlabels(@0,@1,@2); enddef; + +def bulb(suffix $,$$,$$$) = + z$$$r=z$$r; + path_.l:=z$l{x$$r-x$r,0}...{0,y$$r-y$r}z$$l; + filldraw path_.l--z$$r{0,y$r-y$$r}...{x$r-x$$r,0}z$r--cycle; % link + path_.r:=z$$$l{0,y$r-y$$r}..z$$$r{0,y$$r-y$r}; % near-circle + filldraw subpath(0,xpart(path_.r intersectiontimes path_.l)) of path_.r + --z$$r{0,y$$r-y$r}..cycle; % bulb + enddef; + +def v_bulb(suffix $,$$)= % |pos$| is known + y$$+.5curve=x_height+oo; x$$+.5curve=w-u; + numeric theta; theta=angle(4(x$-x$$),y$-y$$); pos$$(curve,theta+90); + filldraw z$$l{dir theta}..tension atleast 1 and 1..{down}z$l + --z$r{up}...{-dir theta}z$$r..cycle; % bulb + enddef; + +def dot(suffix $,$$) = + filldraw if square_dots: (x$l,y$$l)--(x$r,y$$l) + --(x$r,y$$r)--(x$l,y$$r)--cycle % squarish dot + else: z$l...z$$l...z$r...z$$r...cycle fi % roundish dot + enddef; + +def comma(suffix $,@)(expr dot_size,jut,depth) = + 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-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,-45); + z@1r=z$r; rt x@2r=hround(x$+.5dot_size+jut)+2eps; x@3=x$-.5u; + y@2=1/3[y@1,y@3]; bot y@3r=vround(y$-.5dot_size-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}...z@3e; fi % tail + penlabels(@1,@2,@3); enddef; + +def ammoc(suffix $,@)(expr dot_size,jut,depth) = % reversed comma + 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_top_:=max(fine.breadth,floor .5dot_size); + pos@0(comma_join_,0); pos@1(comma_join_,0); + pos@2(comma_top_,0); y@0=y$; y@1=y$r; y@2=y@1+depth; + x@0l=x@1l=x$'l; lft x@2l=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,-45); + z@1l=z$l; lft x@2l=hround(x$-.5dot_size-jut)-2eps; x@3=x$+.5u; + y@2=1/3[y@1,y@3]; top y@3l=vround(y$+.5dot_size+depth); + y_:=ypart((z@1{left}...z@2{up}...z@3) + intersectiontimes (z$r{left}..{right}z$l)); if y_<0: y_:=1; fi + filldraw z$l{right}..subpath (0,y_) of (z$r{left}..{right}z$l)--cycle; % dot + filldraw stroke z@1e{left}...z@2e{up}...z@3e; fi % tail + penlabels(@1,@2,@3); enddef; + +%%% @ from to %%%% temporary formatting change +vardef diag_in(suffix from,$)(expr sharpness)(suffix $$) = + pickup tiny.nib; save from_x,y_; + if y.from>y$: bot else: top fi\\ y_=y$; + (from_x,y_)=whatever[z.from,z$]; + sharpness[z$,(from_x,y_)]{z$-z.from} + ...{z$$-z$}z$+sharpness*length(z$-(from_x,y_))*unitvector(z$$-z$) enddef; + +vardef diag_out(suffix $)(expr sharpness)(suffix $$,to) = + pickup tiny.nib; save to_x,y_; + if y.to>y$: bot else: top fi\\ y_=y$; + (to_x,y_)=whatever[z$$,z.to]; + z$$-sharpness*length(z$$-(to_x,y_))*unitvector(z$$-z$){z$$-z$} + ...{z.to-z$$}sharpness[z$$,(to_x,y_)] enddef; + +vardef diag_end(suffix from,$)(expr sharpness_in,sharpness_out)(suffix $$,to)= + save from_x,to_x,y_,x_,xx_; + if y.from>y$: tiny.bot else: tiny.top fi\\ y_=y$; % we assume that |y$=y$$| + (from_x,y_)=whatever[z.from,z$]; (to_x,y_)=whatever[z$$,z.to]; + if x$$>x$: x_=x$+sharpness_in*length(z$-(from_x,y_)); + xx_=x$$-sharpness_out*length(z$$-(to_x,y_)); + if xx_<x_: xx_:=x_:=.5[xx_,x_]; fi + else: x_=x$-sharpness_in*length(z$-(from_x,y_)); + xx_=x$$+sharpness_out*length(z$$-(to_x,y_)); + if xx_>x_: xx_:=x_:=.5[xx_,x_]; fi fi + sharpness_in[z$,(from_x,y_)]{z$-z.from} + ...{z$$-z$}(x_,y$)..(xx_,y$){z$$-z$} + ...{z.to-z$$}sharpness_out[z$$,(to_x,y_)] enddef; +%%% at from to %%%% restore normal formatting + +vardef special_diag_end(suffix $$,$,@,@@) = % for top middle of w's + if x@r<=x$r: diag_end($$r,$r,1,1,@l,@@l) + else: z0=whatever[z$$l,z$l]=whatever[z@l,z@@l]; + diag_end($$r,$r,1,1,$l,0)--z0 fi enddef; + +def prime_points_inside(suffix $,$$) = + theta_:=angle(z$r-z$l); + penpos$'(whatever,theta_); + if y$$>y$: z$'=(0,pen_top) rotated theta_ + whatever[z$l,z$r]; + theta_:=angle(z$$-z$)-90; + else: z$'=(0,pen_bot) rotated theta_ + whatever[z$l,z$r]; + theta_:=angle(z$$-z$)+90; fi + z$'l+(pen_lft,0) rotated theta_=z$l+whatever*(z$-z$$); + z$'r+(pen_rt,0) rotated theta_=z$r+whatever*(z$-z$$); + enddef; + +def ellipse_set(suffix $,@,@@,$$) = % given |z$,x@,z$$|, find |y@| and |z@@| +% such that the path |z${x@-x$,0}..z@{0,y@-y$}..{z$$-z@@}z@@| +% is consistent with an ellipse +% and such that the line |z@@--z$$| has a given |slope| + alpha_:=slope*(x@-x$); beta_:=y$$-y$-slope*(x$$-x$); + gamma_:=alpha_/beta_; + y@-y$=.5(beta_-alpha_*gamma_); + x@@-x$=-2gamma_*(x@-x$)/(1+gamma_*gamma_); + y@@-y$$=slope*(x@@-x$$) enddef; + +vardef diag_ratio(expr a,b,y,c) = % assuming that $a>\vert b/y\vert$, +% compute the value $\alpha=(x\6{++}y)/y$ such that $ax+b\alpha=c$ + numeric a_,b_; b_=b/y; a_=a*a-b_*b_; + (a*(c++y*sqrt a_)-b_*c)/a_/y enddef; + +def f_stroke(suffix $,$$,@,left_serif,right_serif)(expr left_jut,right_jut)= + pickup tiny.nib; bot y$=0; + penpos@0(x$r-x$l,0); x@0l=x$l; top y@0=x_height; + filldraw stroke z$e--z@0e; % stem + pickup fine.nib; pos@0'(x$r-x$l-(hround stem_corr)+tiny,180); + y@0'=y@0; lft x@0'r=tiny.lft x$l; + penpos@1(x@0'l-x@0'r,180); x@1=x@0'; y@1+.5vair=.5[x_height,h]; + pos@2(vair,90); top y@2r=h+oo; + if serifs: x@2=.6[x@1,x$$r]; (x@,y@2r)=whatever[z@2l,z@1l]; + x@2r:=min(x@,.5[x@2,x$$r]); pos@3(hair,0); bulb(@2,@3,$$); % bulb + filldraw stroke z@0'e--z@1e & super_arc.e(@1,@2); % arc + dish_serif($,@0,left_serif,1/3,left_jut,right_serif,1/3,right_jut); % serif + else: x@2=.6[x@1,x$$]; y@1l:=1/3[y@1l,y@2l]; + filldraw stroke z@0'e--z@1e & super_arc.e(@1,@2) + & term.e(@2,$$,right,.9,4); fi % arc and terminal + penlabels(@0,@1,@2); enddef; + +def h_stroke(suffix $,@,@@,$$) = + penpos$$(x@@r-x@@l,0); x$$=x@@; bot y$$=0; + y@@=1/3[bar_height,x_height]; + penpos$''(x$r-x$l,0); x$''=x$; y$''=1/8[bar_height,x_height]; + filldraw stroke z$''e--z$e; % thicken the lower left stem + penpos@0(min(rt x$r-lft x$l,thin_join)-fine,180); pickup fine.nib; + rt x@0l=tiny.rt x$r; y@0=y$''; + pos@1(vair,90); pos@@'(x@@r-x@@l+tiny,0); z@@'=z@@; + x@1=.5[rt x@0l,rt x@@'r]; top y@1r=x_height+oo; + (x@,y@1l)=whatever[z@1r,z@0l]; x@1l:=x@; + filldraw stroke z@0e{up}...{right}z@1e + &{{interim superness:=hein_super; super_arc.e(@1,@@')}}; % arch + pickup tiny.nib; filldraw stroke z@@e--z$$e; % right stem + labels(@0); penlabels(@1); enddef; + +def hook_out(suffix $,$$,$$$)suffix modifier= % |x$| and |x$$$| (only) are known + pos$(stem,0); pos$$(vair,90); + x$$$:=hround(x$$$+.5hair-eps)-.5hair; pos$$$(hair,180); + y$=1/4x_height; bot y$$l=-oo; y$$$=1/3x_height; + if skewed.modifier: x$$=x$+1.25u; + filldraw stroke z$e{-u,-x_height}...z$$e{right}...{up}z$$$e; % hook + else: x$$=x$+1.5u; + filldraw stroke z$e{down}...z$$e{right} + ...{x$$$-(x$+2.5u),x_height}z$$$e; fi enddef; % hook + +def empty_hook_out(suffix $,$$,$$$)suffix modifier= % |x$| and |x$$$| (only) are known + pos$(stem,0); pos$$(vair,90); + x$$$:=hround(x$$$+.5hair-eps)-.5hair; pos$$$(hair,180); + y$=1/4x_height; bot y$$l=-oo; y$$$=1/3x_height; + if skewed.modifier: x$$=x$+1.25u; +% filldraw stroke z$e{-u,-x_height}...z$$e{right}...{up}z$$$e; % hook + else: x$$=x$+1.5u; +% filldraw stroke z$e{down}...z$$e{right} +% ...{x$$$-(x$+2.5u),x_height}z$$$e; +fi enddef; % empty_hook_out + +def hook_in(suffix $,$$,$$$)suffix modifier= % |x$| and |x$$$| (only) are known + x$:=hround(x$-.5hair)+.5hair; pos$(hair,180); + pos$$(vair,90); pos$$$(stem,0); + y$=2/3x_height; top y$$r=x_height+oo; y$$$=3/4x_height; + if skewed.modifier: x$$=x$$$-1.25u; + filldraw stroke z$e{up}...z$$e{right}...{-u,-x_height}z$$$e; % hook + else: x$$=x$$$-1.5u; + filldraw stroke z$e{x$$$-2.5u-x$,x_height} + ...z$$e{right}...{down}z$$$e; fi enddef; % hook + +def ital_arch(suffix $,$$,$$$) = % |z$| and |z$$$| (only) are known + pos$'(hair,180); z$'=z$; + pos$$(vair,90); pos$$$(stem,0); + {{interim superness := more_super; x$$=.6[x$,x$$$]; + top y$$r=x_height+oo; y$$$=.65x_height; + filldraw stroke z$'e{up}...super_arc.e($$,$$$);}} enddef; % stroke + +def compute_spread(expr normal_spread,big_spread)= + spread#:=math_spread[normal_spread,big_spread]; + spread:=ceiling(spread#*hppp)+eps; enddef; + +def v_center(expr h_sharp) = + .5h_sharp+math_axis#, .5h_sharp-math_axis# enddef; + +def circle_points = + x4=x8=.5[x2,x6]; x1=x3=superness[x4,x2]; x5=x7=superness[x4,x6]; + y2=y6=.5[y4,y8]; y1=y7=superness[y2,y8]; y3=y5=superness[y2,y4]; + enddef; +def draw_circle = + draw z8{right}...z1{z2-z8}...z2{down}...z3{z4-z2}...z4{left} + ...z5{z6-z4}...z6{up}...z7{z8-z6}...cycle enddef; + +def left_paren(expr min_breadth, max_breadth) = + pickup fine.nib; pos1(hround min_breadth,0); + pos2(hround max_breadth,0); pos3(hround min_breadth,0); + rt x1r=rt x3r=hround(w-1.25u+.5min_breadth); lft x2l=hround 1.25u; + top y1=h; y2=.5[y1,y3]; bot y3=1-d; + filldraw stroke z1e{3(x2e-x1e),y2-y1}...z2e + ...{3(x3e-x2e),y3-y2}z3e; % arc + penlabels(1,2,3); enddef; + +def right_paren(expr min_breadth, max_breadth) = + pickup fine.nib; pos1(hround min_breadth,0); + pos2(hround max_breadth,0); pos3(hround min_breadth,0); + lft x1l=lft x3l=hround(1.25u-.5min_breadth); rt x2r=hround(w-1.25u); + top y1=h; y2=.5[y1,y3]; bot y3=1-d; + filldraw stroke z1e{3(x2e-x1e),y2-y1}...z2e + ...{3(x3e-x2e),y3-y2}z3e; % arc + penlabels(1,2,3); enddef; + +def left_bracket(expr breadth,do_top,do_bot) = + pickup crisp.nib; + numeric thickness; thickness=hround breadth; + pos1(thickness,0); pos2(thickness,0); + top y1=h; bot y2=1-d; lft x1l=lft x2l=hround(2.5u-.5thickness); + filldraw stroke z1e--z2e; % stem + pos3(thickness,90); pos4(thickness,90); + pos5(thickness,90); pos6(thickness,90); + x3=x5=x1l; rt x4=rt x6=hround(w-.75u+.5thickness); + y3r=y4r=y1; y5l=y6l=y2; + if do_top: filldraw stroke z3e--z4e; fi % upper bar + if do_bot: filldraw stroke z5e--z6e; fi % lower bar + penlabels(1,2,3,4,5,6); enddef; + +def right_bracket(expr breadth,do_top,do_bot) = + pickup crisp.nib; + numeric thickness; thickness=hround breadth; + pos1(thickness,0); pos2(thickness,0); + top y1=h; bot y2=1-d; rt x1r=rt x2r=hround(w-2.5u+.5thickness); + filldraw stroke z1e--z2e; % stem + pos3(thickness,90); pos4(thickness,90); + pos5(thickness,90); pos6(thickness,90); + x3=x5=x1r; lft x4=lft x6=hround(.75u-.5thickness); + y3r=y4r=y1; y5l=y6l=y2; + if do_top: filldraw stroke z3e--z4e; fi % upper bar + if do_bot: filldraw stroke z5e--z6e; fi % lower bar + penlabels(1,2,3,4,5,6); enddef; + +def left_curly(expr min_breadth, max_breadth) = + pickup fine.nib; + forsuffixes $=1,1',4,4',7,7': pos$(hround min_breadth,0); endfor + forsuffixes $=2,3,5,6: pos$(hround max_breadth,0); endfor + x2=x3=x5=x6; x1=x1'=x7=x7'=w-x4=w-x4'; + lft x4l=hround(1.5u-.5min_breadth); lft x2l=hround(.5w-.5max_breadth); + top y1=h; bot y7=1-d; .5[y4,y4']=.5[y1,y7]=.5[y2,y6]=.5[y3,y5]; + y1-y2=y3-y4=(y1-y4)/4; + y1-y1'=y4-y4'=y7'-y7=vround(min_breadth-fine); + filldraw z1l{3(x2l-x1l),y2-y1}...z2l---z3l...{3(x4l-x3l),y4-y3}z4l + --z4'l{3(x5l-x4l),y5-y4'}...z5l---z6l...{3(x7l-x6l),y7-y6}z7l + --z7r--z7'r{3(x6r-x7r),y6-y7'}...z6r---z5r + ...{3(x4r-x5r),.5[y4,y4']-y5}.5[z4r,z4'r]{3(x3r-x4r),y3-.5[y4,y4']} + ...z3r---z2r...{3(x1r-x2r),y1'-y2}z1'r--z1r--cycle; % stroke + penlabels(1,2,3,4,5,6,7); enddef; + +def right_curly(expr min_breadth, max_breadth) = + pickup fine.nib; + forsuffixes $=1,1',4,4',7,7': pos$(hround min_breadth,0); endfor + forsuffixes $=2,3,5,6: pos$(hround max_breadth,0); endfor + x2=x3=x5=x6; x1=x1'=x7=x7'=w-x4=w-x4'; + lft x1l=hround(1.5u-.5min_breadth); lft x2l=hround(.5w-.5max_breadth); + top y1=h; bot y7=1-d; .5[y4,y4']=.5[y1,y7]=.5[y2,y6]=.5[y3,y5]; + y1-y2=y3-y4=(y1-y4)/4; + y1-y1'=y4-y4'=y7'-y7=vround(min_breadth-fine); + filldraw z1r{3(x2r-x1r),y2-y1}...z2r---z3r...{3(x4r-x3r),y4-y3}z4r + --z4'r{3(x5r-x4r),y5-y4'}...z5r---z6r...{3(x7r-x6r),y7-y6}z7r + --z7l--z7'l{3(x6l-x7l),y6-y7'}...z6l---z5l + ...{3(x4l-x5l),.5[y4,y4']-y5}.5[z4l,z4'l]{3(x3l-x4l),y3-.5[y4,y4']} + ...z3l---z2l...{3(x1l-x2l),y1'-y2}z1'l--z1l--cycle; % stroke + penlabels(1,2,3,4,5,6,7); enddef; + +def left_angle(expr breadth) = + pickup pencircle scaled breadth; + x1=x3=good.x(w-u)+eps; lft x2=hround u-eps; + top y1=h+eps; .5[y1,y3]=y2=good.y .5[-d+eps,h]; + draw z1--z2--z3; % diagonals + labels(1,2,3); enddef; + +def right_angle(expr breadth) = + pickup pencircle scaled breadth; + x1=x3=good.x u-eps; rt x2=hround(w-u)+eps; + top y1=h+eps; .5[y1,y3]=y2=good.y .5[-d+eps,h]; + draw z1--z2--z3; % diagonals + labels(1,2,3); enddef; + +% (CMBR) +def beginarithchar(expr c) = % ensure consistent dimensions for $+$, $-$, etc. + if monospace: beginchar(c,14u#,27/7u#+math_axis#,27/7u#-math_axis#); +% else: beginchar(c,14sym_u#,6sym_u#+math_axis#,6sym_u#-math_axis#); fi +else: beginchar(c,11u#,4.5u#+math_axis#,4.5u#-math_axis#); fi% (CMBR) + italcorr math_axis#*slant-.5u#; + adjust_fit(0,0); enddef; + +def center_on(expr x) = if not monospace: % change width for symmetric fit + r:=r+2x-w; w:=2x; fi enddef; + +def super_crescent(suffix i,j,k) = + draw z.i{x.j-x.i,0} + ... (.8[x.i,x.j],.8[y.j,y.i]){z.j-z.i} + ... z.j{0,y.k-y.i} + ... (.8[x.k,x.j],.8[y.j,y.k]){z.k-z.j} + ... z.k{x.k-x.j,0} enddef; + +newinternal l,r,shrink_fit; % adjustments to spacing + +def do_expansion(expr expansion_factor) = + forsuffixes $=u,jut,cap_jut,beak_jut,apex_corr: + $:=$.#*expansion_factor*hppp; endfor +enddef; + +def normal_adjust_fit(expr left_adjustment,right_adjustment) = + numeric charwd_in; charwd_in=charwd; + l:=-hround(left_adjustment*hppp)-letter_fit; + interim xoffset:=-l; + charwd:=charwd+2letter_fit#+left_adjustment+right_adjustment; + r:=l+hround(charwd*hppp)-shrink_fit; + w:=r-hround(right_adjustment*hppp)-letter_fit; + do_expansion(w/(charwd_in*hppp)); + enddef; + +def mono_adjust_fit(expr left_adjustment,right_adjustment) = + numeric charwd_in; charwd_in=charwd; + numeric expansion_factor; + mono_charwd#=2letter_fit# + +expansion_factor*(charwd+left_adjustment+right_adjustment); + l:=-hround(left_adjustment*expansion_factor*hppp)-letter_fit; + interim xoffset:=-l; + r:=l+mono_charwd-shrink_fit; + w:=r-hround(right_adjustment*expansion_factor*hppp)-letter_fit; + charwd:=mono_charwd#; charic:=mono_charic#; + do_expansion(w/(charwd_in*hppp)); + enddef; + +extra_endchar:=extra_endchar&"r:=r+shrink_fit;w:=r-l;"; + +def ignore_math_fit(expr left_adjustment,right_adjustment) = enddef; +def do_math_fit(expr left_adjustment,right_adjustment) = + l:=l-hround(left_adjustment*hppp); interim xoffset:=-l; + charwd:=charwd+left_adjustment+right_adjustment; + r:=l+hround(charwd*hppp)-shrink_fit; + charic:=charic-right_adjustment; + if charic<0: charic:=0; fi enddef; +def zero_width = charwd:=0; r:=l-shrink_fit enddef; +def change_width = if not monospace: % change width by $\pm1$ + if r+shrink_fit-l=floor(charwd*hppp): w:=w+1; r:=r+1; + else: w:=w-1; r:=r-1; fi fi enddef; +def padded expr del_sharp = + charht:=charht+del_sharp; chardp:=chardp+del_sharp enddef; + +def font_setup = + if monospace: let adjust_fit=mono_adjust_fit; + if true_mono: let normal_adjust_fit=mono_adjust_fit; fi + def mfudged=fudged enddef; + mono_charic#:=body_height#*slant; + if mono_charic#<0: mono_charic#:=0; fi + mono_charwd#:=9u#; define_whole_pixels(mono_charwd); + else: let adjust_fit=normal_adjust_fit; + def mfudged= enddef; fi + if math_fitting: let math_fit=do_math_fit + else: let math_fit=ignore_math_fit fi; + define_pixels(u,width_adj,serif_fit,cap_serif_fit,jut,cap_jut,beak, + bar_height,dish,bracket,beak_jut,stem_corr,vair_corr,apex_corr,sym_u);%(CMBR) + define_blacker_pixels(notch_cut,cap_notch_cut); + forsuffixes $=notch_cut,cap_notch_cut: if $<3: $:=3; fi endfor + define_whole_pixels(letter_fit,fine,crisp,tiny); + define_whole_vertical_pixels(body_height,asc_height, + cap_height,acc_height,fig_height,x_height,comma_depth,desc_depth,serif_drop, + sym_height);% (CMBR) + define_whole_blacker_pixels(thin_join,hair,stem,curve,flare, + dot_size,cap_hair,cap_stem,cap_curve); + define_whole_vertical_blacker_pixels(vair,bar,slab,cap_bar,cap_band); + define_corrected_pixels(o,apex_o); + forsuffixes $=hair,stem,cap_stem: + fudged$.#:=fudge*$.#; fudged$:=hround(fudged$.#*hppp+blacker); + forever: exitif fudged$>.9fudge*$; fudged$:=fudged$+1; endfor endfor + rule_thickness:=ceiling(rule_thickness#*hppp); + heavy_rule_thickness:=ceiling(3rule_thickness#*hppp); + oo:=vround(.5o#*hppp*o_correction)+eps; + apex_oo:=vround(.5apex_o#*hppp*o_correction)+eps; + lowres_fix(stem,curve,flare) 1.3; + lowres_fix(stem,curve) 1.2; + lowres_fix(cap_stem,cap_curve) 1.2; + lowres_fix(hair,cap_hair) 1.2; + lowres_fix(cap_band,cap_bar,bar,slab) 1.2; + stem':=hround(stem-stem_corr); cap_stem':=hround(cap_stem-stem_corr); + vair':=vround(vair+vair_corr); + vstem:=vround .8[vair,stem]; cap_vstem:=vround .8[vair,cap_stem]; + ess:=(ess#/stem#)*stem; cap_ess:=(cap_ess#/cap_stem#)*cap_stem; + dw:=(curve#-stem#)*hppp; bold:=curve#*hppp+blacker; + dh#:=.6designsize; + stem_shift#:=if serifs: 2stem_corr# else: 0 fi; + more_super:=max(superness,sqrt .77superness); + hein_super:=max(superness,sqrt .81225258superness); % that's $2^{-.3}$ + clear_pen_memory; + if fine=0: fine:=1; fi + forsuffixes $=fine,crisp,tiny: +%%% fine $ %%%% temporary formatting convention for MFT + if $>fudged.hair: $:=fudged.hair; fi + $.breadth:=$; + pickup if $=0: nullpen else: pencircle scaled $; $:=$-eps fi; + $.nib:=savepen; breadth_[$.nib]:=$; + forsuffixes $$=lft,rt,top,bot: shiftdef($.$$,$$ 0); endfor endfor +%%% @ $ %%%% restore ordinary formatting for $ + min_Vround:=max(fine.breadth,crisp.breadth,tiny.breadth); + if min_Vround<vround min_Vround: min_Vround:=vround min_Vround; fi + if flare<vround flare: flare:=vround flare; fi + forsuffixes $=vair,bar,slab,cap_bar,cap_band,vair',vstem,cap_vstem,bold: + if $<min_Vround: $:=min_Vround; fi endfor + pickup pencircle scaled min(hair,vair); extra_rule.nib :=savepen; + pickup pencircle scaled rule_thickness; rule.nib:=savepen; + math_axis:=good.y(math_axis#*hppp); + pickup pencircle scaled if hefty:(.6[vair,fudged.hair]) else:fudged.hair fi; + light_rule.nib:=savepen; + currenttransform:=identity slanted slant + yscaled aspect_ratio scaled granularity; + if currenttransform=identity: let t_=relax + else: def t_ = transformed currenttransform enddef fi; + numeric paren_depth#; .5[body_height#,-paren_depth#]=math_axis#; + numeric asc_depth#; .5[asc_height#,-asc_depth#]=math_axis#; + body_depth:=desc_depth+body_height-asc_height; + shrink_fit:=1+hround(2letter_fit#*hppp)-2letter_fit; + if not string mode: if mode<=smoke: shrink_fit:=0; fi fi + enddef; + +def shiftdef(suffix $)(expr delta) = + vardef $ primary x = x+delta enddef enddef; + +def makebox(text rule) = + for y=0,(cap_height+acc_height), + asc_height,body_height,x_height,bar_height,-desc_depth,-body_depth: + rule((l,y)t_,(r,y)t_); endfor % horizontals + + for y=-3.5pt,8.5pt,(x_height+acc_height): + rule((l-4pt,y)t_,(l-2pt,y)t_); endfor + for x=l,r: rule((x,-body_depth)t_,(x,body_height)t_); endfor % verticals + for x=u*(1+floor(l/u)) step u until r-1: + rule((x,-body_depth)t_,(x,body_height)t_); endfor % more verticals + + for x=0.5w: + rule((x,-body_depth-1pt)t_,(x,-body_depth-1.5pt)t_); + rule((x,cap_height+acc_height+1pt)t_,(x,cap_height+acc_height+1.5pt)t_); + endfor + if charic<>0: + rule((r+charic*pt,h.o_),(r+charic*pt,.5h.o_)); fi % italic correction + enddef; +def maketicks(text rule) = + for y=0,h.o_,-d.o_: + rule((l,y),(l+10,y)); rule((r-10,y),(r,y)); endfor % horizontals + for x=l,r: + rule((x,10-d.o_),(x,-d.o_)); rule((x,h.o_-10),(x,h.o_)); endfor % verticals + if charic<>0: + rule((r+charic*pt,h.o_-10),(r+charic*pt,h.o_)); fi % italic correction + enddef; +rulepen:=pensquare; + +vardef 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 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 super_arc.r(suffix $,$$) = % outside of super-ellipse + pair center,corner; + if y$=y$r: 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 super_arc.l(suffix $,$$) = % inside of super-ellipse + pair center,corner; + if y$=y$r: center=(x$$l,y$l); corner=(x$l,y$$l); + else: center=(x$l,y$$l); corner=(x$$l,y$l); fi + z$l{corner-z$l}...superness[center,corner]{z$$l-z$l} + ...{z$$l-corner}z$$l enddef; + +vardef pulled_super_arc.r(suffix $,$$)(expr superpull) = + pair center,corner; + if y$=y$r: 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 pulled_super_arc.l(suffix $,$$)(expr superpull) = + pair center,corner,outer_point; + if y$=y$r: center=(x$$l,y$l); corner=(x$l,y$$l); + outer_point=superness[(x$$r,y$r),(x$r,y$$r)]; + else: center=(x$l,y$$l); corner=(x$$l,y$l); + outer_point=superness[(x$r,y$$r),(x$$r,y$r)]; fi + z$l{corner-z$l} + ...superpull[superness[center,corner],outer_point]{z$$l-z$l} + ...{z$$l-corner}z$$l enddef; + +vardef pulled_arc@#(suffix $,$$) = + pulled_super_arc@#($,$$)(superpull) enddef; + +vardef serif_arc(suffix $,$$) = + z${x$$-x$,0}...(.75[x$,x$$],.25[y$,y$$]){z$$-z$}...{0,y$$-y$}z$$ enddef; + +vardef penpos@#(expr b,d) = + if known b: if b<=0: + errmessage "bad penpos (width is negative)"; fi fi + (x@#r-x@#l,y@#r-y@#l)=(b,0) rotated d; + x@#=.5(x@#l+x@#r); y@#=.5(y@#l+y@#r) enddef; + +newinternal currentbreadth; +vardef pos@#(expr b,d) = + if known b: if b<=currentbreadth: + errmessage "bad pos (breadth of current pen wider than pos width)"; fi fi + (x@#r-x@#l,y@#r-y@#l)=(b-currentbreadth,0) rotated d; + x@#=.5(x@#l+x@#r); y@#=.5(y@#l+y@#r) enddef; +def numeric_pickup_ primary q = + currentpen:=pen_[q]; + pen_lft:=pen_lft_[q]; pen_rt:=pen_rt_[q]; + pen_top:=pen_top_[q]; pen_bot:=pen_bot_[q]; + currentpen_path:=pen_path_[q]; + if known breadth_[q]: currentbreadth:=breadth_[q]; fi enddef; + +vardef ic# = charic enddef; +vardef h# = charht enddef; +vardef w# = charwd enddef; +vardef d# = chardp enddef; + +let {{=begingroup; let }}=endgroup; +def .... = .. tension atleast .9 .. enddef; +def less_tense = save ...; let ...=.... enddef; +def ?? = hide(showvariable x,y) enddef; + +let semi_ =;; let colon_ = :; let endchar_ = endchar; +def iff expr b = if b:let next_=use_it else:let next_=lose_it fi; next_ enddef; +def use_it = let : = restore_colon; enddef; +def restore_colon = let : = colon_; enddef; +def lose_it = let endchar=fi; inner ecchar; let ;=fix_ semi_ if false enddef; +def fix_=let ;=semi_; let endchar=endchar_; outer ecchar; enddef; +def always_iff = let : = endgroup; killboolean enddef; +def killboolean text t = use_it enddef; +outer ecchar; + +%%% fine hi higher +% |higher| is a counterpart to |lower| (see the file excsc.mf), +% |hi| facilitates using higher values (which are reference points in +% the floating world of CM fonts) +def hi = if is_small_cap: higher fi\\ enddef; + +% +% special routines for accenting +% +vardef uppercase_hat + (expr x_center,y_move,hat_zero,hat_one,hat_two,hat_three,hat_four) = +if serifs: + pickup crisp.nib; + pos[hat_two](.5[vair,curve],90); + top y[hat_two]r=cap_accent_height+oo; + x[hat_two]=good.x x_center; % optically centered + x[hat_one]=good.x x[hat_two]-2.25u if monospace: /expansion_factor fi ; + x[hat_three]=2x[hat_two]-x[hat_one]; +% |accent_gap| is defined by the acute accent, it is known when needed + y[hat_one]=y[hat_three] = accent_gap + cap_height; + pos[hat_one](hair,angle(z[hat_two]-z[hat_one])+90); + pos[hat_three](hair,angle(z[hat_three]-z[hat_two])+90); + filldraw stroke z[hat_one]e--z[hat_two]e--z[hat_three]e; % diagonals +else: + pickup fine.nib; + pos[hat_one](vair,0); + pos[hat_three](vair,0); + pos[hat_two](stem,0); + top y[hat_two]=cap_accent_height+oo; + x[hat_two]=good.x x_center; % optically centered + x[hat_one]=good.x x[hat_two]-2.25u if monospace: /expansion_factor fi ; + x[hat_three]=2x[hat_two]-x[hat_one]; +% |accent_gap| is defined by the acute accent, it is known when needed + bot y[hat_one]=bot y[hat_three]=.5accent_gap + cap_height; + z[hat_zero]=whatever[z[hat_one]r,z[hat_two]r]= + whatever[z[hat_two]l,z[hat_three]l]; + y[hat_four]l=y[hat_four]r=y[hat_two]; + x[hat_four]l=good.x .2[x[hat_two]l,x[hat_two]]; + x[hat_four]r=w-x[hat_four]l; + filldraw z[hat_four]l--z[hat_one]l--z[hat_one]r-- + z[hat_zero]--z[hat_three]l-- + z[hat_three]r--z[hat_four]r--cycle; fi % diagonals +enddef; +% +vardef lowercase_hat + (expr x_center,y_move,hat_zero,hat_one,hat_two,hat_three,hat_four) = +if serifs: + pickup crisp.nib; + pos[hat_two](.5[vair,curve],90); + top y[hat_two]r=h+y_move; + x[hat_two]=good.x x_center; % optically centered + x[hat_one]=good.x x[hat_two]-2.25u if monospace: /expansion_factor fi ; + x[hat_three]=2x[hat_two]-x[hat_one]; + y[hat_one]=y[hat_three] = + max(y[hat_two]-0.5(min(asc_height,2x_height)-x_height), + 1/6[x_height,h]); + pos[hat_one](hair,angle(z[hat_two]-z[hat_one])+90); + pos[hat_three](hair,angle(z[hat_three]-z[hat_two])+90); + filldraw stroke z[hat_one]e--z[hat_two]e--z[hat_three]e; % diagonals +else: + pickup fine.nib; + pos[hat_one](vair,0); + pos[hat_three](vair,0); + pos[hat_two](stem,0); + top y[hat_two]=h+y_move; + x[hat_two]=good.x x_center; % optically centered + x[hat_one]=good.x x[hat_two]-2.25u if monospace: /expansion_factor fi ; + x[hat_three]=2x[hat_two]-x[hat_one]; + bot y[hat_one]=bot y[hat_three]=vround (2/3[h,x_height]-eps); + % same slope as in the acute accent + z[hat_zero]=whatever[z[hat_one]r,z[hat_two]r]= + whatever[z[hat_two]l,z[hat_three]l]; + y[hat_four]l=y[hat_four]r=y[hat_two]; + x[hat_four]l=good.x .2[x[hat_two]l,x[hat_two]]; + x[hat_four]r=w-x[hat_four]l; + filldraw z[hat_four]l--z[hat_one]l--z[hat_one]r-- + z[hat_zero]--z[hat_three]l-- + z[hat_three]r--z[hat_four]r--cycle; fi % diagonals +enddef; +% +% +vardef lowercase_tilde(expr x_move,y_move,tilde_one,tilde_two,tilde_three, + tilde_four,tilde_five)= +h':=min(asc_height,10/7x_height+.5dot_size); +if serifs: numeric theta; + theta=angle(1/6( + 6u if monospace: /expansion_factor fi-vair), + 1/4(h'-x_height)); + pickup crisp.nib; + numeric mid_width; mid_width=.4[vair,stem]; + pos[tilde_one](vair,theta+90); + pos[tilde_two](vair,theta+90); + pos[tilde_three](vair,theta+90); + pos[tilde_four](vair,theta+90); + z[tilde_two]-z[tilde_one]= + z[tilde_four]-z[tilde_three]=(mid_width-crisp)*dir theta; + lft x[tilde_one]r=hround(x_move+0.5w-3u if monospace: /expansion_factor fi); + rt x[tilde_four]l=hround(x_move+0.5w+3u if monospace: /expansion_factor fi); + top y[tilde_four]r=h'; + pair delta; + ypart delta=3(y[tilde_three]l-y[tilde_one]l); + delta=whatever*dir theta; + bot y[tilde_one]l=vround(bot y[tilde_one]l+ + min(2/3[x_height,h'],y[tilde_three]l-.25vair)-top y[tilde_one]r); + filldraw z[tilde_one]l.. + controls(z[tilde_one]l+ + delta)and(z[tilde_three]l-delta)..z[tilde_three]l..z[tilde_four]l + --z[tilde_four]r.. + controls(z[tilde_four]r-delta)and(z[tilde_two]r+delta).. + z[tilde_two]r..z[tilde_one]r--cycle; % stroke +else: + pickup fine.nib; + pos[tilde_one](vair,180); + pos[tilde_two](vair,90); + pos[tilde_three](.5[vair,slab],90); + pos[tilde_four](vair,90); + pos[tilde_five](vair,180); + lft x[tilde_one]r=hround (x_move + 0.5w-3u); + rt x[tilde_five]l=hround (x_move + 0.5w+3u); + x[tilde_two]-x[tilde_one]= + x[tilde_three]-x[tilde_two]= + x[tilde_four]-x[tilde_three]=x[tilde_five]-x[tilde_four]; + bot y[tilde_one]=bot y[tilde_four]l=y_move+vround(.75[x_height,h]-vair); + top y[tilde_two]r=top y[tilde_five]=h+y_move; + y[tilde_three]=.5[y[tilde_two],y[tilde_four]]; + filldraw stroke + z[tilde_one]e{up}... + z[tilde_two]e{right}.. + z[tilde_three]e.. + {right}z[tilde_four]e...{up}z[tilde_five]e; fi % stroke +enddef; + +% +vardef uppercase_tilde(expr x_move,y_move,tilde_one,tilde_two,tilde_three, + tilde_four,tilde_five)= +if serifs: numeric theta; + theta=angle(1/8(7u if monospace: /expansion_factor fi-vair),1/4acc_height); + pickup crisp.nib; + numeric mid_width; mid_width=.4[vair,stem]; + pos[tilde_one](vair,theta+90); + pos[tilde_two](vair,theta+90); + pos[tilde_three](vair,theta+90); + pos[tilde_four](vair,theta+90); + z[tilde_two]-z[tilde_one]= + z[tilde_four]-z[tilde_three]=(mid_width-crisp)*dir theta; + lft x[tilde_one]r=hround(x_move+0.5w-3.5u if monospace: /expansion_factor fi); + rt x[tilde_four]l=hround(x_move+0.5w+3.5u if monospace: /expansion_factor fi); + top y[tilde_four]r=h; +% |accent_gap| is defined by the acute accent, it is known when needed +% bot y[tilde_one]l=accent_gap+cap_height; + bot y[tilde_one]l=vround(bot y[tilde_one]l + +min(2/3[cap_height,cap_accent_height],y[tilde_three]l-.25vair) + -top y[tilde_one]r); + pair delta; + ypart delta=3(y[tilde_three]l-y[tilde_one]l); + delta=whatever*dir theta; + filldraw z[tilde_one]l.. + controls(z[tilde_one]l+ + delta)and(z[tilde_three]l-delta)..z[tilde_three]l..z[tilde_four]l + --z[tilde_four]r.. + controls(z[tilde_four]r-delta)and(z[tilde_two]r+delta).. + z[tilde_two]r..z[tilde_one]r--cycle; % stroke +else: + pickup fine.nib; + pos[tilde_one](vair,180); + pos[tilde_two](vair,90); + pos[tilde_three](.5[vair,slab],90); + pos[tilde_four](vair,90); + pos[tilde_five](vair,180); + lft x[tilde_one]r=w-rt x[tilde_five]l=hround 1.5u+0.5(w-9u); + x[tilde_two]-x[tilde_one]= + x[tilde_three]-x[tilde_two]= + x[tilde_four]-x[tilde_three]=x[tilde_five]-x[tilde_four]; +% |accent_gap| is defined by the acute accent, it is known when needed + bot y[tilde_one]=bot y[tilde_four]l=cap_height+.5accent_gap; + top y[tilde_two]r=top y[tilde_five]=h; + y[tilde_three]=.5[y[tilde_two],y[tilde_four]]; + filldraw stroke + z[tilde_one]e{up}... + z[tilde_two]e{right}.. + z[tilde_three]e.. + {right}z[tilde_four]e...{up}z[tilde_five]e; fi % stroke +enddef; +% +% +% +vardef lowercase_umlaut(expr x_move,y_move,umlaut_one,umlaut_two, + umlaut_three,umlaut_four) = +% do not accumulate rounding errors and use always the same value: +numeric dot_dist; dot_dist:=round(3.5u); % (CMBR) +pickup tiny.nib; +pos[umlaut_one](udot_diam,0); +pos[umlaut_two](udot_diam,90); +x[umlaut_one]=x[umlaut_two]=x_move+.5w-0.5dot_dist %(CMBR) + if monospace:/expansion_factor fi ; +top y[umlaut_two]r=lc_trema_height; +y[umlaut_one]=y_move+.5[y[umlaut_two]l,y[umlaut_two]r]; +dot([umlaut_one],[umlaut_two]); % left dot +pos[umlaut_three](udot_diam,0); +penpos[umlaut_four](y[umlaut_two]r-y[umlaut_two]l,90); +y[umlaut_three]=y[umlaut_four]=y[umlaut_one]; +x[umlaut_three]=x[umlaut_four]=x[umlaut_one] +% +3.5u if monospace: /expansion_factor fi ; + +dot_dist if monospace: /expansion_factor fi ; % (CMBR) +dot([umlaut_three],[umlaut_four]); % right dot +enddef; +% +vardef uppercase_umlaut(expr x_move,y_move,umlaut_one,umlaut_two, + umlaut_three,umlaut_four) = +numeric dot_dist; dot_dist:=round(3.5u); %(CMBR) +pickup tiny.nib; +pos[umlaut_one](udot_diam,0); +pos[umlaut_two](udot_diam,90); +x[umlaut_one]=x[umlaut_two]=x_move+.5w-0.5dot_dist %(CMBR) + if monospace:/expansion_factor fi ; +top y[umlaut_two]r=vround(cap_height+dot_height#*hppp); +y[umlaut_one]=y_move+.5[y[umlaut_two]l,y[umlaut_two]r]; +dot([umlaut_one],[umlaut_two]); % left dot +pos[umlaut_three](udot_diam,0); +penpos[umlaut_four](y[umlaut_two]r-y[umlaut_two]l,90); +y[umlaut_three]=y[umlaut_four]=y[umlaut_one]; +x[umlaut_three]=x[umlaut_four]=x[umlaut_one] +% +3.5u if monospace: /expansion_factor fi ; + +dot_dist if monospace: /expansion_factor fi ; % (CMBR) +dot([umlaut_three],[umlaut_four]); % right dot +enddef; +% +% +vardef lowercase_circle(expr + x_center,y_bottom,circ_one,circ_two,circ_three,circ_four)= +numeric circ_hair,circ_vair; +circ_hair=hround min(hair,u if monospace: /expansion_factor fi +.5); +circ_vair=vround min(vair,(h-x_height)/6+.5); +penpos[circ_one](circ_vair,90); penpos[circ_three](circ_vair,-90); +penpos[circ_two](circ_hair,180); penpos[circ_four](circ_hair,0); +x[circ_one]=x[circ_three]=x_center; % +x[circ_two]r=hround(x[circ_one]-1.5u-.5circ_hair); +x[circ_four]r=hround(x[circ_one]+1.5u+.5circ_hair); +y[circ_one]r=h+apex_o; +y[circ_two]=y[circ_four]=.5[y[circ_one],y[circ_three]]; +y[circ_three]l=vround y_bottom; % (1/3[x_height,h]+apex_o); +penstroke pulled_arc.e([circ_one],[circ_two]) + & pulled_arc.e([circ_two],[circ_three]) + & pulled_arc.e([circ_three],[circ_four]) + & pulled_arc.e([circ_four],[circ_one]) & cycle; % bowl +enddef; +% +vardef uppercase_circle(expr + x_center,y_bottom,circ_one,circ_two,circ_three,circ_four)= +numeric circ_hair,circ_vair; +circ_hair=hround min(hair,u if monospace: /expansion_factor fi +.5); +circ_vair=vround vair; % min(vair,(h-x_height)/6+.5); +penpos[circ_one](circ_vair,90); penpos[circ_three](circ_vair,-90); +penpos[circ_two](circ_hair,180); penpos[circ_four](circ_hair,0); +x[circ_one]=x[circ_three]=x_center; % .5w; +x[circ_two]r + = hround(x[circ_one]-1.5u if monospace: /expansion_factor fi -.5circ_hair); +x[circ_four]r + = hround(x[circ_one]+1.5u if monospace: /expansion_factor fi +.5circ_hair); +y[circ_one]r=cap_height + acc_height+apex_o; +y[circ_two]=y[circ_four]=.5[y[circ_one],y[circ_three]]; +y[circ_three]l=vround y_bottom; % (1/3[x_height,h]+apex_o); +penstroke pulled_arc.e([circ_one],[circ_two]) + & pulled_arc.e([circ_two],[circ_three]) + & pulled_arc.e([circ_three],[circ_four]) + & pulled_arc.e([circ_four],[circ_one]) & cycle; % bowl +enddef; +% +% +vardef lowercase_cedilla (expr x_center,y_move, + cedi_one,cedi_two,cedi_three,cedi_four,cedi_five) = +x[cedi_one]=x_center; % .5w+.5u; +if serifs: + pickup crisp.nib; + pos[cedi_one](stem,0); + pos[cedi_two](stem,0); + pos[cedi_three](vair,90); + pos[cedi_four](stem,0); + pos[cedi_five](vair,-90); + x[cedi_one]=x[cedi_two]; + z[cedi_three]l=z[cedi_two]l; + x[cedi_four]=x[cedi_two]+1.5u; + x[cedi_five]=x[cedi_three]-1.5u; + bot y[cedi_one]=0; + bot y[cedi_two]=-vround 2/7d-o; + y[cedi_four]=.5[y[cedi_three],y[cedi_five]]; + bot y[cedi_five]=-d-o; + filldraw stroke z[cedi_one]e--z[cedi_two]e; % stem + filldraw stroke z[cedi_three]e{right}... + z[cedi_four]e{down}...{left}z[cedi_five]e; % hook +else: pickup fine.nib; pos[cedi_one](vair,0); top y[cedi_one]=-o-2; + pos[cedi_two](.5[vair,stem],0); + bot y[cedi_two]=-d-o; x[cedi_two]=x[cedi_one]-1.25u; + filldraw stroke z[cedi_one]e--z[cedi_two]e; fi % diagonal +enddef; +% +vardef uppercase_cedilla(expr x_center,y_move, + cedi_one,cedi_two,cedi_three,cedi_four,cedi_five) = +x[cedi_one]=x_center;; +if serifs: + pickup crisp.nib; + pos[cedi_one](stem,0); + pos[cedi_two](stem,0); + pos[cedi_three](vair,90); + pos[cedi_four](stem,0); + pos[cedi_five](vair,-90); + x[cedi_one]=x[cedi_two]; + z[cedi_three]l=z[cedi_two]l; + x[cedi_four]=x[cedi_two]+1.5u if monospace: /expansion_factor fi; + x[cedi_five]=x[cedi_three]-1.5u if monospace: /expansion_factor fi; + top y[cedi_one]=y_move; + bot y[cedi_two]=-vround 2/7d-o; + y[cedi_four]=.5[y[cedi_three],y[cedi_five]]; + bot y[cedi_five]=-d-o; + filldraw stroke z[cedi_one]e--z[cedi_two]e; % stem + filldraw stroke z[cedi_three]e{right}... + z[cedi_four]e{down}...{left}z[cedi_five]e; % hook +else: pickup fine.nib; pos[cedi_one](vair,0); + top y[cedi_one]=-o-2; + pos[cedi_two](.5[vair,stem],0); + bot y[cedi_two]=-d-o; x[cedi_two] = + x[cedi_one]-1.25u if monospace: /expansion_factor fi; + filldraw stroke z[cedi_one]e--z[cedi_two]e; fi % diagonal +enddef; +% +% +vardef lowercase_breve(expr x_center,y_move,breve_one,breve_two,breve_three)= +pickup crisp.nib; pos[breve_one](vair,-180); +pos[breve_three](vair,0); +top y[breve_one]=top y[breve_three]=h; +x[breve_two]=x_center; +lft x[breve_one]r=hround(x[breve_two]-2.5u + if monospace: /expansion_factor fi -0.5vair); +rt x[breve_three]r=hround(x[breve_two]+2.5u + if monospace: /expansion_factor fi +0.5vair); +numeric mid_thickness; mid_thickness=vround 1/3[vair,stem]; +pos[breve_two](mid_thickness,-90); +bot y[breve_two]r= + vround max(x_height+o+tiny,1/3[x_height,h]+o-.5mid_thickness); +filldraw stroke z[breve_one]e{down}... + z[breve_two]e{right}...{up}z[breve_three]e; % stroke +enddef; +% +vardef uppercase_breve (expr x_center,y_move,breve_one, + breve_two,breve_three)= +pickup crisp.nib; pos[breve_one](vair,-180); +pos[breve_three](vair,0); +top y[breve_one]=top y[breve_three]=cap_height + acc_height; +x[breve_two]=hround x_center; +x[breve_two]-rt x[breve_one]l + =(lft x[breve_three]l)-x[breve_two] + =hround (2.5u if monospace: /expansion_factor fi -.5vair); +numeric mid_thickness; +mid_thickness=vround min(1/3[vair,stem],.5acc_height); +pos[breve_two](mid_thickness,-90); +% |accent_gap| is defined by the acute accent, it is known when needed +bot y[breve_two]r=cap_height + if hefty: .5 fi accent_gap; +filldraw stroke z[breve_one]e{down}...z[breve_two]e{right}... + {up}z[breve_three]e; % stroke +enddef; + +% +vardef lowercase_ogonek(expr x_move,y_move,ogon_one,ogon_two,ogon_three) = +x[ogon_one]r=x_move; + pickup crisp.nib; + pos[ogon_one]( + if currentbreadth<0.9vair: 0.9vair else: currentbreadth+eps fi,-60); + pos[ogon_two](stem,0); + pos[ogon_three](vair,145); + x[ogon_two]=x[ogon_one]-2.5u if monospace: / expansion_factor fi ; + x[ogon_three]=x[ogon_one]+0.5u if monospace: / expansion_factor fi ; + bot y[ogon_one]r = y_move; + bot y[ogon_three]=0.5(-d-o)+y_move; %0.4 + bot y[ogon_two]=0.5(-d-o)+y_move; + filldraw stroke z[ogon_one]e{dir 225}... + z[ogon_two]e{dir -110}...{dir 60}z[ogon_three]e; % hook +enddef; + +% --------------------------------------------------------------------------- +% MACROS FOR PROCESSING CHARS TWICE: +% PASS 1: COLLECTING TFM (SHARP) INFORMATION +% PASS 2: CREATING THE GLYPH +% --------------------------------------------------------------------------- +%%% define_pixels prepare_pen +%%% beginchar beginchar_twice +%%% endfor repeat_once + +% A special provision is necessary if one uses |modes.mf|: +% This file assumes, that one never wants to use more than one mode +% in the same font, but we will do so. +% +% Make sure, that you never input |modes.mf| after this file, otherwise +% unpleasant surprises wait for you. + +def clear_mode_guards = + forsuffixes $=proofing,fontmaking,tracingtitles,pixels_per_inch, + blacker,fillin,o_correction,blacker_min,aspect_ratio: + numeric mode_guard_$; + endfor +enddef; + +let ori_draw:=draw; +let ori_fill:=fill; +let ori_filldraw:=filldraw; +let ori_erase:=erase; +let ori_penstroke:=penstroke; +let ori_special:=special; +let ori_numspecial:=numspecial; + +mode_def canonical_sharp_mode = % nearly |proof| mode + proofing:=0; % no, we aren't making full proofs + fontmaking:=0; % yes, we are making a font + tracingtitles:=0; % don't show titles online + pixels_per_inch:=2601.72; % that's 36 pixels per pt + blacker:=0; % no additional blackness + blacker_min:=0; % no write_white provision + fillin:=0; % no compensation for fillin + o_correction:=1; % no reduction in overshoot +enddef; + +def beginchar_twice(expr c,w_sharp,h_sharp,d_sharp) = + begingroup + if string mode: string prev_mode; prev_mode:=mode; + else: numeric prev_mode; prev_mode:=mode; + fi + for sharp_calc_:=1,whatever: +% |sharp_calc| is checked in |corrital|, |mark_height|, and |put_accent| + sharp_calc:=sharp_calc_; + if known sharp_calc: % carry out ``sharp'' calculations + begingroup save mode,mag; mode:=canonical_sharp_mode; + clear_mode_guards; mode_setup; font_setup; pseudo_setup; + if is_small_cap: % excerpt from |font_setup| + define_pixels(higher.u,higher.bar_height); + define_corrected_pixels(higher.o); + define_whole_pixels(higher.letter_fit); + define_whole_vertical_pixels(higher.x_height,higher.body_height); + define_whole_blacker_pixels(higher.stem); + fi + endgroup; + def draw expr e=enddef; + let fill:=draw; + let filldraw:=draw; + let erase:=killtext; % |killtext| was absent from earlier versions of plain + let penstroke:=killtext; + def special primary t = enddef; + def numspecial primary t = enddef; + charwd:=w_sharp; charht:=h_sharp; chardp:=d_sharp; charic:=0; + else: % carry out ``discrete'' calculations + mode:=prev_mode; + clear_mode_guards; mode_setup; font_setup; pseudo_setup; + if is_small_cap: % excerpt from |font_setup| + define_pixels(higher.u,higher.bar_height); + define_corrected_pixels(higher.o); + define_whole_pixels(higher.letter_fit); + define_whole_vertical_pixels(higher.x_height,higher.body_height); + define_whole_blacker_pixels(higher.stem); + fi + let draw:=ori_draw; + let fill:=ori_fill; + let filldraw:=ori_filldraw; + let erase:=ori_erase; + let penstroke:=ori_penstroke; + let special:=ori_special; + let numspecial:=ori_numspecial; + charwd:=w_sharp; + fi + charcode:=if known c: byte c else: 0 fi; + w:=hround(w_sharp*hppp); h:=vround(h_sharp*hppp); d:=vround(d_sharp*hppp); + clearxy; clearit; clearpen; scantokens extra_beginchar; +enddef; + +let repeat_once = endfor; + +% --------------------------------------------------------------------------- +% +% +% +% some extra font parameters +% +def font_cap_height expr x = fontdimen 8: x enddef; +def font_asc_height expr x = fontdimen 9: x enddef; +def font_acc_cap_height expr x = fontdimen 10: x enddef; +def font_desc_depth expr x = fontdimen 11: x enddef; +def font_max_height expr x = fontdimen 12: x enddef; +def font_max_depth expr x = fontdimen 13: x enddef; +def font_digit_width expr x = fontdimen 14: x enddef; +def font_cap_stem expr x = fontdimen 15: x enddef; +def font_baselineskip expr x = fontdimen 16: x enddef; + + + +% +% XXXXXXX The following routines generate the parameter +% X X sets by extrapolation +% X X +% X X +% X X +% XXXX XXXX +% X X +% X X +% X X +% X X +% X X +% X +% +% +% needed variables +% + +vardef simple_gendef@#(text aa)(text t)= + string s[]; + s1:=""; + s2:=str @#; + index:=1; + forsuffixes $=t: ydata[index]:=$ if s1<>s2: *@# fi; + index:=index+1; + endfor; + if numpoints>(index-1): errmessage "Missing parameter"; message str aa; fi; + if numpoints<(index-1): errmessage "Too many parameters"; message str aa; fi; + aa:=ydata[merke]; + if gencheck: message str aa fi; +enddef; + +vardef extended_gendef@#(text aa)(text t)= + string s[]; + s1:=""; + s2:=str @#; + index:=1; + forsuffixes $=t: ydata[index]:=$ if s1<>s2: *@# fi; + index:=index+1; + endfor; + if numpoints>(index-1): errmessage "Missing parameter"; message str aa; fi; + if numpoints<(index-1): errmessage "Too many parameters"; message str aa; fi; + if gensize>basedata[numpoints]: + numeric hilf []; + hilf[1]:=(ydata[numpoints]-ydata[numpoints-1])/(basedata[numpoints]-basedata[numpoints-1]); + hilf[2]:=(ydata[numpoints]-ydata[numpoints-2])/(basedata[numpoints]-basedata[numpoints-2]); + hilf[3]:=ydata[numpoints]-hilf1*basedata[numpoints]; + hilf[4]:=ydata[numpoints]-hilf2*basedata[numpoints]; + spy:=(hilf[1]*gensize+hilf[3])/2+(hilf[2]*gensize+hilf[4])/2; + aa:=spy; + else: + for index = 1 upto numpoints-1: + interval[index]:=basedata[index+1]-basedata[index]; + endfor; + for index=1 upto numpoints: + spline[1][index]:=ydata[index]; + endfor; + for index=2 upto numpoints-1: + alpha[index]:=3*((spline[1][index+1]*interval[index-1])% + -(spline[1][index]*(basedata[index+1]-basedata[index-1]))% + +(spline[1][index-1]*interval[index]))% + /(interval[index-1]*interval[index]); + endfor; + spl[1]:=0; + spmu[1]:=0; + spz[1]:=0; + for index=2 upto numpoints-1: + spl[index]:=2*(basedata[index+1]-basedata[index-1])% + -interval[index-1]*spmu[index-1]; + spmu[index]:=interval[index]/spl[index]; + spz[index]:=(alpha[index]-interval[index-1]*spz[index-1])/spl[index]; + endfor; + spline[3][numpoints]:=0; + for index=numpoints-1 downto 1: + spline[3][index]:=spz[index]-spmu[index]*spline[3][index+1]; + endfor; + for index=numpoints -1 downto 1: + spline[2][index]:=(spline[1][index+1]-spline[1][index])/interval[index]% + -interval[index]*(spline[3][index+1]*spline[3][index])/3; + spline[4][index]:=(spline[3][index+1]-spline[3][index])/(3*interval[index]); + endfor; + location:=1; + for term=1 upto numpoints-1: + if gensize > basedata[term]: location:=term; fi + endfor; + spx:=gensize-basedata[location]; + spy:=((spline[4][location]*spx+spline[3][location])*spx+spline[2][location])*spx+spline[1][location]; + aa:=spy; fi; + if gencheck: message str aa fi; +enddef; + +vardef basedef(text t)= + boolean basevalue; boolean gencheck; + numeric index; numeric ergbnis; numeric location; numeric term; + numeric numpoints; numeric spx; numeric spy; + numeric basedata[]; numeric interval[]; numeric alpha[]; + numeric spl[]; numeric spmu[]; numeric spz[]; + numeric ydata[]; numeric spline[][]; + basevalue:=false; gencheck:=false; + index:=1; + forsuffixes $=t: basedata[index]:=$; + if $=gensize: basevalue:=true; merke:=index; fi; + index:=index+1; + endfor; + numpoints:=index-1; + if numpoints<3: errmessage "Not enough reference points"; fi + if basevalue: def gendef=simple_gendef enddef; else: + def gendef=extended_gendef enddef; fi +enddef; + +def clear_extra_memory= % Release ressources hold by the extrapolation routine + numeric index; numeric ergbnis; numeric location; numeric term; + numeric numpoints; numeric spx; numeric spy; + numeric basedata[]; numeric interval[]; numeric alpha[]; + numeric spl[]; numeric spmu[]; numeric spz[]; + numeric ydata[]; numeric spline[][]; + numeric hilf []; string s[]; +enddef; + +endinput; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebbraces.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebbraces.mf new file mode 100644 index 00000000000..1218add3654 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebbraces.mf @@ -0,0 +1,267 @@ +% ebbraces.mf +% [= exbraces.mf, changed by Walter Schmidt, see (CMBR)] +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% (c) Copyright 1990, 1992 Norbert Schwarz +% +% This file is part of the EC Bright fonts version 1.0 Patchlevel 3 +% +% +% Please read the files 00readme.txt, 00inst.txt, 00error.txt, and +% copyrite.txt for further information +% +% Content: +% +% braces and some special characters +% +version_check(1,0); % |version_check| was introduced in dc1.3 + +ecchar "Circumflex (hat)"; +beginchar(oct"136",11u#,min(asc_height#,2x_height#),0); +if serifs: italcorr .5[x_height#,h#]*slant+.5hair#-1.75u#; + adjust_fit(0,0); + pickup crisp.nib; pos2(.5[vair,curve],90); top y2r=.75[x_height,h]; x2=.5w; + x1=w-x3=good.x 2.25u; y1=y3=.25[x_height,y2]; + pos1(hair,angle(z2-z1)+90); pos3(hair,angle(z3-z2)+90); + filldraw stroke z1e--z2e--z3e; % diagonals +else: italcorr 2/3[x_height#,h#]*slant-.5stem#+.5vair#-.75u#; + adjust_fit(0,0); + pickup fine.nib; pos1(vair,0); pos3(vair,0); x1=w-x3; + pos2(stem,0); top y2=2/3[x_height,h]; x2=.5w; bot y1=bot y3=vround x_height-eps; + lft x1l=hround(rt x2r-3.25u-.5vair); + z0=whatever[z1r,z2r]=whatever[z2l,z3l]; + y4l=y4r=y2; x4l=good.x .2[x2l,x2]; x4r=w-x4l; + filldraw z4l--z1l--z1r--z0--z3l--z3r--z4r--cycle; fi % diagonals +penlabels(0,1,2,3,4); endchar; + + + +ecchar "Tilde (squiggle)"; +beginchar(oct"176",11u#,min(asc_height#, + 10/7x_height#+.5dot_size#),0); +italcorr h#*slant-u#; +adjust_fit(0,0); +if serifs: numeric theta; theta=angle(1/6(6u-vair),1/4(h-x_height)); + pickup crisp.nib; numeric mid_width; mid_width=.4[vair,stem]; + pos1(vair,theta+90); pos2(vair,theta+90); + pos3(vair,theta+90); pos4(vair,theta+90); + z2-z1=z4-z3=(mid_width-crisp)*dir theta; + lft x1r=w-rt x4l=hround 1.5u; top y4r=h; + bot y1l=vround(bot y1l+min(2/3[x_height,h],y3l-.25vair)-top y1r); + pair delta; ypart delta=3(y3l-y1l); delta=whatever*dir theta; + filldraw z1l..controls(z1l+delta)and(z3l-delta)..z3l..z4l + --z4r..controls(z4r-delta)and(z2r+delta)..z2r..z1r--cycle; % stroke +else: pickup fine.nib; pos1(vair,180); pos2(vair,90); + pos3(.5[vair,slab],90); pos4(vair,90); pos5(vair,180); + lft x1r=w-rt x5l=hround 1.5u; x2-x1=x3-x2=x4-x3=x5-x4; + bot y1=bot y4l=vround(.75[x_height,h]-vair); + top y2r=top y5=h; y3=.5[y2,y4]; + filldraw stroke z1e{up}...z2e{right}..z3e..{right}z4e...{up}z5e; fi % stroke +penlabels(1,2,3,4,5); endchar; + +ecchar "Compound word mark"; +beginchar(oct"027",0,x_height#,0); +zero_width; +endchar; + +ecchar "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; + +ecchar "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; + + +ecchar "Less than sign";% (CMBR) +compute_spread(5/4sym_height#,3/2sym_height#); +beginchar("<",11u#,v_center(spread#+rule_thickness#)); +italcorr h#*slant-u#; +adjust_fit(0,0); pickup extra_rule.nib; +lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]=math_axis; +draw z1--z2--z3; % diagonals +labels(1,2,3); endchar; + +ecchar "Vertical line"; +beginchar(oct"174",5u#,body_height#,paren_depth#); +italcorr body_height#*slant+.5rule_thickness#-2u#; +adjust_fit(0,0); pickup rule.nib; +x1=x2=good.x .5w; top y1=h+eps; bot y2=-d-eps; +draw z1--z2; % stem +labels(1,2); endchar; + + +ecchar "Greater than sign";% (CMBR) +compute_spread(5/4sym_height#,3/2sym_height#); +beginchar(">",11u#,v_center(spread#+rule_thickness#)); +italcorr math_axis#*slant-u#; +adjust_fit(0,0); pickup extra_rule.nib; +rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]=math_axis; +draw z1--z2--z3; % diagonals +labels(1,2,3); endchar; + +ecchar "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-stem_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; + +ecchar "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-stem_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; + + +ecchar "Reverse slash (backslash)"; +beginchar(oct"134",9u#,body_height#,paren_depth#); +adjust_fit(0,0); pickup extra_rule.nib; +lft x1=hround u-eps; top y1=h+eps; +rt x2=hround(w-u)+eps; bot y2=-d-eps; +draw z1--z2; % diagonal +labels(1,2); endchar; + +ecchar "Left curly brace"; +beginchar(oct"173",9u#,body_height#,paren_depth#); +italcorr body_height#*slant+.5vair#-u#; +adjust_fit(0,0); pickup fine.nib; +forsuffixes $=1,1',4,4',7,7': pos$(vair,0); endfor +forsuffixes $=2,3,5,6: pos$(stem,0); endfor +x2=x3=x5=x6; x1=x1'=x7=x7'=w-x4=w-x4'; +lft x4l=hround(1.5u-.5vair); lft x2l=hround(.5w-.5stem); +top y1=h; bot y7=-d; .5[y4,y4']=.5[y1,y7]=.5[y2,y6]=.5[y3,y5]; +y1-y2=y3-y4=(y1-y4)/4; y1-y1'=y4-y4'=y7'-y7=vair-fine; +filldraw z1l{left}...z2l---z3l...{left}z4l + --z4'l{right}...z5l---z6l...{right}z7l + --z7r--z7'r{left}...z6r---z5r...{left}.5[z4r,z4'r]{right} + ...z3r---z2r...{right}z1'r--z1r--cycle; % stroke +penlabels(1,2,3,4,5,6,7); endchar; + +ecchar "Right curly brace"; +beginchar(oct"175",9u#,body_height#,paren_depth#); +italcorr math_axis#*slant+.5vair#-u#; +adjust_fit(0,0); pickup fine.nib; +forsuffixes $=1,1',4,4',7,7': pos$(vair,0); endfor +forsuffixes $=2,3,5,6: pos$(stem,0); endfor +x2=x3=x5=x6; x1=x1'=x7=x7'=w-x4=w-x4'; +rt x4r=hround(w-1.5u+.5vair); rt x2r=hround(.5w+.5stem); +top y1=h; bot y7=-d; .5[y4,y4']=.5[y1,y7]=.5[y2,y6]=.5[y3,y5]; +y1-y2=y3-y4=(y1-y4)/4; y1-y1'=y4-y4'=y7'-y7=vair-fine; +filldraw z1r{right}...z2r---z3r...{right}z4r + --z4'r{left}...z5r---z6r...{left}z7r + --z7l--z7'l{right}...z6l---z5l...{right}.5[z4l,z4'l]{left} + ...z3l---z2l...{left}z1'l--z1l--cycle; % stroke +penlabels(1,2,3,4,5,6,7); endchar; + + + + +ecchar "Underbar"; +compute_spread((5/8+.45)*x_height#,(3/4+.55)*x_height#); +beginchar(oct"137",14u#,0,spread#-math_axis#+.5rule_thickness#); +adjust_fit(0,0); pickup rule.nib; +lft x1=hround 1.5u-eps; x2=w-x1; bot y1=bot y2=-d; +draw z1--z2; % bar +labels(1,2); endchar; + +iff not monospace: +ecchar "Hyphenchar"; +beginchar(oct"177",3u#,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(2w-u)+eps; +lft x1=hround .2u-eps; +filldraw stroke z1e--z2e; % bar +penlabels(1,2); endchar; + +iff monospace: +ecchar "Hyphenchar"; +beginchar(oct"177",3u#,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; +x2=w-x1; +filldraw stroke z1e--z2e; % bar +penlabels(1,2); endchar; + +iff hefty: % Sans or typewriter +ecchar "Blank-space sign"; +beginchar(oct"040",9u#,x_height#,.5desc_depth#); +italcorr bar_height#*slant-.25u#; +adjust_fit(0,0); +numeric thin_vair#; thin_vair#=.7vair#; +define_whole_blacker_pixels(thin_vair); +h:=bar_height; +forsuffixes $=1,2,3,4: penpos$(thin_vair,0); endfor +penpos0(thin_vair,90); x0=.5w; y0l=vround(-d-.5thin_vair); +x1=x2; x3=x4=w-x1; lft x1l=hround .75u; +y1=y4=h; y2=y3=y0; +fill z1l---z2l...(x2,y0l)---(x3,y0l)...z3r---z4r + ..z4l---(x3l,y0r)--(x2r,y0r)---z1r..cycle; % the stroke +penlabels(0,1,2,3,4); endchar; + +iff not hefty: % Other than the above mentioned +ecchar "Blank-space sign"; % jk +beginchar(oct"040",9u#,x_height#,.5desc_depth#); +italcorr bar_height#*slant-.25u#; +adjust_fit(0,0); +numeric shaved_stem; shaved_stem=hround .9[vair,.85cap_stem]; +if shaved_stem<crisp.breadth: shaved_stem:=crisp.breadth; fi +pickup crisp.nib; +pos1(shaved_stem,-90); pos2(hair,0); +bot y1r=-d; x1=.5w; rt x2r=hround(w-.75u); y2=good.y(y1l+.5beak)+eps; +arm(1,2,a,beak_darkness,2beak_jut); % lower right arm and beak +pos3(hair,180); x3=w-x2; y3=y2; +arm(1,3,b,beak_darkness,-2beak_jut); % lower left arm and beak +math_fit(0,.5ic#); +penlabels(1,2,3); endchar; + +endinput; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebbx10.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebbx10.mf new file mode 100644 index 00000000000..8d40958803e --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebbx10.mf @@ -0,0 +1,88 @@ +% European Computer Modern Bright +% boldface (regular) extended 10 point [1997/04/25 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBBX"; font_size 10pt#; + +u#:=22/36pt#; % unit width +width_adj#:=22/36pt#; % width adjustment for certain characters +serif_fit#:=-9/36pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=-11/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#:=250/36pt#; % height of caps +fig_height#:=250/36pt#; % height of numerals +x_height#:=170/36pt#; % height of lowercase without ascenders +math_axis#:=95/36pt#; % axis of symmetry for math symbols +bar_height#:=90/36pt#; % height of crossbar in lowercase e (.53 x_height) +comma_depth#:=40/36pt#; % depth of comma below baseline +desc_depth#:=60/36pt#; % depth of lowercase descenders + +acc_height#:=75/36pt#; % ? +%dot_height#:=75/36pt#; +%ldot_height#:=75/36pt#; +dot_height#:=74/36pt#; +ldot_height#:=74/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=0pt#; % diameter of rounded corners +fine#:=0pt#; % diameter of sharply rounded corners +thin_join#:=9/36pt#; % width of extrafine details +hair#:=49/36pt#; % lowercase hairline breadth +stem#:=49/36pt#; % lowercase stem breadth +curve#:=49/36pt#; % lowercase curve breadth +ess#:=43/36pt#; % breadth in middle of lowercase s +flare#:=40/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=47/36pt#; % diameter of dots +cap_hair#:=49/36pt#; % uppercase hairline breadth +cap_stem#:=53/36pt#; % uppercase stem breadth +cap_curve#:=53/36pt#; % uppercase curve breadth +cap_ess#:=51/36pt#; % breadth in middle of uppercase s +rule_thickness#:=30/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#:=0pt#; % protrusion of lowercase serifs +cap_jut#:=0pt#; % protrusion of uppercase serifs +beak_jut#:=0pt#; % horizontal protrusion of beak serifs +beak#:=1.5/36pt#; % vertical protrusion of beak serifs +vair#:=26/36pt#; % vertical diameter of hairlines +notch_cut#:=49/36pt#; % maximum breadth above or below notches +bar#:=26/36pt#; % lowercase bar thickness +slab#:=36/36pt#; % serif and arm thickness +cap_bar#:=34/36pt#; % uppercase bar thickness +cap_band#:=31/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=45/36pt#; % max breadth above/below uppercase notches +serif_drop#:=2/36pt#; % vertical drop of sloped serifs +stem_corr#:=1/36pt#; % for small refinements of stem breadth +vair_corr#:=2/36pt#; % for small refinements of hairline height +apex_corr#:=18/36pt#; % extra width at diagonal junctions + +o#:=8/36pt#; % amount of overshoot for curves +apex_o#:=0pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +fudge:=.88; % factor applied to weights of heavy characters +math_spread:=.5; % extra openness of math symbols +superness:=3/4; % parameter for superellipses +superpull:=1/18; % extra openness inside bowls +beak_darkness:=0; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=true; % should dots be square? +hefty:=true; % should we try hard not to be overweight? +serifs:=false; % 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? + +bx_kerning:=1; % different kerning for bold extended fonts +sym_u#:=u#; % unit of width for math symbols +sym_height#:=x_height#; % unit of height for math symbols + +gensize:=10; +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebmo10.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebmo10.mf new file mode 100644 index 00000000000..8cd14bd0f49 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebmo10.mf @@ -0,0 +1,19 @@ +% European Computer Modern Bright +% medium oblique 10 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBMO"; font_size 10pt#; +input br10pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +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? +%ligs:=2; +acc_height#:=70/36pt#; % ? +dot_height#:=66.5/36pt#; +ldot_height#:=66.5/36pt#; % ok + + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebmo17.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebmo17.mf new file mode 100644 index 00000000000..e1e7654fb59 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebmo17.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright +% medium oblique 17 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBMO"; font_size 17.28pt#; +input br17pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +;ligs:=2; % level of ligatures to be included +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? +acc_height#:=70/36Pt#; % ? +dot_height#:=66.5/36Pt#; % ok +ldot_height#:=66.5/36Pt#; % ok + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebmo8.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebmo8.mf new file mode 100644 index 00000000000..cf889ec85aa --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebmo8.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright +% medium oblique 8 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBMO"; font_size 8pt#; +input br8pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +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? +acc_height#:=60/36pt#; % ? +dot_height#:=54.5/36pt#; % ok? +ldot_height#:=54.5/36pt#; % ok? + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebmo9.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebmo9.mf new file mode 100644 index 00000000000..030dc596f64 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebmo9.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright +% medium oblique 9 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBMO"; font_size 9pt#; +input br9pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +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? +acc_height#:=65/36pt#; % ? +dot_height#:=60.48/36pt#; % ok? +ldot_height#:=60.48/36pt#; % ok ? + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebmr10.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebmr10.mf new file mode 100644 index 00000000000..17bd9b74f48 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebmr10.mf @@ -0,0 +1,19 @@ +% European Computer Modern Bright +% medium regular 10 point [1997/04/03 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBMR"; font_size 10pt#; +input br10pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +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? +%ligs:=2; +acc_height#:=70/36pt#; % ? +dot_height#:=66.5/36pt#; +ldot_height#:=66.5/36pt#; % ok + + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebmr17.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebmr17.mf new file mode 100644 index 00000000000..d11b0b19492 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebmr17.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright +% medium regular 17 point [1997/04/09 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBMR"; font_size 17.28pt#; +input br17pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +;ligs:=2; % level of ligatures to be included +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? +acc_height#:=70/36Pt#; % ? +dot_height#:=66.5/36Pt#; % ok +ldot_height#:=66.5/36Pt#; % ok + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebmr8.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebmr8.mf new file mode 100644 index 00000000000..2a6c1a1f980 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebmr8.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright +% medium regular 8 point [1997/04/09 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBMR"; font_size 8pt#; +input br8pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +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? +acc_height#:=60/36pt#; % ? +dot_height#:=54.5/36pt#; % ok? +ldot_height#:=54.5/36pt#; % ok? + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebmr9.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebmr9.mf new file mode 100644 index 00000000000..0320b2aa019 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebmr9.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright +% medium regular 9 point [1997/04/09 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBMR"; font_size 9pt#; +input br9pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +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? +acc_height#:=65/36pt#; % ? +dot_height#:=60.48/36pt#; % ok? +ldot_height#:=60.48/36pt#; % ok ? + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebpseudo.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebpseudo.mf new file mode 100644 index 00000000000..6e50a325589 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebpseudo.mf @@ -0,0 +1,93 @@ +% ebpseudo.mf +% [= expseudo.mf, changed by Walter Schmidt, see (CMBR)] +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% +% This file is part of the EC Bright fonts version 1.0 +% +% This file contains pseudoparameters which are not entered in the +% parameter files, but are computed from the initial parameter set. +% There are also ad hoc parameters needed only once, and scratch +% parameters with different values at each occuerence (like |theta|). +% +version_check(1,0); % |version_check| was introduced in dc1.3 + +% Diameters of dots + +numeric idot_diam#,udot_diam#,pdot_diam#; +% (CMBR) +% |idot_diam#| for dots on i and j, must fit stem width +% |udot_diam#| for the umlaut dots + pdot_diam#:=if monospace: 5/4 fi\\ dot_size#; % punctuation dots + + +% |heavy_hair| occurs in italic lowercase `e'. Since there are many +% accented versions of it, it is declared once here + +vardef heavy_hair=hround .2[hair,stem] enddef; + +% |qvair| (quotes vair) for the french quotes + +vardef qvair=max(round(xvair),fine+epsilon) enddef; + +% |limit_dist| is used in |put_accent| and |put_cross| +% (the value of |u| is changed by |mono_adjust|, hence the global setting) + +vardef limit_dist=5/4u enddef; + +% (CMBR) +% Don't compute lc_trema_height from x_height; leave it +% to the designer to specify ldot_height, +% then compute lc_trema_height:=x_height+ldot_height, but not > cap_height. +% Just the same way as dot_height must be given for uppercase letters! +numeric lc_trema_height#; +lc_trema_height# = min(cap_height#,x_height#+ldot_height#); + + +% More parametrisations for accents from csaccent.mf (csfonts): + +numeric uc_acc_height, uc_acc_height#, + lc_acute_height, lc_acute_height#, + lc_hachek_height, lc_hachek_height#, + accent_u, accent_u#, + accent_thin, + uc_acc_shift, asc_acc_shift; +if unknown circ_weight: circ_weight:=1; fi + +%uc_acc_height# = cap_height#+asc_height#-x_height#; +uc_acc_height# = cap_height#+acc_height#; +lc_acute_height# = asc_height#; +lc_hachek_height# = hi.x_height#+acc_height#; +accent_u# = u#; % unexpanded dimension unit + +vardef accent_thin = if thin_join > crisp: thin_join else: crisp+eps fi enddef; + +vardef uc_acc_shift = cap_height - x_height enddef; +vardef asc_acc_shift = asc_height - x_height enddef; + +numeric cap_accent_height, cap_accent_height#; +%cap_accent_height# = uc_acc_height#; +cap_accent_height# = cap_height# + acc_height#; + +% (CMBR) +def pseudo_setup = + idot_diam:=stem'; + idot_diam#:=stem'/hppp; + udot_diam:=min(stem', hround(.85dot_size)); + udot_diam#:=udot_diam/hppp; + define_whole_blacker_pixels(pdot_diam); + define_whole_vertical_pixels(lc_trema_height); + define_whole_vertical_pixels(uc_acc_height,lc_acute_height, + lc_hachek_height); + define_pixels(accent_u); + define_whole_vertical_pixels(cap_accent_height); +% LAST MINUTE EXTRA FONT SETUP +%%% define_pixels prepare_pen +if not serifs: fisp#:=1/3[fine#,crisp#]; define_whole_pixels(fisp); + prepare_pen fisp; fi +if known ogonek_pen#: + define_whole_pixels(ogonek_pen); prepare_pen ogonek_pen; +fi +enddef; + +endinput; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebpunct.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebpunct.mf new file mode 100644 index 00000000000..a057a36b44f --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebpunct.mf @@ -0,0 +1,340 @@ +% ebpunct.mf +% [= expunct.mf, changed by Walter Schmidt, see (CMBR)] +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% (c) Copyright 1990, 1992 Norbert Schwarz +% +% This file is part of the EC Bright fonts version 1.0 +% +% Content: +% +% punctuation + +%%% italcorr corrital + +version_check(1,0); % |version_check| was introduced in dc1.3 + +ecchar "Single left guillemet"; % jk % (CMBR) +beginchar(oct"016",7u#,2bar_height#,0); +italcorr h#*slant-u#; +adjust_fit(0,0); + pickup fine.nib; + pos1(qvair,0); pos2(if monospace: qvair else: stem fi,0); pos3(qvair,0); + rt x1r=rt x3r=w-2u-eps; + lft x2l=hround(if not monospace: 2 fi\\ u)-eps; + bot y3=vair; y2=.5[y1,y3]=bar_height; + if not serifs or monospace: + filldraw stroke z1e--z2e--z3e; + else: + filldraw stroke + z1e{(x2e-x1e),1.8(y2e-y1e)}..{curl1}z2e{curl1}.. + {(x3e-x2e),1.8(y3e-y2e)}z3e; + fi + penlabels(1,2,3); +endchar; + +ecchar "Single right guillemet"; % jk % (CMBR) +beginchar(oct"017",7u#,2bar_height#,0); +italcorr h#*slant-u#; +adjust_fit(0,0); + pickup fine.nib; + pos1(qvair,0); pos2(if monospace: qvair else: stem fi,0); pos3(qvair,0); + lft x1l=lft x3l=2u+eps; + rt x2r=w-hround(if not monospace: 2 fi\\ u)+eps; + bot y3=vair; y2=.5[y1,y3]=bar_height; + if not serifs or monospace: + filldraw stroke z1e--z2e--z3e; + else: + filldraw stroke + z1e{(x2e-x1e),1.8(y2e-y1e)}..{curl1}z2e{curl1}.. + {(x3e-x2e),1.8(y3e-y2e)}z3e; + fi +penlabels(1,2,3); endchar; + +ecchar "French opening quotes"; % from pl_cud (plfonts) % (CMBR) +beginchar_twice(oct"023",9u#,2bar_height#,0); +adjust_fit(0,0); + pickup fine.nib; + numeric the_shift,shift_corr; + the_shift=hround(max(3u,1.7stem)); shift_corr=the_shift-3u; + pos1(qvair,0); pos2(if monospace: qvair else: stem fi,0); pos3(qvair,0); + rt x1r=rt x3r=hround(.6w-shift_corr)-eps; + lft x2l=hround(if not monospace: 2 fi\\ u-shift_corr)-eps; + bot y3=vair; y2=.5[y1,y3]=bar_height; + for i:=1,2,3: + forsuffixes $:=r, ,l: z[i]'$=z[i]$ + the_shift*right; endfor + endfor + if not serifs or monospace: + filldraw stroke z1e--z2e--z3e; filldraw stroke z1'e--z2'e--z3'e; + else: + filldraw stroke + z1e{(x2e-x1e),1.8(y2e-y1e)}..{curl1}z2e{curl1}.. + {(x3e-x2e),1.8(y3e-y2e)}z3e; + filldraw stroke + z1'e{(x2'e-x1'e),1.8(y2'e-y1'e)}..{curl1}z2'e{curl1}.. + {(x3'e-x2'e),1.8(y3'e-y2'e)}z3'e; + fi; +% italic correction is set to |0| in |beginchar|, so let's correct it + corrital z1'r; + penlabels(1,2,3,1',2',3'); +repeat_once; +endchar; + +ecchar "French closing quotes"; % from pl_cud (plfonts) % (CMBR) +beginchar_twice(oct"024",9u#,2bar_height#,0); +adjust_fit(0,0) + pickup fine.nib; + numeric the_shift,shift_corr; + the_shift=hround(max(3u,1.7stem)); shift_corr=the_shift-3u; + pos1(qvair,0); pos2(if monospace: qvair else: stem fi,0); pos3(qvair,0); + lft x1l=lft x3l=w-hround(.6w-shift_corr)+eps; + rt x2r=w-hround(if not monospace: 2 fi\\ u-shift_corr)+eps; + bot y3=vair; y2=.5[y1,y3]=bar_height; + for i:=1,2,3: + forsuffixes $:=r, ,l: z[i]'$=z[i]$ + the_shift*left; endfor + endfor + if not serifs or monospace: + filldraw stroke z1e--z2e--z3e; filldraw stroke z1'e--z2'e--z3'e; + else: + filldraw stroke + z1e{(x2e-x1e),1.8(y2e-y1e)}..{curl1}z2e{curl1}.. + {(x3e-x2e),1.8(y3e-y2e)}z3e; + filldraw stroke + z1'e{(x2'e-x1'e),1.8(y2'e-y1'e)}..{curl1}z2'e{curl1}.. + {(x3'e-x2'e),1.8(y3'e-y2'e)}z3'e; + fi; +% italic correction is set to |0| in |beginchar|, so let's correct it + corrital z2r; + penlabels(1,2,3,1',2',3'); +repeat_once; +endchar; + +ecchar "German opening comma"; +beginchar(oct"015",5u#,pdot_diam#,comma_depth#); +adjust_fit(0,0); +x1-.5pdot_diam=hround(.5w-.5pdot_diam); y1-.5pdot_diam=0; +comma(1,a,pdot_diam,.2u,comma_depth); % dot and tail +penlabels(1); endchar; + +ecchar "German Opening quotes"; % (CMBR) +beginchar(oct"022",3u#+pdot_diam#,pdot_diam#,comma_depth#); +italcorr asc_height#*slant+pdot_diam#-4.1u#; +adjust_fit(.5u#,.5u#); +x2+.5pdot_diam=hround(w-.6u+.5pdot_diam); y2-.5pdot_diam=0; +x1=w-x2; y2=y1; +comma(1,a,pdot_diam,.25u,comma_depth); % left dot and tail +comma(2,b,pdot_diam,.25u,comma_depth); % right dot and tail +penlabels(1,2); endchar; + +ecchar "Exclamation point"; +beginchar("!",5u#+width_adj#,asc_height#,0); +italcorr asc_height#*slant-2u#-.5width_adj#+.5pdot_diam#; +adjust_fit(0,0); +pickup tiny.nib; pos3(pdot_diam,0); pos4(pdot_diam,90); +lft x3l=hround(.5w-.5pdot_diam); bot y4l=0; z3=z4; dot(3,4); % dot +numeric bot_width; +bot_width=if hefty:max(hround .8pdot_diam,fine.breadth) else: hair fi; +pickup fine.nib; pos1(pdot_diam,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+.5pdot_diam=h+o; + filldraw z1r...z0...z1l---z2l--z2r---cycle; fi % stem and bulb +penlabels(0,1,2,3,4); endchar; + + + +ecchar "Apostrophe"; +beginchar("'",5u#,asc_height#,0); +italcorr asc_height#*slant+.5pdot_diam#-2u#; +adjust_fit(0,0); +x1-.5pdot_diam=hround(.5w-.5pdot_diam); y1+.5pdot_diam=h; +if monospace: comma(1,a,pdot_diam,.28u,vround 1.5comma_depth); % large comma +else: comma(1,a,pdot_diam,.25u,comma_depth); fi % comma with increased jut +penlabels(1); endchar; + + +ecchar "Asterisk"; % (CMBR) +beginchar("*",9u#, + if low_asterisk:math_axis#+.5sym_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-.5sym_height; +for d=-150 step 60 until 150: + z[d]=z0+.5dir d xscaled 7.5sym_u yscaled sym_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; + +ecchar "Plus sign"; % (CMBR) +beginarithchar("+"); pickup extra_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; + +ecchar "Comma"; +beginchar(",",5u#,pdot_diam#,comma_depth#); +adjust_fit(0,0); +x1-.5pdot_diam=hround(.5w-.5pdot_diam); y1-.5pdot_diam=0; +comma(1,a,pdot_diam,.2u,comma_depth); % dot and tail +penlabels(1); endchar; + +ecchar "Period"; +beginchar(".",5u#,pdot_diam#,0); +adjust_fit(0,0); pickup fine.nib; +pos1(pdot_diam,0); pos2(pdot_diam,90); +lft x1l=hround(.5w-.5pdot_diam); bot y2l=0; z1=z2; dot(1,2); % dot +penlabels(1,2); endchar; + +ecchar "Virgule (slash)"; +beginchar("/",9u#,body_height#,paren_depth#); +italcorr body_height#*slant-.5u#; +adjust_fit(0,0); pickup extra_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; + +ecchar "Colon"; +beginchar(":",5u#,x_height#,0); +italcorr x_height#*slant+.5pdot_diam#-2u#; +adjust_fit(0,0); pickup fine.nib; +pos1(pdot_diam,0); pos2(pdot_diam,90); +lft x1l=hround(.5w-.5pdot_diam); top y2r=h; z1=z2; dot(1,2); % upper dot +pos3(pdot_diam,0); pos4(pdot_diam,90); +x3=x1; bot y4l=0; z3=z4; dot(3,4); % lower dot +penlabels(1,2,3,4); endchar; + +ecchar "Semicolon"; +beginchar(";",5u#,x_height#,comma_depth#); +italcorr x_height#*slant+.5pdot_diam#-2u#; +adjust_fit(0,0); pickup fine.nib; +pos1(pdot_diam,0); pos2(pdot_diam,90); +lft x1l=hround(.5w-.5pdot_diam); top y2r=h; z1=z2; dot(1,2); % upper dot +x3-.5pdot_diam=hround(.5w-.5pdot_diam); y3-.5pdot_diam=0; +comma(3,a,pdot_diam,.2u,comma_depth); % lower dot and tail +penlabels(1,2,3); endchar; + +ecchar "Equals sign"; % (CMBR) +compute_spread(.45sym_height#,.55sym_height#); +beginchar("=",11u#,v_center(spread#+rule_thickness#)); +italcorr h#*slant-.5u#; +adjust_fit(0,0); pickup extra_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; + + + +ecchar "Reverse apostrophe"; +beginchar("`",5u#,asc_height#,0); +italcorr asc_height#*slant+.5pdot_diam#-2u#; +adjust_fit(0,0); +x1-.5pdot_diam=hround(.5w-.5pdot_diam); y1+.5pdot_diam=h-comma_depth; +if monospace: ammoc(1,a,pdot_diam,.28u,vround 1.5comma_depth); % large ammoc +else: ammoc(1,a,pdot_diam,.25u,comma_depth); fi % normal ammoc +penlabels(1); endchar; + + +ecchar "Spanish open exclamation point"; +beginchar(oct"275",5u#+width_adj#,asc_height#-desc_depth#,desc_depth#); +italcorr h#*slant-2u#-.5width_adj#+.5pdot_diam#; +adjust_fit(0,0); +pickup tiny.nib; pos3(pdot_diam,0); pos4(pdot_diam,90); +lft x3l=hround(.5w-.5pdot_diam); top y4r=h; z3=z4; dot(3,4); % dot +numeric top_width; +top_width=if hefty:max(hround .8pdot_diam,fine.breadth) else: hair fi; +pickup fine.nib; pos1(pdot_diam,0); pos2(top_width,0); +x1=x2=x3; top y2=.25[bot y4l,h-x_height]-1; +if square_dots: bot y1=-d; + filldraw stroke z1e--z2e; % stem +else: bot z0=(x1,-d-o); y1-.5pdot_diam=-d-o; + filldraw z1l...z0...z1r---z2r--z2l---cycle; fi % stem and bulb +penlabels(0,1,2,3,4); endchar; + + +ecchar "Closing quotes";% (CMBR) +beginchar(oct"021",3u#+pdot_diam#,asc_height#,0); +italcorr asc_height#*slant+pdot_diam#-4.1u#; +adjust_fit(.5u#,.5u#); +x1+.5pdot_diam=hround(.6u+.5pdot_diam); y2+.5pdot_diam=h; +x2=w-x1; y2=y1; +comma(1,a,pdot_diam,.25u,comma_depth); % left dot and tail +comma(2,b,pdot_diam,.25u,comma_depth); % right dot and tail +penlabels(1,2); endchar; + +ecchar "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; + +ecchar "Opening quotes";% (CMBR) +beginchar(oct"20",3u#+pdot_diam#,asc_height#,0); +italcorr asc_height#*slant-.1u#; +adjust_fit(.5u#,.5u#); +x2+.5pdot_diam=hround(w-.6u+.5pdot_diam); y1+.5pdot_diam=h-comma_depth; +x1=w-x2; y2=y1; +ammoc(1,a,pdot_diam,.25u,comma_depth); % left dot and tail +ammoc(2,b,pdot_diam,.25u,comma_depth); % right dot and tail +penlabels(1,2); endchar; + +iff not monospace: +ecchar "En dash"; +beginchar(oct"025",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; + + +iff monospace: +ecchar "Hyphen"; +beginchar(oct"025",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; + +iff not monospace: +ecchar "Em dash"; +beginchar(oct"026",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; + +iff monospace: +ecchar "Hyphen"; +beginchar(oct"026",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; + +endinput; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebrleast.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebrleast.mf new file mode 100644 index 00000000000..39d383a0632 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebrleast.mf @@ -0,0 +1,1126 @@ +% ebrleast.mf +% [= exrleast.mf, changed by Walter Schmidt, see (CMBR)] +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% (c) Copyright 1990, 1992 Norbert Schwarz +% +% This file is part of the EC Bright fonts version 1.0 +% +% Content: +% +% accented lowercase letters ("eastern part") +% +% oct"236", oct"240" .. oct"274" +% +% oct"236" d with bar +% +% oct"240" a with breve +% oct"241" a with ogonek +% oct"242" c with acute +% oct"243" c with hacek +% oct"244" d with comma +% oct"245" e with hacek +% oct"246" e with ogonek +% oct"247" g with breve +% +% oct"250" l with acute +% oct"251" l with komma +% oct"252" l with (polnisches L) +% oct"253" n with acute +% oct"254" n with hacek +% oct"255" the letter eng +% oct"256" o with ungarian umlauts +% oct"257" r with acute +% +% oct"260" r with hacek +% oct"261" s with acute +% oct"262" s with hacek +% oct"263" s with cedille +% oct"264" t with comma +% oct"265" t with cedille +% oct"266" u with hungarian umlauts +% oct"267" u with circ +% +% oct"270" y with umlauts +% oct"271" z with acute +% oct"272" z with hacek +% oct"273" z with dot +% oct"274" ij + +version_check(1,0); % |version_check| was introduced in dc1.3 + +ecchar "The letter bar d"; +beginchar(oct"236",10u#+serif_fit#,asc_height#,0); +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(0,serif_fit#); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); top y1=h; +numeric edge; edge=lft x2l; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo if monospace: -hair fi; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height if monospace: -.5hair fi ; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...pulled_arc.e(4,5) + & pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); +pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif +% + pos8(bar,90); pos9(bar,90); + x8=.5[x4,x5]; + if serifs: x9=x2r+jut; else: x9=w; fi + if serifs: y8=y9=.5[y.a2-.5slab,y4+.5vair]; + else: y8=y9=.5[x_height,asc_height-serif_drop]; fi + filldraw stroke z8e--z9e; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + + + +%%%%%% + + +ecchar "The letter a with breve"; +beginchar(oct"240",9u#,x_height#+acc_height#,0); +bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); +italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; +adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); +pickup fine.nib; top y3r=x_height+vround 1.5oo; +if serifs: pos1(flare,180); pos2(hair,180); + pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; + y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare); + bulb(3,2,1); % bulb +else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; + pos3(1/8[vair,thin_join],90); + x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; + filldraw stroke term.e(3,1,left,.9,4); fi % terminal +pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height]; +pos5(stem,0); x5=x4; y5=max(.55bh,2vair); +filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem +pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; +pos7(hround(curve-2stem_corr),180); +lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; +pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; +pos9(thin_join,360); z9l=z5l; +(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); +{{interim superness:=more_super; + filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl +if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); + if hair#+.5stem#>1.5u#: pickup tiny.nib; + pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; + pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; + pos12(shaved_stem,0); x11=x12; top y12=slab+eps; + filldraw z5'l---z10l...z11l{right}--z11r + --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot + else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=1/3bh; + pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; + pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); + pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); + (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); + filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook +else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); + pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; bot y10=0; + filldraw stroke z5'e--z10e; fi % base of stem +% the accent +lowercase_breve(.5w,0,14,15,16); +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16); endchar; + +ecchar "The letter a with ogonek"; % from pl_ml (plfonts) +beginchar(oct"241",9u#,x_height#,the_ogonek_depth#); + bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); + italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; + adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); + pickup fine.nib; top y3r=h+vround 1.5oo; + if serifs: pos1(flare,180); pos2(hair,180); + pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; + y1=min(bh+.5flare+2vair+2,.9[bh,h]-.5flare); + bulb(3,2,1); % bulb + else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; + pos3(1/8[vair,thin_join],90); + x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; + filldraw stroke term.e(3,1,left,.9,4); fi % terminal + pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,h]; + pos5(stem,0); x5=x4; y5=max(.55bh,2vair); + filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem + pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; + pos7(hround(curve-2stem_corr),180); + lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; + pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; + pos9(thin_join,360); z9l=z5l; + (x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); + {{interim superness:=more_super; + filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl + if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); + if is_bold: pickup tiny.nib; + pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; + pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; + pos12(shaved_stem,0); x11=x12; top y12=slab+eps; + filldraw z5'l---z10l...z11l{right}--z11r + --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot + else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=1/3bh; + pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; + pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); + pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); + (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); + filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook + else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); + pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; bot y10=0; + filldraw stroke z5'e--z10e; % base of stem + fi; + penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); + if serifs: path p.l; p.l=z5'l---z10l...z11l{right}; fi + def the_pen= + if known ogonek_pen: ogonek_pen elseif serifs: tiny else: fine fi + enddef; + ogonek_breadth=if serifs and is_bold: slab else: xvair fi; + ogonek_pos=if serifs: (point if is_bold: 1.75 of p.l) else: 1.85 of p.l)+ + .5the_pen*up fi\\ else: (x10l,.5the_pen) fi; + put_ogonek(the_pen); +endchar; + +ecchar "The letter c with acute"; % from pl_ml (plfonts) +beginchar_twice(oct"242",8u#,x_height#,0); + italcorr x_height#*slant-.2u#; + adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); + pickup fine.nib; pos2(vair',90); pos4(vair',270); + x2=x4=.5(w+u); top y2r=vround(h+1.5oo); bot y4r=-oo; + pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5h; + if serifs: pos1(hair,0); pos0(flare,0); + y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare); + rt x1r=hround(w-.7u); bulb(2,1,0); % bulb + pos5(hair,0); rt x5r=hround(w-.5u); + y5=max(good.y(.5bar_height-.9),y4l+vair'); + (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) + ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal + else: pos1(4/7[vair',flare],80); + rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2,1,right,.8,4); % upper terminal + pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; + if angle direction 1 of p.e>75: + p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal + penlabels(0,1,2,3,4,5); + hpos_corr=-.25u; put_accent; +repeat_once; +endchar; + +ecchar "The letter c with hachek"; % from cshachel.mf (csfonts) +beginchar(oct"243",8u#,lc_hachek_height#,0); +italcorr x_height#*slant-.2u#; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +pickup fine.nib; pos2(vair',90); pos4(vair',270); +x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo; +pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height; +if serifs: pos1(hair,0); pos0(flare,0); + y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,x_height]-.5flare); + rt x1r=hround(w-.7u); bulb(2,1,0); % bulb + pos5(hair,0); rt x5r=hround(w-.5u); + y5=max(good.y(.5bar_height-.9),y4l+vair'); + (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) + ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal +else: pos1(4/7[vair',flare],80); + rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2,1,right,.8,4); % upper terminal + pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; + if angle direction 1 of p.e>75: + p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal +penlabels(0,1,2,3,4,5); +lc_hachek_accent(if serifs: 0.5[0.5[x3l,x3],x0r] else: x2 fi); +endchar; %% changed from ..[x3r,x3].. + + +ecchar "The letter d with hachek"; % from csotherl.mf (csfonts) +beginchar(oct"244",10u#+serif_fit#,lc_acute_height#,0); +italcorr lc_acute_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(0, if monospace: 2u# else: dot_size#+0.25u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); top y1=h; +numeric edge; edge=lft x2l; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...pulled_arc.e(4,5) + & pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); +pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif +penlabels(0,1,2,3,4,5,6,7); +dtl_hachek(x0r+u+.5pdot_diam)(y1); +endchar; + +ecchar "The letter e with hachek"; % from cshachel.mf (csfonts) +beginchar(oct"245",7.25u#+max(.75u#,.5curve#),lc_hachek_height#,0); +italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); +adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); +numeric left_curve,right_curve; +left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; +if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; pos1(right_curve,0); +pos2(vair,90); pos3(left_curve,180); +y1=good.y bar_height; top y2r=x_height+vround 1.5oo; y0l=bot y1; +rt x1r=hround min(w-.5u,w-u+.5right_curve); +lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; +if serifs: pos4(vair',270); pos5(hair,360); + y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; + (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal +else: pos4(vair,270); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,270); z4=z4'; + pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke term.e(4',5,right,1,4); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: + x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +penlabels(0,1,2,3,4,5); +lc_hachek_accent(x2); +endchar; + + +ecchar "The letter e with ogonek"; % from pl_ml (plfonts) +beginchar(oct"246",7.25u#+max(.75u#,.5curve#),x_height#,the_ogonek_depth#); + italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); + adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); + numeric left_curve,right_curve; + left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; + if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi + if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi + pickup tiny.nib; pos1(right_curve,0); + pos2(vair,90); pos3(left_curve,180); + y1=good.y bar_height; top y2r=h+vround 1.5oo; y0l=bot y1; + rt x1r=hround min(w-.5u,w-u+.5right_curve); + lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; + {{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl + y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; + if serifs: pos4(vair',270); pos5(hair,360); + y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; + (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal + else: pos4(vair,270); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,270); z4=z4'; + pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke term.e(4',5,right,1,4); fi % terminal + path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); + y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; + forsuffixes $=l,r: + x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor + fill stroke z0e--z1'e; % crossbar + penlabels(0,1,2,3,4,5); + path p.r; + p.r=if serifs: pulled_arc.r(3,4)...{x5-x4,5(y5-y4)}z5r + else: term.r(4',5,right,1,4) fi; + def the_pen= + if known ogonek_pen: ogonek_pen elseif serifs: tiny else: fine fi + enddef; + numeric tt; % the time... + tt=if serifs: if hefty: 2.6 else: 2.5 fi else: % sansserif + if is_bold: .6 else: .8 fi\\ fi; + join_angle=angle((direction tt of p.r) rotated 180); + ogonek_breadth=if serifs and is_bold: slab else: xvair fi; + ogonek_pos=(point tt of p.r)+.5(the_pen-if serifs: tiny else: fine fi)* + unitvector((direction tt of p.r) rotated 90); + put_ogonek(the_pen); +endchar; + +iff not variant_g: ecchar "The letter g with breve"; +beginchar(oct"247",9u#,x_height#+acc_height#,desc_depth#); +italcorr x_height#*slant+.25u#; +adjust_fit(0,0); +numeric light_vair,light_curve,loop_top,loop_side; +light_vair=Vround(.5[thin_join,vair]+vair_corr); +light_curve=max(fine.breadth,hround(curve-3stem_corr)); +loop_top=Vround .77[vair,fudged.stem]; +loop_side=hround .64[vair,fudged.stem]; +pickup fine.nib; pos1(light_vair,90); +pos2(light_curve,180); pos3(light_vair,270); +pos4(light_curve,360); pos11(loop_top,90); +y11r=good.y(y11r+.15bar_height-y11); x1=x3=.5[x2,x4]; y2=y4=.5[y1,y3]; +lft x2r=hround(1.75u-.5light_curve); rt x4r=hround(w-2.75u+.5light_curve); +top y1r=x_height+oo; y3r=good.y(y3r+.27[top y11r,bot y1l]-y3); +filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3); % left half of bowl +filldraw stroke pulled_arc.e(3,4) & pulled_arc.e(4,1); % right half of bowl +x0=superness[x1r,x4r]; y0=superness[y4r,y1r]; % NE point on the super bowl +x8'=superness[x3r,x2r]; y8'=superness[y2r,y3r]; % SW point on the super bowl +x8''=superness[x3,x2]; y8''=superness[y2,y3]; +pos0(thin_join,angle(z0-z8')+90); +pos8(thin_join,angle(z0-z8')-90); z8=.618[z8',z8'']; +if serifs: pos5(vair,90); + pos6(hair,0); pos7(.5[hair,flare],0); x5=.75[x0,x6]; top y5r=x_height+o; + rt x6r=hround(w-.25u); y6+(.5[hair,flare])/2=.95[bar_height,x_height]+oo; + filldraw stroke z0e..{right}z5e; bulb(5,6,7); % ear +else: pos5(vair',100); top y5r=x_height+oo; + rt x5l=hround(w-.25u); y5l:=good.y y5l; + filldraw z0l{z5-z0}..z5l--z5r{left}..{curl 1}z0r--cycle; fi % ear +pos10(loop_top,90); x10=x8+.75u; y10=y11; +pos12(loop_side,0); pos13(light_vair,-90); +pos14(loop_side,-180); pos10'(.5[thin_join,vair],-270); +rt x12r=hround max(w-1.25u+.5loop_side,w-.5u); y12=y14=.5[y11,y13]; +x11=x13=max(.5w,x10+eps); bot y13r=-d-oo-1; x14=w-x12; z10'l=z10l; +filldraw stroke z8e{z8-z0}..z10e---z11e; % link +filldraw stroke {{interim superness:=hein_super; super_arc.e(11,12)}} + & super_arc.e(12,13) & super_arc.e(13,14) & super_arc.e(14,10'); % loop +% the accent +lowercase_breve(.5w,0,15,16,17); +penlabels(0,1,2,3,4,5,6,7,8,10,11,12,13,14); labels(8',8''); endchar; + +iff variant_g: ecchar "Variant letter g with breve"; +beginchar(oct"247",10u#+serif_fit#, + max(x_height#+acc_height#,min(asc_height#,2x_height#)),desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi; +adjust_fit(0,serif_fit# if serifs: -.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); +numeric edge; edge=lft x2l; +path edge_path; edge_path=(edge,x_height)--(edge,0); +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),2/3[lft x2,edge]); y3=bar_height; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=vround 1/3vair; +lft x7l=edge; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{left}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{right}...{up}z7e; % bowl +y1=ypart(edge_path intersectionpoint(z3l{up}...{left}z4l)); +y0=ypart(edge_path intersectionpoint(z7l{down}...{left}z6l)); +pickup tiny.nib; bot y2=if serifs: -.25d else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; +pos8(hround(hair-stem_corr),0); pos7'(stem',0); +z7'=z1; x8r=x7'r; top y8=x_height+oo; +filldraw stroke z7'e--z8e; % point +if serifs: pickup tiny.nib; + pos9(vair,-90); x9=.5[x2,x10]; bot y9r=-d-o-1; + pos10(hair,-180); lft x10r=hround u; y10=-.75d+.5flare; + pos11(flare,-180); z11r=z10r; + bulb(9,10,11); filldraw stroke super_arc.e(2,9); % tail +else: pickup fine.nib; pos2'(stem,0); z2'=z2; + z2''r=z2'r; z2''=z2'; z2''l=(x2'l,0); + pos9(vair,-90); x9=4.5u; bot y9r=-d-o-1; + pos10(.5[vair,flare],-90); lft x10=hround 1.25u; + y10r=good.y -5/6d; y10l:=good.y y10l; + filldraw stroke z2'e..z2''e&super_arc.e(2'',9) + & term.e(9,10,left,.9,4); fi % tail +% the accent +lowercase_breve(.5w,0,12,13,14); +penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14); endchar; + +ecchar "The letter l with acute"; % jk +beginchar_twice(oct"250",5u#,asc_height#,0); +l_width#:=5u#+2serif_fit#; +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; top y1=asc_height; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs or monospace: + sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif +fi +if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif +put_accent; +repeat_once; +penlabels(1,2); endchar; + +ecchar "The letter l with hachek"; % from csotherl.mf (csfonts) +beginchar(oct"251",5u#,lc_acute_height#,0); l_width#:=5u#+2serif_fit#; +italcorr lc_acute_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#, + if monospace: 0 else: dot_size#+0.25u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; top y1=asc_height; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs or monospace: + sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif +fi +if serifs: + dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif +penlabels(1,2); +dtl_hachek(x1r+u+.5pdot_diam)(y1); +endchar; + +ecchar "The letter crossed l"; % from pl_ml (plfonts) +beginchar_twice(oct"252",5u#,asc_height#,0); + italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; + charwd_:=charwd; + adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); + pickup tiny.nib; pos1(stem',0); pos2(stem',0); + if odd(w-stem'): change_width; fi + lft x1l=hround(.5w-.5stem'); x1=x2; top y1=h; bot y2=0; + filldraw stroke z1e--z2e; % stem + if serifs or monospace: + sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif + fi + if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif + penlabels(1,2); + numeric unbalance; + unbalance=if monospace: 1 else: 1.1 fi; + if not monospace: + numeric cross_fit#; + cross_fit#=serif_fit#+if not serifs: if is_bold: 1 else: .75 fi\\ else: + .5 fi\\ u#; + charwd:=charwd_; + adjust_fit(cross_fit#+stem_shift#,unbalance*cross_fit#-stem_shift#); + fi + numeric l_jut; +% some funny fonts have an extremally small |jut|: + l_jut=.5stem+if serifs: max(limit_dist,if hefty: .8 fi\\ jut) else: 1.7u fi; + put_cross(l_jut,unbalance*l_jut); +repeat_once; +endchar; + +ecchar "The letter n with acute"; % from pl_ml (plfonts) +beginchar_twice(oct"253",10u#,x_height#,0); + italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; + adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); + pickup tiny.nib; pos1(stem,0); pos2(stem,0); + numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); + pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); + lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; + top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; + filldraw stroke z1'e--z2'e; % left stem + h_stroke(2,a,3,4); % arch and right stem + if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif + hpos_corr=-.5u; put_accent; +repeat_once; +penlabels(1,2,3,4); endchar; + +ecchar "The letter n with hachek"; % from cshachel.mf (csfonts) +beginchar(oct"254",10u#,lc_hachek_height#,0); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); +pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=x_height+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +penlabels(1,2,3,4); +lc_hachek_accent(1/2[x1r,x.a1]); +endchar; + + +ecchar "The letter eng"; +beginchar(oct"255",10u#,x_height#,desc_depth#); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); +pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif +% j stroke + pickup tiny.nib; pos7(vair,-90); pos8(hair,-180); pos9(flare,-180); + x7=.5[x4,x8r]; bot y7r=-d-oo; y8-.5flare=-.88d; + if monospace: + lft x8r=hround(x3r-3u+0.5stem); + else: + z8r=z9r; rt x9l=hround(x3r-3u+0.5stem); % floor .75u + fi; + (x,y7r)=whatever[z7l,z4l]; x7r:=max(x,.5[x8r,x7]); + filldraw stroke z4e{down}...z7e{left}; bulb(7,8,9); % arc and bulb +else: pickup fine.nib; pos4'(stem',0); z4'=z4; + pos8(.2[vair,stem'],-90); pos9(vair,-90); + lft x9r=hround -.75u+x3r-3u-0.5stem; + bot y9r=vround 5/6(-d-oo); + (x,y9l)=whatever[z9r,z3]; + x9l:=x; + z7r=z4'r; + (x4'l,y7l)=whatever[z9l,z7r]; x7l=x4'l; y7=y7r; + x8r=.5[x9r,x7r]; x8l:=.5[x9l,x7l]; bot y8r=-d-oo; + filldraw stroke z4'e..{down}z7e + & super_arc.e(7,8) + & z8e{left}..z9e; +fi % arc and terminal +penlabels(1,2,3,4,5,6,7,8,9); endchar; + +ecchar "The letter o with double acute"; +beginchar_twice(oct"256",9u#,x_height#+acc_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +penpos1(vair,90); penpos3(vair',-90); +penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=x_height+vround 1.5oo; y3r=-oo; +y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +if monospace: hpos_corr=-2u; put_accent; hpos_corr=2u; put_accent; +else: hpos_corr=-1.5u; put_accent; hpos_corr=1.5u; put_accent; fi +repeat_once; +penlabels(1,2,3,4,5,6,7,8); endchar; + + +ecchar "The letter r with acute"; +numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#]; +beginchar_twice(oct"257",if serifs:max(7u#,5.5u#+r_flare#) else:6.5u# fi, + x_height#+acc_height#,0); +italcorr x_height#*slant if not serifs: +.25u# fi; +adjust_fit(serif_fit#,0); +define_whole_blacker_pixels(r_flare); % must come after |beginchar_twice| +pickup fine.nib; top y4r=x_height+oo; +if serifs: pos4(vair,90); pos5(hair,0); + x4=w-max(1.75u,.25u+r_flare); + rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,x_height]+oo; + pos6(r_flare,0); bulb(4,5,6); % bulb +else: pos4(r_flare,90); rt x4=hround(w-.25u); fi +pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height; +filldraw stroke z3e{up}...{right}z4e; % arc +pickup tiny.nib; pos0(stem',0); pos2(stem',0); +pos1(hround(stem-3stem_corr),0); top y1=x_height+min(oo,serif_drop); +pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l; +lft x1l=hround(2.5u-.5stem'); bot y2=0; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi % lower serif +% the accent +hpos_corr=-.25u; put_accent; +repeat_once; +penlabels(1,2,3,4,5,6,7,8); endchar; + + +ecchar "The letter r with hachek"; % from cshachel.mf (csfonts) +numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#]; +define_whole_blacker_pixels(r_flare); +beginchar(oct"260",if serifs:max(7u#,5.5u#+r_flare#) else:6.5u# fi, + lc_hachek_height#,0); +italcorr x_height#*slant if not serifs: +.25u# fi; +adjust_fit(serif_fit#,0); +pickup fine.nib; top y4r=x_height+oo; +if serifs: pos4(vair,90); pos5(hair,0); + x4=w-max(1.75u,.25u+r_flare); + rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,x_height]+oo; + pos6(r_flare,0); bulb(4,5,6); % bulb +else: pos4(r_flare,90); rt x4=hround(w-.25u); fi +pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height; +filldraw stroke z3e{up}...{right}z4e; % arc +pickup tiny.nib; pos0(stem',0); pos2(stem',0); +pos1(hround(stem-3stem_corr),0); top y1=x_height+min(oo,serif_drop); +pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l; +lft x1l=hround(2.5u-.5stem'); bot y2=0; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi % lower serif +penlabels(1,2,3,4,5,6); +lc_hachek_accent(0.5[x1,x4]); +endchar; + +ecchar "The letter s with acute"; % from pl_ml (plfonts) +beginchar_twice(oct"261",7.1u#,x_height#,0); + italcorr x_height#*slant-if serifs:.55u# else:.3u# fi; + adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi); + numeric theta; theta=90-angle(40u,h); slope:=-h/40u; % angle at middle + numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi; + numeric ess'; ess'=max(fine.breadth,ess); + pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100); + pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w; + top y2l=h+vround 1.5oo; bot y7r=-oo; + y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess'); + lft x3l=hround .6u; rt x6r=hround(w-.6u); + x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine; + ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; + ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; + interim superness:=more_super; + filldraw stroke super_arc.e(2,3) & z3e{down} + ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke + if serifs: pos1(hair,180); pos8(hair,180); + rt x1l=hround(w-1.05u); lft x8r=hround .6u; + bot y1=min(bot y2r,vround 1/5[top y5r,h]); + top y8=max(top y7l,vround 5/6 bot y4l); + filldraw stroke z1e{up}....{left}z2e; % upper arc + filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e; % lower arc + path upper_arc, lower_arc; + upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8; + pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0); + x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r; + x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8; + numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1')); + filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle; % upper barb + t:=xpart(lower_arc intersectiontimes(z9r--z8')); + filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle; % lower barb + else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100); + x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u; + top y1l=vround(.93h+1.5oo); bot y8r=vround .1h-oo; + filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal + filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal + penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); + hpos_corr=-.5u; put_accent; +repeat_once; +endchar; + +ecchar "The letter s with hachek"; % from cshachel.mf (csfonts) +beginchar(oct"262",7.1u#,lc_hachek_height#,0); +italcorr x_height#*slant-if serifs:.55u# else:.3u# fi; +adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi); +numeric theta; theta=90-angle(40u,h); slope:=-x_height/40u; % angle at middle +numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi; +numeric ess'; ess'=max(fine.breadth,ess); +pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100); +pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w; +top y2l=x_height+vround 1.5oo; bot y7r=-oo; +y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess'); +lft x3l=hround .6u; rt x6r=hround(w-.6u); +x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine; +ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; +ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; +interim superness:=more_super; +filldraw stroke super_arc.e(2,3) & z3e{down} + ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke +if serifs: pos1(hair,180); pos8(hair,180); + rt x1l=hround(w-1.05u); lft x8r=hround .6u; + bot y1=min(bot y2r,vround 1/5[top y5r,x_height]); + top y8=max(top y7l,vround 5/6 bot y4l); + filldraw stroke z1e{up}....{left}z2e; % upper arc + filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e; % lower arc + path upper_arc, lower_arc; + upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8; + pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0); + x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r; + x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8; + numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1')); + filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle; % upper barb + t:=xpart(lower_arc intersectiontimes(z9r--z8')); + filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle; % lower barb +else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100); + x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u; + top y1l=vround(.93x_height+1.5oo); bot y8r=vround .1x_height-oo; + filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal + filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal +penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); +lc_hachek_accent(0.5[x3l,x1l]); +endchar; + +ecchar "The letter cedilla s"; +beginchar(oct"263",7.1u#,x_height#,0.875desc_depth#); +italcorr x_height#*slant-if serifs:.55u# else:.3u# fi; +adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi); +numeric theta; theta=90-angle(40u,h); slope:=-x_height/40u; % angle at middle +numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi; +numeric ess'; ess'=max(fine.breadth,ess); +pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100); +pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w; +top y2l=x_height+vround 1.5oo; bot y7r=-oo; +y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess'); +lft x3l=hround .6u; rt x6r=hround(w-.6u); +x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine; +ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; +ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; +interim superness:=more_super; +filldraw stroke super_arc.e(2,3) & z3e{down} + ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke +if serifs: pos1(hair,180); pos8(hair,180); + rt x1l=hround(w-1.05u); lft x8r=hround .6u; + bot y1=min(bot y2r,vround 1/5[top y5r,x_height]); + top y8=max(top y7l,vround 5/6 bot y4l); + filldraw stroke z1e{up}....{left}z2e; % upper arc + filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e; % lower arc + path upper_arc, lower_arc; + upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8; + pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0); + x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r; + x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8; + numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1')); + filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle; % upper barb + t:=xpart(lower_arc intersectiontimes(z9r--z8')); + filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle; % lower barb +else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100); + x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u; + top y1l=vround(.93x_height+1.5oo); bot y8r=vround .1x_height-oo; + filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal + filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal +% the accent +lowercase_cedilla(x7,0,11,12,13,14,15); +penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); endchar; + +ecchar "The letter t with hachek"; % from csotherl.mf (csfonts) +%beginchar(oct"264",6u#+max(u#,.5stem#), +% min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),0); +beginchar(oct"264",6u#+max(u#,.5stem#),lc_acute_height#,0); +numeric hh'; +hh' = min(asc_height,if hefty:9/7 else:10/7 fi\\ x_height); +italcorr lc_acute_height#*slant if serifs: -.9u# else: -.4u# fi; +adjust_fit(0,if serifs: 0 else: -.5u# fi); +numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); +pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180); +lft x2r=lft x3r=hround(2.5u-.5shaved_stem); +y2=y8; y3=max(.5bar_height,2vair); +pickup crisp.nib; pos8(bar,90); +rt x8=hround(w-1.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l; +if hefty: pos7(bar,90); + filldraw stroke z7e--z8e; % crossbar + pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0); + rt x1r=fine.rt x2l; top y1=hh'; + penpos2'(x1r-x1l,0); x2'=x1; y2'=y2; + filldraw stroke z1e--z2'e; % upper terminal +else: pos7(vair,90); pos1(hair,0); + rt x1r=fine.rt x2l; top y1=hh'; + filldraw z1l{down}...{left}z7r--z7l--z8l + --z8r--(x1r,y8r)--z1r--cycle; fi % upper terminal and crossbar +pickup fine.nib; interim superness:=more_super; +pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u); +if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l]; + (x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]); + filldraw stroke z2e..super_arc.e(3,4)...{up}z5e; % stem and hook + pickup crisp.nib; pos6(hair,0); pos5'(hair,0); + x6=x5=x5'; top y6=max(vround .75bar_height,top y5); y5=y5'; + filldraw stroke z5'e--z6e; % terminal +else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height]; + x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair; + filldraw stroke z2e..super_arc.e(3,4); % stem and hook + path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal + if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): + filldraw stroke z4e{right}...{up}z5e; + else: filldraw p; fi fi; +penlabels(1,2,3,4,5,6,7,8); +dtl_hachek(x8)(y1+.5pdot_diam); +endchar; + +ecchar "The letter cedilla t"; +beginchar(oct"265",6u#+max(u#,.5stem#), + min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),0.875desc_depth#); +italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; +adjust_fit(0,if serifs: 0 else: -.5u# fi); +numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); +pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180); +lft x2r=lft x3r=hround(2.5u-.5shaved_stem); +y2=y8; y3=max(.5bar_height,2vair); +pickup crisp.nib; pos8(bar,90); +rt x8=hround(w-1.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l; +if hefty: pos7(bar,90); + filldraw stroke z7e--z8e; % crossbar + pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0); + rt x1r=fine.rt x2l; top y1=h; + penpos2'(x1r-x1l,0); x2'=x1; y2'=y2; + filldraw stroke z1e--z2'e; % upper terminal +else: pos7(vair,90); pos1(hair,0); + rt x1r=fine.rt x2l; top y1=h; + filldraw z1l{down}...{left}z7r--z7l--z8l + --z8r--(x1r,y8r)--z1r--cycle; fi % upper terminal and crossbar +pickup fine.nib; interim superness:=more_super; +pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u); +if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l]; + (x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]); + filldraw stroke z2e..super_arc.e(3,4)...{up}z5e; % stem and hook + pickup crisp.nib; pos6(hair,0); pos5'(hair,0); + x6=x5=x5'; top y6=max(vround .75bar_height,top y5); y5=y5'; + filldraw stroke z5'e--z6e; % terminal +else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height]; + x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair; + filldraw stroke z2e..super_arc.e(3,4); % stem and hook + path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal + if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): + filldraw stroke z4e{right}...{up}z5e; + else: filldraw p; fi fi; +% the accent +lowercase_cedilla(x4,0,9,10,11,12,13); +penlabels(1,2,3,4,5,6,7,8,9,10,1,12,13); endchar; + +ecchar "The letter u with double acute"; +beginchar_twice(oct"266",10u#,x_height#+acc_height#,0); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; +if light_vair<fine.breadth: light_vair:=fine.breadth; fi +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos3(stem,0); pos4(stem',0); +lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; +if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop); +else: top y1=x_height; bot y4=0; fi +pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; +penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; +penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); +y6=y0=2/3bar_height; +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e..z0e--z0'e..z4e; % right stem +pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; +(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); +filldraw stroke {{interim superness:=hein_super; + pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif + sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif + sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif +if monospace: hpos_corr=-2u; put_accent; hpos_corr=2u; put_accent; +else: hpos_corr=-1.5u; put_accent; hpos_corr=1.5u; put_accent; fi +repeat_once; +penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + + +ecchar "The letter circle u"; +beginchar(oct"267",10u#,x_height#+acc_height#,0); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; +if light_vair<fine.breadth: light_vair:=fine.breadth; fi +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos3(stem,0); pos4(stem',0); +lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; +if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop); +else: top y1=x_height; bot y4=0; fi +pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; +penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; +penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); +y6=y0=2/3bar_height; +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e..z0e--z0'e..z4e; % right stem +pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; +(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); +filldraw stroke {{interim superness:=hein_super; + pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif + sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif + sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif +% the accent +lowercase_circle(.5w,(1/3[x_height,h]+apex_o),7,8,9,10); +penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + + +ecchar "The letter y with umlaut"; +beginchar(oct"270",if serifs:9.5u# else:9u# fi,lc_trema_height#,desc_depth#); +italcorr x_height#*slant+.25u#; +adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); +numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; +left_stem=fudged.stem-stem_corr; +right_stem=fudged.hair if hefty:-2stem_corr fi; +bot_stem=fudged.hair if hefty:-8stem_corr fi; +bot_vair=Vround(if serifs: vair else:.5[vair,bot_stem] fi); +outer_jut=.75jut; +x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4r=x_height; y2=y3=0; x2l=x3l; +numeric alpha,alpha[]; x9=3u; y9=bot_vair-d-oo; +alpha1=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-apex_corr); +alpha2=diag_ratio(1,bot_stem,y1-y9,x4r-x9); +if alpha1<alpha2: x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1; +else: alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); +if y0>notch_cut: y0:=notch_cut; + fill z0+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) + --z3r--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0+.5left--cycle; % left and right diagonals +else: fill z0--diag_end(0,4l,1,1,4r,3r)--z3r--z2l + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals +penpos5(alpha*bot_stem,0); z5r=whatever[z3r,z4r]; y5-.5vair=-.5d; +if serifs: numeric light_bulb; light_bulb=hround 7/8[hair,flare]; clearpen; + penpos6(vair,-90); penpos7(hair,-180); penpos8(light_bulb,-180); + x6=2u; y6r=-d-oo; y8-.5light_bulb=-.85d; x8r=hround .35u; + fill stroke z3e---z5e...{left}z6e; bulb(6,7,8); % arc and bulb + numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(4,3); + if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif + dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif +else: penpos6(bot_vair,-90); x6=2.5u; y6r=-d-oo; + fill stroke z3e---z5e...{left}z6e; % arc + pickup fine.nib; pos6'(bot_vair,-90); z6'=z6; + pos7(2/3[bot_vair,flare],-85); + lft x7l=hround u; bot y7r=vround-.96d-oo; y7l:=good.y y7l; + filldraw stroke term.e(6',7,left,1,4); fi % arc and terminal +% the accent +lowercase_umlaut(0,0,10,11,12,13); +penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; + +ecchar "The letter z with acute"; % from pl_ml (plfonts) +beginchar_twice(oct"271",8u#,x_height#,0); + italcorr x_height#*slant-.5serif_fit#-.3u#; + adjust_fit(0,.5serif_fit#); + numeric arm_thickness[\\],z_stem; + if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; + z_stem=.6[vair,stem]; + else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi + pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u; + top y1=h; y2=min(y1,h-2/3arm_thickness1); + bot y4=0; y3=max(y4,2/3arm_thickness2); + numeric alpha; + alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); + penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); + penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); + pair delta; delta=penoffset z3-z2 of currentpen; + fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l + ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r + ---cycle; % diagonal + pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); + top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; + arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak + pos7(arm_thickness2,-90); pos8(hair,0); + bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps; + arm(7,8,b,beak_darkness,.6beak_jut); % lower arm and beak + penlabels(1,2,3,4,5,6,7,8); + hpos_corr=-.5u; put_accent; +repeat_once; +endchar; + +ecchar "The z with hachek"; % from cshachel.mf (csfonts) +beginchar(oct"272",8u#,lc_hachek_height#,0); +italcorr x_height#*slant-.5serif_fit#-.3u#; +adjust_fit(0,.5serif_fit#); +numeric arm_thickness[],z_stem; +if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; + z_stem=.6[vair,stem]; +else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi +pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u; +top y1=x_height; y2=min(y1,x_height-2/3arm_thickness1); +bot y4=0; y3=max(y4,2/3arm_thickness2); +numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); +penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); +penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); +pair delta; delta=penoffset z3-z2 of currentpen; +fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l + ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r + ---cycle; % diagonal +pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); +top y5r=x_height; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; +arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak +pos7(arm_thickness2,-90); pos8(hair,0); +bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps; +arm(7,8,b,beak_darkness,.6beak_jut); % lower arm and beak +penlabels(1,2,3,4,5,6,7,8); +lc_hachek_accent(1/2[x6r,x1r]); +endchar; + +ecchar "The letter z with dot above"; % from pl_ml (plfonts) +beginchar_twice(oct"273",8u#,x_height#,0); + italcorr x_height#*slant-.5serif_fit#-.3u#; + adjust_fit(0,.5serif_fit#); + numeric arm_thickness[\\],z_stem; + if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; + z_stem=.6[vair,stem]; + else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi + pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u; + top y1=h; y2=min(y1,h-2/3arm_thickness1); + bot y4=0; y3=max(y4,2/3arm_thickness2); + numeric alpha; + alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); + penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); + penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); + pair delta; delta=penoffset z3-z2 of currentpen; + fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l + ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r + ---cycle; % diagonal + pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); + top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; + arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak + pos7(arm_thickness2,-90); pos8(hair,0); + bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps; + arm(7,8,b,beak_darkness,.6beak_jut); % lower arm and beak + penlabels(1,2,3,4,5,6,7,8); + put_dot(tiny,max(dot_size#,cap_curve#)); +repeat_once; +endchar; + +ecchar "The letter ij"; +beginchar(oct"274",10.5u#,min(asc_height#,10/7x_height#+.5idot_diam#),desc_depth#); +italcorr h#*slant-serif_fit# + .5idot_diam# -2u#; +% adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.25w-.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; +filldraw stroke z1e--z2e; % stem +pos3(idot_diam,0); pos4(idot_diam,90); +if serifs: x3r=max(x1r,x1+.5(idot_diam-tiny)-.2jut) else: x3=x1-.5 fi; +top y4r=h; % (CMBR) +if bot y4l-top y1<slab: y4l:=min(y4r-eps,y1+tiny+slab); fi +x3=x4; y3=.5[y4l,y4r]; dot(3,4); % dot +if serifs: sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif + dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif +% +adjust_fit(serif_fit#+2stem_shift# if monospace:+\\.5u# fi, + serif_fit#-2stem_shift# if monospace:-.5u# fi); +pickup tiny.nib; pos11(stem',0); pos12(stem',0); +rt x11r=hround(.75w+.25u+.5stem'); x11=x12; +top y11=x_height if serifs: +min(oo,serif_drop) fi; bot y12=-1/3d; +filldraw stroke z11e--z12e; % stem +pos13(idot_diam,0); pos14(idot_diam,90); +x13r=x11r; top y14r=h; % (CMBR) +if bot y14l-top y11<slab: y14l:=min(y14r-eps,y11+tiny+slab); fi +x13=x14; y13=.5[y14l,y14r]; dot(13,14); % dot +if serifs: sloped_serif.l(11,12,aa,1/3,1.1jut,serif_drop); % upper serif + pickup tiny.nib; pos15(vair,-90); pos16(hair,-180); pos17(flare,-180); + x15=.5[x12,x16r]; bot y15r=-d-oo; y16-.5flare=-.88d; + if monospace: lft x16r=.5w else: z16r=z17r; rt x17l=.5w+floor .75u fi; + (x,y15r)=whatever[z15l,z12l]; x15r:=max(x,.5[x16r,x15]); + filldraw stroke z12e{down}...z15e{left}; bulb(15,16,17); % arc and bulb +else: pickup fine.nib; pos12'(stem',0); z12'=z12; + pos16(.2[vair,stem'],-90); pos17(vair,-90); + lft x17r=hround .5w-.75u; bot y17r=vround 5/6(-d-oo); + (x,y17l)=whatever[z17r,z13]; x17l:=x; + z15r=z12'r; (x12'l,y15l)=whatever[z17l,z15r]; x15l=x12'l; y15=y15r; + x16r=.5[x17r,x15r]; x16l:=.5[x17l,x15l]; bot y16r=-d-oo; + filldraw stroke z12'e..{down}z15e & super_arc.e(15,16) + & z16e{left}..z17e; fi % arc and terminal +penlabels(1,2,3,4,5,6,11,12,13,14,15,16,17); endchar; + + +endinput; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebrlig.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebrlig.mf new file mode 100644 index 00000000000..978f5a79532 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebrlig.mf @@ -0,0 +1,217 @@ +% ebrlig.mf +% [= exrlig.mf, changed by Walter Schmidt, see (CMBR)] +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% (c) Copyright 1990, 1992 Norbert Schwarz +% +% This file is part of the EC Bright fonts version 1.0 +% +% Content: +% +% roman style ligature characters +% dotless i,j; ligatures fi, ff, fl, ffi, ffl + +version_check(1,0); % |version_check| was introduced in dc1.3 + +ecchar "Dotless letter i"; +beginchar(oct"031",5u#,x_height#,0); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs or monospace: + sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif +fi +if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif +penlabels(1,2); endchar; + +ecchar "Dotless letter j"; +beginchar(oct"032",5.5u#,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+2stem_shift# if monospace:+.5u# fi, + serif_fit#-2stem_shift# if monospace:-.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +rt x1r=hround(.5w+.25u+.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=-1/3d; +filldraw stroke z1e--z2e; % stem +if serifs: sloped_serif.l(1,2,a,1/3,1.1jut,serif_drop); % upper serif + pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); + x5=.5[x2,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; + if monospace: lft x6r=0 else: z6r=z7r; rt x7l=floor .75u fi; + (x,y5r)=whatever[z5l,z2l]; x5r:=max(x,.5[x6r,x5]); + filldraw stroke z2e{down}...z5e{left}; bulb(5,6,7); % arc and bulb +else: pickup fine.nib; pos2'(stem',0); z2'=z2; + pos6(.2[vair,stem'],-90); pos7(vair,-90); + lft x7r=hround -.75u; bot y7r=vround 5/6(-d-oo); + x3r=x1r; top y4r=min(2x_height,h+1); + (x,y7l)=whatever[z7r,(x1,min(h,asc_height))]; x7l:=x; + z5r=z2'r; (x2'l,y5l)=whatever[z7l,z5r]; x5l=x2'l; y5=y5r; + x6r=.5[x7r,x5r]; x6l:=.5[x7l,x5l]; bot y6r=-d-oo; + filldraw stroke z2'e..{down}z5e & super_arc.e(5,6) + & term.e(6,7,left,1,4); fi % arc and terminal +penlabels(1,2,5,6,7); endchar; + + +numeric itc#; % modified italic correction on `f' and `ff' +itc#=if serifs: max(0,flare#-.25u#) else: 1.25u# fi; + + +ecchar "The ligature fi"; %(CMBR) +beginchar(oct"034",10u#+2letter_fit#,asc_height#,0); +italcorr asc_height#*slant-serif_fit#+.5if serifs:stem# else:idot_diam# fi-2u#; +normal_adjust_fit(0,serif_fit#); +pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); +pos11(stem',0); rt x11r=hround(w-2.5u+.5stem'); +pos12(stem',0); x11=x12; bot y12=0; +pickup fine.nib; numeric bulb_diam, inner_jut; +if serifs: bulb_diam=hround 1/4[.8[stem,flare],dot_size]; + pos2(bulb_diam,0); x2r=x12r; + y2+.5bulb_diam=.8[x_height,h+oo]; top y11=x_height+min(oo,serif_drop); + if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; + else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi +else: bulb_diam=stem'; + pos2(6/7[vair,flare],90); top y2r=h; rt x2=hround 5.3u; + pickup tiny.nib; pos13(bulb_diam,0); pos14(bulb_diam,90); + x13=x11-.5; top y14r=min(2x_height,h+1); top y11=x_height; + if bot y14l-x_height<tiny: y14l:=min(y14r-eps,y11+2tiny); fi + x13=x14; y13=.5[y14l,y14r]; dot(13,14); % dot +fi; % this is the ligature we're drawing +f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif +pickup tiny.nib; filldraw stroke z11e--z12e; % right stem +pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; +pos3(bar,90); pos4(bar,90); +if serifs: x4=x11; % bar will overlap upper right serif + sloped_serif.l(11,12,d,1/3,jut,min(oo,serif_drop)); % upper right serif + dish_serif(12,11,e,1/3,inner_jut,f,1/3,jut); % lower right serif +else: rt x4= hround 5.3u; fi +pickup crisp.nib; filldraw stroke z3e--z4e; % bar +penlabels(1,2,3,4,11,12,13,14); endchar; + + +ecchar "The ligature ff"; +beginchar(oct"033",10.5u#+2letter_fit#,asc_height#,0); +italcorr asc_height#*slant+if serifs:flare#-.25u# else: 1.25u# fi; +normal_adjust_fit(0,0); +pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); +pos11(stem',0); rt x11r=hround(w-3u+.5stem'); +pickup fine.nib; numeric bulb_diam, inner_jut; +if serifs: bulb_diam=hround .8[stem,flare]; + pos2(bulb_diam,0); pos12(bulb_diam,0); + rt x2r=hround(rt x11r-stem_corr); lft x12l=hround(w-.75u+.5); + y2+.5bulb_diam=.85[x_height,h+oo]; y12+.5bulb_diam=.9[x_height,h+oo]; + if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; + else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi +else: pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 6.25u; + pos12(5/7[vair,flare],90); y12=y2; rt x12=hround(w+.75u); fi +f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif +f_stroke(11,12,d,e,f,inner_jut,1.25jut); % right stem, arc, terminal, serif +pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; +pos3(bar,90); pos4(bar,90); +rt x4=hround(w-1/3u); +if hefty: pos3'(bar,90); x3'-x1=x4-x11; y3'=y3; + pos4'(bar,90); x4'=x11; y4'=y4; + filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars +else: filldraw stroke z3e--z4e; fi % bar +penlabels(1,2,3,4,11,12); endchar; + + +ecchar "The ligature fl"; +beginchar(oct"035",10u#+2letter_fit#,asc_height#,0); +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +normal_adjust_fit(0,serif_fit#); +pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); +pos11(stem',0); rt x11r=hround(w-2.5u+.5stem'); +pos12(stem',0); x11=x12; bot y12=0; top y11=h; +filldraw stroke z11e--z12e; % right stem +pickup fine.nib; numeric bulb_diam, inner_jut; +if serifs: bulb_diam=hround .8[stem,flare]; + pos2(bulb_diam,0); x2r=x11r-stem_corr; + y2+.5bulb_diam=.9[x_height,h+oo]; + sloped_serif.l(11,12,d,1/3,eps,max(serif_drop,oo)); % erase excess at top + if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; + else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi +else: pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.3u; fi +f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif +pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; +pos3(bar,90); pos4(bar,90); +if serifs: x4=x11; + dish_serif(12,11,e,1/3,inner_jut,f,1/3,jut); % lower right serif +else: rt x4= hround 5.3u; fi +pickup crisp.nib; filldraw stroke z3e--z4e; % bar +penlabels(1,2,3,4,11,12); endchar; + +ecchar "The ligature ffi";% (CMBR) +beginchar(oct"036",15u#+4letter_fit#,asc_height#,0); +italcorr asc_height#*slant-serif_fit#+.5if serifs:stem# else:idot_diam# fi-2u#; +normal_adjust_fit(0,serif_fit#); +pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); +pos11(stem',0); lft x11l=hround(.5w-.5stem'); +pos21(stem',0); rt x21r=hround(w-2.5u+.5stem'); +pos22(stem',0); x21=x22; bot y22=0; +pickup fine.nib; numeric bulb_diam, inner_jut; +if serifs: bulb_diam=hround 1/4[.8[stem,flare],dot_size]; + pos2(bulb_diam,0); x2r=x11r-stem_corr; + pos12(bulb_diam,0); x12r=x21r; + top y21=x_height+min(oo,serif_drop); + y2+.5bulb_diam=.8[x_height,h+oo]; y12=y2; + if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; + else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi +else: bulb_diam=stem'; + pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; + pos12(6/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); + pickup tiny.nib; pos23(bulb_diam,0); pos24(bulb_diam,90); + x23=x21-.5; top y24r=min(2x_height,h+1); top y21=x_height; + if bot y24l-x_height<tiny: y24l:=min(y24r-eps,y21+2tiny); fi + x23=x24; y23=.5[y24l,y24r]; dot(23,24); fi % dot +f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif +f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto +pickup tiny.nib; filldraw stroke z21e--z22e; % right stem +pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; +pos3(bar,90); pos4(bar,90); +if serifs: x4=x21; % bar will overlap upper right serif + sloped_serif.l(21,22,g,1/3,jut,min(oo,serif_drop)); % upper right serif + dish_serif(22,21,h,1/3,inner_jut,i,1/3,jut); % lower right serif +else: rt x4=hround(.5w+2.8u); fi +pickup crisp.nib; +if hefty: pos3'(bar,90); x3'-x1=x4-x11; y3'=y3; + pos4'(bar,90); x4'=x11; y4'=y4; + filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars +else: filldraw stroke z3e--z4e; fi % bar +penlabels(1,2,3,4,11,12,21,22,23,24); endchar; + +ecchar "The ligature ffl"; +beginchar(oct"037",15u#+4letter_fit#,asc_height#,0); +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +normal_adjust_fit(0,serif_fit#); +pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); +pos11(stem',0); lft x11l=hround(.5w-.5stem'); +pos21(stem',0); rt x21r=hround(w-2.5u+.5stem'); +pos22(stem',0); x21=x22; bot y22=0; top y21=h; +filldraw stroke z21e--z22e; % right stem +pickup fine.nib; numeric bulb_diam, inner_jut; +if serifs: bulb_diam=hround .8[stem,flare]; + pos2(bulb_diam,0); x2r=x11r-stem_corr; + pos12(bulb_diam,0); x12r=x21r-stem_corr; + y2+.5bulb_diam=.85[x_height,h+oo]; y12+.5bulb_diam=.9[x_height,h+oo]; + sloped_serif.l(21,22,g,1/3,eps,max(serif_drop,oo)); % erase excess at top + if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; + else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi +else: pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; + pos12(5/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); fi +f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif +f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto +pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; +pos3(bar,90); pos4(bar,90); +if serifs: dish_serif(22,21,h,1/3,inner_jut,i,1/3,jut); % lower right serif + pickup crisp.nib; x4=x21; +else: rt x4=hround(.5w+2.8u); fi +if hefty: pos3'(bar,90); x3'-x1=x4-x11; y3'=y3; + pos4'(bar,90); x4'=x11; y4'=y4; + filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars +else: filldraw stroke z3e--z4e; fi % bar +penlabels(1,2,3,4,11,12,21,22); endchar; + +endinput; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebrligtb.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebrligtb.mf new file mode 100644 index 00000000000..5bfd6413252 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebrligtb.mf @@ -0,0 +1,340 @@ +% ebrligtb.mf +% [= exrligtb.mf, changed by Walter Schmidt, see (CMBR)] +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% (c) Copyright 1990, 1992 Norbert Schwarz +% +% This file is part of the EC Bright fonts version 1.0 +% +% Content: +% +% ligtable and kerning programs for roman style fonts +% +% This file should not be called for monospaced fonts ! +% +% The following ligatures are integrated: +% +% fi +% fl +% ff +% ffi +% ffl +% +% -- +% --- +% -<hyphenchar> +% >> +% << +% `` +% '' +% ,, +% !` and ?` + +version_check(1,0); % |version_check| was introduced in dc1.3 + +ligtable + "f": "i"=:oct"034", + "f"=:oct"033", + "l"=:oct"035", + "'" kern itc#, + "`" kern itc#, + oct"020" kern itc#, + oct"021" kern itc#, + "?" kern itc#, + "!" kern itc#, + ")" kern itc#, + "]" kern itc#; +ligtable + oct"033": % ff + "i"=:oct"036", + "l"=:oct"037", + "'" kern itc#, + "`" kern itc#, + oct"020" kern itc#, + oct"021" kern itc#, + "?" kern itc#, + "!" kern itc#, + ")" kern itc#, + "]" kern itc#; +ligtable + "`": "`"=:oct"020", + oct"020" kern 2u#, + "?" kern 2u#, + "!" kern 2u#; + +ligtable + "'": "'"=:oct"021", + oct"021" kern 2u#, + "?" kern 2u#, + "!" kern 2u#; + +ligtable + "-": "-" =: oct"025", + oct"177" =: oct"177"; % <hyphen><hyphenchar> => <hyphenchar> + +ligtable + oct"025": "-"=:oct"026"; % "---" => emdash + +ligtable "<": "<" =: oct"023"; % "<<" +ligtable ">": ">" =: oct"024"; % ">>" +ligtable ",": "," =: oct"022"; % ",," +ligtable "!": "`" =: oct"275"; % spanish shriek +ligtable "?": "`" =: oct"276"; % spanish query + + +def lig_o_table (expr k) = + "o" kern k, oct"256" kern k, oct"362" kern k, oct"363" kern k, + oct"364" kern k, oct"365" kern k, oct"366" kern k, + oct"367" kern k, oct"370" kern k +enddef; + +def lig_a_table (expr k) = + "a" kern k, oct"240" kern k, oct"241" kern k, oct"340" kern k, + oct"341" kern k, oct"342" kern k, oct"342" kern k, + oct"343" kern k, oct"344" kern k, oct"345" kern k, + oct"346" kern k +enddef; + +def lig_c_table (expr k) = + "c" kern k, oct"242" kern k, oct"243" kern k, oct"347" kern k +enddef; + +def lig_e_table (expr k)= + "e" kern k, oct"245" kern k, oct"246" kern k, oct"350" kern k, + oct"351" kern k, oct"352" kern k, oct"353" kern k +enddef; + +def lig_u_table (expr k)= + "u" kern k, oct"266" kern k, oct"267" kern k, oct"371" kern k, + oct"372" kern k, oct"373" kern k, oct"374" kern k +enddef; + +def lig_A_table (expr k)= + "A" kern k, oct"200" kern k, oct"201" kern k, oct"300" kern k, + oct"301" kern k, oct"302" kern k, oct"303" kern k, + oct"304" kern k, oct"305" kern k, oct"306" kern k +enddef; + +def lig_O_table (expr k)= + "O" kern k, oct"216" kern k, oct"322" kern k, oct"323" kern k, + oct"324" kern k, oct"325" kern k, oct"326" kern k, + oct"327" kern k, oct"330" kern k +enddef; + +def lig_CGQ_table (expr k)= + "C" kern k, "G" kern k, oct"202" kern k, oct"203" kern k, + oct"207" kern k, oct"307" kern k, "Q" kern k +enddef; + +def lig_U_table (expr k)= + "U" kern k, oct"226" kern k, oct"227" kern k, oct"331" kern k, + oct"332" kern k, oct"333" kern k, oct"334" kern k +enddef; + +def lig_cA_table = + "A": oct"200": oct"300": oct"301": oct"302": + oct"303": oct"304": oct"305": +enddef; + +k#:=-.5u#; ku#:=-1u#; kk#:=-1.5u#; kkk#:=-2u#; % four degrees of kerning + +ligtable boundarychar: + oct"020" kern -kk#, oct"021" kern -kk#, oct"022" kern -kk#, + oct"055" kern -kk#, oct"140" kern -kk#, oct"047" kern -kk#; + +ligtable oct"022": + oct"015" kern 2u#, "," kern 2u#, + oct"015": + oct"022" kern 2u#, + "j" kern -kkk#, oct"032" kern -kkk#, "g" kern -ku#, oct"247" kern -ku#, + "y" kern -ku#, oct"270" kern -ku#, oct"375" kern -ku#, + "v" kern kk#, "w" kern ku#, "V" kern kkk#, "W" kern kk#, + "Y" kern kk#, oct"230" kern kk#, oct"335" kern kk#, + lig_O_table(k#), lig_CGQ_table(k#), + boundarychar kern -kk#; + +ligtable oct"020": + oct"140" kern 2u#, oct"020" kern 2u#, boundarychar kern -kk#; + +ligtable oct"021": + oct"047" kern 2u#, oct"021" kern 2u#, boundarychar kern -kk#; + +ligtable oct"024": % ">>" + "." kern kk#, "," kern kk#; + +ligtable + "k": "W" kern kk#, "V" kern kk#, + if serifs: "v": lig_a_table(-u#), fi + "w": lig_e_table(k#), + lig_a_table(k#), + lig_o_table(k#), + lig_c_table(k#); + +ligtable + "P": lig_A_table(kk#), + "y": oct"270": oct"375": % \"y, \'y + lig_o_table(k#), + lig_e_table(k#), + lig_a_table(k#), + "." kern kk#, + "," kern kk#; +ligtable + "F":"V": "W": + if serifs: + "o" kern kk#, + "a" kern kk#, + "e" kern kk#, + "y" kern kk#, + "u" kern kk#, + "r" kern kk#, + "v" kern kk#, + "s" kern kk#, + "c" kern kk#, + "d" kern kk#, + "g" kern kk#, + "m" kern kk#, + "n" kern kk#, + "p" kern kk#, + "w" kern kk#, + "z" kern kk#, + oct"346" kern kk#, + oct"370" kern kk#, + lig_A_table(kkk#), + else: + "o" kern k#, + "a" kern k#, + "e" kern k#, + "y" kern k#, + "u" kern k#, + "r" kern k#, + "v" kern k#, + "s" kern k#, + "c" kern k#, + "d" kern k#, + "g" kern k#, + "m" kern k#, + "n" kern k#, + "p" kern k#, + "w" kern k#, + "z" kern k#, + oct"346" kern k#, + oct"370" kern k#, + lig_A_table(kk#), + fi + "X": lig_O_table(k#), + lig_CGQ_table(k#); + +ligtable "K": if serifs: + "v" kern kk#, + "w" kern k#, + else: + "v" kern k#, + fi + lig_o_table(k#), + lig_CGQ_table(k#); + +ligtable + "T": oct"224": oct"225": % \v{T}, \c{T} + "y" kern if serifs: k# else: kk# fi, + "Y": oct"230": oct"335": % \"Y, \'Y + "e" kern kk#, + "o" kern kk#, + "r" kern kk#, + "a" kern kk#, + "u" kern kk#, + "n" kern kk#, + oct"031" kern kk#, % \i + "c" kern kk#, + "d" kern kk#, + "g" kern kk#, + "p" kern kk#, + "s" kern kk#, + "v" kern kk#, + "w" kern kk#, + "x" kern kk#, + "z" kern kk#, + lig_A_table(kk#); +ligtable + "O": oct"216": oct"322": oct"323": oct"324": oct"325": oct"326": oct"330": + "D": oct"204": oct"320": + "X" kern k#, + "W" kern k#, + lig_A_table(k#), + "V" kern k#, + "Y" kern k#, oct"230" kern k#, oct"335" kern k#; +if serifs: +ligtable + "m": "n": "h": + "W" kern kk#, "V" kern kk#, + oct"253": oct"254": oct"255": oct"361": % \'n, \v{n}, \ng, \~n + "t" kern k#, + lig_u_table(k#), + "b" kern k#, + "y" kern k#, + "v" kern k#, + "w" kern k#; +ligtable + "c": oct"242": oct"243": oct"347": % \'c, \v{c}, \c{c} + "h" kern k#, + "k" kern k#; +fi +ligtable + "o": oct"256": oct"362": oct"363": oct"364": oct"365": oct"366": oct"370": + "b": "p": +if known bx_kerning: % (CMBR) + lig_e_table(-k#), + lig_o_table(-k#), + "d" kern -k#, + lig_c_table(-k#), + "q" kern -k#, +fi + "x" kern k#, + "a": oct"240": oct"340": oct"341": oct"342": oct"343": oct"344": oct"345": + if serifs: + "v" kern k#, + "j" kern u#, + else: + "r" kern k#, + fi + "t": oct"264": oct"265": + "y" kern k#, oct"270" kern k#, oct"375" kern k#, + "u": oct"266": oct"267": oct"371": oct"372": oct"373": oct"374": + "w" kern k#; +ligtable + lig_cA_table + "y" kern if serifs: kk# else: k# fi, + oct"270" kern if serifs: kk# else: k# fi, + oct"375" kern if serifs: kk# else: k# fi, + oct"202": %\k{A} + "v" kern if serifs: kkk# else: k# fi, + "w" kern if serifs: kk# else: k# fi, + lig_c_table(k#), + "d" kern k#, oct"244" kern k#, + oct"236" kern k#, oct"360" kern k#, + lig_e_table(k#), + lig_o_table(k#), + "q" kern k#, + if serifs: "R": oct"217": fi + "t" kern k#, oct"264" kern k#, oct"265" kern k#, + lig_CGQ_table(k#), + lig_O_table(k#), + lig_U_table(k#), + "L": oct"210": oct"211": oct"212": + "T" kern kk#, oct"224" kern kk#, oct"225" kern kk#, + "Y" kern kk#, oct"230" kern kk#, oct"335" kern kk#, + "V" kern kkk#, + "W" kern kkk#; +ligtable "g": "j" kern -k#; % logjam +ligtable "I": "I" kern -k#; % Richard III +ligtable "e": "V" kern kk#; % eV +ligtable oct"241": % \k{a} + if serifs: "g" kern -k# , "p" kern -k#, fi\\ "w" kern k#; +ligtable oct"252": % \l + "'" kern -k# + if not serifs: , + "a" kern k#, oct"241" kern k#, "c" kern k#, oct"242" kern k#, + "d" kern k#, "e" kern k#, oct"246" kern k#, "g" kern k#, + "o" kern k#, oct"363" kern k#, "s" kern k#, oct"261" kern k# + fi; + +endinput; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebrllett.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebrllett.mf new file mode 100644 index 00000000000..e17100bfc6d --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebrllett.mf @@ -0,0 +1,829 @@ +% ebrllett.mf +% [= exrllett.mf, changed by Walter Schmidt, see (CMBR)] +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% (c) Copyright 1990, 1992 Norbert Schwarz +% +% This file is part of the EC Bright fonts version 1.0 +% +% Content: +% +% roman lowercase letters a to z + +version_check(1,0); % |version_check| was introduced in dc1.3 + +ecchar "The letter a"; +beginchar("a",9u#,x_height#,0); +bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); +italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; +adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); +pickup fine.nib; top y3r=h+vround 1.5oo; +if serifs: pos1(flare,180); pos2(hair,180); + pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; + y1=min(bh+.5flare+2vair+2,.9[bh,h]-.5flare); + bulb(3,2,1); % bulb +else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; + pos3(1/8[vair,thin_join],90); + x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; + filldraw stroke term.e(3,1,left,.9,4); fi % terminal +pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,h]; +pos5(stem,0); x5=x4; y5=max(.55bh,2vair); +filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem +pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; +pos7(hround(curve-2stem_corr),180); +lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; +pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; +pos9(thin_join,360); z9l=z5l; +(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); +{{interim superness:=more_super; + filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl +if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); + if hair#+.5stem#>1.5u#: pickup tiny.nib; + pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; + pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; + pos12(shaved_stem,0); x11=x12; top y12=slab+eps; + filldraw z5'l---z10l...z11l{right}--z11r + --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot + else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=1/3bh; + pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; + pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); + pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); + (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); + filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook +else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); + pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; bot y10=0; + filldraw stroke z5'e--z10e; fi % base of stem +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; + +ecchar "The letter b"; +beginchar("b",10u#+serif_fit#,asc_height#,0); +italcorr .5x_height#*slant+min(.5curve#-u#,-.25u#); +adjust_fit(serif_fit#,0); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; +lft x1l=hround(2.5u-.5stem'); top y1=h; +numeric edge; edge=rt x2r; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); +pos4(vair,90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); +rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l),1/3[rt x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; +rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x4,x5r]); +(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x6,x5r]); +filldraw stroke z3e{up}...pulled_arc.e(4,5)&pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); +y2=ypart(((edge,h)--(edge,0))intersectionpoint(z6l{left}...{up}z7l)); +pickup tiny.nib; filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; pos8(hair,0); pos7'(stem,0); +z7'=z2; x8l=x7'l; bot y8=0; +filldraw stroke z7'e--z8e; % point +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +ecchar "The letter c"; +beginchar("c",8u#,x_height#,0); +italcorr x_height#*slant-.2u#; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +pickup fine.nib; pos2(vair',90); pos4(vair',270); +x2=x4=.5(w+u); top y2r=vround(h+1.5oo); bot y4r=-oo; +pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5h; +if serifs: pos1(hair,0); pos0(flare,0); + y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare); + rt x1r=hround(w-.7u); bulb(2,1,0); % bulb + pos5(hair,0); rt x5r=hround(w-.5u); + y5=max(good.y(.5bar_height-.9),y4l+vair'); + (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) + ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal +else: pos1(4/7[vair',flare],80); + rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2,1,right,.8,4); % upper terminal + pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; + if angle direction 1 of p.e>75: + p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal +penlabels(0,1,2,3,4,5); endchar; + +ecchar "The letter d"; +beginchar("d",10u#+serif_fit#,asc_height#,0); +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(0,serif_fit#); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); top y1=h; +numeric edge; edge=lft x2l; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...pulled_arc.e(4,5) + & pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); +pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif +penlabels(0,1,2,3,4,5,6,7); endchar; + +ecchar "The letter e"; +beginchar("e",7.25u#+max(.75u#,.5curve#),x_height#,0); +italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); +adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); +numeric left_curve,right_curve; +left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; +if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; pos1(right_curve,0); +pos2(vair,90); pos3(left_curve,180); +y1=good.y bar_height; top y2r=h+vround 1.5oo; y0l=bot y1; +rt x1r=hround min(w-.5u,w-u+.5right_curve); +lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; +if serifs: pos4(vair',270); pos5(hair,360); + y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; + (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal +else: pos4(vair,270); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,270); z4=z4'; + pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke term.e(4',5,right,1,4); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: + x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +penlabels(0,1,2,3,4,5); endchar; + +ecchar "The letter f"; +beginchar("f",5.5u#,asc_height#,0); +italcorr asc_height#*slant+if serifs:flare#-.25u# else: 1.25u# fi; +adjust_fit(stem_shift#,if monospace: .5u# else:-stem_shift# fi); +pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); +pickup fine.nib; numeric bulb_diam; +if serifs: bulb_diam=hround .8[stem,flare]; + pos2(bulb_diam,0); y2+.5bulb_diam=.9[x_height,h+oo]; + if monospace: rt x2r=hround(w-.5u)+1 else: lft x2l=hround(w-.75u+.5) fi; +else: pos2(5/7[vair,flare],90); top y2r=h; + rt x2=hround(if monospace:w-.5u else:w+.75u fi); fi +f_stroke(1,2,a,b,c,jut,if not monospace:1.25fi\\ jut); % stem, terminal, serif +pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; +pos3(bar,90); pos4(bar,90); +rt x4=hround(w-if monospace:.75u+1 else:1/3u fi); +filldraw stroke z3e--z4e; % bar +penlabels(1,2,3,4); endchar; + +iff not variant_g: ecchar "The letter g"; +beginchar("g",9u#,x_height#,desc_depth#); +italcorr x_height#*slant+.25u#; +adjust_fit(0,0); +numeric light_vair,light_curve,loop_top,loop_side; +light_vair=Vround(.5[thin_join,vair]+vair_corr); +light_curve=max(fine.breadth,hround(curve-3stem_corr)); +loop_top=Vround .77[vair,fudged.stem]; +loop_side=hround .64[vair,fudged.stem]; +pickup fine.nib; pos1(light_vair,90); +pos2(light_curve,180); pos3(light_vair,270); +pos4(light_curve,360); pos11(loop_top,90); +y11r=good.y(y11r+.15bar_height-y11); x1=x3=.5[x2,x4]; y2=y4=.5[y1,y3]; +lft x2r=hround(1.75u-.5light_curve); rt x4r=hround(w-2.75u+.5light_curve); +top y1r=h+oo; y3r=good.y(y3r+.27[top y11r,bot y1l]-y3); +filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3); % left half of bowl +filldraw stroke pulled_arc.e(3,4) & pulled_arc.e(4,1); % right half of bowl +x0=superness[x1r,x4r]; y0=superness[y4r,y1r]; % NE point on the super bowl +x8'=superness[x3r,x2r]; y8'=superness[y2r,y3r]; % SW point on the super bowl +x8''=superness[x3,x2]; y8''=superness[y2,y3]; +pos0(thin_join,angle(z0-z8')+90); +pos8(thin_join,angle(z0-z8')-90); z8=.618[z8',z8'']; +if serifs: pos5(vair,90); + pos6(hair,0); pos7(.5[hair,flare],0); x5=.75[x0,x6]; top y5r=h+o; + rt x6r=hround(w-.25u); y6+(.5[hair,flare])/2=.95[bar_height,h]+oo; + filldraw stroke z0e..{right}z5e; bulb(5,6,7); % ear +else: pos5(vair',100); top y5r=h+oo; + rt x5l=hround(w-.25u); y5l:=good.y y5l; + filldraw z0l{z5-z0}..z5l--z5r{left}..{curl 1}z0r--cycle; fi % ear +pos10(loop_top,90); x10=x8+.75u; y10=y11; +pos12(loop_side,0); pos13(light_vair,-90); +pos14(loop_side,-180); pos10'(.5[thin_join,vair],-270); +rt x12r=hround max(w-1.25u+.5loop_side,w-.5u); y12=y14=.5[y11,y13]; +x11=x13=max(.5w,x10+eps); bot y13r=-d-oo-1; x14=w-x12; z10'l=z10l; +filldraw stroke z8e{z8-z0}..z10e---z11e; % link +filldraw stroke {{interim superness:=hein_super; super_arc.e(11,12)}} + & super_arc.e(12,13) & super_arc.e(13,14) & super_arc.e(14,10'); % loop +penlabels(0,1,2,3,4,5,6,7,8,10,11,12,13,14); labels(8',8''); endchar; + +iff variant_g: ecchar "Variant letter g"; +beginchar("g",10u#+serif_fit#,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi; +adjust_fit(0,serif_fit# if serifs: -.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); +numeric edge; edge=lft x2l; +path edge_path; edge_path=(edge,h)--(edge,0); +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),2/3[lft x2,edge]); y3=bar_height; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=vround 1/3vair; +lft x7l=edge; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{left}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{right}...{up}z7e; % bowl +y1=ypart(edge_path intersectionpoint(z3l{up}...{left}z4l)); +y0=ypart(edge_path intersectionpoint(z7l{down}...{left}z6l)); +pickup tiny.nib; bot y2=if serifs: -.25d else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; +pos8(hround(hair-stem_corr),0); pos7'(stem',0); +z7'=z1; x8r=x7'r; top y8=h+oo; +filldraw stroke z7'e--z8e; % point +if serifs: pickup tiny.nib; + pos9(vair,-90); x9=.5[x2,x10]; bot y9r=-d-o-1; + pos10(hair,-180); lft x10r=hround u; y10=-.75d+.5flare; + pos11(flare,-180); z11r=z10r; + bulb(9,10,11); filldraw stroke super_arc.e(2,9); % tail +else: pickup fine.nib; pos2'(stem,0); z2'=z2; + z2''r=z2'r; z2''=z2'; z2''l=(x2'l,0); + pos9(vair,-90); x9=4.5u; bot y9r=-d-o-1; + pos10(.5[vair,flare],-90); lft x10=hround 1.25u; + y10r=good.y -5/6d; y10l:=good.y y10l; + filldraw stroke z2'e..z2''e&super_arc.e(2'',9) + & term.e(9,10,left,.9,4); fi % tail +penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; + +ecchar "The letter h"; +beginchar("h",10u#,asc_height#,0); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos1'(stem',0); pos2'(stem',0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=h; bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +penlabels(1,2,3,4); endchar; + +ecchar "The letter i";% (CMBR) +beginchar("i",5u#,min(asc_height#,10/7x_height#+.5idot_diam#),0); +italcorr h#*slant-serif_fit# + .5idot_diam# -2u#; +adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; +filldraw stroke z1e--z2e; % stem +pos3(idot_diam,0); pos4(idot_diam,90); +if serifs: x3r=max(x1r,hround(x1+.5idot_diam-.2jut)-.5tiny) +else: x3=x1-.5 fi; +top y4r=h; +if bot y4l-top y1<slab: y4l:=min(y4r-eps,y1+tiny+slab); fi +x3=x4; y3=.5[y4l,y4r]; dot(3,4); % dot +if serifs or monospace: + sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif +fi +if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif +penlabels(1,2,3,4); endchar; + +ecchar "The letter j";% (CMBR) +beginchar("j",5.5u#,min(asc_height#,10/7x_height#+.5idot_diam#),desc_depth#); +italcorr h#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+2stem_shift# if monospace:+\\.5u# fi, + serif_fit#-2stem_shift# if monospace:-.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +rt x1r=hround(.5w+.25u+.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=-1/3d; +filldraw stroke z1e--z2e; % stem +pos3(idot_diam,0); pos4(idot_diam,90); +x3r=x1r; top y4r=h; +if bot y4l-top y1<slab: y4l:=min(y4r-eps,y1+tiny+slab); fi +x3=x4; y3=.5[y4l,y4r]; dot(3,4); % dot +if serifs: sloped_serif.l(1,2,a,1/3,1.1jut,serif_drop); % upper serif + pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); + x5=.5[x2,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; + if monospace: lft x6r=0 else: z6r=z7r; rt x7l=floor .75u fi; + (x,y5r)=whatever[z5l,z2l]; x5r:=max(x,.5[x6r,x5]); + filldraw stroke z2e{down}...z5e{left}; bulb(5,6,7); % arc and bulb +else: pickup fine.nib; pos2'(stem',0); z2'=z2; + pos6(.2[vair,stem'],-90); pos7(vair,-90); + lft x7r=hround -.75u; bot y7r=vround 5/6(-d-oo); + (x,y7l)=whatever[z7r,z3]; x7l:=x; + z5r=z2'r; (x2'l,y5l)=whatever[z7l,z5r]; x5l=x2'l; y5=y5r; + x6r=.5[x7r,x5r]; x6l:=.5[x7l,x5l]; bot y6r=-d-oo; + filldraw stroke z2'e..{down}z5e & super_arc.e(5,6) + & z6e{left}..z7e; fi % arc and terminal +penlabels(1,2,3,4,5,6,7); endchar; + +ecchar "The letter k"; +beginchar("k",9.5u#,asc_height#,0); +italcorr x_height#*slant-.2u#; +adjust_fit(serif_fit#,serif_fit#); pickup tiny.nib; +numeric right_jut,stem[],alpha[]; +stem1=max(tiny.breadth,hround(fudged.stem-stem_corr)); +stem2=max(tiny.breadth,hround(fudged.stem-2stem_corr)); +stem3=max(tiny.breadth,hround(fudged.hair if hefty:-\\4stem_corr fi)); +stem4=max(tiny.breadth,hround(fudged.stem-3stem_corr)); +if serifs: right_jut=.6jut; else: right_jut=.4tiny; fi +pos1(stem1,0); pos2(stem2,0); top y1=h; bot y2=0; +lft x1l=lft x2l=hround(2.5u-.5stem1); +top y3=x_height; rt x3r=hround(r-letter_fit-.7u-right_jut)+eps; +bot y6=0; rt x6r=hround(r-letter_fit-.3u-right_jut)+eps; +x4=x11=x1; y4=.7bar_height; y11=y3; +alpha1=diag_ratio(1,.5(stem3-tiny),y3-y4,x3r-x4); +alpha2=diag_ratio(1,.5(stem4-tiny),y11-y6,x6r-x1); +penpos3(alpha1*(stem3-tiny),0); penpos4(whatever,-90); +z5=.5[z5l,z5r]; penpos6(alpha2*(stem4-tiny),0); +forsuffixes $=l,r: y3'$=x_height; y6'$=0; z4$=z3'$+whatever*(z3-z4); + z5$=z6'$+whatever*(z11-z6)=whatever[z3,z4]; endfor +z3'r=z3r+penoffset z3-z4 of currentpen+whatever*(z3-z4); +% we have also |z3'l=z3l+penoffset z4-z3 of currentpen+whatever*(z3-z4)|;\] +z6'r=z6r+penoffset z11-z6 of currentpen+whatever*(z11-z6); +z6'l=z6l+penoffset z6-z11 of currentpen+whatever*(z11-z6); +fill z4r--diag_end(4r,3'r,1,.5,3'l,4l)--z4l--cycle; % upper diagonal +fill z5l--diag_end(5l,6'l,.5,1,6'r,5r)--z5r--cycle; % lower diagonal +pos0(stem1,0); pos0'(stem2,0); y0=y0'; x0=x1; x0'=x2; +rt z0r=whatever[z3,z4]; filldraw stroke z1e..z0e--z0'e..z2e; % stem +if serifs: numeric inner_jut; + if rt x2r+jut+.5u+1<=lft x6l-jut: inner_jut=jut; + else: rt x2r+inner_jut+.5u+1=lft x6l-inner_jut; fi + sloped_serif.l(1,0,a,1/3,jut,serif_drop); % upper stem serif + dish_serif(2,0',b,1/3,jut,c,1/3,inner_jut); % lower stem serif + dish_serif(3,4,d,2/3,1.4jut,e,1/2,right_jut)(dark); % upper diagonal serif + dish_serif(6,5,f,1/2,inner_jut,g,1/3,right_jut)(dark);fi % lower diagonal serif +penlabels(0,1,2,3,4,5,6,11); endchar; + +ecchar "The letter l"; +beginchar("l",5u#,asc_height#,0); l_width#:=5u#+2serif_fit#; +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs or monospace: + sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif +fi +if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif +penlabels(1,2); endchar; + +ecchar "The letter m"; +beginchar("m",15u#,x_height#,0); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +numeric shaved_stem; shaved_stem=hround(mfudged.stem-2stem_corr); +pickup tiny.nib; pos1(mfudged.stem,0); pos2(mfudged.stem,0); +pos1'(shaved_stem,0); pos2'(shaved_stem,0); +pos3(mfudged.stem,0); pos5(mfudged.stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; % stem, sic +lft x3l=hround(.5w-.5mfudged.stem); x5-x3=x3-x1; +if not monospace: r:=hround(x5+x1)+r-w; fi % change width for better fit +top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % left arch and middle stem +h_stroke(4,b,5,6); % right arch and right stem +if serifs: sloped_serif.l(1',2',c,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,d,1/3,jut,e,1/3,jut); % lower left serif + dish_serif(4,3,f,1/3,inner_jut,g,1/3,jut); % lower middle serif + dish_serif(6,5,h,1/3,inner_jut,i,1/3,jut); fi % lower right serif +penlabels(1,2,3,4,5,6); endchar; + +ecchar "The letter n"; +beginchar("n",10u#,x_height#,0); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); +pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +penlabels(1,2,3,4); endchar; + +ecchar "The letter o"; +beginchar("o",9u#,x_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +penpos1(vair,90); penpos3(vair',-90); +penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; +y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +penlabels(1,2,3,4); endchar; + +ecchar "The letter p"; +beginchar("p",10u#+serif_fit#,x_height#,desc_depth#); +italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); +adjust_fit(serif_fit#,0); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; +lft x1l=hround(2.5u-.5stem'); top y1=h if serifs: +min(oo,serif_drop) fi; +numeric edge; edge=rt x2r; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); +pos4(vair',90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); +rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l), 1/3[rt x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; +rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{left}...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); +pickup tiny.nib; bot y2=-d; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; pos8(hair,0); pos7'(stem,0); +z7'=z2; x8l=x7'l; bot y8=0; +filldraw stroke z7'e--z8e; % point +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +ecchar "The letter q"; +beginchar("q",10u#+serif_fit#,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi; +adjust_fit(0,serif_fit# if serifs: -.5u# fi); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); +numeric edge; edge=lft x2l; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair',90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),2/3[lft x2,edge]); y3=bar_height; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; y7=min(y3,y6+y4-y3+.6vair); +lft x7l=min(lft x7l-(rt x7r-tiny.rt x2r),1/3[lft x2,edge]); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{left}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{right}...{up}z7e; % bowl +y1=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z6l{right}...{up}z7l)); +pickup tiny.nib; bot y2=-d; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; +pos8(hround(hair-stem_corr),0); pos7'(stem',0); +z7'=z1; x8r=x7'r; top y8=h+oo; +filldraw stroke z7'e--z8e; % point +if serifs: dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +ecchar "The letter r"; +numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#]; +define_whole_blacker_pixels(r_flare); +beginchar("r",if serifs:max(7u#,5.5u#+r_flare#) else:6.5u# fi,x_height#,0); +italcorr x_height#*slant if not serifs: +.25u# fi; +adjust_fit(serif_fit#,0); +pickup fine.nib; top y4r=h+oo; +if serifs: pos4(vair,90); pos5(hair,0); + x4=w-max(1.75u,.25u+r_flare); + rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,h]+oo; + pos6(r_flare,0); bulb(4,5,6); % bulb +else: pos4(r_flare,90); rt x4=hround(w-.25u); fi +pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height; +filldraw stroke z3e{up}...{right}z4e; % arc +pickup tiny.nib; pos0(stem',0); pos2(stem',0); +pos1(hround(stem-3stem_corr),0); top y1=h+min(oo,serif_drop); +pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l; +lft x1l=hround(2.5u-.5stem'); bot y2=0; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi % lower serif +penlabels(1,2,3,4,5,6); endchar; + +ecchar "The letter s"; +beginchar("s",7.1u#,x_height#,0); +italcorr x_height#*slant-if serifs:.55u# else:.3u# fi; +adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi); +numeric theta; theta=90-angle(40u,h); slope:=-h/40u; % angle at middle +numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi; +numeric ess'; ess'=max(fine.breadth,ess); +pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100); +pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w; +top y2l=h+vround 1.5oo; bot y7r=-oo; +y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess'); +lft x3l=hround .6u; rt x6r=hround(w-.6u); +x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine; +ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; +ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; +interim superness:=more_super; +filldraw stroke super_arc.e(2,3) & z3e{down} + ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke +if serifs: pos1(hair,180); pos8(hair,180); + rt x1l=hround(w-1.05u); lft x8r=hround .6u; + bot y1=min(bot y2r,vround 1/5[top y5r,h]); + top y8=max(top y7l,vround 5/6 bot y4l); + filldraw stroke z1e{up}....{left}z2e; % upper arc + filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e; % lower arc + path upper_arc, lower_arc; + upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8; + pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0); + x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r; + x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8; + numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1')); + filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle; % upper barb + t:=xpart(lower_arc intersectiontimes(z9r--z8')); + filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle; % lower barb +else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100); + x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u; + top y1l=vround(.93h+1.5oo); bot y8r=vround .1h-oo; + filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal + filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal +penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); endchar; + +ecchar "The letter t"; +beginchar("t",6u#+max(u#,.5stem#), + min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),0); +italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; +adjust_fit(0,if serifs: 0 else: -.5u# fi); +numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); +pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180); +lft x2r=lft x3r=hround(2.5u-.5shaved_stem); +y2=y8; y3=max(.5bar_height,2vair); +pickup crisp.nib; pos8(bar,90); +rt x8=hround(w-1.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l; +if hefty: pos7(bar,90); + filldraw stroke z7e--z8e; % crossbar + pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0); + rt x1r=fine.rt x2l; top y1=h; + penpos2'(x1r-x1l,0); x2'=x1; y2'=y2; + filldraw stroke z1e--z2'e; % upper terminal +else: pos7(vair,90); pos1(hair,0); + rt x1r=fine.rt x2l; top y1=h; + filldraw z1l{down}...{left}z7r--z7l--z8l + --z8r--(x1r,y8r)--z1r--cycle; fi % upper terminal and crossbar +pickup fine.nib; interim superness:=more_super; +pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u); +if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l]; + (x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]); + filldraw stroke z2e..super_arc.e(3,4)...{up}z5e; % stem and hook + pickup crisp.nib; pos6(hair,0); pos5'(hair,0); + x6=x5=x5'; top y6=max(vround .75bar_height,top y5); y5=y5'; + filldraw stroke z5'e--z6e; % terminal +else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height]; + x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair; + filldraw stroke z2e..super_arc.e(3,4); % stem and hook + path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal + if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): + filldraw stroke z4e{right}...{up}z5e; + else: filldraw p; fi fi; +penlabels(1,2,3,4,5,6,7,8); endchar; + +ecchar "The letter u"; +beginchar("u",10u#,x_height#,0); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; +if light_vair<fine.breadth: light_vair:=fine.breadth; fi +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos3(stem,0); pos4(stem',0); +lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; +if serifs: top y1=h+min(oo,serif_drop); bot y4=-min(oo,serif_drop); +else: top y1=h; bot y4=0; fi +pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; +penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; +penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); +y6=y0=2/3bar_height; +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e..z0e--z0'e..z4e; % right stem +pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; +(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); +filldraw stroke {{interim superness:=hein_super; + pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif + sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif + sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif +penlabels(1,2,3,4,5); labels(6); endchar; + +ecchar "The letter v"; +beginchar("v",if serifs: 9.5u# else:9u# fi,x_height#,0); +italcorr x_height#*slant+.25u#; +adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); +numeric left_stem,right_stem,outer_jut,alpha; +left_stem=fudged.stem-stem_corr; +right_stem=min(fudged.hair if hefty:-2stem_corr fi,left_stem); +outer_jut=.75jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4=h; +x2-x1=x4-x3; x2l+apex_corr=x3l; y2=y3=-apex_oo; +alpha=diag_ratio(2,right_stem,y1-y2,x4r-x1l-apex_corr); +penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); +penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +if y0>notch_cut: y0:=notch_cut; + fill z0+.5right{up}...{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} + ...{down}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+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif + dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); fi % right serif +penlabels(0,1,2,3,4); endchar; + +ecchar "The letter w"; +beginchar("w",13u#,x_height#,0); +italcorr x_height#*slant+.25u#; +adjust_fit(serif_fit#,serif_fit#); +numeric stem[],outer_jut,upper_notch,alpha,mid_corr; +outer_jut=.7jut; x1l=w-x8r=l+letter_fit+outer_jut+.25u; +stem1=fudged.stem-stem_corr; +stem4=min(fudged.hair if hefty:-2stem_corr fi,stem1); +stem2=if hefty:.1[vair,stem4] else: stem4 fi; +stem3=max(stem2,stem1-3stem_corr); +x2-x1=x4-x3=x6-x5=x8-x7; x2l+apex_corr=x3l; x6l+apex_corr=x7l; +y1=y8=h; y2=y3=y6=y7=-apex_oo; +y4=y5=if monospace: vround .6 fi\\ h; upper_notch=y4-notch_cut; +mid_corr=if monospace or hefty:-.3apex_corr else: .5jut fi; +alpha=diag_ratio(4,stem2-stem3+stem4,y1-y2,x8r-x1l+mid_corr-2apex_corr); +penpos1(alpha*stem1,0); penpos2(alpha*stem1,0); +penpos3(alpha*stem2,0); penpos4(alpha*stem2,0); +penpos5(alpha*stem3,0); penpos6(alpha*stem3,0); +penpos7(alpha*stem4,0); penpos8(alpha*stem4,0); +x4l-x1l=floor(x4l-x1l+.5(x5r+mid_corr-x4r)); % |x5r| $\approx$ |x4r+mid_corr| +z23=whatever[z1r,z2r]=whatever[z3l,z4l]; +z45=whatever[z3r,z4r]=whatever[z5l,z6l]; +z67=whatever[z5r,z6r]=whatever[z7l,z8l]; +fill diag_end(1l,2l,1,1,3r,4r){z4-z3} + ...if y45<upper_notch:(x45,upper_notch)+.5left{up} + --(x45,upper_notch)+.5right{down} else: z45&z45 fi + ...{z6-z5}diag_end(5l,6l,1,1,7r,8r)--diag_end(7r,8r,1,1,8l,7l){z7-z8} + ...if y67>notch_cut:(x67,notch_cut)+.5right{down} + --(x67,notch_cut)+.5left{up} else: z67&z67 fi + ...{z5-z6}special_diag_end(6,5,4,3){z3-z4} + ...if y23>notch_cut:(x23,notch_cut)+.5right{down} + --(x23,notch_cut)+.5left{up} else: z23&z23 fi + ...{z1-z2}diag_end(2r,1r,1,1,1l,2l)--cycle; % diagonals +if serifs: numeric inner_jut[]; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(5,6); prime_points_inside(8,7); + if monospace: inner_jut1=inner_jut4=1.5jut; + elseif hefty: inner_jut1=inner_jut4=jut; + else: fill diag_end(6r,5r,1,1,5l,6l)--.9[z5l,z6l] + ..{z5-z6}.1[z5r,z6r]--cycle; % middle stem + inner_jut2=.7inner_jut1; inner_jut4=1.1inner_jut3; + if rt x1'r+jut+.5u+1<=lft x5'l-.7jut: inner_jut1=jut; + else: rt x1'r+inner_jut1+.5u+1=lft x5'l-inner_jut2; fi + if rt x5'r+jut+.5u+1<=lft x8'l-1.1jut: inner_jut3=jut; + else: rt x5'r+inner_jut3+.5u+1=lft x8'l-inner_jut4; fi + dish_serif(5',6,e,1/3,inner_jut2,f,1/2,inner_jut3); fi % middle serif + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut1); % left serif + dish_serif(8',7,c,.6,inner_jut4,d,1/2,outer_jut)(dark); fi % right serif +penlabels(0,1,2,3,4,5,6,7,8,23,45,67); endchar; + +ecchar "The letter x"; +beginchar("x",if serifs:9.5u# else:9u# fi,x_height#,0); +italcorr x_height#*slant-.05u#; +adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); +numeric stem[],outer_jut,xjut,alpha[]; +stem1=fudged.stem-4stem_corr; stem2=min(fudged.hair,stem1); +outer_jut=.75jut; xjut= if serifs: (stem1-stem2)/4 else: 0 fi; +x1l=l+letter_fit+.1u+outer_jut; x2r=r-letter_fit-.3u-outer_jut-xjut; +x3l=l+letter_fit+outer_jut+xjut; x4r=r-letter_fit-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$'=.2[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+jut+.5u+1<=lft x2'l-jut-xjut: inner_jut1=jut; + else: rt x1'r+inner_jut1+.5u+1=lft x2'l-inner_jut1-xjut; fi + if rt x3'r+jut+.5u+1<=lft x4'l-jut-xjut: inner_jut2=jut; + else: rt x3'r+inner_jut2+.5u+1=lft x4'l-inner_jut2-xjut; fi + dish_serif(1',4,a,1/3,outer_jut,b,2/3,inner_jut1); % upper left serif + dish_serif(4',1,c,2/3,inner_jut2,d,1/3,outer_jut); % lower right serif + dish_serif(2',3,e,2/3,inner_jut1+xjut, + f,1/2,outer_jut+xjut)(dark); % upper right serif + dish_serif(3',2,g,1/2,outer_jut+xjut, + h,2/3,inner_jut2+xjut)(dark); fi % lower left serif +penlabels(0,1,2,3,4,12,13,24,34); endchar; + +ecchar "The letter y"; +beginchar("y",if serifs:9.5u# else:9u# fi,x_height#,desc_depth#); +italcorr x_height#*slant+.25u#; +adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); +numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; +left_stem=fudged.stem-stem_corr; +right_stem=fudged.hair if hefty:-2stem_corr fi; +bot_stem=fudged.hair if hefty:-8stem_corr fi; +bot_vair=Vround(if serifs: vair else:.5[vair,bot_stem] fi); +outer_jut=.75jut; +x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4r=h; y2=y3=0; x2l=x3l; +numeric alpha,alpha[]; x9=3u; y9=bot_vair-d-oo; +alpha1=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-apex_corr); +alpha2=diag_ratio(1,bot_stem,y1-y9,x4r-x9); +if alpha1<alpha2: x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1; +else: alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); +if y0>notch_cut: y0:=notch_cut; + fill z0+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) + --z3r--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0+.5left--cycle; % left and right diagonals +else: fill z0--diag_end(0,4l,1,1,4r,3r)--z3r--z2l + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals +penpos5(alpha*bot_stem,0); z5r=whatever[z3r,z4r]; y5-.5vair=-.5d; +if serifs: numeric light_bulb; light_bulb=hround 7/8[hair,flare]; clearpen; + penpos6(vair,-90); penpos7(hair,-180); penpos8(light_bulb,-180); + x6=2u; y6r=-d-oo; y8-.5light_bulb=-.85d; x8r=hround .35u; + fill stroke z3e---z5e...{left}z6e; bulb(6,7,8); % arc and bulb + numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(4,3); + if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif + dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif +else: penpos6(bot_vair,-90); x6=2.5u; y6r=-d-oo; + fill stroke z3e---z5e...{left}z6e; % arc + pickup fine.nib; pos6'(bot_vair,-90); z6'=z6; + pos7(2/3[bot_vair,flare],-85); + lft x7l=hround u; bot y7r=vround-.96d-oo; y7l:=good.y y7l; + filldraw stroke term.e(6',7,left,1,4); fi % arc and terminal +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +ecchar "The letter z"; +beginchar("z",8u#,x_height#,0); +italcorr x_height#*slant-.5serif_fit#-.3u#; +adjust_fit(0,.5serif_fit#); +numeric arm_thickness[],z_stem; +if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; + z_stem=.6[vair,stem]; +else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi +pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u; +top y1=h; y2=min(y1,h-2/3arm_thickness1); +bot y4=0; y3=max(y4,2/3arm_thickness2); +numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); +penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); +penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); +pair delta; delta=penoffset z3-z2 of currentpen; +fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l + ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r + ---cycle; % diagonal +pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); +top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; +arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak +pos7(arm_thickness2,-90); pos8(hair,0); +bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps; +arm(7,8,b,beak_darkness,.6beak_jut); % lower arm and beak +penlabels(1,2,3,4,5,6,7,8); endchar; + + +endinput; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebrlwest.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebrlwest.mf new file mode 100644 index 00000000000..cee82db50f9 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebrlwest.mf @@ -0,0 +1,1163 @@ +% ebrlwest.mf +% [= exrlwest.mf, changed by Walter Schmidt, see (CMBR)] +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% (c) Copyright 1990, 1992 Norbert Schwarz +% +% This file is part of the EC Bright fonts version 1.0 +% +% Content: +% +% lowercase accented letters ("western part") +% +% oct"340" .. oct"377" +% +% oct"340" a with gravis +% oct"341" a with acute +% oct"342" a with circumflex +% oct"343" a with tilde +% oct"344" a with umlaut +% oct"345" a with ring +% oct"346" ae +% oct"347" c with cedilla +% +% oct"350" e with gravis +% oct"351" e with acute +% oct"352" e with circumflex +% oct"353" e with umlaut +% oct"354" i with gravis +% oct"355" i with acute +% oct"356" i with circumflex +% oct"357" i with umlaut +% +% oct"360" edh (icelandic) +% oct"361" n with tilde +% oct"362" o with gravis +% oct"363" o with acute +% oct"364" o with circumflex +% oct"365" o with tilde +% oct"366" o with umlaut +% oct"367" oe +% +% oct"370" o with / +% oct"371" u with gravis +% oct"372" u with acute +% oct"373" u with circumflex +% oct"374" u with umlaut +% oct"375" y with acute +% oct"376" thorn +% oct"377" sharp s + +version_check(1,0); % |version_check| was introduced in dc1.3 + +ecchar "The letter a with gravis"; +beginchar_twice(oct"340",9u#,x_height#+acc_height#,0); +bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); +italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; +adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); +pickup fine.nib; top y3r=x_height+vround 1.5oo; +if serifs: pos1(flare,180); pos2(hair,180); + pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; + y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare); + bulb(3,2,1); % bulb +else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; + pos3(1/8[vair,thin_join],90); + x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; + filldraw stroke term.e(3,1,left,.9,4); fi % terminal +pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height]; +pos5(stem,0); x5=x4; y5=max(.55bh,2vair); +filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem +pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; +pos7(hround(curve-2stem_corr),180); +lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; +pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; +pos9(thin_join,360); z9l=z5l; +(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); +{{interim superness:=more_super; + filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl +if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); + if hair#+.5stem#>1.5u#: pickup tiny.nib; + pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; + pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; + pos12(shaved_stem,0); x11=x12; top y12=slab+eps; + filldraw z5'l---z10l...z11l{right}--z11r + --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot + else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=1/3bh; + pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; + pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); + pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); + (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); + filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook +else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); + pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; bot y10=0; + filldraw stroke z5'e--z10e; fi % base of stem +hpos_corr=u; put_gravis; +repeat_once; +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; + +ecchar "The letter a with acute"; +beginchar_twice(oct"341",9u#,x_height#+acc_height#,0); +bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); +italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; +adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); +pickup fine.nib; top y3r=x_height+vround 1.5oo; +if serifs: pos1(flare,180); pos2(hair,180); + pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; + y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare); + bulb(3,2,1); % bulb +else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; + pos3(1/8[vair,thin_join],90); + x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; + filldraw stroke term.e(3,1,left,.9,4); fi % terminal +pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height]; +pos5(stem,0); x5=x4; y5=max(.55bh,2vair); +filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem +pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; +pos7(hround(curve-2stem_corr),180); +lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; +pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; +pos9(thin_join,360); z9l=z5l; +(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); +{{interim superness:=more_super; + filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl +if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); + if hair#+.5stem#>1.5u#: pickup tiny.nib; + pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; + pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; + pos12(shaved_stem,0); x11=x12; top y12=slab+eps; + filldraw z5'l---z10l...z11l{right}--z11r + --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot + else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=1/3bh; + pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; + pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); + pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); + (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); + filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook +else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); + pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; bot y10=0; + filldraw stroke z5'e--z10e; fi % base of stem +hpos_corr=-u; put_accent; +repeat_once; +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; + +ecchar "The letter a with circumflex"; +beginchar(oct"342",9u#,x_height#+acc_height#,0); +bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); +italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; +adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); +pickup fine.nib; top y3r=x_height+vround 1.5oo; +if serifs: pos1(flare,180); pos2(hair,180); + pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; + y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare); + bulb(3,2,1); % bulb +else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; + pos3(1/8[vair,thin_join],90); + x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; + filldraw stroke term.e(3,1,left,.9,4); fi % terminal +pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height]; +pos5(stem,0); x5=x4; y5=max(.55bh,2vair); +filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem +pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; +pos7(hround(curve-2stem_corr),180); +lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; +pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; +pos9(thin_join,360); z9l=z5l; +(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); +{{interim superness:=more_super; + filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl +if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); + if hair#+.5stem#>1.5u#: pickup tiny.nib; + pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; + pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; + pos12(shaved_stem,0); x11=x12; top y12=slab+eps; + filldraw z5'l---z10l...z11l{right}--z11r + --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot + else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=1/3bh; + pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; + pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); + pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); + (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); + filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook +else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); + pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; bot y10=0; + filldraw stroke z5'e--z10e; fi % base of stem +% the accent +lowercase_hat(x3,oo,14,15,16,17,18); +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18); endchar; + + +ecchar "The letter a with tilde"; +beginchar(oct"343",9u#,x_height#+acc_height#,0); +bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); +italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; +adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); +pickup fine.nib; top y3r=x_height+vround 1.5oo; +if serifs: pos1(flare,180); pos2(hair,180); + pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; + y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare); + bulb(3,2,1); % bulb +else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; + pos3(1/8[vair,thin_join],90); + x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; + filldraw stroke term.e(3,1,left,.9,4); fi % terminal +pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height]; +pos5(stem,0); x5=x4; y5=max(.55bh,2vair); +filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem +pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; +pos7(hround(curve-2stem_corr),180); +lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; +pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; +pos9(thin_join,360); z9l=z5l; +(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); +{{interim superness:=more_super; + filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl +if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); + if hair#+.5stem#>1.5u#: pickup tiny.nib; + pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; + pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; + pos12(shaved_stem,0); x11=x12; top y12=slab+eps; + filldraw z5'l---z10l...z11l{right}--z11r + --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot + else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=1/3bh; + pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; + pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); + pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); + (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); + filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook +else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); + pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; bot y10=0; + filldraw stroke z5'e--z10e; fi % base of stem +% the accent +lowercase_tilde(0,0,14,15,16,17,18); +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18); endchar; + + + +ecchar "The letter a with umlaut"; +beginchar(oct"344",9u#,lc_trema_height#,0); +bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); +italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; +adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); +pickup fine.nib; top y3r=x_height+vround 1.5oo; +if serifs: pos1(flare,180); pos2(hair,180); + pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; + y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare); + bulb(3,2,1); % bulb +else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; + pos3(1/8[vair,thin_join],90); + x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; + filldraw stroke term.e(3,1,left,.9,4); fi % terminal +pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height]; +pos5(stem,0); x5=x4; y5=max(.55bh,2vair); +filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem +pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; +pos7(hround(curve-2stem_corr),180); +lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; +pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; +pos9(thin_join,360); z9l=z5l; +(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); +{{interim superness:=more_super; + filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl +if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); + if hair#+.5stem#>1.5u#: pickup tiny.nib; + pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; + pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; + pos12(shaved_stem,0); x11=x12; top y12=slab+eps; + filldraw z5'l---z10l...z11l{right}--z11r + --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot + else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=1/3bh; + pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; + pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); + pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); + (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); + filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook +else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); + pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; bot y10=0; + filldraw stroke z5'e--z10e; fi % base of stem +% the accent +% lowercase_umlaut(0,0,14,15,16,17); +lowercase_umlaut(-.3u,0,14,15,16,17); % (CMBR) +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17); endchar; + +ecchar "The letter a with ring"; +beginchar(oct"345",9u#,x_height#+acc_height#,0); +bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); +italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; +adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); +pickup fine.nib; top y3r=x_height+vround 1.5oo; +if serifs: pos1(flare,180); pos2(hair,180); + pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; + y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare); + bulb(3,2,1); % bulb +else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; + pos3(1/8[vair,thin_join],90); + x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; + filldraw stroke term.e(3,1,left,.9,4); fi % terminal +pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height]; +pos5(stem,0); x5=x4; y5=max(.55bh,2vair); +filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem +pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; +pos7(hround(curve-2stem_corr),180); +lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; +pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; +pos9(thin_join,360); z9l=z5l; +(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); +{{interim superness:=more_super; + filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl +if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); + if hair#+.5stem#>1.5u#: pickup tiny.nib; + pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; + pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; + pos12(shaved_stem,0); x11=x12; top y12=slab+eps; + filldraw z5'l---z10l...z11l{right}--z11r + --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot + else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; y10=1/3bh; + pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; + pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); + pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); + (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); + filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook +else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); + pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; + pos10(shaved_stem,0); x10=x5'; bot y10=0; + filldraw stroke z5'e--z10e; fi % base of stem +% the accent +lowercase_circle(x3,(1/3[x_height,h]+apex_o),14,15,16,17); +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17); endchar; + + + +ecchar "The ligature ae"; +beginchar(oct"346",13u#,x_height#,0); +italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); +adjust_fit(0,0); +numeric left_curve,right_curve; +if monospace: right_curve=left_curve=fudged.stem; +else: left_curve=max(tiny.breadth,hround(curve-2stem_corr)); +right_curve=max(tiny.breadth,hround(curve-if serifs:6 +else:8 fi\\stem_corr));fi +pickup tiny.nib; pos11(right_curve,0); +pos12(vair,90); pos13(mfudged.stem,180); +y11=good.y bar_height; top y12r=h+vround 1.5oo; y10l=bot y11; +rt x11r=hround min(w-.5u,w-u+.5right_curve); +lft x13r=hround (.5w-.5mfudged.stem); x12=.55[x13,x11]; +{{interim superness:=more_super; + filldraw stroke super_arc.e(11,12)}}; % right bowl of e +y13=.5[y12,y14]; bot y14r=-oo; x14=x12+.25u; +if serifs: pos14(vair',270); pos15(mfudged.hair,360); + y15=max(good.y(.5bar_height-.9),y14l+vair); x15r=x11r; + (x,y14l)=whatever[z14r,z15]; x14l:=min(x,x14l+.5u); + filldraw stroke pulled_arc.e(12,13) + & pulled_super_arc.e(13,14)(.8superpull) + ...{x15-x14,5(y15-y14)}z15e; % left bowl, arc, and terminal of e +else: pos14(vair,270); + filldraw stroke super_arc.e(12,13) + & super_arc.e(13,14); % left bowl and arc of e + pickup fine.nib; pos14'(vair,270); z14=z14'; + pos15(.5[vair,flare],275); rt x15r=hround(w-.6u); +y15r=good.y(y15r+1/3bar_height-y15); y15l:=good.y + y15l; x15l:=good.x x15l; + filldraw stroke term.e(14',15,right,1,4); fi % right terminal +y11'r=y10r=y10l+.6[thin_join,vair]; y11'l=y10l; + x11'l=x11'r=x11; x10l=x10r=x13; +fill stroke z10e--z11'e; % crossbar +pickup fine.nib; top y3r=h+vround 1.5oo; +if serifs: pos1(flare,180); pos2(mfudged.hair,180); + pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=4u; + y1=min(bar_height+.5flare+2vair+2,.9[bar_height,h]-.5flare); + bulb(3,2,1); % bulb +else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; + pos3(1/8[vair,thin_join],90); + x3=4.3u; top y1r=vround .82[bar_height,top y3r]; + filldraw stroke term.e(3,1,left,.9,4); fi % left terminal +pos4(mfudged.stem,0); x4=x13; y4=1/3[bar_height,h]; +pos5(mfudged.stem,0); x5=x4; y5=min(y4,y13); +filldraw stroke super_arc.e(3,4)&z4e--z5e; % arc and stem +pos6(.6[thin_join,vair],90); x6=x4; bot y6=y10l; +pos7(left_curve,180); +lft x7r=hround max(.5u,1.5u-.5left_curve); +y7=1/3[top y8l,top y6r]; +pos8(vair,270); x8l=3.75u; bot y8r=-oo; +pos9(.5[vair,fudged.stem],360); x9=x5; y9=.55bar_height; +(x',y8r)=whatever[z8l,z9l]; x8r:=max(x',x8-u); +{{interim superness:=more_super; + filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl +if y9<y5: +filldraw stroke z5e{down}..{down}z9e; +fi % link (usually hidden) +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); +endchar; + + +ecchar "The letter cedilla c"; +beginchar(oct"347",8u#,x_height#,0.875desc_depth#); +italcorr x_height#*slant-.2u#; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +pickup fine.nib; pos2(vair',90); pos4(vair',270); +x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo; +pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height; +if serifs: pos1(hair,0); pos0(flare,0); + y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare); + rt x1r=hround(w-.7u); bulb(2,1,0); % bulb + pos5(hair,0); rt x5r=hround(w-.5u); + y5=max(good.y(.5bar_height-.9),y4l+vair'); + (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) + ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal +else: pos1(4/7[vair',flare],80); + rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2,1,right,.8,4); % upper terminal + pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; + if angle direction 1 of p.e>75: + p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal +% the accent +lowercase_cedilla(x4,0,6,7,8,9,10); +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + + +ecchar "The letter e with gravis"; +beginchar_twice(oct"350",7.25u#+max(.75u#,.5curve#),x_height#+acc_height#,0); +italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); +adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); +numeric left_curve,right_curve; +left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; +if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; pos1(right_curve,0); +pos2(vair,90); pos3(left_curve,180); +y1=good.y bar_height; top y2r=x_height+vround 1.5oo; y0l=bot y1; +rt x1r=hround min(w-.5u,w-u+.5right_curve); +lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; +if serifs: pos4(vair',270); pos5(hair,360); + y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; + (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal +else: pos4(vair,270); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,270); z4=z4'; + pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke term.e(4',5,right,1,4); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: + x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +hpos_corr=1.5u; put_gravis; +repeat_once; +penlabels(0,1,2,3,4,5,7,8); endchar; + + +ecchar "The letter e with acute"; +beginchar_twice(oct"351",7.25u#+max(.75u#,.5curve#),x_height#+acc_height#,0); +italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); +adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); +numeric left_curve,right_curve; +left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; +if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; pos1(right_curve,0); +pos2(vair,90); pos3(left_curve,180); +y1=good.y bar_height; top y2r=x_height+vround 1.5oo; y0l=bot y1; +rt x1r=hround min(w-.5u,w-u+.5right_curve); +lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; +if serifs: pos4(vair',270); pos5(hair,360); + y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; + (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal +else: pos4(vair,270); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,270); z4=z4'; + pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke term.e(4',5,right,1,4); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: + x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +hpos_corr=-u; put_accent; +repeat_once; +penlabels(0,1,2,3,4,5); endchar; + +ecchar "The letter circumflex e"; +beginchar(oct"352",7.25u#+max(.75u#,.5curve#),x_height#+acc_height#,0); +italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); +adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); +numeric left_curve,right_curve; +left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; +if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; pos1(right_curve,0); +pos2(vair,90); pos3(left_curve,180); +y1=good.y bar_height; top y2r=x_height+vround 1.5oo; y0l=bot y1; +rt x1r=hround min(w-.5u,w-u+.5right_curve); +lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; +if serifs: pos4(vair',270); pos5(hair,360); + y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; + (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal +else: pos4(vair,270); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,270); z4=z4'; + pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke term.e(4',5,right,1,4); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: + x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +% the accent +lowercase_hat(.5w,oo,7,8,9,10,11); +penlabels(0,1,2,3,4,5,7,8); endchar; + + +ecchar "The letter e with umlaut"; +beginchar(oct"353",7.25u#+max(.75u#,.5curve#),lc_trema_height#,0); +italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); +adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); +numeric left_curve,right_curve; +left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; +if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; pos1(right_curve,0); +pos2(vair,90); pos3(left_curve,180); +y1=good.y bar_height; top y2r=x_height+vround 1.5oo; y0l=bot y1; +rt x1r=hround min(w-.5u,w-u+.5right_curve); +lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; +if serifs: pos4(vair',270); pos5(hair,360); + y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; + (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal +else: pos4(vair,270); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,270); z4=z4'; + pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke term.e(4',5,right,1,4); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: + x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +% the accent +lowercase_umlaut(0,0,7,8,9,10); +penlabels(0,1,2,3,4,5,7,8,9,10); endchar; + +ecchar "The letter i with gravis"; +beginchar_twice(oct"354",5u#,x_height#+acc_height#,0); +italcorr (x_height#+acc_height#)*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift# + if monospace:+.25u#fi,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs or monospace: + sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif +fi +if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif +put_gravis; +repeat_once; +penlabels(1,2,3,4); endchar; + + +ecchar "The letter i with acute"; +beginchar_twice(oct"355",5u#,x_height#+acc_height#,0); +italcorr (x_height#+acc_height#)*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift# + if monospace:+.25u#fi,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs or monospace: + sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif +fi +if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif +% the accent +if not monospace: hpos_corr = -.5u; fi +put_accent; +repeat_once; +penlabels(1,2); endchar; + + +ecchar "The letter circumflex i"; +beginchar(oct"356",5u#,x_height#+acc_height#,0); +italcorr (x_height#+acc_height#)*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift# + if monospace:+.25u#fi,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs or monospace: + sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif +fi +if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif +% the accent +lowercase_hat(x1,oo,3,4,5,6,7); +penlabels(1,2,3,4,5,6,7); endchar; + + +ecchar "The letter i with umlaut"; +beginchar(oct"357",5u#,lc_trema_height#,0); +italcorr (x_height#+acc_height#)*slant-serif_fit#+.5stem#-2u#; +adjust_fit(0.5u#+serif_fit#+stem_shift# + if monospace:+.25u#fi,0.5u#+serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +if odd(w-stem'): change_width; fi +lft x1l=hround(.5w-.5stem'); x1=x2; +top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; +filldraw stroke z1e--z2e; % stem +if serifs or monospace: + sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif +fi +if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif +% the accent +lowercase_umlaut(0,0,3,4,5,6); +penlabels(1,2,3,4,5,6); endchar; + +ecchar"The letter edh"; +% Corrected version by Yannis +beginchar(oct"360",9u#,asc_height#,0); +italcorr .x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +oh := x_height; +pickup fine.nib; +pos1(vair,90); pos3(vair',-90); +pos2(curve,180); pos4(curve,0); pos4'(hair,0) ; +lft x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; top y1r=oh + vround 1.5oo; bot y3r=-oo; +y2=y4=.5oh-vair_corr; y2l:=y4l:=.52oh; +x4'l = x4l ; y4 = y4' ; +filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) -- pulled_arc.e(4',1); % bowl +pos5(.5[vair,hair],40) ; +x5l = x2 ; top y5r = h ; x7r = x4r; y7 = .95[x4,x1]; +pos7(curve,0); +filldraw stroke z5e .. tension 1.1 and 1 .. z7e{down} .. z4e ; +path p ; p = z5 .. tension 1.1 and 1 .. z7{down} ; +z6 = ((0,if monospace:.6 else: .7 fi[x_height,asc_height]) -- + (w,.6[x_height,asc_height])) + intersectionpoint p ; +pos6'(.5[vair,hair],-60) ; pos 6''(.5[vair,hair],-60) ; +top y6''l = h ; z6'' = z6 + whatever*dir30; +z6 = .5[z6',z6''] ; filldraw stroke z6'e -- z6''e ; +penlabels(1,2,3,4,5,6,6',6''); endchar; + +ecchar "The letter n with tilde"; +beginchar(oct"361",10u#,x_height#+acc_height#,0); +italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); +pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); +lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; +top y1=x_height+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; +filldraw stroke z1'e--z2'e; % left stem +h_stroke(2,a,3,4); % arch and right stem +if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif + numeric inner_jut; pickup tiny.nib; + if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; + else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi + dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif + dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif +% the accent +lowercase_tilde(0,0,5,6,7,8,9); +penlabels(1,2,3,4,5,6,7,8,9); endchar; + + +ecchar "The letter o with gravis"; +beginchar_twice(oct"362",9u#,x_height#+acc_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +penpos1(vair,90); penpos3(vair',-90); +penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=x_height+vround 1.5oo; y3r=-oo; +y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +hpos_corr=u; put_gravis; +repeat_once; +penlabels(1,2,3,4); endchar; + + +ecchar "The letter o with acute"; % from pl_ml (plfonts) +beginchar_twice(oct"363",9u#,x_height#,0); + italcorr .7x_height#*slant; + adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); + penpos1(vair,90); penpos3(vair',-90); + penpos2(curve,180); penpos4(curve,0); + x2r=hround max(.5u,1.25u-.5curve); + x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; + y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; + penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl + penlabels(1,2,3,4); +if serifs: hpos_corr=-u; fi put_accent; +repeat_once; +endchar; + + +ecchar "The letter o with circumflex"; +beginchar(oct"364",9u#,x_height#+acc_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +penpos1(vair,90); penpos3(vair',-90); +penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=x_height+vround 1.5oo; y3r=-oo; +y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +% the accent +lowercase_hat(x1,oo,5,6,7,8,9); +penlabels(1,2,3,4,5,6,7,8,9); endchar; + +ecchar "The letter o with tilde"; +beginchar(oct"365",9u#,x_height#+acc_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +penpos1(vair,90); penpos3(vair',-90); +penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=x_height+vround 1.5oo; y3r=-oo; +y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +% the accent +lowercase_tilde(0,0,5,6,7,8,9); +penlabels(1,2,3,4,5,6,7,8,9);endchar; + +ecchar "The letter o with umlaut"; +beginchar(oct"366",9u#,lc_trema_height#,0); +italcorr .7x_height#*slant; +adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); +penpos1(vair,90); penpos3(vair',-90); +penpos2(curve,180); penpos4(curve,0); +x2r=hround max(.5u,1.25u-.5curve); +x4r=w-x2r; x1=x3=.5w; y1r=x_height+vround 1.5oo; y3r=-oo; +y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +% the accent +lowercase_umlaut(0,0,5,6,7,8); +penlabels(1,2,3,4,5,6,7,8); endchar; + +ecchar "The ligature oe"; +beginchar(oct"367",14u#,x_height#,0); +italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); +adjust_fit(0,0); +numeric left_curve,right_curve; +if monospace: right_curve=left_curve=fudged.stem; +else: left_curve=max(fine.breadth,hround(curve-2stem_corr)); + right_curve=max(tiny.breadth,hround(curve-if serifs:6 else:8 fi\\stem_corr));fi +pickup tiny.nib; pos11(right_curve,0); +pos12(vair,90); pos13(mfudged.stem,180); +y11=good.y bar_height; top y12r=h+vround 1.5oo; y10l=bot y11; +rt x11r=hround min(w-.5u,w-u+.5right_curve); +lft x13r=hround (.5(w+u)-.5mfudged.stem); x12=.55[x13,x11]; +{{interim superness:=more_super; + filldraw stroke super_arc.e(11,12)}}; % right bowl of e +y13=.5[y12,y14]; bot y14r=-oo; x14=x12+.25u; +if serifs: pos14(vair',270); pos15(mfudged.hair,360); + y15=max(good.y(.5bar_height-.9),y14l+vair); x15r=x11r; + (x,y14l)=whatever[z14r,z15]; x14l:=min(x,x14l+.5u); + filldraw stroke pulled_arc.e(12,13) + & pulled_super_arc.e(13,14)(.8superpull) + ...{x15-x14,5(y15-y14)}z15e; % left bowl, arc, and terminal of e +else: pos14(vair,270); + filldraw stroke super_arc.e(12,13) + & super_arc.e(13,14); % left bowl and arc of e + pickup fine.nib; pos14'(vair,270); z14=z14'; + pos15(.5[vair,flare],275); rt x15r=hround(w-.6u); + y15r=good.y(y15r+1/3bar_height-y15); y15l:=good.y y15l; x15l:=good.x x15l; + filldraw stroke term.e(14',15,right,1,4); fi % terminal +y11'r=y10r=y10l+.6[thin_join,vair]; y11'l=y10l; x11'l=x11'r=x11; x10l=x10r=x13; +fill stroke z10e--z11'e; % crossbar +pickup fine.nib; pos1(vair,90); pos3(vair,-90); +pos2(left_curve,180); pos4(mfudged.stem,0); +lft x2r=hround max(.5u,1.25u-.5curve); +z4=z13; x1=x3=.5[x2,x4]; top y1r=h+vround 1.5oo; bot y3r=-oo; +y2=y4; y2l:=y4l:=.52h; +filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3); % left half of left bowl +filldraw stroke pulled_arc.e(3,4) & pulled_arc.e(4,1); % right half of left bowl +penlabels(1,2,3,4,10,11,12,13,14,15); endchar; + +ecchar "Scandinavian letter o/slash"; +beginchar(oct"370",9u#,x_height#+.5desc_depth#,.5desc_depth#); +italcorr h#*slant-u#-max(.5fudge*stem#,.75u#)+.5vair#; +adjust_fit(0,0); +penpos1(vair,90); penpos3(vair,-90); +penpos2(fudged.stem,180); penpos4(fudged.stem,0); +x2r=hround max(.5u,1.25u-.5fudged.stem); +x4r=w-x2r; x1=x3=.5w; +y1r=x_height+vround 1.5oo; y2=y4=.5x_height-vair_corr; y3r=-oo; +penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) + & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl +x5=x4; x6=x2; y5=h; y6=-d; +numeric theta; theta=angle(z5-z6)-90; +pickup crisp.nib; pos5(vair,theta); pos6(vair,theta); +filldraw stroke z5e--z6e; % diagonal +penlabels(1,2,3,4,5,6); endchar; + +ecchar "The letter u with gravis"; +beginchar_twice(oct"371",10u#,x_height#+acc_height#,0); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; +if light_vair<fine.breadth: light_vair:=fine.breadth; fi +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos3(stem,0); pos4(stem',0); +lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; +if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop); +else: top y1=x_height; bot y4=0; fi +pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; +penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; +penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); +y6=y0=2/3bar_height; +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e..z0e--z0'e..z4e; % right stem +pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; +(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); +filldraw stroke {{interim superness:=hein_super; + pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif + sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif + sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif +hpos_corr=0.75u; put_gravis; +repeat_once; +penlabels(1,2,3,4,5,6); endchar; + +ecchar "The letter u with acute"; +beginchar_twice(oct"372",10u#,x_height#+acc_height#,0); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; +if light_vair<fine.breadth: light_vair:=fine.breadth; fi +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos3(stem,0); pos4(stem',0); +lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; +if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop); +else: top y1=x_height; bot y4=0; fi +pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; +penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; +penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); +y6=y0=2/3bar_height; +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e..z0e--z0'e..z4e; % right stem +pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; +(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); +filldraw stroke {{interim superness:=hein_super; + pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif + sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif + sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif +% the accent +hpos_corr=-u; put_accent; +repeat_once; +penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + + +ecchar "The letter u with circumflex"; +beginchar(oct"373",10u#,x_height#+acc_height#,0); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; +if light_vair<fine.breadth: light_vair:=fine.breadth; fi +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos3(stem,0); pos4(stem',0); +lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; +if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop); +else: top y1=x_height; bot y4=0; fi +pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; +penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; +penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); +y6=y0=2/3bar_height; +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e..z0e--z0'e..z4e; % right stem +pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; +(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); +filldraw stroke {{interim superness:=hein_super; + pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif + sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif + sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif +% the accent +lowercase_hat(.5[x1,x3],oo,7,8,9,10,11); +penlabels(1,2,3,4,5,6,7,8,9,10,11); endchar; + + +ecchar "The letter u with umlaut"; +beginchar(oct"374",10u#,lc_trema_height#,0); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; +if light_vair<fine.breadth: light_vair:=fine.breadth; fi +pickup tiny.nib; pos1(stem,0); pos2(stem,0); +pos3(stem,0); pos4(stem',0); +lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; +if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop); +else: top y1=x_height; bot y4=0; fi +pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; +penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; +penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); +y6=y0=2/3bar_height; +filldraw stroke z1e--z2e; % left stem +filldraw stroke z3e..z0e--z0'e..z4e; % right stem +pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; +(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); +filldraw stroke {{interim superness:=hein_super; + pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif + sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif + sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif +% the accent +lowercase_umlaut(0,0,7,8,9,10); +penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +ecchar "The letter y with acute"; +beginchar_twice(oct"375",if serifs:9.5u# else:9u# fi, + x_height#+acc_height#,desc_depth#); +italcorr x_height#*slant+.25u#; +adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); +numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; +left_stem=fudged.stem-stem_corr; +right_stem=fudged.hair if hefty:-2stem_corr fi; +bot_stem=fudged.hair if hefty:-8stem_corr fi; +bot_vair=Vround(if serifs: vair else:.5[vair,bot_stem] fi); +outer_jut=.75jut; +x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4r=x_height; y2=y3=0; x2l=x3l; +numeric alpha,alpha[]; x9=3u; y9=bot_vair-d-oo; +alpha1=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-apex_corr); +alpha2=diag_ratio(1,bot_stem,y1-y9,x4r-x9); +if alpha1<alpha2: x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1; +else: alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi +penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); +alpha3=(y1++(x2l-x1l))/y1; +penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); +z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); +if y0>notch_cut: y0:=notch_cut; + fill z0+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) + --z3r--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} + ...{down}z0+.5left--cycle; % left and right diagonals +else: fill z0--diag_end(0,4l,1,1,4r,3r)--z3r--z2l + --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals +penpos5(alpha*bot_stem,0); z5r=whatever[z3r,z4r]; y5-.5vair=-.5d; +if serifs: numeric light_bulb; light_bulb=hround 7/8[hair,flare]; clearpen; + penpos6(vair,-90); penpos7(hair,-180); penpos8(light_bulb,-180); + x6=2u; y6r=-d-oo; y8-.5light_bulb=-.85d; x8r=hround .35u; + fill stroke z3e---z5e...{left}z6e; bulb(6,7,8); % arc and bulb + numeric inner_jut; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(4,3); + if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; + else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif + dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif +else: penpos6(bot_vair,-90); x6=2.5u; y6r=-d-oo; + fill stroke z3e---z5e...{left}z6e; % arc + pickup fine.nib; pos6'(bot_vair,-90); z6'=z6; + pos7(2/3[bot_vair,flare],-85); + lft x7l=hround u; bot y7r=vround-.96d-oo; y7l:=good.y y7l; + filldraw stroke term.e(6',7,left,1,4); fi % arc and terminal +% the accent +put_accent; +repeat_once; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +iff fancy_thorn: +ecchar "The letter thorn"; % from cmman +beginchar(oct"376",10u#+serif_fit#,asc_height#,desc_depth#); +italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); +adjust_fit(serif_fit#,0); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; +lft x1l=hround(2.5u-.5stem'); top y1=h; +numeric edge; edge=rt x2r; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); +pos4(vair',90); pos5(curve,0); pos6(vair,-90); +rt x3l=1/3[rt x2,edge]; y3=1/8[bar_height,x_height]; +x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; +rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; +x6=x3; bot y6r=-oo; +(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); +filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5) + &z5e{down}...{5(x6-x5),y6-y5}z6e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); +pickup tiny.nib; bot y2=-d; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; pos8(hair,0); pos7'(stem,0); +z7'=z2; x8l=x7'l; bot y8=0; +filldraw stroke z7'e--z8e; % point +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif +penlabels(0,1,2,3,4,5,6,8); endchar; + +iff not fancy_thorn: +ecchar "The letter thorn"; % jk: Bowl as in `p' or `b' +beginchar(oct"376",10u#+serif_fit#,asc_height#,desc_depth#); +italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); +adjust_fit(serif_fit#,0); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; +lft x1l=hround(2.5u-.5stem'); top y1=h if serifs: +min(oo,serif_drop) fi; +numeric edge; edge=rt x2r; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); +pos4(vair',90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); +rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l), 1/3[rt x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; +rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x5r,x6]); +filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5) + &super_arc.e(5,6)&z6e{left}...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); +pickup tiny.nib; bot y2=-d; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; pos8(hair,0); pos7'(stem,0); +z7'=z2; x8l=x7'l; bot y8=0; +filldraw stroke z7'e--z8e; % point +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif +penlabels(0,1,2,3,4,5,6,7,8); endchar; + + +iff classic_sharp_s: +ecchar "German letter sharp s"; +beginchar(oct"377",4.5u#+max(4.5u#,.5stem#+flare#+curve#),asc_height#,0); +italcorr asc_height#*slant-u#; +adjust_fit(serif_fit#,0); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +lft x1l=lft x2l=hround(2.5u-.5stem'); bot y1=0; y2=y4=.5[x_height,y3]; +penpos3(vair-fine,90); fine.top y3r=h+oo; +filldraw stroke z1e--z2e; % stem +numeric stem_edge,curve'; stem_edge=rt x1r; curve'=hround .5[stem',curve]; +pickup fine.nib; pos4(curve',0); pos5(vair,-90); +pos2'(stem',180); z2'=z2; x3=.5[x2,x4]; rt x4r=hround(w-u); +top y5l=x_height; lft x5=min(lft x4l,hround(stem_edge+u)); +filldraw stroke pulled_super_arc.e(2',3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull) + & pulled_super_arc.e(4,5)(.5superpull); % upper bowl +pos5'(vair,90); z5'=z5; pos6(curve',0); pos7(vair,-90); +rt x6r=hround(w-.5u)+3eps; y6=.4x_height; bot y7r=-oo; +if serifs: pos8(hair,-180) else: pos8(vair,-110) fi; +lft x8r=min(hround(stem_edge+.5u+1),lft x8r+x6r-2eps-x8l); +x7=max(x8l+eps,.4[lft x8r,x6]); +filldraw stroke pulled_super_arc.e(5',6)(.5superpull) + & pulled_super_arc.e(6,7)(.5superpull); % lower bowl +if serifs: pos9(5/7[vair,flare],-180); + y9-(x9-lft x9r)=vround .07x_height; bulb(7,8,9); % bulb + penpos0(stem'-tiny,0); x0=x1; tiny.top y0=x_height; + serif(0,1,a,0,-jut); % bar + dish_serif(1,2,b,1/3,jut,c,0,epsilon); % serif +else: bot y8r=vround .01h; x8l:=good.x x8l; y8l:=good.y(y8l+.5); + filldraw stroke term.e(7,8,left,1,4); fi % terminal +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +iff not classic_sharp_s: +ecchar "German letter scharfes s"; +% completely remade to exhibit the long s-short s ligature % jk +beginchar(oct"377",4.5u#+max(4.5u#,.5stem#+flare#+curve#),asc_height#,0); +italcorr asc_height#*slant-u#; +adjust_fit(serif_fit#,0); +pickup tiny.nib; pos1(stem',0); pos2(stem',0); +lft x1l=lft x2l=hround(2.5u-.5stem'); bot y1=0; y2=y4=.5[x_height,y3]; +penpos3(vair-fine,90); fine.top y3r=h+oo; +filldraw stroke z1e--z2e; % stem +numeric stem_edge,curve'; stem_edge=rt x1r; curve'=hround .5[stem',curve]; +numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi; +numeric ess'; ess'=max(fine.breadth,ess); +pickup fine.nib; pos4(hair,0); +pos2'(stem',180); z2'=z2; x3=.5[x2,x4]; +rt x4r=hround(w-if not hefty: 2 fi\\u); +numeric xx; xx=min(x3, hround(stem_edge+u)); +numeric theta; +theta=90-angle(40u,x_height); slope:=-x_height/40u; % angle at middle +pos5(max(fine.breadth,s_slab-vround vair_corr),-100); +pos22(ess',theta); pos10(s_slab,-90); +x5l=hround(.5[xx,w-u]); +%if x5l+1<x4l: x5l:=x4l-1; fi +x5l=x22=x10; +top y5l=x_height+vround 1.5oo; bot y10r=-oo; +y22-.5ess'=y10l+if serifs:.54 else: .52 fi\\(y5r-y10l-ess'); +lft x6l=xx; rt x9r=hround(w-.6u); +x6r-x6l=x9r-x9l=hround .5[s_slab,ess']-fine; +ellipse_set(5l,6l,7l,22l); ellipse_set(5r,6r,7r,22r); y6=y6r; +ellipse_set(10l,9l,8l,22l); ellipse_set(10r,9r,8r,22r); y9=y9r; +interim superness:=more_super; +filldraw stroke pulled_super_arc.e(2',3)(.5superpull) + & pulled_super_arc.e(3,4)(.5superpull) + & pulled_super_arc.e(4,5)(.5superpull) % upper bowl + ..super_arc.e(5,6) & z6e{down} + ..z7e---z8e..z9e{down} & super_arc.e(9,10); % main s stroke +if serifs: pos21(hair,180); pos11(hair,180); + rt x21l=hround(w-1.05u); lft x11r=xx; + bot y21=min(bot y5r,vround 1/5[top y8r,x_height]); + top y11=max(top y10l,vround 5/6 bot y7l); + filldraw stroke z10e{left}....{x11-x10,5(y11-y10)}z11e; % lower arc + path upper_arc, lower_arc; + upper_arc=z21{up}....{left}z5; lower_arc=z10{left}....{x11-x10,5(y11-y10)}z11; + pos20(.3[fine.breadth,cap_hair],0); pos12(.3[fine.breadth,cap_hair],0); + x20r=x21l; top y20=top y5l; x12l=x11r; bot y12=bot y10r; + x21l-x21'=x11'-x11r=1.6cap_curve-fine; y21'=y21; y11'=y11; + t:=xpart(lower_arc intersectiontimes(z12r--z11')); + filldraw z11r--z12l--z12r--subpath(t,1) of lower_arc--cycle; % lower barb +else: pos21(4/7[s_slab,flare],-100); pos11(flare,-100); + x21l=good.x(x21l+w-u-rt x21); lft x11r=xx; + top y21l=vround(.93x_height+1.5oo); bot y11r=vround .1x_height-oo; + filldraw stroke term.e(10,11,left,1,4); fi % lower arc and terminal +if serifs: + penpos0(stem'-tiny,0); x0=x1; tiny.top y0=x_height; + serif(0,1,a,0,-jut); % bar + dish_serif(1,2,b,1/3,jut,c,0,epsilon); % serif +fi +penlabels(0,1,2,3,4,5,6,7,8,9,10.11.11',12,20,21,21',22); endchar; + +endinput; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebroman.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebroman.mf new file mode 100644 index 00000000000..8a7b9b9a162 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebroman.mf @@ -0,0 +1,68 @@ +% ebroman.mf +% [= exroman.mf, changed by Walter Schmidt, see (CMBR)] +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% (c) Copyright 1990, 1992 Norbert Schwarz +% +% This file is part of the EC Bright fonts version 1.0 +% +% Content: +% +% driver file, called by parameter files with roman style fonts + +% +% dx r l west +% i u east +% : : : +% : : west '3xx / east '2xx +% : uppercase/lowercase +% roman / italic + +version_check(1,0); % |version_check| was introduced in dc1.3 + +input ebaccess; % accessories for pl/cz special letters (CMBR) +input ebpseudo; % pseudoparameters (CMBR) + +mode_setup; font_setup; pseudo_setup; + +input exruwest; +input ebrlwest; % (CMBR) +input exrueast; +input ebrleast; % (CMBR) +% +input ebbraces; % ^ ~ cwm ( ) < | > [ ] \ { } _ - (177) space (040) % (CMBR) +input ebpunct; % < << > >> ! ` ' * + , . / = ; : (spanish !) % (CMBR) +% +input exaccent; % +input exsign; % zero for mille, " # $ % @ pound sign +% +input ebrlig; % dotless i,j; letter ligatures ff fi fl ffi ffl % (CMBR) +% +input exromp; % (roman punctuation) & ? (spanish ?) +% +input exrulett; % upper case (majuscules) +input ebrllett; % lower case (minuscules) % (CMBR) +input exrdigit; % roman digits +% +% Fontparameter +% +font_coding_scheme:="Extended TeX Font Encoding - Latin"; +boundarychar:=oct"027"; +font_slant slant; +font_x_height x_height#; +font_cap_height cap_height#; +font_asc_height asc_height#; +font_acc_cap_height (cap_height#+acc_height#); +font_desc_depth desc_depth#; +font_max_height (max(asc_height#,body_height#, + cap_height#+acc_height#)); +font_max_depth (max(desc_depth#,paren_depth#,the_ogonek_depth#)); +% font_digit_width % set inside the digits file +% font_cap_stem % set after the programme of the capital I +font_baselineskip max(1.25*designsize,body_height#+paren_depth#);% (CMBR) + font_normal_space 5.7u#+2letter_fit#; % (CMBR) + font_normal_stretch 2.85u#; font_normal_shrink 1.9u#; %(CMBR) + font_quad 18u#+4letter_fit#; + font_extra_space 1.9u#; % (CMBR) + input ebrligtb; % do the ligature programs %(CMBR) +bye. diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebso10.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebso10.mf new file mode 100644 index 00000000000..974f161fc88 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebso10.mf @@ -0,0 +1,20 @@ +% European Computer Modern Bright +% semibold oblique 10 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBSO"; font_size 10pt#; +input brs10pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +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? +%ligs:=2; +acc_height#:=70/36pt#; % ? +dot_height#:=70/36pt#; % 66.5 +ldot_height#:=70/36pt#; % 66.5 +%bx_kerning:=1; + + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebso17.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebso17.mf new file mode 100644 index 00000000000..aa59c9cda9c --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebso17.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright +% semibold oblique 17 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBSO"; font_size 17.28pt#; +input brs17pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +;ligs:=2; % level of ligatures to be included +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? +acc_height#:=70/36Pt#; % ok +dot_height#:=70/36Pt#; % 66.5 +ldot_height#:=70/36Pt#; % 66.5 + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebso8.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebso8.mf new file mode 100644 index 00000000000..ff23ef2bd60 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebso8.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright +% semibold oblique 8 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBSO"; font_size 8pt#; +input brs8pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +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? +acc_height#:=60/36pt#; % ? +dot_height#:=60/36pt#; % 54.5 +ldot_height#:=60/36pt#; % 54.5 + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebso9.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebso9.mf new file mode 100644 index 00000000000..4aa7f7216dc --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebso9.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright +% semibold oblique 9 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBSO"; font_size 9pt#; +input brs9pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +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? +acc_height#:=65/36pt#; % ? +dot_height#:=65/36pt#; % 60.48 +ldot_height#:=65/36pt#; % 60.48 + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebsr10.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebsr10.mf new file mode 100644 index 00000000000..53b39c08633 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebsr10.mf @@ -0,0 +1,20 @@ +% European Computer Modern Bright +% semibold regular 10 point [1997/04/25 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBSR"; font_size 10pt#; +input brs10pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +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? +%ligs:=2; +acc_height#:=70/36pt#; % ? +dot_height#:=70/36pt#; % 66.5 +ldot_height#:=70/36pt#; % 66.5 +%bx_kerning:=1; + + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebsr17.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebsr17.mf new file mode 100644 index 00000000000..d8de95277ce --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebsr17.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright +% semibold regular 17 point [1997/04/25 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBSR"; font_size 17.28pt#; +input brs17pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +;ligs:=2; % level of ligatures to be included +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? +acc_height#:=70/36Pt#; % ok +dot_height#:=70/36Pt#; % 66.5 +ldot_height#:=70/36Pt#; % 66.5 + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebsr8.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebsr8.mf new file mode 100644 index 00000000000..b8a2b3da58e --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebsr8.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright +% semibold regular 8 point [1997/04/25 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBSR"; font_size 8pt#; +input brs8pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +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? +acc_height#:=60/36pt#; % ? +dot_height#:=60/36pt#; % 54.5 +ldot_height#:=60/36pt#; % 54.5 + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebsr9.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebsr9.mf new file mode 100644 index 00000000000..830b51b1468 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebsr9.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright +% semibold regular 9 point [1997/04/25 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="EBSR"; font_size 9pt#; +input brs9pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +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? +acc_height#:=65/36pt#; % ? +dot_height#:=65/36pt#; % 60.48 +ldot_height#:=65/36pt#; % 60.48 + +generate ebroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebtl10.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebtl10.mf new file mode 100644 index 00000000000..8f459cb5f21 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebtl10.mf @@ -0,0 +1,85 @@ +% EC Typewriter Light 10 point [1997/05/14 v1.0 (WaS)] + +% This is a 10 pt typewriter font with all stroke widths +% taken from cmtt8, so that it looks lighter than cmtt10 +% and may be used together with the CM Bright fonts. + +if unknown exbase: input exbase fi + +font_identifier:="EBTL"; 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#:=220/36pt#; % height of lowercase ascenders +cap_height#:=220/36pt#; % height of caps +fig_height#:=220/36pt#; % height of numerals +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 + +acc_height#:=75/36pt#; +dot_height#:=75/36pt#; +udot_height#:=59/36pt; + +crisp#:=19/36pt#; % diameter of serif corners +tiny#:=19/36pt#; % diameter of rounded corners +fine#:=18/36pt#; % diameter of sharply rounded corners +thin_join#:=18/36pt#; % width of extrafine details +hair#:=22/36pt#; % lowercase hairline breadth +stem#:=22/36pt#; % lowercase stem breadth +curve#:=22/36pt#; % lowercase curve breadth +ess#:=19/36pt#; % breadth in middle of lowercase s +flare#:=28/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=31/36pt#; % diameter of dots +cap_hair#:=22/36pt#; % uppercase hairline breadth +cap_stem#:=22/36pt#; % uppercase stem breadth +cap_curve#:=22/36pt#; % uppercase curve breadth +cap_ess#:=22/36pt#; % breadth in middle of uppercase s +rule_thickness#:=22/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#:=19/36pt#; % vertical diameter of hairlines +notch_cut#:=22/36pt#; % maximum breadth above or below notches +bar#:=19/36pt#; % lowercase bar thickness +slab#:=19/36pt#; % serif and arm thickness +cap_bar#:=19/36pt#; % uppercase bar thickness +cap_band#:=19/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=22/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#:=8/36pt#; % extra width at diagonal junctions + +o#:=3/36pt#; % amount of overshoot for curves +apex_o#:=3/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +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? +true_mono:=true; +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? + +generate exroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ebto10.mf b/Master/texmf-dist/fonts/source/public/cmbright/ebto10.mf new file mode 100644 index 00000000000..63bde0bb856 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ebto10.mf @@ -0,0 +1,85 @@ +% EC Typewriter Light oblique 10 point [1997/05/14 v1.0 (WaS)] + +% This is a 10 pt typewriter font with all stroke widths +% taken from cmtt8, so that it looks lighter than cmtt10 +% and may be used together with the CM Bright fonts. + +if unknown exbase: input exbase fi + +font_identifier:="EBTO"; 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#:=220/36pt#; % height of lowercase ascenders +cap_height#:=220/36pt#; % height of caps +fig_height#:=220/36pt#; % height of numerals +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 + +acc_height#:=75/36pt#; +dot_height#:=75/36pt#; +udot_height#:=59/36pt; + +crisp#:=19/36pt#; % diameter of serif corners +tiny#:=19/36pt#; % diameter of rounded corners +fine#:=18/36pt#; % diameter of sharply rounded corners +thin_join#:=18/36pt#; % width of extrafine details +hair#:=22/36pt#; % lowercase hairline breadth +stem#:=22/36pt#; % lowercase stem breadth +curve#:=22/36pt#; % lowercase curve breadth +ess#:=19/36pt#; % breadth in middle of lowercase s +flare#:=28/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=31/36pt#; % diameter of dots +cap_hair#:=22/36pt#; % uppercase hairline breadth +cap_stem#:=22/36pt#; % uppercase stem breadth +cap_curve#:=22/36pt#; % uppercase curve breadth +cap_ess#:=22/36pt#; % breadth in middle of uppercase s +rule_thickness#:=22/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#:=19/36pt#; % vertical diameter of hairlines +notch_cut#:=22/36pt#; % maximum breadth above or below notches +bar#:=19/36pt#; % lowercase bar thickness +slab#:=19/36pt#; % serif and arm thickness +cap_bar#:=19/36pt#; % uppercase bar thickness +cap_band#:=19/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=22/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#:=8/36pt#; % extra width at diagonal junctions + +o#:=3/36pt#; % amount of overshoot for curves +apex_o#:=3/36pt#; % amount of overshoot for diagonal junctions + +slant:=1/6; % tilt ratio $(\Delta x/\Delta y)$ +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? +true_mono:=true; +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? + +generate exroman % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/manifest.txt b/Master/texmf-dist/fonts/source/public/cmbright/manifest.txt new file mode 100644 index 00000000000..86e500b67b7 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/manifest.txt @@ -0,0 +1,107 @@ +The below file contitute the sources of the +Computer Modern Bright fonts and mist be disttributed +as a whole: + + 3525 Thu May 22 00:00:00 1997 ams10pt.mf + 3917 Thu May 22 00:00:00 1997 ams8pt.mf + 3917 Thu May 22 00:00:00 1997 ams9pt.mf + 9153 Thu May 22 00:00:00 1997 baccent.mf + 11886 Thu May 22 00:00:00 1997 bgreeku.mf + 6263 Thu May 22 00:00:00 1997 bitalms.mf + 12183 Thu May 22 00:00:00 1997 bpunct.mf + 3438 Thu May 22 00:00:00 1997 br10pt.mf + 3491 Thu May 22 00:00:00 1997 br17pt.mf + 3413 Thu May 22 00:00:00 1997 br8pt.mf + 3390 Thu May 22 00:00:00 1997 br9pt.mf + 5107 Thu May 22 00:00:00 1997 brmsa.mf + 7329 Thu May 22 00:00:00 1997 brmsb.mf + 3122 Thu May 22 00:00:00 1997 broman.mf + 40147 Thu May 22 00:00:00 1997 bromanl.mf + 8146 Thu May 22 00:00:00 1997 bromlig.mf + 10159 Thu May 22 00:00:00 1997 bromms.mf + 3561 Mon May 26 00:00:00 1997 brs10pt.mf + 3594 Mon May 26 00:00:00 1997 brs17pt.mf + 3538 Mon May 26 00:00:00 1997 brs8pt.mf + 3514 Mon May 26 00:00:00 1997 brs9pt.mf + 447 Thu May 22 00:00:00 1997 cmbr10.mf + 491 Thu May 22 00:00:00 1997 cmbr17.mf + 485 Thu May 22 00:00:00 1997 cmbr8.mf + 485 Thu May 22 00:00:00 1997 cmbr9.mf + 700 Thu May 22 00:00:00 1997 cmbras10.mf + 695 Thu May 22 00:00:00 1997 cmbras8.mf + 696 Thu May 22 00:00:00 1997 cmbras9.mf + 891 Thu Jan 22 01:00:00 1998 cmbrbs10.mf + 892 Thu May 22 00:00:00 1997 cmbrbs8.mf + 892 Thu May 22 00:00:00 1997 cmbrbs9.mf + 3889 Thu May 22 00:00:00 1997 cmbrbx10.mf + 3833 Thu May 22 00:00:00 1997 cmbrmb10.mf + 475 Thu May 22 00:00:00 1997 cmbrmi10.mf + 513 Thu May 22 00:00:00 1997 cmbrmi8.mf + 513 Thu May 22 00:00:00 1997 cmbrmi9.mf + 471 Thu May 22 00:00:00 1997 cmbrsl10.mf + 515 Thu May 22 00:00:00 1997 cmbrsl17.mf + 509 Thu May 22 00:00:00 1997 cmbrsl8.mf + 509 Thu May 22 00:00:00 1997 cmbrsl9.mf + 4715 Thu May 22 00:00:00 1997 cmbrsy10.mf + 4695 Thu May 22 00:00:00 1997 cmbrsy8.mf + 4715 Thu May 22 00:00:00 1997 cmbrsy9.mf + 3872 Thu May 22 00:00:00 1997 cmsltl10.mf + 3850 Thu May 22 00:00:00 1997 cmtl10.mf + 709 Thu May 9 01:19:24 2002 copyrite.txt + 37672 Mon May 26 00:00:00 1997 ebaccess.mf + 52473 Fri May 30 00:00:00 1997 ebbase.mf + 9789 Thu May 22 00:00:00 1997 ebbraces.mf + 4055 Thu May 22 00:00:00 1997 ebbx10.mf + 576 Thu May 22 00:00:00 1997 ebmo10.mf + 623 Thu May 22 00:00:00 1997 ebmo17.mf + 620 Thu May 22 00:00:00 1997 ebmo8.mf + 622 Thu May 22 00:00:00 1997 ebmo9.mf + 562 Thu May 22 00:00:00 1997 ebmr10.mf + 609 Thu May 22 00:00:00 1997 ebmr17.mf + 606 Thu May 22 00:00:00 1997 ebmr8.mf + 608 Thu May 22 00:00:00 1997 ebmr9.mf + 3064 Thu May 22 00:00:00 1997 ebpseudo.mf + 11420 Thu May 22 00:00:00 1997 ebpunct.mf + 51964 Thu May 22 00:00:00 1997 ebrleast.mf + 9734 Thu May 22 00:00:00 1997 ebrlig.mf + 10087 Thu May 22 00:00:00 1997 ebrligtb.mf + 39644 Thu May 22 00:00:00 1997 ebrllett.mf + 52059 Thu May 22 00:00:00 1997 ebrlwest.mf + 2101 Mon May 26 00:00:00 1997 ebroman.mf + 599 Thu May 22 00:00:00 1997 ebso10.mf + 627 Thu May 22 00:00:00 1997 ebso17.mf + 620 Thu May 22 00:00:00 1997 ebso8.mf + 622 Thu May 22 00:00:00 1997 ebso9.mf + 585 Thu May 22 00:00:00 1997 ebsr10.mf + 613 Thu May 22 00:00:00 1997 ebsr17.mf + 606 Thu May 22 00:00:00 1997 ebsr8.mf + 608 Thu May 22 00:00:00 1997 ebsr9.mf + 3939 Thu May 22 00:00:00 1997 ebtl10.mf + 3949 Thu May 22 00:00:00 1997 ebto10.mf + 3476 Thu May 22 00:00:00 1997 mathsl.mf + 67170 Thu May 22 00:00:00 1997 msa.mf + 58281 Thu May 22 00:00:00 1997 msb.mf + 4079 Thu May 22 00:00:00 1997 tbbx10.mf + 600 Thu May 22 00:00:00 1997 tbmo10.mf + 647 Thu May 22 00:00:00 1997 tbmo17.mf + 644 Thu May 22 00:00:00 1997 tbmo8.mf + 646 Thu May 22 00:00:00 1997 tbmo9.mf + 553 Thu May 22 00:00:00 1997 tbmr10.mf + 603 Thu May 22 00:00:00 1997 tbmr17.mf + 599 Thu May 22 00:00:00 1997 tbmr8.mf + 601 Thu May 22 00:00:00 1997 tbmr9.mf + 2222 Mon May 26 00:00:00 1997 tbpseudo.mf + 607 Thu May 22 00:00:00 1997 tbso10.mf + 651 Thu May 22 00:00:00 1997 tbso17.mf + 644 Thu May 22 00:00:00 1997 tbso8.mf + 646 Thu May 22 00:00:00 1997 tbso9.mf + 592 Thu May 22 00:00:00 1997 tbsr10.mf + 634 Thu May 22 00:00:00 1997 tbsr17.mf + 630 Thu May 22 00:00:00 1997 tbsr8.mf + 632 Thu May 22 00:00:00 1997 tbsr9.mf + 1917 Sat May 25 00:00:52 2002 tbsymb.mf + 94014 Wed Feb 9 01:00:00 2000 tbsymbol.mf + 3959 Wed Feb 9 01:00:00 2000 tbtl10.mf + 3972 Wed Feb 9 01:00:00 2000 tbto10.mf + 1984 Wed Feb 9 01:00:00 2000 ttsymb.mf + 94356 Wed Feb 9 01:00:00 2000 ttsymbol.mf diff --git a/Master/texmf-dist/fonts/source/public/cmbright/mathsl.mf b/Master/texmf-dist/fonts/source/public/cmbright/mathsl.mf new file mode 100644 index 00000000000..aea03f7c6b9 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/mathsl.mf @@ -0,0 +1,72 @@ +% Computer Modern Math Italic driver file, (D.E.K. 1979--1985). +% Modified for CM Bright Math Slanted [1995/10/27 v0.999 WaS] + +font_coding_scheme:="TeX math italic"; +mode_setup; font_setup; +define_pixels(sym_u);define_whole_vertical_pixels(sym_height); + +input romanu; % upper case (majuscules) +input bromanl; % lower case (minuscules) +input bgreeku; % upper case greek letters +input greekl; % lower case Greek letters +input bitalms; % special symbols for math italic +font_slant slant; font_x_height x_height#; +font_quad 18u#+4letter_fit#; + +slant:=mono_charic#:=0; % the remaining characters will not be slanted +currenttransform:=identity yscaled aspect_ratio scaled granularity; +input olddig; % oldstyle numerals +input bromms; % roman math specials +% The kerning table has been updated for the use of slanted +% letters instaed of italic ones; the (original) comments are partially +% wrong now. +skewchar=oct"177"; skew#=.5u#; +save comma; +period=oct"72"; comma=oct"73"; slash=oct"75"; % non-ASCII positions +ligtable "h": skewchar kern skew#; +ligtable oct"027":oct"034": comma kern -u#, period kern -u#, % $\nu:\tau:$ + "L":"g":"v":"x": oct"013": oct"026": % $L:g:u:v:x:\alpha:\mu:$ + oct"035": skewchar kern skew#; % $\upsilon:\imath:$ +ligtable "U": comma kern-2u#, period kern-2u#, % $U:$ + slash kern-u#, skewchar kern 3skew#; +ligtable "K":oct"011": slash kern-u#, % $K:\it\Psi:$ + oct"016":"r": comma kern-u#, period kern-u#, % $\delta:r:$ + "D":"c":"e":"o":"s":"y":"z":oct"017": % $D:c:e:o:s:y:z:\epsilon:$ + oct"021":oct"023":oct"037": skewchar kern 2skew#; % $\eta:\iota:\chi:$ +ligtable oct"007": slash kern-u#, % $\it\Upsilon:$ + comma kern-2u#, period kern-2u#, skewchar kern 2skew#; +ligtable oct"005":"H": slash kern-u#, % $\it\Pi:H:$ + comma kern-u#, period kern-u#, skewchar kern 4skew#; +ligtable oct"173": "l": "m": "n": skewchar kern 2skew#; +ligtable "N":"X": slash kern -1.5u#, % $N:X:$ + "C": slash kern -.5u#, comma kern -u#, period kern -u#, % $C:T:$ + "B":"E":"G":"O":"Q":"R":oct"174": % $B:E:G:O:Q:R:\jmath:$ + "p":"q":"t":"w":oct"002":oct"004": % $l:p:q:t:w:\it\Theta:\Xi:$ + oct"006":oct"010":oct"012":oct"014": % $\it\Sigma:\Phi:\Omega:\beta:$ + oct"020":oct"022":oct"032":oct"036": % $\zeta:\theta:\rho:\phi:$ + oct"042":oct"043":oct"045": % $\varepsilon:\vartheta:\varrho:$ + oct"046":oct"047":oct"100": "a": "u": % $\varsigma:\varphi:\partial:$ + skewchar kern 3skew#; +ligtable "T": slash kern -.5u#, comma kern -u#, period kern -u#, + skewchar kern skew#; +ligtable "M":"S":"Z": slash kern-u#, % $M:S:Z:$ + comma kern-u#, period kern-u#, skewchar kern 3skew#; +ligtable oct"000":"F":"P": slash kern -u#, % $\it\Gamma:F:P:$ + comma kern-2u#, period kern-2u#, skewchar kern 3skew#; +ligtable "I":oct"030":oct"040":oct"140":oct"175": % $I:\xi:\psi:\ell:\wp:$ + skewchar kern 4skew#; +ligtable "A": skewchar kern 5skew#; % $A:$ +ligtable "d": "Y" kern u#, "Z" kern-u#, "j" kern-2u#, "f" kern-u#, + skewchar kern 5skew#; % $d:$ +ligtable oct"001":oct"003": skewchar kern 6skew#; % $\it\Delta:\Lambda:$ (WaS) +ligtable "f": comma kern-u#, period kern-u#, skewchar kern 4skew#; % $f:$ +ligtable "J": slash kern-u#, % $J:$ + comma kern-2u#, period kern-2u#, +% skewchar kern 6skew#; + skewchar kern 7skew#; +ligtable "j":oct"033": comma kern -u#, period kern -u#; % $j:\sigma:$ +ligtable "V":"W":"Y":comma kern-3u#, period kern-3u#, % $V:W:Y:$ + slash kern-2u#; +ligtable slash: oct"001" kern -u#, "A" kern -u#, "M" kern -u#, % $/:$ + "N" kern -u#, "Y" kern +u#, "Z" kern -u#; +bye. diff --git a/Master/texmf-dist/fonts/source/public/cmbright/msa.mf b/Master/texmf-dist/fonts/source/public/cmbright/msa.mf new file mode 100644 index 00000000000..6998274877a --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/msa.mf @@ -0,0 +1,1762 @@ +% MSA symbols, roman style [1996/07/02 v1.0 (WaS)] + +def makesquare (suffix i,j,k,l) = +%% z.j, z.k are the lower left and right corners +%% assumed on baseline; ie, y.k=y.j=0 +%% z.i, z.l are upper left and right corners +%% that is, start labeling with upper left corner, and +%% proceed to the successive corners counter-clockwise. +y.i-y.j=x.k-x.j; y.i:=good.y y.i+o; y.l=y.i +%% user must draw the square him/herself. +enddef; + + +cmchar "Square with dot"; +beginchar(oct"000",14u#,12u#,0); +adjust_fit(0,0); pickup rule.nib; +lft x1=hround 1.0u; x2=x1; x4=x5=w-x1; +bot y2=0; y4=y2; +makesquare (1,2,4,5); +y3=good.y .5[y1,y2]; x3=good.x .5[x1,x5]; +draw z1---z2---z4---z5---cycle; % square +fill fullcircle scaled dot_size shifted z3; % dot +penlabels(1,2,3,4,5); endchar; + +cmchar "Square plus"; +beginchar(oct"001",14u#,12u#,0); +adjust_fit(0,0); pickup rule.nib; +lft x1=hround 1.0u; x2=x1; x4=x5=w-x1; +bot y2=0; y4=y2; makesquare(1,2,4,5); +draw z1---z2---z4---z5---cycle; % square +x6=x1; x7=x4; y6=.5[y1,y2]; y7=y6; % cross strut +y8=y1; y9=y2; x8=.5[x1, x5]; x9=x8; % vertical strut +draw z6---z7; draw z8---z9; % plus +penlabels(1,2,4,5,6,7,8,9); endchar; + +cmchar "Square times"; +beginchar(oct"002",14u#,12u#,0); +adjust_fit(0,0); pickup rule.nib; +lft x1=hround 1.0u; x2=x1; x4=x5=w-x1; +bot y2=0; y4=y2; makesquare(1,2,4,5); +draw z1---z2---z4---z5---cycle; % square +draw z1---z4; draw z2---z5; % diagonals +penlabels(1,2,4,5); endchar; + +cmchar "Square"; +beginchar(oct"003",14u#,12u#,0); +adjust_fit(0,0); pickup rule.nib; +lft x1=hround 1.0u; x2=x1; +x4=x5=w-x1; +bot y2=0; y4=y2; makesquare(1,2,4,5); +draw z1---z2---z4---z5---cycle; % square +penlabels(1,2,4,5); endchar; + +cmchar "Filled square"; +beginchar(oct"004",14u#,12u#,0); +adjust_fit(0,0); pickup rule.nib; +lft x1=hround 1.0u; x2=x1; x4=x5=w-x1; +bot y2=0; y4=y2; makesquare(1,2,4,5); +filldraw z1---z2---z4---z5---cycle; % square +penlabels(1,2,4,5); endchar; + +cmchar "Small filled square"; +beginchar(oct"005",5u#,.8asc_height#,0); +adjust_fit(0,0); pickup rule.nib; +lft x1=hround 1.0u; x2=x1; x3=x4=w-x1; +bot y2=0; y3=y2; makesquare(1,2,3,4); +filldraw z1---z2---z3---z4---cycle; % draw and fill square +penlabels(1,2,3,4); endchar; + + +cmchar "Diamond"; +beginchar(oct"006",12u#,asc_height#,2u#); +adjust_fit(0,0); pickup rule.nib; +%% z1, z2 are left & right vertices +%% z3, z4 are top and bottom points +lft x1=hround u; x2=w-x1; y1=y2; +x3=x4=.5[x1, x2]; bot y4=-d-o; top y3= good.y h+o; +y1=.5[y4,y3]; +draw z1---z3---z2---z4---cycle; % draw diamond +penlabels(1,2,3,4); endchar; + +cmchar "Filled Diamond"; +beginchar(oct"007",12u#,asc_height#,2u#); +adjust_fit(0,0); pickup rule.nib; +%% z1, z2 are left & right vertices +%% z3, z4 are top and bottom points +lft x1=hround u; x2=w-x1; y1=y2; +x3=x4=.5[x1, x2]; bot y4=-d-o; top y3= good.y h+o; +y1=.5[y4,y3]; +filldraw z1---z3---z2---z4---cycle; % draw diamond +penlabels(1,2,3,4); endchar; + +% do char "011 before char "010. +cmchar "Counter-clockwise-circle indicator"; +beginarithchar(oct"011"); pickup light_rule.nib; +autorounded; lft x6=hround u; x2=w-x6; +y2=math_axis; top y8=h; +circle_points; % define points on circumference +%% see page 487 of vol E +path p; numeric t; +p=z8{right}...z1{z2-z8}...z2{down}...z3{z4-z2}...z4{left} + ...z5{z6-z4}...z6{up}...z7{z8-z6}...cycle; +t=xpart(p intersectiontimes ((4.5u,0)--(4.5u,y8))); +draw subpath (0,t) of p; % circle with gap +z0=.5[z5,z1]; % the origin of the circle +%% Now prepare for left arrowhead--see pg E465 +pickup crisp.nib; +pos12(rule_thickness,90); pos13(bar,0); pos14(bar,0); +y10=y12=y8; lft x10=hround x8; +y13-y10=y10-y14=.19asc_height+eps; x13=x14=x10+3u+eps; +pos15(bar,angle(z14-z10)); z15l=z10; +pos16(bar,angle(z13-z10)); z16l=z10; +z19=.38[.5[z13,z14],z10]; +numeric t; path p; % re-use t, p +p=z14r{z19-z14}..z16r; +t=xpart(p intersectiontimes((0,y12l)--(w,y12l))); +x12=xpart point t of p; +path p; +p=z10..{z14-z19}z14l--subpath(0,t) of +(z14r{z19-z14}..z16r)--z12l--z12r +--subpath(t,0) of (z13r{z19-z13}..z15r) +--z13l{z19-z13}..z10&cycle; % arrowhead +p:=p shifted -z8; % move back to origin +p:=p rotated -16; % rotate down a bit +p:=p shifted z8; % move back to tip of circle +filldraw p; +penlabels(0,1,2,3,5,6,7,8,9,10,11,12,13,14,15,16,19); +picture v; v:=currentpicture; endchar; + +cmchar "Clockwise-circle indicator"; +beginarithchar(oct"010"); +currentpicture:=v reflectedabout ((w/2,0),(w/2,h)); +penlabels(0,1,2,3,5,6,7,8,9,10); endchar; + +cmchar "Left-Right Harpoons"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"013",18u#,v_center(spread#+.48asc_height#)); +path topleft; % for top left half arrow (harpoon) +adjust_fit(0,0); +pickup crisp.nib; +pos1(rule_thickness,90); pos2(rule_thickness,90); +pos3(bar,0); pos4(bar,0); y0=y1=y2=math_axis; +x1+.5rule_thickness=hround(w-u); lft x0=hround u; +y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0+3u+eps; +pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0)); +z6l=z0; numeric t; path p; p=z4r..{2(x0-x4),y0-y4}z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); +x2=xpart point t of p; +topleft=z0--(x0,y2l)---z1l..z1r---z2r + ..subpath (t,0) of\\(z3r..{2(x0-x3),y0-y3}z5r) + --z3l..{2(x0-x3),y0-y3}cycle; % arrowhead and stem +topleft:= +topleft shifted (0,.5spread); % shift above math_axis +path botright; % for bottom right half arrow +botright:=topleft reflectedabout ((w/2,0),(w/2,h)); +botright:=botright reflectedabout +((0,math_axis+eps),(w,math_axis+eps)); +filldraw topleft; filldraw botright; +penlabels(0,1,2,3,4,5,6); endchar; + +cmchar "Right-Left Harpoons"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"012",18u#,v_center(spread#+.48asc_height#)); +path topright, botleft; +adjust_fit(0,0); +pickup crisp.nib; +topright:=topleft reflectedabout((w/2,0),(w/2,h)); +botleft:=botright reflectedabout((w/2,0),(w/2,h)); +filldraw topright; filldraw botleft; endchar; + +cmchar "Square minus"; +beginchar(oct"014",14u#,12u#,0); adjust_fit(0,0); +pickup rule.nib; lft x1=hround 1.0u; x2=x1; x4=x5=w-x1; bot +y2=0; y4=y2; makesquare(1,2,4,5); +draw z1---z2---z4---z5---cycle; % square +x6=x1; x7=x4; y6=.5[y1,y2]; y7=y6; % cross strut +draw z6---z7; % minus +penlabels(1,2,4,5,6,7); endchar; + +cmchar "Forces"; +beginchar(oct"015",13u#,asc_height#,0); +adjust_fit(0,0);; pickup rule.nib; +top y1=h; bot y2=0; y3=y4=good.y .5h; y5=y1; y6=y2; +lft x5=hround u; x4=w-x5; +compute_spread(.45x_height#,.55x_height#); +x1=x5+spread; x1=x2=x3; x6=x5; +draw z6--z5; draw z2--z1; draw z3--z4; +penlabels(1,2,3,4,5,6); endchar; + +cmchar "Forces with extra bar"; +beginchar(oct"016",16u#, asc_height#,0); +adjust_fit(0,0); pickup rule.nib; +compute_spread(.42x_height#,.52x_height#); +top y1=h; bot y2=0; y3=y4=good.y .5h; +y5=y7=y1; y6=y8=y2; lft x7=hround u; x4=w-x7; +x5=good.x x7+spread; x1=good.x x5+spread; +x1=x2=x3; x6=x5; x7=x8; +draw z7--z8; draw z5--z6; draw z1--z2; % verticals +draw z3--z4; % horizontal piece +penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Satisfies"; +beginchar(oct"017",11u#,asc_height#,0); +adjust_fit(0,0); pickup rule.nib; +compute_spread(.45x_height#,.55x_height#); +top y1=h; bot y2=0; y0=good.y .5[y1,y2]; +y3=vround y0+.5spread; +y5=vround y0- .5spread; y4=y3; y6=y5; +lft x1=hround u; x4=w-x1; +x1=x2=x3=x5; x4=x6; x0=x1; +draw z1--z2; % vertical line +draw z3--z4; % draw top horizontal piece +draw z5--z6; % draw bottom horizontal piece +penlabels(0,1,2,3,4,5,6); endchar; + +cmchar "Rightward double arrowhead"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"020",18u#,v_center(spread#+.48asc_height#)); adjust_fit(0,0); +pickup crisp.nib; pos1(rule_thickness,90); pos2(rule_thickness,90); +pos3(bar,0); pos4(bar,0); y0=y1=y2=math_axis; x1-.5rule_thickness=hround u; +rt x0=hround(w-u); y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0-3u-eps; +pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0)); z6l=z0; +z9=.381966[.5[z3,z4],z0]; numeric t; path p; p=z4l{z9-z4}..z6r; t=xpart(p +intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; path p; +p=z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) + --z2l--z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r) + --z3r{z9-z3}..z0 & cycle; +filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r) + --z3r{z9-z3}..z0 & cycle; % arrowhead and stem +filldraw p shifted (x3l-x0,0); +penlabels(0,1,2,3,4,5,6,9); endchar; + +cmchar "Leftward double arrowhead"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"021",18u#,v_center(spread#+.48asc_height#)); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,90); pos2(rule_thickness,90); +pos3(bar,0); pos4(bar,0); y0=y1=y2=math_axis; +x1+.5rule_thickness=hround(w-u); lft x0=hround u; +y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0+3u+eps; +pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0)); +z6l=z0; z9=.381966[.5[z3,z4],z0]; +numeric t; path p; +p=z4r{z9-z4}..z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); +x2=xpart point t of p; +path p; p=z0..{z4-z9}z4l--subpath (0,t) +of\\(z4r{z9-z4}..z6r) + --z2l--z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % second arrowhead +filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead and stem +filldraw p shifted (x3r-x0,0); +penlabels(0,1,2,3,4,5,6,9); endchar; + +cmchar "Leftward double arrow"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"022",18u#,v_center(spread#+.96asc_height#)); +adjust_fit(0,0); pickup crisp.nib; pos1(rule_thickness,90); +pos2(rule_thickness,90); pos3(bar,0); pos4(bar,0); +y0=y1=y2=math_axis; x1+.5rule_thickness=hround(w-u); lft +x0=hround u; y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0+3u+eps; +pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0)); +z6l=z0; z9=.381966[.5[z3,z4],z0]; numeric t; path p; +p=z4r{z9-z4}..z6r; t=xpart(p +intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +path p; % re-use p +p=z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead and stem +p:=p shifted (0,y2-y4+eps); filldraw p; % top arrow +p:= p shifted (0,y4-y3-eps); filldraw p; % bottom arrow +penlabels(0,1,2,3,4,5,6,9); endchar; + +cmchar "Rightward double arrow"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"023",18u#,v_center(spread#+.96asc_height#)); +adjust_fit(0,0); pickup crisp.nib; pos1(rule_thickness,90); +pos2(rule_thickness,90); pos3(bar,0); pos4(bar,0); +y0=y1=y2=math_axis; x1-.5rule_thickness=hround u; rt +x0=hround(w-u); y3-y0=y0-y4=.24asc_height+eps; +x3=x4=x0-3u-eps; pos5(bar,angle(z4-z0)); z5l=z0; +pos6(bar,angle(z3-z0)); z6l=z0; z9=.381966[.5[z3,z4],z0]; +numeric t; path p; p=z4l{z9-z4}..z6r; t=xpart(p +intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +path p; p=z0..{z4-z9}z4r--subpath (0,t) +of\\(z4l{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r) + --z3r{z9-z3}..z0 & cycle; % arrowhead and stem +p:=p shifted (0,y2-y4+eps); filldraw p; % top +p:=p shifted (0,y4-y3-eps); filldraw p; %bottom +penlabels(0,1,2,3,4,5,6,9); endchar; + +cmchar "Double upward arrow"; +beginchar(oct"024",15u#,asc_height#,asc_depth#); italcorr +.76asc_height#*slant+.5crisp#-u#; adjust_fit(0,0); pickup +crisp.nib; pos1(rule_thickness,0); pos2(rule_thickness,0); +pos3(bar,90); pos4(bar,90); lft +x1l=hround(.5w-.5rule_thickness); y1-.5rule_thickness=-d; +x0=x1=x2; top y0=h; x0-x3=x4-x0=3u+eps; +y3=y4=y0-.24asc_height-eps; pos5(bar,angle(z4-z0)); z5l=z0; +pos6(bar,angle(z3-z0)); z6l=z0; z9=.381966[.5[z3,z4],z0]; +numeric t; path p; p=z4l{z9-z4}..z6r; t=xpart(p +intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of +p; +path p; p=z0..{z4-z9}z4r--subpath (0,t) +of\\(z4l{z9-z4}..z6r) + --z2r---z1r..z1l---z2l--subpath (t,0) of\\(z3l{z9-z3}..z5r) + --z3r{z9-z3}..z0 & cycle; % arrowhead and stem +p:=p shifted (x0-x4-eps,0); filldraw p; % left arrow +p:=p shifted (x4-x3+eps,0); filldraw p; +penlabels(0,1,2,3,4,5,6,9); endchar; + +cmchar "Double downward arrow"; +beginchar(oct"025",15u#,asc_height#,asc_depth#); +adjust_fit(0,0); pickup crisp.nib; pos1(rule_thickness,0); +pos2(rule_thickness,0); pos3(bar,90); pos4(bar,90); lft +x1l=hround(.5w-.5rule_thickness); y1+.5rule_thickness=h; +x0=x1=x2; bot y0=-d; x0-x3=x4-x0=3u+eps; +y3=y4=y0+.24asc_height+eps; pos5(bar,angle(z4-z0)); z5l=z0; +pos6(bar,angle(z3-z0)); z6l=z0; z9=.381966[.5[z3,z4],z0]; +numeric t; path p; p=z4r{z9-z4}..z6r; t=xpart(p +intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of +p; +path p; p=z0..{z4-z9}z4l--subpath (0,t) +of\\(z4r{z9-z4}..z6r) + --z2r---z1r..z1l---z2l--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead and stem +p:=p shifted (x0-x4-eps,0); filldraw p; % left arrow +p:=p shifted (x4-x3+eps,0); filldraw p; +penlabels(0,1,2,3,4,5,6,9); endchar; + +%% +cmchar "Upward rightward harpoon"; +beginchar(oct"026",7.5u#,asc_height#, asc_depth#); +%% see page E431 +adjust_fit(0,0); pickup crisp.nib; +x0=x1=x2; lft x1l=hround(.5w-.5rule_thickness); +y1-.5rule_thickness=-d; pos1(rule_thickness,0); +pos2(rule_thickness,0); pos3(bar,-90); pos4(bar,-90); +top y0=vround h; +x3-x0=x0-x4=.24asc_height+eps; y3=y4=y0-3u-eps; +pos5(bar,angle(z4-z0)); z5l=z0; +pos6(bar,angle(z3-z0)); z6l=z0; +z9=.381966[.5[z3,z4],z0]; +numeric t; path p; +p=z4r..{y0-y4,2(x0-x4)}z6r; +t=xpart (p intersectiontimes ((x2l,0)--(x2l,h))); +y2=ypart point t of p; +filldraw z0--(x2l,y0)---z1l..z1r---z2r + ..subpath(t,0) of (z3r..{x0-x3,2(y0-y3)}z5r) + --z3l..{x0-x3,2(y0-y3)}cycle; +picture v; v:=currentpicture; +penlabels(0,1,2,3,4,5,6,9); endchar; + +cmchar "Downward rightward harpoon"; +beginchar(oct"027",7.5u#,asc_height#,asc_depth#); +adjust_fit(0,0); +currentpicture:=v +reflectedabout((0,.5(h-d)*aspect_ratio+eps),(w,.5(h-d)*aspect_ratio+eps)); +penlabels(0,1,2,3,4,5,6); endchar; + +cmchar "Upward leftward harpoon"; +beginchar(oct"030",7.5u#,asc_height#, asc_depth#); +adjust_fit(0,0); +currentpicture:= +v reflectedabout((w/2+eps,-d),(w/2+eps,h)); +picture v; v:=currentpicture; +penlabels(0,1,2,3,4,5,6); endchar; + +cmchar "Downward leftward harpoon"; +beginchar(oct"031",7.5u#,asc_height#,asc_depth#); +adjust_fit(0,0); +currentpicture:=v +reflectedabout((0,.5(h-d)*aspect_ratio+eps),(w,.5(h-d)*aspect_ratio+eps)); +penlabels(0,1,2,3,4,5,6); endchar; + +cmchar "Rightward arrow with tail"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"032",20u#,v_center(spread#+.48asc_height#)); +adjust_fit(0,0); pickup crisp.nib; pos1(rule_thickness,90); +pos2(rule_thickness,90); pos3(bar,0); pos4(bar,0); +y0=y1=y2=math_axis; x1-.5rule_thickness=hround 1.5u; rt +x0=hround(w-3u); y3-y0=y0-y4=.24asc_height+eps; +x3=x4=x0-3u-eps; pos5(bar,angle(z4-z0)); z5l=z0; +pos6(bar,angle(z3-z0)); z6l=z0; z9=.381966[.5[z3,z4],z0]; +numeric t; path p; p=z4l{z9-z4}..z6r; t=xpart(p +intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +path p; +p=z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r) + --z3r{z9-z3}..z0 & cycle; % arrowhead and stem +path arrow; +arrow=z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) + --z2l---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r) + --z3r{z9-z3}..z0 & cycle; +p:=p shifted (2u,0); filldraw p; +arrow:=arrow shifted (-13u+bar,0); filldraw arrow; +penlabels(0,1,2,3,4,5,6,9); endchar; + +cmchar "Leftward arrow with tail"; +beginchar(oct"033",20u#,v_center(spread#+.48asc_height#)); +adjust_fit(0,0); pickup crisp.nib; +p:= p reflectedabout ((w/2+eps,-d),(w/2+eps,h)); +arrow:= arrow reflectedabout ((w/2+eps,-d),(w/2+eps,h)); +filldraw p; filldraw arrow; +penlabels(0,1,2,3,4,5,6,9); endchar; + +cmchar "Leftward-rightward parallel arrows"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"034",18u#,v_center(spread#+.96asc_height#)); +adjust_fit(0,0); pickup crisp.nib; pos1(rule_thickness,90); +pos2(rule_thickness,90); pos3(bar,0); pos4(bar,0); +y0=y1=y2=math_axis; x1+.5rule_thickness=hround(w-u); lft +x0=hround u; y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0+3u+eps; +pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0)); +z6l=z0; z9=.381966[.5[z3,z4],z0]; numeric t; path p; +p=z4r{z9-z4}..z6r; t=xpart(p +intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +path p, q; % re-use p +p=z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead and stem +p:=p shifted (0,.5[y3,y4]+eps); filldraw p; % top arrow +p:= p shifted (0,y4-y3); +q:= p reflectedabout ((w/2+eps,-d),(w/2+eps,h)); +p:=p shifted (0,y3-y4+eps); % restore p's position +filldraw q; % bottom arrow +penlabels(0,1,2,3,4,5,6,9); endchar; + +cmchar "Rightward-leftward parallel arrow"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"035",18u#,v_center(spread#+.96asc_height#)); +adjust_fit(0,0); pickup crisp.nib; +p:=p reflectedabout ((w/2+eps,-d),(w/2+eps,h)); +q:=q reflectedabout ((w/2+eps,-d),(w/2+eps,h)); +filldraw p; filldraw q; +penlabels(0,1,2,3,4,5,6,9); endchar; + +cmchar "Leftward shift"; +beginchar(oct"036",9u#,asc_height#, 0); +adjust_fit(0,0); pickup crisp.nib; pos1(rule_thickness,90); +pos2(rule_thickness,90); pos3(bar,0); pos4(bar,0); +y0=y1=y2=.8h; x1+.5rule_thickness=hround(w-u); lft x0=hround +u; y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0+3u+eps; +pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0)); +z6l=z0; z9=.381966[.5[z3,z4],z0]; +z10=z1; x11=x10; y11-.5rule_thickness =vround -d; +pos10(rule_thickness,0); pos11(rule_thickness,0); +numeric t; path p; p=z4r{z9-z4}..z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); +x2=xpart point t of p; +path p; +p=z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) +--z2l---(x10l,y1l)--z11l..z11r---{up}z10r..{left}z1r---z2r--subpath +(t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead and bent stem +filldraw p; +penlabels(0,1,2,3,4,5,6,9,10); endchar; + +cmchar "Rightward shift"; +beginchar(oct"037",9u#,asc_height#, 0); +adjust_fit(0,0); pickup crisp.nib; +p:=p reflectedabout((w/2+eps,-d),(w/2+eps,h)); +filldraw p; +penlabels(0,1,2,3,4,5,6,9); endchar; + +compute_spread(.45x_height#,.55x_height#); +cmchar "Rightward squiggly arrow"; +beginchar(oct"040",18u#,v_center(spread# + +rule_thickness#)); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,90); pos2(rule_thickness,90); +pos3(bar,0); pos4(bar,0); y0=y1=y2=math_axis; +x1-.5rule_thickness=hround 11u; rt x0=hround(w-u); +y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0-3u-eps; +pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0)); +z6l=z0; z9=.381966[.5[z3,z4],z0]; +numeric t; path p; +p=z4l{z9-z4}..z6r; t=xpart(p +intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +path p; +p=z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r) + --z3r{z9-z3}..z0 & cycle; % arrowhead and stem +filldraw p; +%% now for squiggle +x12-x11=x13-x12=x14-x13=x15-x14=x16-x15=x1-x16; +x1-x11=hround (w-2u-x0+x1-.5rule_thickness); +y11=y13=y15=y0; y12=y16=.5[y0,y3]; +y14=.5[y4,y0]; +pickup pencircle scaled rule_thickness; +draw z11---z12---z14---z16---z1; +penlabels(0,1,2,3,4,5,6,9,11,12,13,14,15,16); endchar; + +compute_spread(.45x_height#,.55x_height#); +cmchar "Leftward rightward squiggly arrow"; +beginchar(oct"041",25u#,v_center(spread# + +rule_thickness#)); +adjust_fit(0,0); pickup crisp.nib; +arrow_length=4.5u+eps; +pos1(rule_thickness,90); pos2(rule_thickness,90); +pos3(bar,0); pos4(bar,0); y0=y1=y2=math_axis; +x1+.5rule_thickness=hround(u+arrow_length); +lft x0=hround u; y3-y0=y0-y4=.24asc_height+eps; +x3=x4=x0+3u+eps; pos5(bar,angle(z4-z0)); z5l=z0; +pos6(bar,angle(z3-z0)); z6l=z0; z9=.381966[.5[z3,z4],z0]; +numeric t; path p; p=z4r{z9-z4}..z6r; t=xpart(p +intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +path p; p=z0..{z4-z9}z4l--subpath (0,t) +of\\(z4r{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead and stem +filldraw p; % left arrow +p:=p reflectedabout ((w/2+eps,-d),(w/2+eps,h)); +filldraw p; % right arrow +z10=z1 reflectedabout ((w/2+eps,-d),(w/2+eps,h)); +y11=y15=y19=.5[y0,y3]; y13=y17=.5[y4,y0]; +y12=y14=y16=y18=y10; +x11-x1=x12-x11=x13-x12=x14-x13=x15-x14=x16-x15=x17-x16=x18-x17= +x19-x18=x10-x19; +pickup pencircle scaled rule_thickness; +draw z1---z11---z13---z15---z17---z19---z10; +penlabels(0,1,2,3,4,5,6,9,10,11,12,13,14,15,16,17,18,19); +endchar; + +cmchar "Leftward curly arrow"; +beginchar(oct"042",18u#,.8asc_height#,0#); +adjust_fit(0,0); pickup crisp.nib; +numeric arrow_length; arrow_length=.66*(w-2u+eps); +pos1(rule_thickness,90); pos2(rule_thickness,90); +pos3(bar,0); pos4(bar,0); y0=y1=y2=math_axis; +x1+.5rule_thickness=hround(u+arrow_length); +lft x0=hround u; y3-y0=y0-y4=.24asc_height+eps; +x3=x4=x0+3u+eps; pos5(bar,angle(z4-z0)); z5l=z0; +pos6(bar,angle(z3-z0)); z6l=z0; z9=.381966[.5[z3,z4],z0]; +numeric t; path p; p=z4r{z9-z4}..z6r; t=xpart(p +intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +path p; p=z0..{z4-z9}z4l--subpath (0,t) +of\\(z4r{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead and stem +filldraw p; % left arrow +z10=z1; x13=x14=hround(u+arrow_length+eps); y13=y1; y14=-o; +x12=.5[x11,x13]; y12=h; rt x11=hround(w-u); y11=.5[y10,y12]; +pickup pencircle scaled rule_thickness; +path q; +q=z10{right}..tension0.8..{up}z11..tension0.8..{left}z12 +..tension0.8..{down}z13--z14; +draw q; +penlabels(0,1,2,3,4,5,6,9,10,11,12,13,14); endchar; + +cmchar "Rightward curly arrow"; +beginchar(oct"043",18u#,.8asc_height#,0#); +adjust_fit(0,0); pickup crisp.nib; +p:=p reflectedabout ((w/2+eps,-d),(w/2+eps,h)); +filldraw p; +pickup pencircle scaled rule_thickness; +q:=q reflectedabout ((w/2+eps,-d),(w/2+eps,h)); +draw q; endchar; + +numeric circ_diam; % diameter of little circle +circ_diam=2.5u; +cmchar "Equals circle sign"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"044",14u#,v_center(4spread#+rule_thickness#+2.5u#)); +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 % +penpos11(rule_thickness,90); penpos13(rule_thickness,-90); +penpos12(rule_thickness,180); penpos14(rule_thickness,0); +x12r=hround(.5w-.5circ_diam-rule_thickness); % +x14r=w-x12r; x11=x13=.5w; y11l=y13l+circ_diam; +y12=y14=.5[y11,y13]; y13r=vround(y1+.8spread); % +penstroke pulled_arc.e(11,12) & pulled_arc.e(12,13) + & pulled_arc.e(13,14) & pulled_arc.e(14,11) & cycle; % +penlabels(1,2,3,4,11,12,13,14); endchar; + + + +cmchar "Follows or equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % spread of similarity sign +compute_spread(.54 x_height#,.66 x_height#); +spread#'':=spread#; spread'':=spread; % spread between symbols +compute_spread(5/4 x_height#,3/2 x_height#); % spread of follows sign +beginchar(oct"045",14u#,v_center(spread#'+spread#+spread#'')); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround 1.5u-eps; x1=x3; x2=w-x1; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +draw z1{u,-spread}...{right}z2; %upper `diagonal' +draw z3{u,spread}...{right}z2; % lower diagonal +pickup pencircle xscaled .7rule_thickness yscaled +1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi +lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11; +bot y11=bot y13; top y12=top y14; +top y12-bot y11=spread''; +y3-y14=spread'; +draw z11{up}...z12{right}..{right}z13...{up}z14; +penlabels(1,2,3,11,12,13,14); endchar; + +cmchar "Greater than or similar to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(.54x_height#,.66x_height#); +spread#'':=spread#; spread'':=spread; +compute_spread(5/4 x_height#,3/2 x_height#); +beginchar(oct"046",14u#,v_center(spread#'+spread#+spread#'')); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround 1.5u-eps; x1=x3; x2=w-x1; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +draw z1--z2--z3; +pickup pencircle xscaled .7rule_thickness yscaled +1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi +lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11; +bot y11=bot y13; top y12=top y14; +top y12-bot y11=spread''; + y3-y14=spread'; +draw z11{up}...z12{right}..{right}z13...{up}z14; +penlabels(1,2,3,4,11,12,13,14); endchar; + +cmchar "Greater than or approximately equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(.54x_height#,.66x_height#); +spread#'':=spread#; spread'':=spread; % spread between similarities +compute_spread(1.111 x_height#,1.333 x_height#); +beginchar(oct"047",14u#,v_center(spread#+2spread#''+2rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround 1.5u-eps; x1=x3; x2=w-x1; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +draw z1--z2--z3; +pickup pencircle xscaled .7rule_thickness yscaled +1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi +lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11; +bot y11=bot y13; top y12=top y14; +top y12-bot y11=spread'; +bot y3- top y13 = spread''; +path p; p=z11{up}...z12{right}..{right}z13...{up}z14; +draw p; draw p shifted (0,-spread''); +penlabels(1,2,3,4,11,12,13,14); endchar; + +cmchar "Multimap symbol"; +beginchar(oct"050",20u#,.8asc_height#,0#); +adjust_fit(0,0); pickup rule.nib; autorounded; +numeric circ_diam; circ_diam=5u; +y2=math_axis; y8=y2+.5circ_diam; rt x2=w-u; +x6=x2-circ_diam; +circle_points; draw_circle; +x9=u+.5rule_thickness; y9=y10=y2; x10=x6-.5rule_thickness; +draw z9---z10; +penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +cmchar "Therefore"; +beginchar(oct"051",12u#,asc_height#,0); +adjust_fit(0,0); +lft x1=hround 1.5u; x2=w-x1; bot y1=-o; y2=y1; +z3-z1=(z2-z1)rotated60; +fill fullcircle scaled dot_size shifted z1; +% left bottom dot +fill fullcircle scaled dot_size shifted z2; +% rigth bottom +fill fullcircle scaled dot_size shifted z3; % top dot +penlabels(1,2,3); endchar; + + +cmchar "Because"; +beginchar(oct"052",12u#,asc_height#,0); +adjust_fit(0,0); +lft x1=hround 1.5u; x2=w-x1; y2=y1; +x3=w/2; y3=-o; +z3-z1=(z2-z1)rotated-60; +fill fullcircle scaled dot_size shifted z1; % top left dot +fill fullcircle scaled dot_size shifted z2; +% top right dot +fill fullcircle scaled dot_size shifted z3; % bottom dot +penlabels(1,2,3); endchar; + +cmchar "Equals-and-dots sign"; +beginarithchar(oct"053"); +compute_spread(.45x_height#,.55x_height#); +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; draw z3--z4; % draw bars +pickup light_rule.nib; +x5=x6=x7=x8=hround w/2+eps; z5=z6; z7=z8; +penpos5(.8dot_size,0); penpos6(.8dot_size,90); +penpos7(.8dot_size,0); penpos8(.8dot_size,90); +y5-y1=y3-y7=spread; +dot(5,6); dot(7,8); % draw dots +penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Equals sign with triangle"; +beginchar(oct"054", 14u#,12u#+math_axis# ,6u#-math_axis#); +compute_spread(.45x_height#,.55x_height#); +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; draw z3--z4; % draw bars +numeric tri_side; % length of equilateral triangle +tri_side=7u; +x6-x5=tri_side; .5[x5,x6]=w/2; y5=y6; y5-y1=.8spread; +%top y7=body_height;x7=w/2; +z7-z5=(z6-z5) rotated 60; +draw z5--z6--z7--cycle; +penlabels(1,2,3,4,5,6,7); endchar; + + +cmchar "Precedes or equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(.54x_height#,.55x_height#); +spread#'':=spread#; spread'':=spread; +compute_spread(5/4 x_height#,3/2 x_height#); +beginchar(oct"055",14u#,v_center(spread#'+spread#+spread#'')); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +draw z1{-u,-spread}...{left}z2; %upper `diagonal' +draw z3{-u,spread}...{left}z2; % lower diagonal +pickup pencircle xscaled .7rule_thickness yscaled +1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi +lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11; +bot y11=bot y13; top y12=top y14; +top y12-bot y11=spread''; + y3-y14=spread'; +draw z11{up}...z12{right}..{right}z13...{up}z14; +penlabels(1,2,3,11,12,13,14); endchar; + +cmchar "Less than or similar to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(.54x_height#,.55x_height#); +spread#'':=spread#; spread'':=spread; +compute_spread(5/4 x_height#,3/2 x_height#); +beginchar(oct"056",14u#,v_center(spread#'+spread#+spread#'')); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +draw z1--z2--z3; +pickup pencircle xscaled .7rule_thickness yscaled +1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi +lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11; +bot y11=bot y13; top y12=top y14; +top y12-bot y11=spread''; + y3-y14=spread'; +draw z11{up}...z12{right}..{right}z13...{up}z14; +penlabels(1,2,3,4,11,12,13,14); endchar; + +cmchar "Less than or approximately equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(.54x_height#,.66x_height#); +spread#'':=spread#; spread'':=spread; % spread between similarities +compute_spread(1.111 x_height#,1.333 x_height#); +beginchar(oct"057",14u#,v_center(spread#+2spread#''+2rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +draw z1--z2--z3; +pickup pencircle xscaled .7rule_thickness yscaled +1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi +lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11; +bot y11=bot y13; top y12=top y14; +top y12-bot y11=spread'; +bot y3- top y13 = spread''; +path p; p=z11{up}...z12{right}..{right}z13...{up}z14; +draw p; draw p shifted (0,-spread''); +penlabels(1,2,3,4,11,12,13,14); endchar; + +cmchar "Equal or less than sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"060",14u#,v_center(spread#'+spread#+rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +lft x2=hround 1.5u-eps; x1=x3=w-x2; y1-y3=spread; +y2=.5[y1,y3]; y8-y1=y9-y2=spread'; top y8=h; +x2=x9; x1=x8; +draw z1--z2--z3; % diagonals +draw z8--z9; % equal sign +penlabels(1,2,3,8,9); endchar; + +cmchar "Equal or greater than sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"061",14u#,v_center(spread#'+spread#+rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread; +x2=x9; x1=x8; +y2=.5[y1,y3]; y8-y1=y9-y2=spread'; top y8=h; +draw z1--z2--z3; % diagonals +draw z8--z9; +penlabels(1,2,3,8,9); endchar; + +cmchar "Less than or (slanted) equal sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"066",14u#,v_center(spread#'+spread#+rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +lft x2=hround 1.5u-eps; x1=x3=w-x2; y1-y3=spread; +y2=.5[y1,y3]; y3-y8=y2-y9=spread'; top y1=h; +x2=x9; x1=x8; +draw z1--z2--z3; % diagonals +draw z8--z9; % equal sign +penlabels(1,2,3,8,9); endchar; + +cmchar "Greater than or (slanted) equal sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"076",14u#,v_center(spread#'+spread#+rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread; +x2=x9; x1=x8; +y2=.5[y1,y3]; y3-y8=y2-y9=spread'; top y1=h; +draw z1--z2--z3; % diagonals +draw z8--z9; +penlabels(1,2,3,8,9); endchar; +cmchar "Less than or greater than sign"; +compute_spread(.4x_height#,.5x_height#); +spread#':=spread#; spread':=spread; +compute_spread(1.111 x_height#,1.333 x_height#); +beginchar(oct"067",14u#,v_center(2spread#'+spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround w-1.5u+eps; x1=x3=x5; x2=x4=x6=w-x1; +y1-y3=spread; top y1=h; y2-y4=spread'; y4-y6=spread; +y2=.5[y1,y3]; y5=.5[y4,y6]; +draw z1--z2--z3; draw z4--z5--z6; +penlabels(1,2,3,4,5,6); endchar; + +cmchar "Greater than or less than sign"; +compute_spread(.4x_height#,.5x_height#); +spread#':=spread#; spread':=spread; +compute_spread(1.111 x_height#,1.333x_height#); +beginchar(oct"077",14u#,v_center(2spread#'+spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround 1.5u-eps; x1=x3=x5; x2=x4=x6=w-x1; +y1-y3=spread; top y1=h; y2-y4=spread'; y4-y6=spread; +y2=.5[y1,y3]; y5=.5[y4,y6]; +draw z1--z2--z3; draw z4--z5--z6; +penlabels(1,2,3,4,5,6); endchar; + +cmchar "Equals or precedes sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"062",14u#,v_center(spread#'+spread#+rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +lft x2=hround(1.5u)+eps; x1=x3=w-x2; y1-y3=spread; +y2=.5[y1,y3]; top y8-bot y1=top y9-bot y2=spread'; bot y3=0; +x2=x9;x8=x1-2u; +draw z1{-u,-spread}...{left}z2; +draw z3{-u, spread}...{left}z2; +draw z8{-u,-spread}...{left}z9; +penlabels(1,2,3,8,9); endchar; + +cmchar "Equals or follows sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"063",14u#,v_center(spread#'+spread#+rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread; +y2=.5[y1,y3]; top y8-bot y1=top y9-bot y2=spread'; bot y3=0;% top y8=h; +x2=x9;x8=x1+2u; +draw z1{u,-spread}...{right}z2; +draw z3{u, spread}...{right}z2; +draw z8{u,-spread}...{right}z9; +penlabels(1,2,3,8,9); endchar; + +cmchar "Precedes or curvy equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"064",14u#,v_center(spread#'+spread#+rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +lft x2=hround(1.5u)+eps; x1=x3=w-x2; y1-y3=spread; +y2=.5[y1,y3]; top y3-bot y8=top y2-bot y9=spread'; bot y3=0; +x2=x9;x8=x1-2u; +%for i=1 upto 3: %lower entire character +%y[i]:=y[i]-spread'; endfor +%for i=8 upto 9: +%y[i]:=y[i]-spread'; endfor +draw z1{-u,-spread}...{left}z2; +draw z3{-u, spread}...{left}z2; +draw z8{-u, spread}...{left}z9; +penlabels(1,2,3,8,9); endchar; + +cmchar "Follows or curvy equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"074",14u#,v_center(spread#'+spread#+rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread; +y2=.5[y1,y3]; top y3-bot y8=top y2-bot y9=spread'; bot y3=0; +x2=x9;x8=x1+2u; +%for i=1 upto 3: %lower entire character +%y[i]:=y[i]-spread'; endfor +%for i=8 upto 9: +%y[i]:=y[i]-spread'; endfor +draw z1{u,-spread}...{right}z2; +draw z3{u, spread}...{right}z2; +draw z8{u, spread}...{right}z9; +penlabels(1,2,3,8,9); endchar; + +cmchar "Less than or (double) equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"065",14u#,v_center(2spread#'+spread#+2rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +lft x2=hround 1.5u-eps; x1=x3=w-x2; y1-y3=spread; +y2=.5[y1,y3]; top y1=h; +x2=x9=x7; x1=x8=x6; y7=y6; y8=y9; +y7-y9=spread'; top y3-bot y6=spread'; +draw z1--z2--z3; % diagonals +draw z6--z7; draw z8--z9; % equal sign +penlabels(1,2,3,6,7,8,9); endchar; + +cmchar "Greater than or (double) equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"075",14u#,v_center(2spread#'+spread#+2rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread; +x2=x7=x9; x1=x6=x8; y6=y7; y8=y9; +y2=.5[y1,y3]; top y3-bot y6=spread'; top y1=h; +y7-y9=spread'; +draw z1--z2--z3; % diagonals +draw z6--z7; draw z8--z9; +penlabels(1,2,3,6,7,8,9); endchar; + +cmchar "Reverse prime symbol (superscript only)"; +beginchar(oct"070",3u#+max(1.75u#,curve#+2(curve#-stem#)), + .8asc_height#,0); adjust_fit(0,0); pickup fine.nib; numeric +light_stem,heavy_stem; light_stem=hround .5[vair,stem]; +heavy_stem=hround(bold+2dw); x1-.5heavy_stem=hround(.25u); +y1+.5heavy_stem=h; x2+.5light_stem=hround (w-.5u); +y2=1/12asc_height; +numeric theta; theta=angle(z1-z2)-90; +pos1(heavy_stem,theta); pos2(light_stem,theta); +filldraw circ_stroke z1e--z2e; % diagonal +penlabels(1,2); endchar; + +cmchar "short axis line"; +beginchar(oct"071",9u#,27/7u#+math_axis#,27/7u#-math_axis#); pickup rule.nib; +lft x1=hround 1.5u-eps; x2=w-x1; y1=y2=math_axis; +draw z1--z2; +labels(1,2); endchar; + +cmchar "Dotted (right-left) equals sign"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"072",14u#,v_center(3spread#+2rule_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 +pickup tiny.nib; +x6=x5=x2; y6=y5=y1+spread; +pos5(dot_size,0); pos6(dot_size,90); +x7=x8=x3; y7=y8=y4-spread; +pos7(dot_size,0); pos8(dot_size,90); +dot(5,6); dot(7,8); +penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Dotted (left-right) equals sign"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"073",14u#,v_center(3spread#+2rule_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 +pickup tiny.nib; +x6=x5=x1; y6=y5=y1+spread; +pos5(dot_size,0); pos6(dot_size,90); +x7=x8=x4; y7=y8=y4-spread; +pos7(dot_size,0); pos8(dot_size,90); +dot(5,6); dot(7,8); +penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Square subset sign"; % taken from vol E, p533 +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"100",14u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; lft x2=hround(1.5u); +x1=x4=hround(w-x2)+eps; x3=x2; y1-y4=spread; y2=y1; y3=y4; +top y1=h; draw z1--z2--z3--z4; % bars and stem x8=x1; +penlabels(1,2,3,4); endchar; + +cmchar "Square superset sign"; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"101",14u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; +x2=hround(w-1.5u); x1=x4=hround w-x2-eps; x3=x2; +y1-y4=spread; y2=y1; y3=y4; top y1=h; draw z1--z2--z3--z4; +% bars and stem +penlabels(1,2,3,4); endchar; + +cmchar "Rightward pointing isosceles triangle"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"102",14u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; lft x2=hround(1.5u); +x3=x2; x1=hround(w-x2); +top y2=h; y2-y3=spread; y1=.5[y2,y3]; +draw z1--z2--z3--cycle; +penlabels(1,2,3); endchar; + +cmchar "Leftward pointing isosceles triangle"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"103",14u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; rt x2=hround(w-1.5u-eps); +x3=x2; x1=hround(w-x2); +top y2=h; y2-y3=spread; y1=.5[y2,y3]; +draw z1--z2--z3--cycle; +penlabels(1,2,3); endchar; + +cmchar "Rightward isosceles triangle with lower bar"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"104",14u#,v_center(spread#'+spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; lft x2=hround(1.5u); +x3=x2; x1=hround(w-x2); +top y2=h; y2-y3=spread; y1=.5[y2,y3]; +x4=x2; x5=x1; y3-y4=spread'; y5=y4; +draw z1--z2--z3--cycle; draw z4--z5; +penlabels(1,2,3,4,5); endchar; + +cmchar "Leftward isosceles triangle with lower bar"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"105",14u#,v_center(spread#'+spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; rt x2=hround(w-1.5u-eps); +x3=x2; x1=hround(w-x2); +top y2=h; y2-y3=spread; y1=.5[y2,y3]; +x4=x2; x5=x1; y3-y4=spread'; y5=y4; +draw z1--z2--z3--cycle; draw z4--z5; +penlabels(1,2,3,4,5); endchar; + +cmchar "Large, filled, 5-pointed star"; +beginchar(oct"106",asc_height#+desc_depth#,asc_height#,desc_depth#); +adjust_fit(.5u#, .5u#); pickup tiny.nib; +numeric theta; theta=360/5; +x0=good.x .5w; y0=good.y .5[h, -d]; x1=x0; top y1=h; +for n=2 upto 5: z[n]=z0+(z1-z0) rotated((n-1)*theta); endfor +% z0 is the `origin' +% z1 thru z5 are the points; z1 at the top going +% counterclockwise +z6=(z1--z3)intersectionpoint(z2--z5); +for n=7 upto10: z[n]=z0+(z6-z0)rotated((n-1)*theta); endfor +filldraw z1--z6--z2--z7--z3--z8--z4--z9--z5--z10--cycle; +penlabels(0,1,2,3,4,5); endchar; + +cmchar "Vertical overlapping slurs"; +beginchar(oct"107",9u#,body_height#,paren_depth#); +adjust_fit(0,0); pickup fine.nib; +numeric light_stem; light_stem=Vround .5[vair,stem]; +y2=.5[h,-d]; x2r=hround w-1.5u; pos2(light_stem,0); +x1-.5hair=hround w-x2; x3=x1; y1+.5hair=h; y3-.5hair=-d; +numeric theta; theta= angle((z2-z1)xscaled3); +numeric theta'; theta'=angle((z3-z2)xscaled3); +pos1(hair, theta+90); pos3(hair, theta'+90); +path p; +p=z1l{dir theta}...z2l...{dir theta'}z3l + ..z3r{-dir theta'}...z2r...{-dir theta}z1r..cycle; +filldraw p; +p:=p reflectedabout((.5w,-d),(.5w,h)); filldraw p; +penlabels(1,2,3); endchar; + +cmchar "Filled rightward pointing isosceles triangle"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"111",14u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; lft x2=hround(1.5u); +x3=x2; x1=hround(w-x2); +top y2=h; y2-y3=spread; y1=.5[y2,y3]; +filldraw z1--z2--z3--cycle; +penlabels(1,2,3); endchar; + +cmchar "Filled leftward pointing isosceles triangle"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"112",14u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; rt x2=hround(w-1.5u-eps); +x3=x2; x1=hround(w-x2); +top y2=h; y2-y3=spread; y1=.5[y2,y3]; +filldraw z1--z2--z3--cycle; +penlabels(1,2,3); endchar; + + cmchar "short axis right arrow"; +beginchar(oct"113",9u#,27/7u#+math_axis#,27/7u#-math_axis#); +pickup rule.nib; +penpos1(.25rule_thickness,90); penpos2(.25rule_thickness,90); penpos3(bar,0); +penpos4(bar,0); +y0=y1=y2=math_axis; +x1=hround 1.5u-eps; +rt x0=w-x1; +y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0-3u-eps; +penpos5(bar,angle(z4-z0)); z5l=z0; penpos6(bar,angle(z3-z0)); z6l=z0; +z9=.381966[.5[z3,z4],z0]; +numeric t; path p; p=z4l{z9-z4}..z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r) + --z3r{z9-z3}..z0 & cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6,9); endchar; + +cmchar "short axis left arrow"; +beginchar(oct"114",9u#,27/7u#+math_axis#,27/7u#-math_axis#); +pickup rule.nib; +penpos1(.25rule_thickness,90); penpos2(.25rule_thickness,90); penpos3(bar,0); +penpos4(bar,0); +y0=y1=y2=math_axis; x0=hround 1.5u-eps; +rt x1=w-x0; +y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0+3u+eps; +penpos5(bar,angle(z4-z0)); z5l=z0; penpos6(bar,angle(z3-z0)); z6l=z0; +z9=.381966[.5[z3,z4],z0]; +numeric t; path p; p=z4r{z9-z4}..z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6,9); endchar; + + +cmchar "Filled downward triangle"; +beginchar(oct"110",.8asc_height#+3u#,.8asc_height#,0pt#); +adjust_fit(0,0); pickup rule.nib; +y2=0; lft x1=1.5u; +x3=hround w-x1; +y1=y3=vround h-y2; x2=.5[x1,x3]; +filldraw z1--z2--z3--cycle; +penlabels(1,2,3); endchar; + +cmchar "Downward triangle"; +beginchar(oct"117",.8asc_height#+3u#,.8asc_height#,0pt#); +adjust_fit(0,0); pickup rule.nib; +y2=0; lft x1=1.5u; +x3=hround w-x1; +y1=y3=vround h-y2; x2=.5[x1,x3]; +draw z1--z2--z3--cycle; +penlabels(1,2,3); endchar; + +cmchar "Upward triangle"; +beginchar(oct"115",.8asc_height#+3u#,.8asc_height#,0pt#); +adjust_fit(0,0); pickup rule.nib; +y2=h; lft x1=1.5u; +x3=hround w-x1; +y1=y3=vround h-y2; x2=.5[x1,x3]; +draw z1--z2--z3--cycle; +penlabels(1,2,3); endchar; + +cmchar "Filled upward triangle"; +beginchar(oct"116",.8asc_height#+3u#,.8asc_height#,0pt#); +adjust_fit(0,0); pickup rule.nib; +y2=h; lft x1=1.5u; +x3=hround w-x1; +y1=y3=vround h-y2; x2=.5[x1,x3]; +filldraw z1--z2--z3--cycle; +penlabels(1,2,3); endchar; + +cmchar "Egg sandwich"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"120",14u#,asc_height#,0); +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 +pickup tiny.nib; +x5=x6=hround w/2; bot y5=bot y1; top y6=top y3; +y7=y8=math_axis;x8-x7=y5-y6; +x6=.5[x7,x8]; +draw z5{right}..z8..z6{left}..z7..cycle; +penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Stacked symbols: <, bar, >"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(.98 x_height#,1.176 x_height#); +beginchar(oct"121",14u#,v_center(2spread#'+2spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; +y1=y2; lft x1=hround 1.5u-eps; rt x2=w-x1; +x4=x6=x8=x1; x3=x5=x7=x2; +y5-y1=y1-y6=spread';top y3=h; y3-y5=spread; +y6-y8=spread; +y7=.5[y6,y8]; y4=.5[y3,y5]; +draw z3--z4--z5; draw z6--z7--z8; draw z1--z2; +penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Stacked symbls: greater than, bar, less than"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(.98 x_height#,1.176 x_height#); +beginchar(oct"122",14u#,v_center(2spread#'+2spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; +y1=y2; lft x2=hround 1.5u-eps; rt x1=w-x2; +x4=x6=x8=x1; x3=x5=x7=x2; +y5-y1=y1-y6=spread';top y3=h; y3-y5=spread; +y6-y8=spread; +y7=.5[y6,y8]; y4=.5[y3,y5]; +draw z3--z4--z5; draw z6--z7--z8; draw z1--z2; +numeric bar_ht; bar_ht=y1; %save height of bar +penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Stacked symbls: less than, =, greater than"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(.98 x_height#,1.176 x_height#); +beginchar(oct"123",14u#,v_center(3spread#'+2spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround 1.5u-eps; x2=w-x1; +x1'=x1; x2=x2'; x4=x6=x8=x1; +x3=x5=x7=x2; +y1=y2; y1'=y2'; y2-y2'=spread'; bot y2=math_axis+.5spread'; +draw z1--z2; draw z1'--z2'; +y3-y5=y6-y8=spread; +y5-y2=y2'-y6=spread'; +y7=.5[y6,y8]; y4=.5[y3,y5]; +draw z3--z4--z5; draw z6--z7--z8; +penlabels(1,1',2,2',3,4,5,6,7,8); endchar; + +cmchar "Stacked symbols: greater than, =, less than"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(.98 x_height#,1.176 x_height#); +beginchar(oct"124",14u#,v_center(3spread#'+2spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; +lft x2=hround 1.5u-eps; x1=w-x2; +x1'=x1; x2=x2'; x4=x6=x8=x1; +x3=x5=x7=x2; +y1=y2; y1'=y2'; y2-y2'=spread'; bot y2=math_axis+.5spread'; +draw z1--z2; draw z1'--z2'; +y3-y5=y6-y8=spread; +y5-y2=y2'-y6=spread'; +y7=.5[y6,y8]; y4=.5[y3,y5]; +draw z3--z4--z5; draw z6--z7--z8; +penlabels(1,1',2,2',3,4,5,6,7,8); endchar; + +cmchar "Triple rightward arrow"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"126",18u#,v_center(2spread#+.5asc_height#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; penpos1(rule_thickness,90); +penpos2(rule_thickness,90); penpos3(1.5bar,0); penpos4(1.5bar,0); +y0=y1=y2=math_axis; x1-.5rule_thickness=u; +rt x0=hround (w-u); x0'=x0''=x0; x1'=x1''=x1; +y1'=y1+spread;y1''=y1-spread; y0'=y1'; y0''=y1''; +draw z0'--z1'; draw z0''--z1''; % draw bars +pickup crisp.nib; +y3-y0'=y0''-y4=.24asc_height+eps; x3=x4=x0-6u-eps; +penpos5(bar,angle(z0-z4)); z5r=z0; penpos6(bar,angle(z0-z3)); +z6r=z0; z9=.381966[.5[z3,z4],z0]; erase filldraw +z0..{z3-z9}z3--(w,y3)--(w,y4)--z4{z9-z4}..z0& cycle; +numeric t; path p; +p=z4l{z9-z4}..z6l; t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); +x2=xpart point t of p; +filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6l) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5l) + --z3r{z9-z3}..z0 & cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6,9,0',0'',1',1''); endchar; + + +cmchar "Triple leftward arrow"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"127",18u#,v_center(2spread#+.5asc_height#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; penpos1(rule_thickness,90); +penpos2(rule_thickness,90); penpos3(1.5bar,0); penpos4(1.5bar,0); +y0=y1=y2=math_axis; x1+.5rule_thickness=hround(w-u); lft +x0=hround u; x0'=x0''=x0; x1'=x1''=x1; +y1'=y1+spread;y1''=y1-spread; y0'=y1'; y0''=y1''; draw +z0'--z1'; draw z0''--z1''; % draw bars +pickup crisp.nib; +y3-y0'=y0''-y4=.24asc_height+eps; x3=x4=x0+6u+eps; +pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0)); +z6l=z0; z9=.381966[.5[z3,z4],z0]; erase filldraw +z0..{z3-z9}z3--(0,y3) + --(0,y4)--z4{z9-z4}..z0& cycle; numeric t; path p; +p=z4r{z9-z4}..z6r; t=xpart(p +intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6,9,0',0'',1',1''); endchar; + +cmchar "Check mark"; beginchar(oct"130",15u#,asc_height#, +0); adjust_fit(0,0); pickup cal.nib; +lft x1=hround(1.5u);y1=math_axis; y2=0; x2=hround(w/3); +x3=w-x1; y3=asc_height-o; +x4=w-1.5x2; y4=asc_height; +draw z1--z2{z4-z2}..z3; +penlabels(1,2,3,4); +endchar; + +cmchar "Vee on bar"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"131",11u#,asc_height#, desc_depth#); +adjust_fit(0,0); pickup rule.nib; +lft x1=lft x4=hround u; x3=x5=w-x1; x2=hround(w/2); +bot y4=bot y5=0; y2=y4+spread; top y1=top y3=h+o; +draw z1--z2--z3; draw z4--z5; +penlabels(1,2,3,4,5); +endchar; + +cmchar "Bar on mountain"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"132",11u#,asc_height#, desc_depth#); adjust_fit(0,0); +pickup rule.nib; +lft x1=lft x4=hround u; x3=x5=w-x1; x2=hround(w/2); +top y4=top y5=h+o; y2=y4-spread; bot y1=bot y3=0; +draw z1--z2--z3; draw z4--z5; +numeric t; % t is used in char"133, = on mountain +t=y2-y3; +penlabels(1,2,3,4,5); +endchar; + +cmchar "Equal sign on mountain"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"133",11u#,body_height#, desc_depth#); adjust_fit(0,0); +pickup rule.nib; +lft x1=lft x4=lft x6=hround u; x3=x5=x7=w-x1; x2=hround(w/2); +y4=y5; y6=y7; y6-y4=y4-y2=spread; top y4=asc_height+o-.5spread; +y2-y1=t; % t is defined in char "132 +y1=y3; +draw z1--z2--z3; draw z4--z5; draw z6--z7; +penlabels(1,2,3,4,5,6,7); +endchar; + +cmchar "Angle sign (simple)"; +beginchar(oct"134",13u#,asc_height#, 0); +adjust_fit(0,0); pickup rule.nib; +lft x2=hround u; x1=x3=w-x2; +bot y2=bot y3=0; top y1=h; +draw z1--z2--z3; +penlabels(1,2,3); +endchar; + +cmchar "Angle sign (with small arc)"; +beginchar(oct"135",13u#,asc_height#, 0); +adjust_fit(0,0); pickup rule.nib; +lft x2=hround u; x1=x3=w-x2; +bot y2=bot y3=0; y1=h; +draw z1--z2--z3; +path p; p=quartercircle scaled 15u; +numeric t; t= xpart(p intersectiontimes (z1--z2)); +draw subpath (0,t) of p; +penlabels(1,2,3); +endchar; + +cmchar "Eye-like angle sign (with small arc)"; +beginchar(oct"136",13u#,v_center(.75body_height#)); +adjust_fit(0,0); pickup rule.nib; +lft x2=hround u; x1=x3=w-x2; +y2=math_axis; y2=.5[y1,y3]; y1-y3=.75body_height; +draw z1--z2--z3; +path p; p=quartercircle scaled 17u; +numeric t; t= xpart(p intersectiontimes ((z1--z2)shifted +-z2)); +draw subpath (0,t) of p shifted z2; +draw subpath (0,t) of p shifted z2 +reflectedabout(z2,(w,y2)); +penlabels(1,2,3); +endchar; + +cmchar "Proportional sign made of circles"; +beginchar(oct"137",14u#,asc_height#,0); +adjust_fit(0,0); pickup pencircle scaled rule_thickness; +numeric radius; radius:=w-2u; radius:=radius/3; +radius:=radius-.5rule_thickness; +x2=hround w-u; x1=w-x2+radius; +y1=y2=math_axis; +pair m; m=(rule_thickness,0); +draw fullcircle scaled 2radius shifted (z1+.5m); +draw (halfcircle scaled 2radius rotated 90) shifted +(z2-.5m); +penlabels(1,2); +endchar; + +cmchar "Simple slur below (smile)"; +beginchar(oct"140",14u#,asc_height#,desc_depth#); +adjust_fit(0,0); pickup rule.nib; +lft x1=hround u; y1=vround(math_axis+.25x_height); +x3=w-x1; y3=y1; penpos2(rule_thickness,90); x2=.5w; +y2l=good.y -(.25x_height-math_axis); +numeric theta; theta=angle((z2-z1)yscaled 3); +penpos1(rule_thickness,90+theta); +penpos3(rule_thickness,90-theta); +draw z1{dir theta}...z2...{dir-theta}z3; +penlabels(1,2,3); endchar; + +cmchar "Simple slur above (frown)"; +beginchar(oct"141",14u#,asc_height#,desc_depth#); +adjust_fit(0,0); pickup rule.nib; +lft x1=hround u; y1=vround(math_axis-.25x_height); +x3=w-x1; y3=y1; +penpos2(rule_thickness,90); x2=.5w; y2=good.y(.25x_height+math_axis); +numeric theta; theta=angle((z2-z1)yscaled 3); +penpos1(rule_thickness,90+theta); +penpos3(rule_thickness,90-theta); +draw z1{dir theta}...z2...{dir-theta}z3; penlabels(1,2,3); +endchar; + +cmchar "Very proper subset sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +spread':=spread'-rule_thickness; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"142",14u#,v_center(spread#+rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +autorounded; lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]=math_axis; x4=x5=.5w; y4=y1; +y5=y3; draw z1---z4...z2{down}...z5---z3; % arc and bars +x1'=x3'=x1; y1-y1'=y3'-y3=spread'; +x4'=x5'=x4; y4-y4'=y5'-y5=spread'; +y2'=y2; x2'-x2=spread'; +draw z1'--z4'..z2'{down}..z5'--z3'; +penlabels(1,2,3,4,5,1',2',3',4',5'); endchar; + +cmchar "Very proper superset sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +spread':=spread'-rule_thickness; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"143",14u#,v_center(spread#+rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +autorounded; lft x1=hround 1.5u-eps; x2=w-x1; x3=x1; +y1-y3=spread; y2=.5[y1,y3]=math_axis; x4=x5=.5w; y4=y1; +y5=y3; draw z1---z4...z2{down}...z5---z3; % arc and bars +x1'=x3'=x1; y1-y1'=y3'-y3=spread'; +x4'=x5'=x4; y4-y4'=y5'-y5=spread'; +y2'=y2; x2-x2'=spread'; +draw z1'--z4'..z2'..z5'--z3'; +penlabels(1,2,3,4,5,1',2',3',4',5'); endchar; + +cmchar "Parallel set union sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +spread':=spread'-rule_thickness; +beginchar(oct"144",12u#,.8asc_height#,0); +italcorr .8asc_height#*slant-.5u#; +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround u; x2=x1; x3=w-x3; x4=x5=w-x1; +y1=good.y h+o; bot y3=-o; y2=y4=2/3[y1,y3]; y5=y1; +draw z1---z2...z3...z4---z5; % stems and cup +y1'=y5'=y1; x1'-x1=x5-x5'=spread'; +y2'=y4'=y2+u; x2'-x2=x4-x4'=spread'; +x3'=x3; y3'-y3=spread'; +draw z1'..{down}z2'..z3'{right}..z4'{up}..z5'; +penlabels(1,2,3,4,5,1',2',3',4',5'); endchar; + +cmchar "Parallel set intersection sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +spread':=spread'-rule_thickness; +beginchar(oct"145",12u#,.8asc_height#,0); +italcorr .8asc_height#*slant-.5u#; adjust_fit(0,0); +pickup rule.nib; autorounded; +lft x1=hround u; x2=x1; x3=w-x3; x4=x5=w-x1; +y3=good.y h+o; bot y1=-o; y2=y4=2/3[y1,y3]; y5=y1; +draw z1---z2...z3...z4---z5; % stems and cap +y1'=y5'=y1; x1'-x1=x5-x5'=spread'; +y2'=y4'=y2-u; x2'-x2=x4-x4'=spread'; +x3'=x3; y3-y3'=spread'; +draw z1'..{up}z2'..z3'{right}..z4'{down}..z5'; +penlabels(1,2,3,4,5,1',2',3',4',5'); endchar; + +cmchar "Subset or (double) equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"152",14u#,v_center(2spread#'+spread#+2rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; lft x2=hround +1.5u-eps; x1=x3=w-x2; y1-y3=spread; y2=.5[y1,y3]; top y1=h; +x4=x5=.5w; y4=y1; y5=y3; draw z1---z4...z2{down}...z5---z3; +% arc and bars +x8=x1; x9=x2; +y8=y9; y3-y9=spread'; draw z8--z9; % lower bar +x9'=x9; x8'=x8; y9'=y8'; y9-y9'=spread'; draw z8'--z9'; +penlabels(1,2,3,4,5,8,9,8',9'); endchar; + +cmchar "Superset or (double) equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"153",14u#,v_center(2spread#'+spread#+2rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; lft x1=hround +1.5u-eps; x2=w-x1; x3=x1; y1-y3=spread; y2=.5[y1,y3]; top +y1=h; x4=x5=.5w; y4=y1; y5=y3; draw +z1---z4...z2{down}...z5---z3; % arc and bars +x8=x1; +x9=x2; +y8=y9; y3-y9=spread'; draw z8--z9; % lower bar +x9'=x9; x8'=x8; y9'=y8'; y9-y9'=spread'; draw z8'--z9'; +labels(1,2,3,4,5,8,9); endchar; + +cmchar "Christmas tree symbol"; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"146",spread#+4u#,.8asc_height#,0); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +autorounded; +lft x1=1.5u; x3=w-x1; x2=.5[x1,x3]; +bot y1=-d-o; y3=y1; top y2=h+o; +draw z1{spread,u}...{up}z2; +draw z3{-spread,u}...{up}z2; +penlabels(1,2,3); endchar; + +cmchar "Inverted Christmas tree symbol"; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"147",spread#+4u#,.8asc_height#,0); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +autorounded; +lft x1=1.5u; x3=w-x1; x2=.5[x1,x3]; +top y1=h+o; y3=y1; bot y2=-d-o; +draw z1{spread,-u}...{down}z2; +draw z3{-spread,-u}...{down}z2; +penlabels(1,2,3); endchar; + +cmchar "Stylized lambda symbol"; +beginchar(oct"150",14u#,asc_height#,0); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=u; top y1=h; +rt x2=w-u; bot y2=-o; +draw z1--z2; +z3=.5[z1,z2]; +x4=x1; y4=y2; draw z3--z4; +penlabels(1,2,3,4); endchar; + +cmchar "Reflected stylized lambda symbol"; +beginchar(oct"151",14u#,asc_height#,0); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=u; bot y1=-o; +rt x2=w-u; top y2=h; +draw z1--z2; +z3=.5[z1,z2]; +x4=x2; y4=y1; draw z3--z4; +penlabels(1,2,3,4); endchar; + +cmchar "Sunrise symbol"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct "154",14u#,v_center(3spread#+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; +y5=y6=y1; x7=.5[x1,x2]; x5=.3[x1,x2]; +x2-x6=x5-x1; +y7-y1=.5(x6-x5); +draw z1--z5{up}...z7...{down}z6--z2; % upper bar +draw z3--z4; % lower bar +penlabels(1,2,3,4,5,6,7); endchar; + +cmchar "Sunrise-over-water symbol"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct "155",14u#,v_center(3spread#+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; +y5=y6=y1; x7=.5[x1,x2]; x5=.3[x1,x2]; +x2-x6=x5-x1; +y7-y1=.5(x6-x5); +x5'=x5; x7'=x7; x6'=x6; y5'=y6'=y3; y3-y7'=y7-y1; +draw z1--z5{up}...z7...{down}z6--z2; % upper bar +draw z3--z5'{down}...z7'...{up}z6'--z4; % lower bar +penlabels(1,2,3,4,5,6,7); endchar; + +cmchar "Much, much less sign"; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"156",24u#,v_center(spread#+rule_thickness#)); +adjust_fit(if monospace:-u#,-u# else: 0,0 fi); pickup +rule.nib; lft x2=hround u-epsilon; x1=x3=hround 12.5u-x2; +y1-y3=ceiling 1.1spread; y2=.5[y1,y3]=math_axis; +draw z1--z2--z3; % left diagonals +z4-z1=z5-z2=z6-z3=z7-z4=z8-z5=z9-z6; +x7=w-x2; y4=y1; +draw z4--z5--z6; % middle diagonals +draw z7--z8--z9; % right diagonals +penlabels(1,2,3,4,5,6,7,8,9); endchar; + +cmchar "Much, much greater sign"; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"157",24u#,v_center(spread#+rule_thickness#)); +adjust_fit(if monospace:-u#,-u# else: 0,0 fi); pickup +rule.nib; +lft x1=hround u-epsilon; x2=hround 12.5u-u; x1=x3; +y1-y3=ceiling 1.1spread; y2=.5[y1,y3]=math_axis; +draw z1--z2--z3; % left diagonals +z4-z1=z5-z2=z6-z3=z7-z4=z8-z5=z9-z6; +x8=w-x1; y4=y1; +draw z4--z5--z6; % middle diagonals +draw z7--z8--z9; % right diagonals +penlabels(1,2,3,4,5,6,7,8,9); endchar; + +cmchar "Northwest right angle symbol"; +beginchar(oct"160",9u#, asc_height#, 0); +adjust_fit(0,0); pickup rule.nib; +x1=x2; lft x1=u; x3=w-x1; y2=y3; top y2=h; +y2-y1=x3-x2; +draw z1--z2--z3; +penlabels(1,2,3); endchar; + +cmchar "Northeast right angle symbol"; +beginchar(oct"161",9u#,asc_height#,0); +adjust_fit(0,0); pickup rule.nib; +lft x3=u; x2=w-x3; top y3=h; y3=y2; x1=x2; x2-x3=y2-y1; +draw z1--z2--z3; +penlabels(1,2,3); endchar; + +cmchar "Southwest right angle symbol"; +beginchar(oct"170", 9u#, 7u#,0); +adjust_fit(0,0); pickup rule.nib; +lft x2=u; x3=w-x2; x1=x2; bot y2=-o; y3=y2; +y1-y2=x3-x2; +draw z1--z2--z3; +penlabels(1,2,3); endchar; + +cmchar "Southeast right angle symbol"; +beginchar(oct"171", 9u#, 7u#,0); +adjust_fit(0,0); pickup rule.nib; +lft x3=u; x2=w-x3; x1=x2; bot y2=-o; y3=y2; +y1-y2=x2-x3; +draw z1--z2--z3; +penlabels(1,2,3); endchar; + + +cmchar "Pitchfork symbol"; +beginchar(oct"164",12u#,asc_height#,0); +italcorr .8asc_height#*slant-.5u#; +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround u; x2=x1; x3=w-x3; x4=x5=w-x1; +y3=good.y .7h+o; bot y1=-o; y2=y4=2/3[y1,y3]; y5=y1; +draw z1---z2...z3...z4---z5; % stems and cap +x6=x7=good.x w/2; y6=y1; y7=h+o; +draw z6--z7; % stem +penlabels(1,2,3,4,5,6,7); endchar; + +cmchar "Dotted plus sign"; +beginchar(oct"165",14u#,8u#+math_axis#,6u#-math_axis#); +adjust_fit(0,0); pickup rule.nib; +x1=x2=good.x .5w; top y1=h-2.5rule_thickness+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 +x5=x1; y5=h+o; +pickup pencircle scaled 2.5rule_thickness; drawdot z5; +penlabels(1,2,3,4,5); endchar; + +cmchar "Inverted similarity sign"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"166",14u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); +pickup pencircle xscaled .7rule_thickness yscaled 1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline +lft x1=hround(u); x2=4u; x3=w-x2; x4=w-x1; +bot y2=bot y4=-d; top y1=top y3=h; +draw z1{down}...z2{right}..{right}z3...{down}z4; % stroke +labels(1,2,3,4); endchar; + +cmchar "Inverted similar or equal sign"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"167",14u#,v_center(2spread#+rule_thickness#)); +adjust_fit(0,0); +pickup pencircle xscaled .7rule_thickness yscaled 1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline +lft x1=hround(u); x2=4u; x3=w-x2; x4=w-x1; +bot y2=bot y4=floor math_axis; top y1=top y3=h; +draw z1{down}...z2{right}..{right}z3...{down}z4; % stroke +pickup rule.nib; lft x5=hround u-eps; x6=w-x5; y5=y6=math_axis-spread; +draw z5--z6; % bar +labels(1,2,3,4,5,6); endchar; + +cmchar "Iron cross"; +beginchar(oct"172",15u#,asc_height#,0); adjust_fit(0,0); +pickup pencircle scaled .5rule_thickness; +numeric cross_tension; cross_tension=.9; +numeric cross_foot; cross_foot=4u; +y0=.5[y1,y2]; x0=hround w/2; +x1=x2=x0; bot y1=-o; lft x1l=3.5u; x1r=w-x1l; y1l=y1r=y1; +top y2=h+o; x2r=x1l; x2l=x1r; y2l=y2r=y2; +y3=y4=y0; x3=x0+eps; x4+x3=2x0; +path p; p=z1l--z1r..tension cross_tension..z3..tension cross_tension + ..z2l--z2r..tension cross_tension..z4..tension cross_tension.. + z1l..cycle; +filldraw p; +p:=p shifted -z0; p:=p rotated 90; p:=p shifted z0; +filldraw p; +penlabels(0,1,2,3,4); endchar; + +cmchar "Bourbaki C symbol"; +beginchar(oct"173",9u#, 1.1body_height#, 0); +adjust_fit(0,0); pickup pencircle scaled 2rule_thickness; +lft x4=lft x5=u; x1=x2=x8=x7=w-x4; x3=x6=hround +w/2; +bot y6=-o; top y3=h+o; y2=y4=y3-1.8u; y5=y7=y6+1.8u; +y1=y2-2u; y8=y7+2u; +draw z1--z2{up}..{left}z3..{down}z4--z5{down}..z6{right}..{up}z7--z8; +labels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Bourbaki T symbol"; +beginchar(oct "174", 10u#, x_height#, desc_depth#); +adjust_fit(0,0); pickup pencircle scaled 2rule_thickness; +lft x1=u; x2=w-x1; top y1=top y2=h; x3=x4=hround w/2; y3=y1; +bot y4=-1.1d; +draw z1--z2; draw z3--z4; +labels(1,2,3,4); endchar; + +cmchar "Circle-in-a-circle operator"; +beginarithchar(oct"175"); pickup light_rule.nib; autorounded; +lft x6=hround u; x2=w-x6; y2=math_axis; top y8=h; +circle_points; draw_circle; % circle +pickup rule.nib; +numeric x[],y[]; +lft x6=hround 4.5u; x2=w-x6; y2=math_axis; +top y8=y2+.5(rt x2-lft x6); circle_points; draw_circle; +labels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Asterisk-in-a-circle"; +beginarithchar(oct"176"); +pickup light_rule.nib; autorounded; +y2=math_axis; top y8=6u+math_axis; +lft x6=hround w/2 - 6u; x2=w-x6; +circle_points; draw_circle; % circle +numeric x[], y[]; +numeric ast_flare; ast_flare=hround .7[thin_join,stem]; +x0=.5w; y0=math_axis; 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 "Bar-in-a-circle operator"; +beginarithchar(oct"177"); pickup light_rule.nib; autorounded; +lft x6=hround u; x2=w-x6; y2=math_axis; top y8=h; +circle_points; draw_circle; % circle +y9=y10=y2; x9=x6+3u; x10=w-x9; +draw z9--z10; +labels(1,2,3,4,5,6,7,8,9,10); endchar; + diff --git a/Master/texmf-dist/fonts/source/public/cmbright/msb.mf b/Master/texmf-dist/fonts/source/public/cmbright/msb.mf new file mode 100644 index 00000000000..a553af8b3c9 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/msb.mf @@ -0,0 +1,1461 @@ +% MSB symbols, roman style [1996/07/02 v1.0 (WaS)] + +def char_negate(suffix c,t,b) = %c is center point; t is top point; b is bottom +pickup rule.nib; +w-x.t=x.b; y.t-y.c=y.c-y.b; draw z.t--z.b; +penlabels(t,c,b); enddef; +def char_center(suffix c) = % find center of type character +x.c=w/2; y.c=.5[-d,h]; enddef; + +cmchar "Less than or not (double) equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"000",14u#,v_center(2spread#'+spread#+2rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +lft x2=hround 1.5u-eps; x1=x3=w-x2; y1-y3=spread; +y2=.5[y1,y3]; top y1=h; +x2=x9=x7; x1=x8=x6; y7=y6; y8=y9; +y7-y9=spread'; top y3-bot y6=spread'; +draw z1--z2--z3; % diagonals +draw z6--z7; draw z8--z9; % equal sign +z.c=.5[z7,z8]; x.t=x.c; y.t=2/3[y6,y3]; +char_negate(c,t,b); +penlabels(1,2,3,6,7,8,9); endchar; + +cmchar "Greater than or not (double) equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"001",14u#,v_center(2spread#'+spread#+2rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread; +x2=x7=x9; x1=x6=x8; y6=y7; y8=y9; +y2=.5[y1,y3]; top y3-bot y6=spread'; top y1=h; +y7-y9=spread'; +draw z1--z2--z3; % diagonals +draw z6--z7; draw z8--z9; +z.c=.5[z7,z8]; x.t=x.c; y.t=2/3[y6,y3]; +char_negate(c,t,b); +penlabels(1,2,3,6,7,8,9); endchar; + +cmchar "Not less than or equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"002",14u#,v_center(spread#'+spread#+rule_thickness#+6u#)); +italcorr h#*slant-u#; +adjust_fit(0,0); pickup rule.nib; +lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]; top y1=h-3u; +draw z1--z2--z3; % diagonals +x8=x1; x9=x2; y8=y9; y3-y9=spread'; draw z8--z9; % bar +char_center(100); x101=w-3u; y101=y1+3u; +char_negate(100,101,102); +labels(1,2,3,8,9,99,100); endchar; + +cmchar "Not greater than or equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"003",14u#,v_center(spread#'+spread#+rule_thickness#+6u#)); +italcorr h#*slant-u#; +adjust_fit(0,0); pickup rule.nib; +lft x1=hround 1.5u-eps; x2=w-x1; x3=x1; +y1-y3=spread; y2=.5[y1,y3]; top y1=h-3u; +draw z1--z2--z3; % diagonals +x8=x1; x9=x2; y8=y9; y3-y9=spread'; draw z8--z9; % bar +char_center(100); x101=w-3u; y101=y1+3u; +char_negate(100,101,102); +labels(1,2,3,8,9,99,100); endchar; + +cmchar "Not less than sign"; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"004",14u#,v_center(spread#+rule_thickness#+6u#)); +italcorr h#*slant-u#; +adjust_fit(0,0); pickup rule.nib; +lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]=math_axis; +draw z1--z2--z3; % diagonals +char_center(100); x101=w-3u; y101=y1+3u; +char_negate(100,101,102); +labels(1,2,3); endchar; + +cmchar "Not greater than sign"; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"005",14u#,v_center(spread#+rule_thickness#+6u#)); +italcorr math_axis#*slant-u#; +adjust_fit(0,0); pickup rule.nib; +rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]=math_axis; +draw z1--z2--z3; % diagonals +char_center(100); x101=w-3u; y101=y1+3u; +char_negate(100,101,102); +labels(1,2,3,99,100); endchar; + +cmchar "Not precedes sign"; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"006",14u#,v_center(spread#+rule_thickness#+6u#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x2=hround 1.5u-epsilon; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]; top y1=h-3u; +draw z1{-u,-spread}...{left}z2; % upper diagonal +draw z3{-u,spread}...{left}z2; % lower diagonal +char_center(100); x101=w-3u; y101=y1+3u; +char_negate(100,101,102); +labels(1,2,3,99,100); endchar; + +cmchar "Not follows sign"; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"007",14u#,v_center(spread#+rule_thickness#+6u#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround 1.5u-epsilon; x2=w-x1; x3=x1; +y1-y3=spread; y2=.5[y1,y3]; top y1=h-3u; +draw z1{u,-spread}...{right}z2; % upper diagonal +draw z3{u,spread}...{right}z2; % lower diagonal +char_center(100); x101=w-3u; y101=y1+3u; +char_negate(100,101,102); +labels(1,2,3,99,100); endchar; + +cmchar "Less than or slanted not (double) equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"010",14u#,v_center(2spread#'+spread#+2rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +lft x2=hround 1.5u-eps; x1=x3=w-x2; y1-y3=spread; +y2=.5[y1,y3]; top y1=h; +x2=x9=x7; x1=x8=x6; y7=y6; y8=y9; +y7-y9=spread'; top y3-bot y6=spread'; +draw z1--z2--z3; % diagonals +draw z6--z7; draw z8--z9; % equal sign +z.c=.5[z7,z8]; x.t=2/3[x.c, x3]; y.t=2/3[y6,y3]; +char_negate(c,t,b); +penlabels(1,2,3,6,7,8,9); endchar; + +cmchar "Greater than or slanted not (double) equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"011",14u#,v_center(2spread#'+spread#+2rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread; +x2=x7=x9; x1=x6=x8; y6=y7; y8=y9; +y2=.5[y1,y3]; top y3-bot y6=spread'; top y1=h; +y7-y9=spread'; +draw z1--z2--z3; % diagonals +draw z6--z7; draw z8--z9; +z.c=.5[z7,z8]; x.t=2/3[x.c, w-x3]; y.t=2/3[y6,y3]; +char_negate(c,t,b); +penlabels(1,2,3,6,7,8,9); endchar; + +cmchar "Not less than or (slanted) equal sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"012",14u#,v_center(spread#'+spread#+rule_thickness#+6u#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +lft x2=hround 1.5u-eps; x1=x3=w-x2; y1-y3=spread; +y2=.5[y1,y3]; y3-y8=y2-y9=spread'; top y1=h-3u; +x2=x9; x1=x8; +draw z1--z2--z3; % diagonals +draw z8--z9; % equal sign +char_center(c); x.t=w-3u; y.t=y1+3u; +char_negate(c,t,b); +penlabels(1,2,3,8,9); endchar; + +cmchar "Not greater than or (slanted) equal sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"13",14u#,v_center(spread#'+spread#+rule_thickness#+6u#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread; +x2=x9; x1=x8; +y2=.5[y1,y3]; y3-y8=y2-y9=spread'; top y1=h-3u; +draw z1--z2--z3; % diagonals +draw z8--z9; +char_center(c); x.t=w-3u; y.t=y1+3u; +char_negate(c,t,b); +penlabels(1,2,3,8,9); endchar; + +cmchar "Less than or not equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"014",14u#,v_center(spread#'+spread#+rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; lft +x2=hround 1.5u-eps; x1=x3=w-x2; y1-y3=spread; y2=.5[y1,y3]; +top y1=h; draw z1--z2--z3; % diagonals +x8=x1; x9=x2; y8=y9; +y3-y9=spread'; draw z8--z9; % bar +x100=w/2; y100=y8; % center point +y101=.5[y8,y3]; x101-x100=y101-y100; +char_negate(100,101,102); +labels(1,2,3,8,9); endchar; + +cmchar "Greater than or not equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"015",14u#,v_center(spread#'+spread#+rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; lft +x1=hround 1.5u-eps; x2=w-x1; x3=x1; y1-y3=spread; +y2=.5[y1,y3]; top y1=h; draw z1--z2--z3; % diagonals +x8=x1; +x9=x2; y8=y9; y3-y9=spread'; draw z8--z9; % bar +x100=w/2; y100=y8; % center point +y101=.5[y8,y3]; x101-x100=y101-y100; +char_negate(100,101,102); +labels(1,2,3,8,9); endchar; + +cmchar "Not precedes or equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"016",14u#,v_center(spread#'+spread#+rule_thickness#+6u#)); +adjust_fit(0,0); pickup rule.nib; autorounded; lft x2=hround +1.5u-eps; x1=x3=w-x2; y1-y3=spread; y2=.5[y1,y3]; top y1=h-3u; +draw z1{-u,-spread}...{left}z2; % upper diagonal +draw z3{-u,spread}...{left}z2; % lower diagonal +x8=x1; x9=x2; +y8=y9; y3-y9=spread'; draw z8--z9; % bar +char_center(100); x101=w-3u; y101=y1+3u; +char_negate(100,101,102); +labels(1,2,3,8,9,99,100); endchar; + +cmchar "Not follows or equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"017",14u#,v_center(spread#'+spread#+rule_thickness#+6u#)); +adjust_fit(0,0); pickup rule.nib; autorounded; lft x1=hround +1.5u-eps; x2=w-x1; x3=x1; y1-y3=spread; y2=.5[y1,y3]; top +y1=h-3u; draw z1{u,-spread}...{right}z2; % upper diagonal +draw z3{u,spread}...{right}z2; % lower diagonal +x8=x1; x9=x2; +y8=y9; y3-y9=spread'; draw z8--z9; % bar +char_center(100); x101=w-3u; y101=y1+3u; +char_negate(100,101,102); +labels(1,2,3,8,9,99,100); endchar; + +cmchar "Precedes or not approximately equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(.54x_height#,.55x_height#); +spread#'':=spread#; spread'':=spread; +compute_spread(5/4 x_height#,3/2 x_height#); +beginchar(oct"020",14u#,v_center(spread#'+spread#+spread#'')); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +draw z1{-u,-spread}...{left}z2; %upper `diagonal' +draw z3{-u,spread}...{left}z2; % lower diagonal +pickup pencircle xscaled .7rule_thickness yscaled +1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi +lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11; +bot y11=bot y13; top y12=top y14; +top y12-bot y11=spread''; + y3-y14=spread'; +draw z11{up}...z12{right}..{right}z13...{up}z14; +x.c=w/2; y.c=.5[y12,y13]; x.t=3/8[x.c,x14]; y.t=2/3[y12,y3]; +char_negate(c,t,b); +penlabels(1,2,3,11,12,13,14); endchar; + +cmchar "Follows or not equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % spread of similarity sign +compute_spread(.54 x_height#,.66 x_height#); +spread#'':=spread#; spread'':=spread; % spread between symbols +compute_spread(5/4 x_height#,3/2 x_height#); % spread of follows sign +beginchar(oct"021",14u#,v_center(spread#'+spread#+spread#'')); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround 1.5u-eps; x1=x3; x2=w-x1; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +draw z1{u,-spread}...{right}z2; %upper `diagonal' +draw z3{u,spread}...{right}z2; % lower diagonal +pickup pencircle xscaled .7rule_thickness yscaled +1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi +lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11; +bot y11=bot y13; top y12=top y14; +top y12-bot y11=spread''; +y3-y14=spread'; +draw z11{up}...z12{right}..{right}z13...{up}z14; +x.c=w/2; y.c=.5[y12,y13]; x.t=3/8[x.c,x14]; y.t=2/3[y12,y3]; +char_negate(c,t,b); +penlabels(1,2,3,11,12,13,14); endchar; + + + +cmchar "Less than or not similar to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(.54x_height#,.55x_height#); +spread#'':=spread#; spread'':=spread; +compute_spread(5/4 x_height#,3/2 x_height#); +beginchar(oct"022",14u#,v_center(spread#'+spread#+spread#'')); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +draw z1--z2--z3; +pickup pencircle xscaled .7rule_thickness yscaled +1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi +lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11; +bot y11=bot y13; top y12=top y14; +top y12-bot y11=spread''; + y3-y14=spread'; +draw z11{up}...z12{right}..{right}z13...{up}z14; +x.c=w/2; y.c=.5[y12,y13]; x.t=3/8[x.c,x14]; y.t=2/3[y12,y3]; +char_negate(c,t,b); +penlabels(1,2,3,4,11,12,13,14); endchar; + + + +cmchar "Greater than or not similar to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(.54x_height#,.66x_height#); +spread#'':=spread#; spread'':=spread; +compute_spread(5/4 x_height#,3/2 x_height#); +beginchar(oct"023",14u#,v_center(spread#'+spread#+spread#'')); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround 1.5u-eps; x1=x3; x2=w-x1; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +draw z1--z2--z3; +pickup pencircle xscaled .7rule_thickness yscaled +1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi +lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11; +bot y11=bot y13; top y12=top y14; +top y12-bot y11=spread''; + y3-y14=spread'; +draw z11{up}...z12{right}..{right}z13...{up}z14; +z.c=.5[z12,z13]; x.t=3/8[x.c,x14]; y.t=2/3[y12,y3]; +char_negate(c,t,b); +penlabels(1,2,3,4,11,12,13,14); endchar; + + +cmchar "Negated less than or (double) equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"024",14u#,v_center(2spread#'+spread#+2rule_thickness#+6u#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +lft x2=hround 1.5u-eps; x1=x3=w-x2; y1-y3=spread; +y2=.5[y1,y3]; top y1=h-3u; +x2=x9=x7; x1=x8=x6; y7=y6; y8=y9; +y7-y9=spread'; top y3-bot y6=spread'; +draw z1--z2--z3; % diagonals +draw z6--z7; draw z8--z9; % equal sign +char_center(c); x.t=w-3u; y.t=y1+3u; +char_negate(c,t,b); +penlabels(1,2,3,6,7,8,9); endchar; + +cmchar "Negated greater than or (double) equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"025",14u#,v_center(2spread#'+spread#+2rule_thickness#+6u#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread; +x2=x7=x9; x1=x6=x8; y6=y7; y8=y9; +y2=.5[y1,y3]; top y3-bot y6=spread'; top y1=h-3u; +y7-y9=spread'; +draw z1--z2--z3; % diagonals +draw z6--z7; draw z8--z9; +char_center(c); x.t=w-3u; y.t=y1+3u; +char_negate(c,t,b); +penlabels(1,2,3,6,7,8,9); endchar; + +cmchar "Precedes or slanted not (double) equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"026",14u#,v_center(2spread#'+spread#+2rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +lft x2=hround 1.5u-eps; x1=x3=w-x2; y1-y3=spread; +y2=.5[y1,y3]; top y1=h; +x2=x9=x7; x1=x8=x6; y7=y6; y8=y9; +y7-y9=spread'; top y3-bot y6=spread'; +draw z1{-u,-spread}..{left}z2; % diagonals +draw z3{-u, spread}..{left}z2; +draw z6--z7; draw z8--z9; % equal sign +z.c=.5[z7,z8]; x.t=2/3[x.c, x3]; y.t=2/3[y6,y3]; +char_negate(c,t,b); +penlabels(1,2,3,6,7,8,9); endchar; + +cmchar "Follows or slanted not (double) equals sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"027",14u#,v_center(2spread#'+spread#+2rule_thickness#)); +italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib; +rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread; +x2=x7=x9; x1=x6=x8; y6=y7; y8=y9; +y2=.5[y1,y3]; top y3-bot y6=spread'; top y1=h; +y7-y9=spread'; +draw z1{u,-spread}..{right}z2; % diagonals +draw z3{u,spread}..{right}z2; +draw z6--z7; draw z8--z9; +z.c=.5[z7,z8]; x.t=2/3[x.c, w-x3]; y.t=2/3[y6,y3]; +char_negate(c,t,b); +penlabels(1,2,3,6,7,8,9); endchar; + +cmchar "Precedes with not approximate equality sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(.54 x_height#,.66 x_height#); +spread#'':=spread#; spread'':=spread; % the spread of `$=$' +compute_spread(1.111 x_height#,1.333 x_height#); +beginchar(oct"030",14u#,v_center(2spread#''+spread#+2rule_thickness#)); +adjust_fit(0,0); +% now for precedes sign, using z9 (top), z10 (vertex), & z11 (bot) +pickup rule.nib; +lft x10= hround 1.5u-eps; x9=x11=w-x10; +y9-y11=spread; y10=.5[y9,y11]; top y9=h; +draw z9{-u,-spread}...{left}z10; +draw z11{-u,spread}...{left}z10; +pickup pencircle xscaled .7rule_thickness yscaled 1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline +lft x1=hround u; x2=4u; x3=w-x2; x4=w-x1; +top y3=top y1=bot y11-spread''; top y2=top y4=bot y1+spread'; +z1-z5=z2-z6=z3-z7=z4-z8=(0,spread''); +draw z1{up}...z2{right}..{right}z3...{up}z4; % upper stroke +draw z5{up}...z6{right}..{right}z7...{up}z8; % lower stroke +z.c=.5[z2,z7]; x.t=3/8[x.c,x4]; y.t=1/3[y2,y11]; +char_negate(c,t,b); +labels(1,2,3,4,5,6,7,8,9,10,11); endchar; + + +cmchar "Follows with not approximate equality sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(.54 x_height#,.66 x_height#); +spread#'':=spread#; spread'':=spread; % the spread of `$=$' +compute_spread(1.111 x_height#,1.333 x_height#); +beginchar(oct"031",14u#,v_center(2spread#''+spread#+2rule_thickness#)); +adjust_fit(0,0); +% now for follow sign, using z9 (top), z10 (vertex), & z11 (bot) +pickup rule.nib; +lft x9 = hround 1.5u-eps; x10=w-x9; x11=x9; +y9-y11=spread; y10=.5[y9,y11]; top y9=h; +draw z9{u,-spread}...{right}z10; +draw z11{u,spread}...{right}z10; +pickup pencircle xscaled .7rule_thickness yscaled 1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline +lft x1=hround u; x2=4u; x3=w-x2; x4=w-x1; +top y3=top y1=bot y11-spread''; top y2=top y4=bot y1+spread'; +z1-z5=z2-z6=z3-z7=z4-z8=(0,spread''); +draw z1{up}...z2{right}..{right}z3...{up}z4; % upper stroke +draw z5{up}...z6{right}..{right}z7...{up}z8; % lower stroke +z.c=.5[z2,z7]; x.t=3/8[x.c,x4]; y.t=1/3[y2,y11]; +char_negate(c,t,b); +labels(1,2,3,4,5,6,7,8,9,10,11); endchar; + + +cmchar "Less than or not approximately equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(.54 x_height#,.66 x_height#); +spread#'':=spread#; spread'':=spread; % the spread of `$=$' +compute_spread(1.111 x_height#,1.333 x_height#); +beginchar(oct"032",14u#,v_center(2spread#''+spread#+2rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +draw z1--z2--z3; +pickup pencircle xscaled .7rule_thickness yscaled +1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi +lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11; +top y13=top y11=bot y3-spread''; top y12=top y14=bot y11+spread'; +path p; p=z11{up}...z12{right}..{right}z13...{up}z14; +draw p; draw p shifted (0,-spread''); +x.c=w/2; y.c=.5[y12, y13-spread'']; x.t=3/8[x.c,x14]; y.t=2/3[y12,y3]; +char_negate(c,t,b); +penlabels(1,2,3,4,11,12,13,14); endchar; + +cmchar "Greater than or not approximately equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; +compute_spread(.54 x_height#,.66 x_height#); +spread#'':=spread#; spread'':=spread; % the spread of `$=$' +compute_spread(1.111 x_height#,1.333 x_height#); +beginchar(oct"033",14u#,v_center(2spread#''+spread#+2rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround 1.5u-eps; x1=x3; x2=w-x1; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +draw z1--z2--z3; +pickup pencircle xscaled .7rule_thickness yscaled +1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi +lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11; +bot y11=bot y13; top y12=top y14; +top y12-bot y11=spread'; +bot y3- spread''=top y11; +path p; p=z11{up}...z12{right}..{right}z13...{up}z14; +draw p; draw p shifted (0,-spread''); +x.c=w/2; y.c=.5[y12,y13-spread'']; x.t=3/8[x.c,x14]; y.t=2/3[y12,y3]; +char_negate(c,t,b); +penlabels(1,2,3,4,11,12,13,14); endchar; + +cmchar "Thick not similar to sign"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"034",14u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup pencircle xscaled .8rule_thickness +yscaled 1.87rule_thickness; if vair#>.8curve#: pickup +rule.nib; autorounded; fi % monoline +lft x1=hround u; x2=4u; x3=w-x2; x4=w-x1; +bot y1=bot y3=-d; top y2=top y4=h; +draw z1{up}...z2{right}..{right}z3...{up}z4; % stroke +char_center(100); x101=w-4u; y101=y1+5u; +char_negate(100,101,102); +labels(1,2,3,4,99,100); endchar; + + +cmchar "Not approximately equal to sign"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"035",14u#,v_center(3spread#+2rule_thickness#+8u#)); +adjust_fit(0,0); +pickup pencircle xscaled .7rule_thickness yscaled +1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi % +lft x1=hround u; x2=4u; x3=w-x2; x4=w-x1; +y1=y3; top y2=top y4=h-4u; top y2-bot y1=spread; +draw z1{up}...z2{right}..{right}z3...{up}z4; % stroke +pickup rule.nib; +lft x5=lft x7=hround u-eps; x6=x8=w-x5; +y5=y6=y1-spread; y7=y8=y5-spread; +draw z5--z6; draw z7--z8; % double equal sign +char_center(100); x101=w-3u; y101=y1+4u; +char_negate(100,101,102); +labels(1,2,3,4,5,6,7,8,99,100); endchar; + +cmchar "45 degree angle line"; +beginchar(oct"036",16u#,asc_height#,asc_depth#); +adjust_fit(0,0); pickup rule.nib; +bot y1 =-d-eps; .5[y1,y2]=math_axis; +lft x1 = 0+eps =x0; % rt x2=; +z0-z1=(z2-z1) rotated 45; +draw z1--z2; +labels(0,1,2); endchar; + +cmchar "135 degree angle line"; +beginchar(oct"037",16u#,body_height#,asc_depth#); +adjust_fit(0,0); pickup rule.nib; +bot y1 =-d-eps; .5[y1,y2]=math_axis; +lft x2 = 0+eps= x0; % rt x2=; +z0-z2=(z1-z2) rotated -45; +draw z1--z2; +labels(0,1,2); endchar; + +cmchar "Negated subset or equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"040",14u#,v_center(spread#'+spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +x4=x5=.5w; y4=y1; y5=y3; +draw z1---z4...z2{down}...z5---z3; % arc and bars +x8=x1; lft x9=x2; y8=y9; y3-y9=spread'; draw z8--z9; % lower bar +x100=w/2; y100=.5[y3,y8]; x101=x3-2u; y101=y3+2u; +char_negate(100,101,102); +labels(1,2,3,4,5,8,9); endchar; + +cmchar "Negated superset or equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"041",14u#,v_center(spread#'+spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround 1.5u-eps; x2=w-x1; x3=x1; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +x4=x5=.5w; y4=y1; y5=y3; +draw z1---z4...z2{down}...z5---z3; % arc and bars +x8=x1; rt x9=x2; y8=y9; y3-y9=spread'; draw z8--z9; % lower bar +x100=x3+2.5u; y100=.5[y8,y3]; x101=x100+2.5u; y101=y3+2u; +y101-y100=y100-y102; x101-x100=x100-x102; draw z101--z102; +labels(1,2,3,4,5,8,9); endchar; + +cmchar "Negated subset or (double) equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"042",14u#,v_center(2spread#'+spread#+2rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; lft x2=hround +1.5u-eps; x1=x3=w-x2; y1-y3=spread; y2=.5[y1,y3]; top y1=h; +x4=x5=.5w; y4=y1; y5=y3; draw z1---z4...z2{down}...z5---z3; +% arc and bars +x8=x1; x9=x2; +y8=y9; y3-y9=spread'; draw z8--z9; % lower bar +x9'=x9; x8'=x8; y9'=y8'; y9-y9'=spread'; draw z8'--z9'; +char_center(c); x.t=w-2.5u; y.t=h+u; char_negate(c,t,b); +penlabels(1,2,3,4,5,8,9,8',9'); endchar; + +cmchar "Negated superset or (double) equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"043",14u#,v_center(2spread#'+spread#+2rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; lft x1=hround +1.5u-eps; x2=w-x1; x3=x1; y1-y3=spread; y2=.5[y1,y3]; top +y1=h; x4=x5=.5w; y4=y1; y5=y3; draw +z1---z4...z2{down}...z5---z3; % arc and bars +x8=x1; +x9=x2; +y8=y9; y3-y9=spread'; draw z8--z9; % lower bar +x9'=x9; x8'=x8; y9'=y8'; y9-y9'=spread'; draw z8'--z9'; +char_center(c); x.t=w-2.5u; y.t=h+u; char_negate(c,t,b); +labels(1,2,3,4,5,8,9); endchar; + +cmchar "Subset or not (double) equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"044",14u#,v_center(2.33spread#'+spread#+2rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; lft x2=hround +1.5u-eps; x1=x3=w-x2; y1-y3=spread; y2=.5[y1,y3]; top y1=h; +x4=x5=.5w; y4=y1; y5=y3; draw z1---z4...z2{down}...z5---z3; +% arc and bars +x8=x1; x9=x2; +y8=y9; y3-y9=1.33spread'; draw z8--z9; % lower bar +x9'=x9; x8'=x8; y9'=y8'; y9-y9'=spread'; draw z8'--z9'; +x.c=w/2; y.c=.5[y9,y9']; x.t=1/2[x.c,w]; y.t=.5[y8,y3]; +char_negate(c,t,b); +penlabels(1,2,3,4,5,8,9,8',9'); endchar; + +cmchar "Superset or not (double) equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"045",14u#,v_center(2.33spread#'+spread#+2rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; lft x1=hround +1.5u-eps; x2=w-x1; x3=x1; y1-y3=spread; y2=.5[y1,y3]; top +y1=h; x4=x5=.5w; y4=y1; y5=y3; draw +z1---z4...z2{down}...z5---z3; % arc and bars +x8=x1; +x9=x2; +y8=y9; y3-y9=1.33spread'; draw z8--z9; % lower bar +x9'=x9; x8'=x8; y9'=y8'; y9-y9'=spread'; draw z8'--z9'; +x.c=w/2; y.c=.5[y9,y9']; x.t=1/2[x.c,w]; y.t=.5[y8,y3]; +char_negate(c,t,b); +labels(1,2,3,4,5,8,9); endchar; + +cmchar "Another not subset or (double) equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"046",14u#,v_center(2spread#'+spread#+2rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; lft x2=hround +1.5u-eps; x1=x3=w-x2; y1-y3=spread; y2=.5[y1,y3]; top y1=h; +x4=x5=.5w; y4=y1; y5=y3; draw z1---z4...z2{down}...z5---z3; +% arc and bars +x8=x1; x9=x2; +y8=y9; y3-y9=spread'; draw z8--z9; % lower bar +x9'=x9; x8'=x8; y9'=y8'; y9-y9'=spread'; draw z8'--z9'; +x.t=w-2.5u; y.t=y3+2u; x.b=.5[x2,x5]; y.b=y9'-2u; z.c=.5[z.b,z.t]; +draw z.b--z.t; labels(c,b,t); +penlabels(1,2,3,4,5,8,9,8',9'); endchar; + +cmchar "Another superset or (double) equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"047",14u#,v_center(2spread#'+spread#+2rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; lft x1=hround +1.5u-eps; x2=w-x1; x3=x1; y1-y3=spread; y2=.5[y1,y3]; top +y1=h; x4=x5=.5w; y4=y1; y5=y3; draw +z1---z4...z2{down}...z5---z3; % arc and bars +x8=x1; +x9=x2; +y8=y9; y3-y9=spread'; draw z8--z9; % lower bar +x9'=x9; x8'=x8; y9'=y8'; y9-y9'=spread'; draw z8'--z9'; +x.t=x5; y.t=y3+2u; x.b=2.5u; y.b=y9'-2u; z.c=.5[z.b,z.t]; +draw z.b--z.t; labels(c,b,t); +labels(1,2,3,4,5,8,9); endchar; + +cmchar "Subset or not equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"050",14u#,v_center(spread#'+spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +x4=x5=.5w; y4=y1; y5=y3; +draw z1---z4...z2{down}...z5---z3; % arc and bars +x8=x1; lft x9=x2; y8=y9; y3-y9=spread'; draw z8--z9; % lower bar +z100=.5[z8,z9]; y101=.5[y8,y3];x101-x100=y101-y100; +char_negate(100,101,102); +labels(1,2,3,4,5,8,9); endchar; + +cmchar "Superset or not equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"051",14u#,v_center(spread#'+spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround 1.5u-eps; x2=w-x1; x3=x1; +y1-y3=spread; y2=.5[y1,y3]; top y1=h; +x4=x5=.5w; y4=y1; y5=y3; +draw z1---z4...z2{down}...z5---z3; % arc and bars +x8=x1; rt x9=x2; y8=y9; y3-y9=spread'; draw z8--z9; % lower bar +z100=.5[z8,z9]; y101=.5[y8,y3];x101-x100=y101-y100; +char_negate(100,101,102); +labels(1,2,3,4,5,8,9); endchar; + +cmchar "Not subset or equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"052",14u#,v_center(spread#'+spread#+rule_thickness#+6u#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]; top y1=h-3u; +x4=x5=.5w; y4=y1; y5=y3; +draw z1---z4...z2{down}...z5---z3; % arc and bars +x8=x1; lft x9=x2; y8=y9; y3-y9=spread'; draw z8--z9; % lower bar +char_center(100); y101=y1+3u; x101=w-3u; +char_negate(100,101,102); +labels(1,2,3,4,5,8,9); endchar; + +cmchar "Not superset or equal to sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"053",14u#,v_center(spread#'+spread#+rule_thickness#+6u#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +lft x1=hround 1.5u-eps; x2=w-x1; x3=x1; +y1-y3=spread; y2=.5[y1,y3]; top y1=h-3u; +x4=x5=.5w; y4=y1; y5=y3; +draw z1---z4...z2{down}...z5---z3; % arc and bars +x8=x1; rt x9=x2; y8=y9; y3-y9=spread'; draw z8--z9; % lower bar +char_center(100); y101=y1+3u; x101=w-3u; +char_negate(100,101,102); +labels(1,2,3,4,5,8,9); endchar; + +cmchar "Negated double vertical line (norm or cardinality)"; +beginchar(oct"054",9u#,body_height#,paren_depth#); +adjust_fit(0,0); pickup rule.nib; +x1=x2; top y1=h; .5[y1,y2]=math_axis; +x3=x4=w-x1; y3=y1; y4=y2; +compute_spread(.45x_height#,.55x_height#); x3-x1=spread; +draw z1--z2; draw z3--z4; % stems +char_center(c); x.t=w; y.t=2/3h; +char_negate(c,t,b); +labels(1,2,3,4); endchar; + +cmchar "Negated vertical line"; +beginchar(oct"055",5u#,body_height#,paren_depth#); +italcorr body_height#*slant+.5rule_thickness#-2u#; +adjust_fit(0,0); pickup rule.nib; +x1=x2=good.x .5w; top y1=h+eps; bot y2=-d-eps; +draw z1--z2; % stem +x.t=w; x.b=w-x.t; y.t=2/3h; y.b=1/3h; +draw z.b--z.t; +labels(1,2,b,t); endchar; + +cmchar "Negated cute vertical bar"; +beginchar(oct"056",4u#,6u#+math_axis#,6u#-math_axis#); +italcorr math_axis#*slant - .5u#; +adjust_fit(0,0); pickup rule.nib; +x1=x2=hround(w/2); top y1=x_height; bot y2=-o; +draw z1--z2; +char_center(c); x.t=w; y.t=5/8h; +char_negate(c,t,b); +labels(1,2); endchar; + +cmchar "Negated pair of cute vertical bars"; +beginchar(oct"057",7u#,6u#+math_axis#,6u#-math_axis#); +italcorr math_axis#*slant - .5u#; +adjust_fit(0,0); pickup rule.nib; +lft x1=u; x2=x1; top y1=x_height; bot y2=-o; +x3=w-x1; x4=x3; y3=y1; y4=y2; +draw z1--z2; draw z3--z4; +char_center(c); x.t=w; y.t=5/8h; +char_negate(c,t,b); +labels(1,2,3,4); endchar; + +cmchar "Negated left turnstile"; +beginchar(oct"060",11u#,asc_height#,0); +adjust_fit(0,0); pickup rule.nib; +.5[y1,y2]=y3=y4; x1=x2=x3; +lft x3=hround u; x4=w-x3; top y1=h; bot y2=0; +draw z1--z2; % stem +draw z3--z4; % bar +top rt z.t=(w-u,h); bot lft z.b=(-u,0); draw z.t--z.b; +labels(1,2,3,4,b,t); endchar; + +cmchar "Negated forces symbol"; +beginchar(oct"061",13u#,asc_height#,0); +adjust_fit(0,0); pickup rule.nib; +top y1=h; bot y2=0; y3=y4=good.y .5h; y5=y1; y6=y2; +lft x5=hround u; x4=w-x5; +compute_spread(.45x_height#,.55x_height#); +x1=x5+spread; x1=x2=x3; x6=x5; +draw z6--z5; draw z2--z1; draw z3--z4; +top rt z.t=(w-u,h); bot lft z.b=(-u,0); draw z.t--z.b; +penlabels(1,2,3,4,5,6,b,t); endchar; + +cmchar "Negated satisfies symbol"; +beginchar(oct"062",11u#,asc_height#,0); +adjust_fit(0,0); pickup rule.nib; +compute_spread(.45x_height#,.55x_height#); +top y1=h; bot y2=0; y0=good.y .5[y1,y2]; +y3=vround y0+.5spread; +y5=vround y0- .5spread; y4=y3; y6=y5; +lft x1=hround u; x4=w-x1; +x1=x2=x3=x5; x4=x6; x0=x1; +draw z1--z2; % vertical line +draw z3--z4; % draw top horizontal piece +draw z5--z6; % draw bottom horizontal piece +top rt z.t=(w-u,h); bot lft z.b=(-u,0); draw z.t--z.b; +penlabels(0,1,2,3,4,5,6,b,t); endchar; + +cmchar "Negated forces symbol with extra bar"; +beginchar(oct"063",13u#,asc_height#,0); +adjust_fit(0,0); pickup rule.nib; +top y1=h; bot y2=0; y3=y4=good.y .5h; y5=y1; y6=y2; +lft x5=hround u; x4=w-x5; +compute_spread(.45x_height#,.55x_height#); +x1=x5+spread; x1=x2=x3; x6=x5; +x3'=x3; x4'=x4; y3:=y3+.5spread; y4:=y3; +y3'=y4'=y3-spread; +draw z6--z5; draw z2--z1; draw z3--z4; +draw z3'--z4'; % extra bar +top rt z.t=(w-u,h); bot lft z.b=(-u,0); draw z.t--z.b; +penlabels(1,2,3,4,5,6,b,t); endchar; + + +cmchar "Negated rightward isosceles triangle with lower bar"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"064",14u#,v_center(spread#'+spread#+rule_thickness#+6u#)); +adjust_fit(0,0); pickup rule.nib; lft x2=hround(1.5u); +x3=x2; x1=hround(w-x2); +top y2=h-3u; y2-y3=spread; y1=.5[y2,y3]; +x4=x2; x5=x1; y3-y4=spread'; y5=y4; +draw z1--z2--z3--cycle; draw z4--z5; +char_center(c); x.t=1/2[x.c,w]; y.t=y2+3u; +char_negate(c,t,b); +penlabels(1,2,3,4,5); endchar; + +cmchar "Negated leftward isosceles triangle with lower bar"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"065",14u#,v_center(spread#'+spread#+rule_thickness#+6u#)); +adjust_fit(0,0); pickup rule.nib; rt x2=hround(w-1.5u-eps); +x3=x2; x1=hround(w-x2); +top y2=h-3u; y2-y3=spread; y1=.5[y2,y3]; +x4=x2; x5=x1; y3-y4=spread'; y5=y4; +draw z1--z2--z3--cycle; draw z4--z5; +char_center(c); x.t=1/2[x.c,w]; y.t=y2+3u; +char_negate(c,t,b); +penlabels(1,2,3,4,5); endchar; + +cmchar "Negated leftward pointing isosceles triangle"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"066",14u#,v_center(spread#+rule_thickness#+6u#)); +adjust_fit(0,0); pickup rule.nib; rt x2=hround(w-1.5u-eps); +x3=x2; x1=hround(w-x2); +top y2=h-3u; y2-y3=spread; y1=.5[y2,y3]; +draw z1--z2--z3--cycle; +char_center(c); x.t=1/2[x.c,w]; y.t=y2+3u; +char_negate(c,t,b); +penlabels(1,2,3); endchar; + +cmchar "Negated rightward pointing isosceles triangle"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"067",14u#,v_center(spread#+rule_thickness#+6u#)); +adjust_fit(0,0); pickup rule.nib; lft x2=hround(1.5u); +x3=x2; x1=hround(w-x2); +top y2=h-3u; y2-y3=spread; y1=.5[y2,y3]; +draw z1--z2--z3--cycle; +char_center(c); x.t=1/2[x.c,w]; y.t=y2+3u; +char_negate(c,t,b); +penlabels(1,2,3); endchar; + +cmchar "Negated leftward arrow"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"070",18u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,90); pos2(rule_thickness,90); pos3(bar,0); pos4(bar,0); +y0=y1=y2=math_axis; x1+.5rule_thickness=hround(w-u); lft x0=hround u; +y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0+3u+eps; +pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0)); z6l=z0; +z9=.381966[.5[z3,z4],z0]; +numeric t; path p; p=z4r{z9-z4}..z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead and stem +char_center(100); top y101=top y3; x101=x100+2u; +char_negate(100,101,102); +penlabels(0,1,2,3,4,5,6,9); endchar; + +cmchar "Negated rightward arrow"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"071",18u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,90); pos2(rule_thickness,90); pos3(bar,0); pos4(bar,0); +y0=y1=y2=math_axis; x1-.5rule_thickness=hround u; rt x0=hround(w-u); +y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0-3u-eps; +pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0)); z6l=z0; +z9=.381966[.5[z3,z4],z0]; +numeric t; path p; p=z4l{z9-z4}..z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r) + --z3r{z9-z3}..z0 & cycle; % arrowhead and stem +char_center(100); top y101=top y3; x101=x100+2u; +char_negate(100,101,102); +penlabels(0,1,2,3,4,5,6,9); endchar; + +cmchar "Negated left-and-right arrow"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"075",18u#, + v_center(if monospace:.6asc_height#+fi spread#+rule_thickness#)); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,90); pos2(rule_thickness,90); pos3(bar,0); pos4(bar,0); +y0=y1=y2=math_axis if monospace:+vround.3asc_height fi; lft x0=hround u; +if monospace: x1+.5rule_thickness=hround(w-u) else: x1=.5w fi; +y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0+3u+eps; +pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0)); z6l=z0; +z9=.381966[.5[z3,z4],z0]; +numeric t; path p; p=z4r{z9-z4}..z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % left arrowhead and stem +pos11(rule_thickness,90); pos12(rule_thickness,90); pos13(bar,0); pos14(bar,0); +y10=y11=y12=math_axis if monospace:-vround.3asc_height fi; +rt x10=hround(w-u); +if monospace: x11-.5rule_thickness=hround u else: x11=.5w fi; +y13-y10=y10-y14=.24asc_height+eps; x13=x14=x10-3u-eps; +pos15(bar,angle(z14-z10)); z15l=z10; pos16(bar,angle(z13-z10)); z16l=z10; +z19=.381966[.5[z13,z14],z10]; +numeric t; path p; p=z14l{z19-z14}..z16r; +t=xpart(p intersectiontimes((0,y12l)--(w,y12l))); x12=xpart point t of p; +filldraw z10..{z14-z19}z14r--subpath (0,t) of\\(z14l{z19-z14}..z16r) + --z12l---z11l..z11r---z12r--subpath (t,0) of\\(z13l{z19-z13}..z15r) + --z13r{z19-z13}..z10 & cycle; % right arrowhead and stem +char_center(100); top y101=top y3; x101=x100+2u; +char_negate(100,101,102); +penlabels(0,1,2,3,4,5,6,9,10,11,12,13,14,15,16,19); endchar; + +cmchar "Negated double leftward arrow"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"072",18u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; +lft x7=hround u-eps; x8=x7; x1=x2=w-x7; +y1=y7; y2=y8; y1-y2=spread; .5[y1,y2]=math_axis; +draw z1--z7; draw z2--z8; % bars +pickup crisp.nib; lft x0=hround u-eps; y0=good.y math_axis; +pos3(rule_thickness,0); pos4(rule_thickness,0); +y3-y1=y2-y4=.24asc_height+eps; x3=x4=x0+6u+eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +z9=.381966[.5[z3,z4],z0]; +erase filldraw z0..{z3-z9}z3--(0,y3) + --(0,y4)--z4{z9-z4}..z0 & cycle; % erase excess +numeric t; path p; p=z4r{z9-z4}..z6r; +t=xpart(p intersectiontimes((0,y0)--(w,y0))); +filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --subpath (t,0) of\\(z3r{z9-z3}..z5r)--z3l{z9-z3}..z0 & cycle; % arrowhead +pickup rule.nib; x100=.5[x9,x1]; y100=y9; x101=x100+2u; top y101=top y3; +y101-y100=y100-y102; x101-x100=x100-x102; draw z101--z102; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +cmchar "Negated double rightward arrow"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"073",18u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup rule.nib; +lft x1=hround u-eps; x2=x1; x7=x8=w-x1; +y1=y7; y2=y8; y1-y2=spread; .5[y1,y2]=math_axis; +draw z1--z7; draw z2--z8; % bars +pickup crisp.nib; rt x0=hround(w-u)+eps; y0=good.y math_axis; +pos3(rule_thickness,0); pos4(rule_thickness,0); +y3-y1=y2-y4=.24asc_height+eps; x3=x4=x0-6u-eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +z9=.381966[.5[z3,z4],z0]; +erase filldraw z0..{z3-z9}z3--(w,y3) + --(w,y4)--z4{z9-z4}..z0 & cycle; % erase excess +numeric t; path p; p=z4l{z9-z4}..z6r; +t=xpart(p intersectiontimes((0,y0)--(w,y0))); +filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) + --subpath (t,0) of\\(z3l{z9-z3}..z5r)--z3r{z9-z3}..z0 & cycle; % arrowhead +pickup rule.nib; x100=.5[x9,x1]; y100=y9; x101=x100+2u; top y101=top y3; +y101-y100=y100-y102; x101-x100=x100-x102; draw z101--z102; +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +cmchar "Negated double left-and-right arrow"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"074",18u#,v_center(spread#+rule_thickness#)); +adjust_fit(if monospace: -u#,-u# else: 0,0 fi); pickup rule.nib; +lft x7=hround u-eps; x8=x7; x1=x2=w-x7; +y1=y7; y2=y8; y1-y2=spread; .5[y1,y2]=math_axis; +draw z1--z7; draw z2--z8; % bars +pickup crisp.nib; lft x0=hround u-o; y0=good.y math_axis; +pos3(rule_thickness,0); pos4(rule_thickness,0); +y3-y1=y2-y4=.24asc_height+eps; x3=x4=x0+5u+eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +z9=.381966[.5[z3,z4],z0]; +erase filldraw z0..{z3-z9}z3--(0,y3) + --(0,y4)--z4{z9-z4}..z0 & cycle; % erase excess at left +numeric t; path p; p=z4r{z9-z4}..z6r; +t=xpart(p intersectiontimes((0,y0)--(w,y0))); +filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % left arrowhead +rt x10=hround(w-u)+o; y10=good.y math_axis; +pos13(rule_thickness,0); pos14(rule_thickness,0); +y13=y3; y14=y4; x13=x14=x10-5u-eps; +pos15(rule_thickness,angle(z14-z10)); z15l=z10; +pos16(rule_thickness,angle(z13-z10)); z16l=z10; +z19=.381966[.5[z13,z14],z10]; +erase filldraw z10..{z13-z19}z13--(w,y13) + --(w,y14)--z14{z19-z14}..z10 & cycle; % erase excess at right +numeric t; path p; p=z14l{z19-z14}..z16r; +t=xpart(p intersectiontimes((0,y10)--(w,y10))); +filldraw z10..{z14-z19}z14r--subpath (0,t) of\\(z14l{z19-z14}..z16r) + --subpath (t,0) of\\(z13l{z19-z13}..z15r) + --z13r{z19-z13}..z10 & cycle; % right arrowhead +char_center(100); top y101=top y13; x101=x100+1.5u; char_negate(100,101,102); +penlabels(0,1,2,3,4,5,6,7,8,9,10,13,14,15,16,19); endchar; + +cmchar "Times-division symbol"; +beginarithchar(oct"076"); +pickup rule.nib; +x11=good.x(1/sqrt2)[.5w,rt u]; y11=good.y(1/sqrt2)[math_axis,bot h]; +x12=x13=w-x11; x14=x11; .5[y11,y12]=.5[y13,y14]=math_axis; y12=y14; +draw z11--z12; draw z13--z14; % diagonals +x3-.5dot_size=hround(.5w-.5dot_size); %center_on(x3); +y3+.5dot_size=vround(math_axis+math_spread[.5x_height,.6x_height]+.5dot_size); +lft x1=hround u-eps; x2=w-x1; y1=y2=math_axis; +draw z1--z2; % bar +pos3(dot_size,0); pos4(dot_size,90); z3=z4; +pos5(dot_size,0); pos6(dot_size,90); z5=z6; x5=x3; .5[y3,y5]=math_axis; +dot(3,4); dot(5,6); % dots +penlabels(1,2,3,4,5,6,11,12,13,14); endchar; + +cmchar "Null set symbol"; +beginarithchar(oct"077"); +pickup rule.nib; +z0=(w/2,h/2); % center of circle +rt x1-lft x0=hround(h/2 + o); y1=y0; +numeric theta; theta=45; +for i=2 upto 8: z[i]-z0=(z1-z0) rotated ((i-1)*theta); endfor +draw z8...z1 for i=2 upto 8: ...z[i] endfor; +lft x9=u; x10=w-x9; bot y9=bot y7; top y10=top y3; draw z9--z10; +labels(range 0 thru 10); endchar; + +cmchar "Negated existential quantifier"; +beginchar(oct"100",10u#,asc_height#,0); +italcorr asc_height#*slant; +adjust_fit(0,0); pickup rule.nib; +lft x1=hround u-eps; x2=x3=x5=w-x1; x4=x6-.25u=x1; +top y1=h; bot y4=0; y2=y1; y5=y6=.5[y1,y3]; y3=y4; +draw z1--z2--z3--z4; % upper bar, stem, lower bar +draw z5--z6; % middle bar +char_center(100); x101=w-3u; y101=y1+3u; +char_negate(100,101,102); +labels(1,2,3,4,5,6); endchar; + +charlist oct"133": oct"134"; +charlist oct"135": oct"136"; + +cmchar"Wider than widest circumflex (hat) accent"; +beginchar(oct"133",34u#,1.1body_height#,0); +adjust_fit(0,0); +pickup crisp.nib; +pos2(.7[vair,curve],90); top y2r=h+o; x2=.5w; +x1=w-x3=good.x-eps; y1=y3=.45[x_height,y2]; +pos1(1.2hair,angle(z2-z1)+90); pos3(1.2hair,angle(z3-z2)+90); +filldraw stroke z1e--z2e--z3e; +penlabels(1,2,3); +%big_hat; +endchar; + +cmchar"Very Widest circumflex (hat) accent"; +beginchar(oct"134",42u#,1.1body_height#,0); +adjust_fit(0,0); +pickup crisp.nib; +pos2(.7[vair,curve],90); top y2r=h+o; x2=.5w; +x1=w-x3=good.x-eps; y1=y3=.45[x_height,y2]; +pos1(1.2hair,angle(z2-z1)+90); pos3(1.2hair,angle(z3-z2)+90); +filldraw stroke z1e--z2e--z3e; +penlabels(1,2,3); +%big_hat; +endchar; + +cmchar"Even wider tilde (squiggle) accent"; +beginchar(oct"135",34u#,1.1body_height#,0); +%big_tilde; +adjust_fit(0,0); pickup crisp.nib; +numeric theta; theta=angle(1/6(w-vair),1/4(h-x_height)); +numeric mid_width; mid_width=.4[vair,stem]; +pos1(1.5vair,theta+80); pos2(2vair,theta+80); +pos3(2vair,theta+80); pos4(1.5vair,theta+80); +z2-z1=z4-z3 = (mid_width-crisp)*dir theta; +lft x1r=w-rt x4l=0; top y4r=h; +bot y1l=vround(bot y1l+min(.6[x_height,h],y3l-.25vair)-top y1r); +pair delta; ypart delta=3(y3l-y1l); delta=whatever*dir theta; +filldraw z1l..controls(z1l+delta)and(z3l-delta)..z3l..z4l +--z4r..controls(z4r-delta)and(z2r+delta)..z2r..z1r--cycle; +penlabels(1,2,3,4); +endchar; + +cmchar"Very widest tilde (squiggle) accent"; +beginchar(oct"136",42u#,1.2body_height#,0); +%big_tilde; +adjust_fit(0,0); pickup crisp.nib; +numeric theta; theta=angle(1/6(w-vair),1/4(h-x_height)); +numeric mid_width; mid_width=.4[vair,stem]; +pos1(1.5vair,theta+80); pos2(2vair,theta+80); +pos3(2vair,theta+80); pos4(1.5vair,theta+80); +z2-z1=z4-z3 = (mid_width-crisp)*dir theta; +lft x1r=w-rt x4l=0; top y4r=h; +bot y1l=vround(bot y1l+min(.6[x_height,h],y3l-.25vair)-top y1r); +pair delta; ypart delta=3(y3l-y1l); delta=whatever*dir theta; +filldraw z1l..controls(z1l+delta)and(z3l-delta)..z3l..z4l +--z4r..controls(z4r-delta)and(z2r+delta)..z2r..z1r--cycle; +penlabels(1,2,3,4); +endchar; + +cmchar "Reversed turned F"; +beginchar(oct"140",10u#,asc_height#,0); +italcorr asc_height#*slant; +adjust_fit(0,0); pickup rule.nib; +lft x4=hround u-eps; x2=x3=x5=w-x4; x6=x4+.27w; +top y2=h; bot y4=0; y5=y6=.5[y2,y3]; y3=y4; +draw z2--z3--z4; % upper bar, stem, lower bar +draw z5--z6; % middle bar +labels(2,3,4,5,6); endchar; + +cmchar "The Reversed inverted letter G"; +beginchar(oct"141",12u#,cap_height#,0); + italcorr cap_height#*slant-.5u#; adjust_fit(0,0); + pickup rule.nib; + rt x1=hround(w-1.35u); x2=x4=.5w+u; + lft x3=hround max(u,2u-.5cap_curve); rt x5=hround(w-1.2u); + top y1=vround .93h+o; top y2=h+o; y3=.5h; + bot y4=-o; bot y5=vround .07h-o; + draw z1...{left}z2...{down}z3{down}...{right}z4...{up}z5; + z7=z5; x0=x7; top y0=1+vround .35[bar_height,x_height]; + draw z0--z7; % stem + z0=z9; y8=y9; lft x8=hround x4; + draw z8--z9; % bar + math_fit(-.3cap_height#*slant-.5u#,.5ic#); +picture rvchar; + rvchar=currentpicture reflectedabout((.5w,0),(.5w,h)); +currentpicture:= rvchar; +penlabels(0,1,1',2,3,4,5,6,7,8,9); endchar; + +cmchar "Equal or similar symbol"; +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"150",14u#,v_center(2spread#+rule_thickness#)); +adjust_fit(0,0); +pickup pencircle xscaled .7rule_thickness yscaled 1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline +lft x1=hround u; x2=4u; x3=w-x2; x4=w-x1; +bot y1=bot y3=-d; top y2=top y4=y1+spread; +draw z1{up}...z2{right}..{right}z3...{up}z4; % stroke +pickup rule.nib; +lft x5=hround u-eps; x6=w-x5; top y5=top y6=h; +draw z5--z6; +labels(1,2,3,4,5,6); endchar; + + +%% parameters for Hebrew letters Beth, Gimel, Dalet +numeric theta; theta=45; +cmchar "Hebrew letter Beth"; +beginchar(oct"151", 12u#, asc_height#, 0); +%currenttransform:=identity rotated -45 shifted (.75h, 0); +adjust_fit(0,0); +pickup rule.nib; +top y0=1.1h; lft x0=u; +pos1(cap_curve,90); x1=2.5u; y1r=h; +pos2(cap_curve,90); x2=w-x1; y2r=y1r; +rt x3=w-u; y2l-y3=y0-y1r; +x4=x3; +% now for the base. +pos12(cap_curve/cosd theta, theta); pos11(cap_curve/cosd theta, theta); +y11r=y12r=y4; y11l=0; +x12=u; x11=w-x12; +filldraw z0{down}..tension.8..z1l{right}..{right}z2l..{down}z3& +z3{up}..tension.8..z2r{left}..{left}z1r..z0..cycle; % top +pickup rule.nib; draw z3..z4; % down stroke at right of letter +filldraw stroke z11e{left}..{left}z12e; +penlabels(0,1,2,3,4,11,12); +endchar; + +cmchar "Hebrew letter Gimel"; +beginchar(oct"152", 8u#, asc_height#, 0); +%currenttransform:=identity rotated -45 shifted (.75h, 0); +adjust_fit(0,0); +pickup rule.nib; +top y0=1.1h; lft x0=u; +pos1(cap_curve,90); x1=2.5u; y1r=h; +pos2(cap_curve,90); x2=w-x1+.5u; y2r=y1r; +filldraw z0{down}..tension.8..z1l{right}..{right}z2l..tension.8..{left}z2r + ..{left}z1r..z0..cycle; % top slab +z3=z2l;x4=x3+.2stem; y4=-o; x5=x4+.3stem; y5=y3c; +x3a=x3b=x3c=x3; y3a=.8h; y3b=.5h; y3c=cap_curve; +y5:=.5y5; % reset y5 +path p, q; p=(z3---z3c..z4); q=(z4{1,1}..z5..{-.005,1}z3); % vertical +filldraw p&q&cycle; +% now for the base. +pos12(cap_curve/cosd theta, theta); pos11(cap_curve/cosd theta, theta); +pos13(cap_curve/cosd theta, theta); y13=y12; x13=w; + % z13 is a dummy point for getting intersection +y11r=y12r; y11l=0; +x12=u; +z10=p intersectionpoint (z12r--z13r); z11r=z10; +filldraw stroke z11e{left}..{left}z12e; +penlabels(0,1,2,3,3c,4,5,11,12); +endchar; + +cmchar "Hebrew letter Daleth"; +beginchar(oct"153", 12u#, asc_height#, 0); +%currenttransform:=identity rotated -45 shifted (.75h, 0); +adjust_fit(0,0); +pickup rule.nib; +top y0=1.1h; lft x0=u; +pos1(cap_curve,90); x1=2.5u; y1r=h; +pos2(cap_curve,90); x2=w-x1+.5u; y2r=y1r; +filldraw z0{down}..tension.8..z1l{right}..{right}z2l..tension.8..{left}z2r + ..{left}z1r..z0..cycle; % top slab +z3=z2l;x4=x3+.2stem; y4=-o; x5=x4+.3stem; y5=y3c; +x3a=x3b=x3c=x3; y3a=.8h; y3b=.5h; y3c=cap_curve; +y5:=.5y5; % reset y5 +path p, q; p=(z3---z3c..z4); q=(z4{1,1}..z5..{-.005,1}z3); % vertical +filldraw p&q&cycle; +penlabels(0,1,2,3,3c,4,5); +endchar; + +cmchar "Dotted less than sign"; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"154",14u#,v_center(spread#+rule_thickness#)); +italcorr h#*slant-u#; +adjust_fit(0,0); pickup rule.nib; +lft x2=hround 1.5u-eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]=math_axis; +draw z1--z2--z3; % diagonals +y4=y2; x4=.75[x2, x1]; z5=z4; +pos4(dot_size,0); pos5(dot_size,90); dot(4,5); +labels(1,2,3,4,5); endchar; + +cmchar "Dotted greater than sign"; +compute_spread(5/4x_height#,3/2x_height#); +beginchar(oct"155",14u#,v_center(spread#+rule_thickness#)); +italcorr math_axis#*slant-u#; +adjust_fit(0,0); pickup rule.nib; +rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; +y1-y3=spread; y2=.5[y1,y3]=math_axis; +draw z1--z2--z3; % diagonals +y4=y2; x4=.75[x2, x1]; z5=z4; +pos4(dot_size,0); pos5(dot_size,90); dot(4,5); +labels(1,2,3,4,5); endchar; + +cmchar "Times operator with left vertical"; +beginarithchar(oct"156"); pickup rule.nib; +x1=good.x(1/sqrt2)[.5w,rt u]; y1=good.y(1/sqrt2)[math_axis,bot h]; +x2=x3=w-x1; x4=x1; .5[y1,y2]=.5[y3,y4]=math_axis; y2=y4; +draw z1--z2; draw z3--z4; % diagonals +draw z1--z4; +labels(1,2,3,4); endchar; + +cmchar "Times operator with right vertical"; +beginarithchar(oct"157"); pickup rule.nib; +x1=good.x(1/sqrt2)[.5w,rt u]; y1=good.y(1/sqrt2)[math_axis,bot h]; +x2=x3=w-x1; x4=x1; .5[y1,y2]=.5[y3,y4]=math_axis; y2=y4; +draw z1--z2; draw z3--z4; % diagonals +draw z2--z3; +labels(1,2,3,4); endchar; + +cmchar "Cute vertical bar"; +beginchar(oct"160",4u#,6u#+math_axis#,6u#-math_axis#); +italcorr math_axis#*slant - .5u#; +adjust_fit(0,0); pickup rule.nib; +x1=x2=hround(w/2); top y1=x_height; bot y2=-o; +draw z1--z2; +labels(1,2); endchar; + +cmchar "Two cute vertical bars"; +beginchar(oct"161",7u#,6u#+math_axis#,6u#-math_axis#); +italcorr math_axis#*slant - .5u#; +adjust_fit(0,0); pickup rule.nib; +lft x1=u; x2=x1; top y1=x_height; bot y2=-o; +x3=w-x1; x4=x3; y3=y1; y4=y2; +draw z1--z2; draw z3--z4; +labels(1,2,3,4); endchar; + +cmchar "Integer division (reverse quotient) symbol"; +beginarithchar(oct"162"); pickup rule.nib; +x1=2u; top y1=x_height;% +x2=x3=w-x1; x4=x1; bot y2=-o; +draw z1--z2; % diagonal +labels(1,2,3,4); endchar; + + +cmchar "Thick similarity sign";% taken from symbol.mf +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"163",14u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); +pickup pencircle xscaled .8rule_thickness yscaled 1.87rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline +lft x1=hround u; x2=4u; x3=w-x2; x4=w-x1; +bot y1=bot y3=-d; top y2=top y4=h; +draw z1{up}...z2{right}..{right}z3...{up}z4; % stroke +labels(1,2,3,4); endchar; + + +cmchar "Approximate equality sign"; % taken fron symbol.mf +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(.54x_height#,.66x_height#); +beginchar(oct"164",14u#,v_center(spread#'+spread#+rule_thickness#)); +adjust_fit(0,0); +pickup pencircle xscaled .8rule_thickness yscaled 1.87rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline +lft x1=hround u; x2=4u; x3=w-x2; x4=w-x1; +y1=y3; top y2=top y4=h; top y2-bot y1=spread'; +draw z1{up}...z2{right}..{right}z3...{up}z4; % upper stroke +z1-z5=z2-z6=z3-z7=z4-z8=(0,spread); +draw z5{up}...z6{right}..{right}z7...{up}z8; % lower stroke +labels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Approximate equality plus lower bar sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(.54x_height#,.66x_height#); +beginchar(oct"165",14u#,v_center(2spread#'+spread#+rule_thickness#)); +adjust_fit(0,0); +pickup pencircle xscaled .7rule_thickness yscaled 1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline +lft x1=hround u; x2=4u; x3=w-x2; x4=w-x1; +y1=y3; top y2=top y4=h; top y2-bot y1=spread'; +draw z1{up}...z2{right}..{right}z3...{up}z4; % upper stroke +z1-z5=z2-z6=z3-z7=z4-z8=(0,spread); +draw z5{up}...z6{right}..{right}z7...{up}z8; % lower stroke +y9=y10; x9=x1; x10=x8; y5-y9=spread'; +pickup rule.nib; draw z9--z10; +labels(1,2,3,4,5,6,7,8,9,10); endchar; + + +cmchar "Follows with approximate equality sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(.54 x_height#,.66 x_height#); +spread#'':=spread#; spread'':=spread; % the spread of `$=$' +compute_spread(1.111 x_height#,1.333 x_height#); +beginchar(oct"166",14u#,v_center(2spread#''+spread#+2rule_thickness#)); +adjust_fit(0,0); +% now for follow sign, using z9 (top), z10 (vertex), & z11 (bot) +pickup rule.nib; +lft x9 = hround 1.5u-eps; x10=w-x9; x11=x9; +y9-y11=spread; top y9=h; y10=.5[y11, y9]; +draw z9{u,-spread}...{right}z10; +draw z11{u,spread}...{right}z10; +pickup pencircle xscaled .7rule_thickness yscaled 1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline +lft x1=hround u; x2=4u; x3=w-x2; x4=w-x1; +top y1=top y3=bot y11-spread''; top y2=top y4=bot y1+spread'; +z1-z5=z2-z6=z3-z7=z4-z8=(0,spread''); +draw z1{up}...z2{right}..{right}z3...{up}z4; % upper stroke +draw z5{up}...z6{right}..{right}z7...{up}z8; % lower stroke +labels(1,2,3,4,5,6,7,8,9,10,11); endchar; + +cmchar "Precedes with approximate equality sign"; +compute_spread(.45x_height#,.55x_height#); +spread#':=spread#; spread':=spread; % the spread of `$=$' +compute_spread(.54x_height#,.66x_height#); +spread#'':=spread#; spread'':=spread; % the spread of `$=$' +compute_spread(1.111 x_height#,1.333 x_height#); +beginchar(oct"167",14u#,v_center(spread#+2spread#''+2rule_thickness#)); +adjust_fit(0,0); +% now for precedes sign, using z9 (top), z10 (vertex), & z11 (bot) +pickup rule.nib; +x9=x11=w-x10; lft x10=hround 1.5u-eps; +y9-y11=spread; top y9=h; y10=.5[y11, y9]; +draw z9{-u,-spread}...{left}z10; +draw z11{-u,spread}...{left}z10; +pickup pencircle xscaled .7rule_thickness yscaled 1.4rule_thickness; +if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline +lft x1=hround u; x2=4u; x3=w-x2; x4=w-x1; +top y3=top y1=bot y11-spread''; top y2=top y4=bot y1+spread'; +z1-z5=z2-z6=z3-z7=z4-z8=(0,spread''); +draw z1{up}...z2{right}..{right}z3...{up}z4; % upper stroke +draw z5{up}...z6{right}..{right}z7...{up}z8; % lower stroke +labels(1,2,3,4,5,6,7,8,9,10,11); endchar; + +cmchar "Arch with left downward arrowhead"; +beginchar(oct"170",18u#,x_height#,0); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,0); pos2(rule_thickness,0); +pos3(bar,90); pos4(bar,90); +lft x1l=hround(.5w-.5rule_thickness); y1+.5rule_thickness=h; +x0=x1=x2; bot y0=-d; x0-x3=x4-x0=3u+eps; +y3=y4=y0+.24asc_height+eps; +pos5(bar,angle(z4-z0)); z5l=z0; +pos6(bar,angle(z3-z0)); z6l=z0; +z9=.381966[.5[z3,z4],z0]; +numeric t; path p; p=z4r{z9-z4}..z6r; +t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p; +for i=0 upto 6: x[i]:=x[i]-5.5u; x[i]l:=x[i]l-5.5u; x[i]r:=x[i]r-5.5u; endfor +x9:=x9-5.5u; +filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --z2r---z2l--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead +% arch represented by z2, z11 (top) z12 +rt x12=w-1u; bot y12=y0; top y11=h+o; x11=.5[x2, x12]; +pickup rule.nib; draw z2{up}...{right}z11...{down}z12; +penlabels(0,1,2,3,4,5,6,9,11,12); endchar; + +cmchar "Arch with right downward arrowhead"; +beginchar(oct"171",18u#,x_height#,0); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,0); pos2(rule_thickness,0); +pos3(bar,90); pos4(bar,90); +lft x1l=hround(.5w-.5rule_thickness); y1+.5rule_thickness=h; +x0=x1=x2; bot y0=-d; x0-x3=x4-x0=3u+eps; +y3=y4=y0+.24asc_height+eps; +pos5(bar,angle(z4-z0)); z5l=z0; +pos6(bar,angle(z3-z0)); z6l=z0; +z9=.381966[.5[z3,z4],z0]; +numeric t; path p; p=z4r{z9-z4}..z6r; +t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p; +for i=0 upto 6: x[i]:=x[i]+5.5u; x[i]l:=x[i]l+5.5u; x[i]r:=x[i]r+5.5u; endfor +x9:=x9+5.5u; +filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --z2r---z2l--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead +% arch represented by z2, z11 (top) z12 (right) +lft x12=u; bot y12=y0; top y11=h+o; x11=.5[x2, x12]; +pickup rule.nib; draw z2{up}...{left}z11...{down}z12; +penlabels(0,1,2,3,4,5,6,9,11,12); endchar; + +cmchar "Stylized F"; +beginarithchar(oct"172"); +pickup pencircle xscaled 2.5rule_thickness yscaled .5rule_thickness; +bot y1=-d; top y2=top y3=h+o; y4=y5=.5[y1, y2]; lft x1=u; x3=w-x1; +numeric t; t=4; % t=slope of thck stem +y2-y1=t*(x2-x1); +z4=whatever[z1, z2]; x5-x4=.6(x3-x2); +draw z1--z2--z3; draw z4--z5; +penlabels(1,2,3,4,5); endchar; + + diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbbx10.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbbx10.mf new file mode 100644 index 00000000000..a62b95dcb52 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbbx10.mf @@ -0,0 +1,88 @@ +% European Computer Modern Bright text companion font +% boldface (regular) extended 10 point [1997/04/25 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBBX"; font_size 10pt#; + +u#:=22/36pt#; % unit width +width_adj#:=22/36pt#; % width adjustment for certain characters +serif_fit#:=-9/36pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=-11/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#:=250/36pt#; % height of caps +fig_height#:=250/36pt#; % height of numerals +x_height#:=170/36pt#; % height of lowercase without ascenders +math_axis#:=95/36pt#; % axis of symmetry for math symbols +bar_height#:=90/36pt#; % height of crossbar in lowercase e (.53 x_height) +comma_depth#:=40/36pt#; % depth of comma below baseline +desc_depth#:=60/36pt#; % depth of lowercase descenders + +acc_height#:=75/36pt#; % ? +%dot_height#:=75/36pt#; +%ldot_height#:=75/36pt#; +dot_height#:=74/36pt#; +ldot_height#:=74/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=0pt#; % diameter of rounded corners +fine#:=0pt#; % diameter of sharply rounded corners +thin_join#:=9/36pt#; % width of extrafine details +hair#:=49/36pt#; % lowercase hairline breadth +stem#:=49/36pt#; % lowercase stem breadth +curve#:=49/36pt#; % lowercase curve breadth +ess#:=43/36pt#; % breadth in middle of lowercase s +flare#:=40/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=47/36pt#; % diameter of dots +cap_hair#:=49/36pt#; % uppercase hairline breadth +cap_stem#:=53/36pt#; % uppercase stem breadth +cap_curve#:=53/36pt#; % uppercase curve breadth +cap_ess#:=51/36pt#; % breadth in middle of uppercase s +rule_thickness#:=30/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#:=0pt#; % protrusion of lowercase serifs +cap_jut#:=0pt#; % protrusion of uppercase serifs +beak_jut#:=0pt#; % horizontal protrusion of beak serifs +beak#:=1.5/36pt#; % vertical protrusion of beak serifs +vair#:=26/36pt#; % vertical diameter of hairlines +notch_cut#:=49/36pt#; % maximum breadth above or below notches +bar#:=26/36pt#; % lowercase bar thickness +slab#:=36/36pt#; % serif and arm thickness +cap_bar#:=34/36pt#; % uppercase bar thickness +cap_band#:=31/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=45/36pt#; % max breadth above/below uppercase notches +serif_drop#:=2/36pt#; % vertical drop of sloped serifs +stem_corr#:=1/36pt#; % for small refinements of stem breadth +vair_corr#:=2/36pt#; % for small refinements of hairline height +apex_corr#:=18/36pt#; % extra width at diagonal junctions + +o#:=8/36pt#; % amount of overshoot for curves +apex_o#:=0pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +fudge:=.88; % factor applied to weights of heavy characters +math_spread:=.5; % extra openness of math symbols +superness:=3/4; % parameter for superellipses +superpull:=1/18; % extra openness inside bowls +beak_darkness:=0; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=true; % should dots be square? +hefty:=true; % should we try hard not to be overweight? +serifs:=false; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=false; % we are not making an italic style font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? + +bx_kerning:=1; % different kerning for bold extended fonts +sym_u#:=u#; % unit of width for math symbols +sym_height#:=x_height#; % unit of height for math symbols + +gensize:=10; +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbmo10.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbmo10.mf new file mode 100644 index 00000000000..fad9fbd23b4 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbmo10.mf @@ -0,0 +1,19 @@ +% European Computer Modern Bright text companion font +% medium oblique 10 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBMO"; font_size 10pt#; +input br10pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +variant_g:=false; % we are not making an italic style font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +%ligs:=2; +acc_height#:=70/36pt#; % ? +dot_height#:=66.5/36pt#; +ldot_height#:=66.5/36pt#; % ok + + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbmo17.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbmo17.mf new file mode 100644 index 00000000000..05e42ea584e --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbmo17.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright text companion font +% medium oblique 17 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBMO"; font_size 17.28pt#; +input br17pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +;ligs:=2; % level of ligatures to be included +variant_g:=false; % we are not making an italic style font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +acc_height#:=70/36Pt#; % ? +dot_height#:=66.5/36Pt#; % ok +ldot_height#:=66.5/36Pt#; % ok + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbmo8.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbmo8.mf new file mode 100644 index 00000000000..2c1e5ceb5a4 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbmo8.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright text companion font +% medium oblique 8 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBMO"; font_size 8pt#; +input br8pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +variant_g:=false; % we are not making an italic style font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +acc_height#:=60/36pt#; % ? +dot_height#:=54.5/36pt#; % ok? +ldot_height#:=54.5/36pt#; % ok? + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbmo9.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbmo9.mf new file mode 100644 index 00000000000..87a63664824 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbmo9.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright text companion font +% medium oblique 9 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBMO"; font_size 9pt#; +input br9pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +variant_g:=false; % we are not making an italic style font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +acc_height#:=65/36pt#; % ? +dot_height#:=60.48/36pt#; % ok? +ldot_height#:=60.48/36pt#; % ok ? + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbmr10.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbmr10.mf new file mode 100644 index 00000000000..709762591a9 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbmr10.mf @@ -0,0 +1,19 @@ +% EC Bright text companion font +% 10pt medium roman [1997/04/03 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBMR"; font_size 10pt#; +input br10pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +variant_g:=false; % we are not making an italic font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +%ligs:=2; +acc_height#:=70/36pt#; % ? +dot_height#:=66.5/36pt#; +ldot_height#:=66.5/36pt#; % ok + + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbmr17.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbmr17.mf new file mode 100644 index 00000000000..92cd011a8d8 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbmr17.mf @@ -0,0 +1,18 @@ +% EC Modern Bright text companion font +% 17pt medium roman [1997/04/09 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBMR"; font_size 17.28pt#; +input br17pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +;ligs:=2; % level of ligatures to be included +variant_g:=false; % we don't make an italic font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +acc_height#:=70/36Pt#; % ? +dot_height#:=66.5/36Pt#; % ok +ldot_height#:=66.5/36Pt#; % ok + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbmr8.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbmr8.mf new file mode 100644 index 00000000000..7fc16a67d0a --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbmr8.mf @@ -0,0 +1,18 @@ +% EC Modern Bright text companion font +% 8pt medium roman [1997/04/09 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBMR"; font_size 8pt#; +input br8pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +variant_g:=false; % we don't make an italic font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +acc_height#:=60/36pt#; % ? +dot_height#:=54.5/36pt#; % ok? +ldot_height#:=54.5/36pt#; % ok? + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbmr9.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbmr9.mf new file mode 100644 index 00000000000..834c58b0c11 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbmr9.mf @@ -0,0 +1,18 @@ +% EC Modern Bright text companion font +% 9pt medium roman [1997/04/09 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBMR"; font_size 9pt#; +input br9pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +variant_g:=false; % we don't make an italic font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +acc_height#:=65/36pt#; % ? +dot_height#:=60.48/36pt#; % ok? +ldot_height#:=60.48/36pt#; % ok ? + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbpseudo.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbpseudo.mf new file mode 100644 index 00000000000..f8f5325b5b4 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbpseudo.mf @@ -0,0 +1,70 @@ +% tbpseudo.mf +% [= txpseudo.mf, changed by Walter Schmidt, see (CMBR)] +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% +% This file is part of the EC Bright fonts version 1.0 +% +% This file contains pseudoparameters which are not entered in the +% parameter files, but are computed from the initial parameter set. +% There are also ad hoc parameters needed only once, and scratch +% parameters with different values at each occuerence (like |theta|). +% + +version_check(1,0); % |version_check| was introduced in dc1.3 + +% (CMBR) +% width of circles for copyright etc., ensures real circles! +numeric circ_w#; +circ_w#:=18.7u#; + +% Diameters of dots + +% (CMBR) +numeric idot_diam#,udot_diam#,pdot_diam#; + pdot_diam#=if monospace: 5/4 fi\\ dot_size#; % punctuation dots + +% |limit_dist| is used in |put_cross| +% (the value of |u| is changed by |mono_adjust|, hence the global setting) + +vardef limit_dist=5/4u enddef; + +% More parametrisations for accents from csaccent.mf (csfonts): + +numeric uc_acc_height, uc_acc_height#, + lc_acute_height, lc_acute_height#, + lc_hachek_height, lc_hachek_height#, + accent_u, accent_u#, + accent_thin, + uc_acc_shift, asc_acc_shift; +if unknown circ_weight: circ_weight:=1; fi + +uc_acc_height# = cap_height#+asc_height#-hi.x_height#; +lc_acute_height# = asc_height#; +lc_hachek_height# = hi.x_height#+acc_height#; +accent_u# = u#; % unexpanded dimension unit + +vardef accent_thin = if thin_join > crisp: thin_join else: crisp+eps fi enddef; + +vardef uc_acc_shift = cap_height - hi.x_height enddef; +vardef asc_acc_shift = asc_height - hi.x_height enddef; + +% Height of floating accents for capitals (note, that TeX raises them +% by |uc_acc_shift|) + +numeric cap_accent_height, cap_accent_height#; +cap_accent_height# = acc_height# + hi.x_height#; + +% (CMBR) +def pseudo_setup= + idot_diam#:=stem'/hppp; % dots on i and j, must fit stem width! + idot_diam:=stem'; + udot_diam:=min(stem', hround(.85dot_size)); % umlaut dots + udot_diam#:=udot_diam/hppp; + define_whole_blacker_pixels(pdot_diam); + define_whole_vertical_pixels(uc_acc_height,lc_acute_height, + lc_hachek_height); + define_pixels(accent_u); + define_whole_vertical_pixels(cap_accent_height); +enddef; +endinput; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbso10.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbso10.mf new file mode 100644 index 00000000000..969fb021164 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbso10.mf @@ -0,0 +1,19 @@ +% European Computer Modern Bright text companion font +% semibold oblique 10 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBSO"; font_size 10pt#; +input brs10pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +variant_g:=false; % we are not making an italic style font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +%ligs:=2; +acc_height#:=70/36pt#; % ? +dot_height#:=70/36pt#; % 66.5 +ldot_height#:=70/36pt#; % 66.5 + + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbso17.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbso17.mf new file mode 100644 index 00000000000..775598c7cab --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbso17.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright text companion font +% semibold oblique 17 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBSO"; font_size 17.28pt#; +input brs17pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +;ligs:=2; % level of ligatures to be included +variant_g:=false; % we are not making an italic style font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +acc_height#:=70/36Pt#; % ok +dot_height#:=70/36Pt#; % 66.5 +ldot_height#:=70/36Pt#; % 66.5 + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbso8.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbso8.mf new file mode 100644 index 00000000000..ad5e51fc4c3 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbso8.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright text companion font +% semibold oblique 8 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBSO"; font_size 8pt#; +input brs8pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +variant_g:=false; % we are not making an italic style font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +acc_height#:=60/36pt#; % ? +dot_height#:=60/36pt#; % 54.5 +ldot_height#:=60/36pt#; % 54.5 + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbso9.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbso9.mf new file mode 100644 index 00000000000..a5cda976804 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbso9.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright text companion font +% semibold oblique 9 point [1997/05/13 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBSO"; font_size 9pt#; +input brs9pt; + +slant:=sind 12/cosd 12; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +variant_g:=false; % we are not making an italic style font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +acc_height#:=65/36pt#; % ? +dot_height#:=65/36pt#; % 60.48 +ldot_height#:=65/36pt#; % 60.48 + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbsr10.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbsr10.mf new file mode 100644 index 00000000000..2fe8a2fbfa9 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbsr10.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright text companion font +% semibold regular 10 point [1997/04/25 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBSR"; font_size 10pt#; +input brs10pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +variant_g:=false; % we are not making an italic style font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +%ligs:=2; +acc_height#:=70/36pt#; % ? +dot_height#:=70/36pt#; % 66.5 +ldot_height#:=70/36pt#; % 66.5 + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbsr17.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbsr17.mf new file mode 100644 index 00000000000..59ae503dd78 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbsr17.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright text companion font +% semibold regular 17 point [1997/04/25 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBSR"; font_size 17.28pt#; +input brs17pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +;ligs:=2; % level of ligatures to be included +variant_g:=false; % we are not making an italic style font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +acc_height#:=70/36Pt#; % ok +dot_height#:=70/36Pt#; % 66.5 +ldot_height#:=70/36Pt#; % 66.5 + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbsr8.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbsr8.mf new file mode 100644 index 00000000000..77c3164d565 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbsr8.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright text companion font +% semibold regular 8 point [1997/04/25 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBSR"; font_size 8pt#; +input brs8pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +variant_g:=false; % we are not making an italic style font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +acc_height#:=60/36pt#; % ? +dot_height#:=60/36pt#; % 54.5 +ldot_height#:=60/36pt#; % 54.5 + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbsr9.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbsr9.mf new file mode 100644 index 00000000000..1a5aa16c2f7 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbsr9.mf @@ -0,0 +1,18 @@ +% European Computer Modern Bright text companion font +% semibold regular 9 point [1997/04/25 v1.0 (WaS)] + +if unknown ebbase: input ebbase fi + +font_identifier:="TBSR"; font_size 9pt#; +input brs9pt; + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +%ligs:=2; % level of ligatures to be included +variant_g:=false; % we are not making an italic style font +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +acc_height#:=65/36pt#; % ? +dot_height#:=65/36pt#; % 60.48 +ldot_height#:=65/36pt#; % 60.48 + +generate tbsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbsymb.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbsymb.mf new file mode 100644 index 00000000000..c9e0fd14ce0 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbsymb.mf @@ -0,0 +1,58 @@ +% tbsymb.mf +% [= txsymb.mf, changed by Walter Schmidt, see (CMBR)] +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% +% This file is part of Ec Bright version 1.0g +% +% Driver file for the tb fonts +% + +version_check(1,0); % |version_check| was introduced in dc1.3 + +input ebaccess; % accent accessories %(CMBR) +input tbpseudo; % pseudoparameters %(CMBR) + +mode_setup; font_setup; pseudo_setup; + +input txaccent; % flat accents for capital letters +input txgen; % genealogical symbols (by DEK) +input tbsymbol; % misc. symbols % (CMBR) +if variant_g: % italics? + input txitlod; % old style digits (by GJL) + input txisuper; % superscript 1,2,3 + input txifract; % fractions 1/4, 1/2, 3/4 +else: % roman + input txromod; % old style digits (by DEK) + input txrsuper; % superscript 1,2,3 + input txrfract; % fractions 1/4, 1/2, 3/4 +fi; + +% Ligtable + +if not monospace: + ligtable "-": oct"177" =: oct"177"; % <hyphen><hyphenchar> => <hyphenchar> +fi + +% Fontparameter +% +font_coding_scheme:="TeX text companion symbols 1---TS1"; +boundarychar:=oct"027"; +font_slant slant; +font_x_height x_height#; +font_cap_height cap_height#; +font_asc_height asc_height#; +font_acc_cap_height (cap_height#+acc_height#); +font_desc_depth desc_depth#; +font_max_height(max(asc_height#,body_height#, + cap_height#+acc_height#)); +font_max_depth(max(desc_depth#,paren_depth#,the_ogonek_depth#)); +% font_digit_width % set inside the digits file +font_cap_stem cap_stem#; % No letter capital I in the symbols +font_baselineskip max(1.25*designsize,body_height#+paren_depth#);% (CMBR) + font_normal_space 5.7u#+2letter_fit#; % (CMBR) + font_normal_stretch 2.85u#; font_normal_shrink 1.9u#; %(CMBR) + font_quad 18u#+4letter_fit#; + font_extra_space 1.9u#; % (CMBR) + +bye. diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbsymbol.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbsymbol.mf new file mode 100644 index 00000000000..3b24870ea8f --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbsymbol.mf @@ -0,0 +1,2197 @@ +% tbsymbol.mf +% [= txsymbol.mf, changed by Walter Schmidt, see (CMBR)] +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% (c) Copyright 2000 J"org Knappen, Walter Schmidt +% +% This file is part of EC Bright fonts version 1.0f +% +% Miscellaneous symbols for the TS1 encoding, +% to be used for making the CM Bright typefaces. +% +% Heavily borrowing from existent fonts, like Computer Modern, AMS symbols +% and wasy symbols + +version_check(1,0); % |version_check| was introduced in dc1.3 + +ecchar"Single straight base quote"; % jk +beginchar(oct"015",7u#,asc_height#,0); + numeric shifth_down; + adjust_fit(0,0); + x1=x2=.5w; + y2=max(.5[bar_height,x_height]+.5vair,h-x_height)-the_shift; + if serifs: + y1=flare/2; the_shift=h-.5stem-y1; + pickup crisp.nib; + pos1(flare,0); pos2(vair,0); + filldraw circ_stroke (z1e--z2e); % stem and bulb + else: + top y1=stem; the_shift=h-y1; + pickup fine.nib; + pos1(stem,0); pos2(vair,0); + filldraw stroke z1e--z2e; % stem + fi + charht:=dot_size#; chardp:=desc_depth#; + penlabels(1,2,3,4); +endchar; + +ecchar"Double straight base quotes"; % from pl_cud (plfonts) +beginchar(oct"022",9u#,asc_height#,0); + numeric top_width#,spread#,shifth_down; + top_width#=if serifs: flare# else: stem# fi; + spread#=max(3u#,top_width#+.5u#); define_pixels(spread); + adjust_fit(0,0); + numeric the_shift; + x1=x2; x3=x4=w-x1; x3-x1=spread+2; y1=y3; + y2=y4=max(.5[bar_height,x_height]+.5vair,h-x_height)-the_shift; + if serifs: + y1=flare/2; the_shift=h-.5stem-y1; + pickup crisp.nib; + pos1(flare,0); pos2(vair,0); pos3(flare,0); pos4(vair,0); + filldraw circ_stroke (z1e--z2e); % left stem and bulb + filldraw circ_stroke (z3e--z4e); % right stem and bulb + else: + top y1=stem; the_shift=h-y1; + pickup fine.nib; + pos1(stem,0); pos2(vair,0); pos3(stem,0); pos4(vair,0); + filldraw stroke z1e--z2e; % left stem + filldraw stroke z3e--z4e; % right stem + fi + charht:=dot_size#; chardp:=desc_depth#; + penlabels(1,2,3,4); +endchar; + +ecchar "twelve u dash"; +beginchar(oct"025",12u#,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; + +ecchar "three quarters em dash"; +beginchar(oct"026",13.5u#,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; + +ecchar "Capital compound word mark"; +beginchar(oct"027",0,cap_height#,0); +zero_width; +endchar; + +ecchar "Leftward arrow"; % from sym.mf (cmfonts) +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"030",18u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,90); pos2(rule_thickness,90); +pos3(rule_thickness,0); pos4(rule_thickness,0); +y0=y1=y2=math_axis; x1+.5rule_thickness=hround(w-u); lft x0=hround u; +y3-y0=y0-y4=if monospace:.24 else:.36 fi asc_height+eps; +x3=x4=x0+if monospace:3u else:4u fi+eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +z9=.2[.5[z3,z4],z0]; +numeric t; path p; p=z4r{z9-z4}..z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6,9); endchar; + +ecchar "Rightward arrow"; % from sym.mf (cmfonts) +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"031",18u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,90); pos2(rule_thickness,90); +pos3(rule_thickness,0); pos4(rule_thickness,0); +y0=y1=y2=math_axis; x1-.5rule_thickness=hround u; rt x0=hround(w-u); +y3-y0=y0-y4=if monospace:.24 else:.36 fi asc_height+eps; +x3=x4=x0-if monospace:3u else:4u fi-eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +z9=.2[.5[z3,z4],z0]; +numeric t; path p; p=z4l{z9-z4}..z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r) + --z3r{z9-z3}..z0 & cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6,9); endchar; + +ecchar"Tie accent"; % from italms (cmfonts) +beginchar(oct"032",5u#,asc_height#,0); +italcorr 4/9[x_height#,asc_height#]*slant+4.5u#+2letter_fit#+.5hair#; +adjust_fit(if monospace:2u#,2u# else:serif_fit#,serif_fit# fi); +pickup fine.nib; pos1(hair,180); pos2(vround 1/5[vair,stem],90); +pos3(hair,0); +lft x1r=hround(.5w-.5hair); x2=.5[x1,x3]; +rt x3r=hround(w+4u+2letter_fit+.5hair); +y1=y3=4/9[x_height,asc_height]; top y2r=vround 8/9[x_height,asc_height]; +filldraw stroke super_arc.e(1,2) & super_arc.e(2,3); % arc +penlabels(1,2,3); endchar; + +ecchar"New tie accent"; % centered +beginchar(oct"034",9u#,asc_height#,0); +italcorr 4/9[x_height#,asc_height#]*slant+4.5u#+2letter_fit#+.5hair#; +adjust_fit(if monospace:2u#,2u# else:serif_fit#,serif_fit# fi); +pickup fine.nib; pos1(hair,180); pos2(vround 1/5[vair,stem],90); +pos3(hair,0); +lft x1r=w-rt x3r=hround(2u-.5vair); x2=.5w; +y1=y3=4/9[x_height,asc_height]; top y2r=vround 8/9[x_height,asc_height]; +filldraw stroke super_arc.e(1,2) & super_arc.e(2,3); % arc +penlabels(1,2,3); endchar; + +ecchar "Ascender height compound word mark"; +beginchar(oct"037",0,asc_height#,0); +zero_width; +endchar; + +iff not variant_g: % not italic +ecchar"Blank symbol"; % jk +beginchar(oct"040",10u#+serif_fit#,asc_height#,0); +italcorr .5x_height#*slant+min(.5curve#-u#,-.25u#); +adjust_fit(serif_fit#,0); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; +lft x1l=hround(2.5u-.5stem'); top y1=h; +numeric edge; edge=rt x2r; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); +pos4(vair,90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); +rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l),1/3[rt x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; +rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x4,x5r]); +(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x6,x5r]); +filldraw stroke z3e{up}...pulled_arc.e(4,5)&pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); +y2=ypart(((edge,h)--(edge,0))intersectionpoint(z6l{left}...{up}z7l)); +pickup tiny.nib; filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; pos8(hair,0); pos7'(stem,0); +z7'=z2; x8l=x7'l; bot y8=0; +filldraw stroke z7'e--z8e; % point +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif +put_cross(.5stem+if serifs: .9max(limit_dist,jut) else: 1.8u fi,.5stem+3u); +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +iff variant_g: % italic +ecchar"Blank symbol"; % jk +beginchar(oct"040",8u#,asc_height#,0); +italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; +adjust_fit(0,0); pickup tiny.nib; +pos1(stem,0); pos2(stem,0); x1=x2; +lft x1l=hround(1.5u-.5stem); top y1=h; y2=.5x_height; +filldraw stroke z1e--z2e; % stem +sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif +pickup fine.nib; pos2'(stem,-180); pos3(vair,-90); +pos4(curve,0); pos5(vair,90); pos0(hair,180); +z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-1.5u+.5curve); +bot y3r=-oo; top y5r=x_height+oo; y4=y2; +filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4) + & pulled_arc.e(4,5) & super_arc.e(5,0); % bowl +math_fit(-.3x_height#*slant+.5curve#-u#,ic#); +put_cross(.5stem+if serifs: .9max(limit_dist,jut) else: 1.8u fi,.5stem+3u); +penlabels(0,1,2,3,4,5); endchar; + +ecchar"Dollar sign"; % from romanp (cm) +beginchar("$",9u#,body_height#,body_height#-asc_height#); +italcorr fig_height#*slant-.5u#; % same as for digits +adjust_fit(0,0); +numeric theta; theta=90-angle(50u,asc_height); slope:=-asc_height/50u; +pickup fine.nib; pos2(slab,-90); +pos0(cap_stem,theta); pos7(slab,-90); +x2=x0=x7=.5w; top y2l=asc_height+oo; bot y7r=-oo; +y0=.52asc_height; lft x3l=hround u; rt x6r=hround(w-u); +x3r-x3l=x6r-x6l=hround .35[slab,cap_stem]-fine; +ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; +ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; +filldraw stroke super_arc.e(2,3) & z3e{down} + ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke +if serifs: pos1(hair,0); pos8(hair,180); + pos10(flare,0); pos9(flare,180); + rt x1r=hround(w-u); lft x8r=hround u; y1=.5[y0,y2]; y8=.5[y0,y7]; + {{less_tense; pos2'(slab,90); z2'=z2; bulb(2',1,10); % upper arc and bulb + bulb(7,8,9)}}; % lower arc and bulb +else: pos1(.6[slab,flare],-100); pos8(flare,-100); + rt x1l=hround(w-1.3u); lft x8r=hround .8u; + top y1l=vround .92asc_height+oo; bot y8r=vround .1asc_height-oo; + filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal + filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal +pickup crisp.nib; pos12(bar,0); pos11(bar,0); +lft x12l=lft x11l=hround(.5w-.5bar); top y12=h; bot y11=-d; +filldraw stroke z12e--z11e; % vertical crossbar +penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12); endchar; + + +ecchar "Straight single quote"; % from romsub (cm) +beginchar(oct"047",5u#,asc_height#,0); +italcorr asc_height#*slant+.5 if serifs: flare# else: stem# fi -2u#; +adjust_fit(0,0); +x1=x2=.5w; y2=max(.5[bar_height,x_height]+.5vair,h-x_height); +if serifs: pickup crisp.nib; pos1(flare,0); pos2(vair,0); + y1+.5stem=h; filldraw circ_stroke z1e--z2e; % stem and bulb +else: pickup fine.nib; pos1(stem,0); pos2(vair,0); + top y1=h; filldraw stroke z1e--z2e; fi % stem +penlabels(1,2); endchar; + +ecchar "Comma"; +beginchar(",",5u#,pdot_diam#,comma_depth#); +adjust_fit(0,0); +x1-.5pdot_diam=hround(.5w-.5pdot_diam); y1-.5pdot_diam=0; +comma(1,a,pdot_diam,.2u,comma_depth); % dot and tail +penlabels(1); endchar; + +ecchar "Double hyphen or short equals sign"; % jk % (CMBR) +compute_spread(.45sym_height#,.55sym_height#); +beginchar(oct"055",6u#,v_center(spread#+rule_thickness#)); +italcorr h#*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); +pos3(thickness,90); pos4(thickness,90); +y1=y2; y3=y4; +top y1=vround .5h+.5thickness+.5spread; +top y3=vround .5h+.5thickness-.5spread; +rt x2=hround(w-u)+eps; +if monospace: x2=w-x1 else: lft x1=hround .2u-eps fi; +x3=x1; x4=x2; +filldraw stroke z1e--z2e; % upper bar +filldraw stroke z3e--z4e; % lower bar +penlabels(1,2,3,4); endchar; + +ecchar "Period"; +beginchar(".",5u#,pdot_diam#,0); +adjust_fit(0,0); pickup fine.nib; +pos1(pdot_diam,0); pos2(pdot_diam,90); +lft x1l=hround(.5w-.5pdot_diam); bot y2l=0; z1=z2; dot(1,2); % dot +penlabels(1,2); endchar; + +ecchar "Asterisk at the axis"; % from mathsy % (CMBR) +beginchar(oct"052",9u#,v_center(sym_height#)); +adjust_fit(0,0); +numeric ast_flare; ast_flare=hround .7[thin_join,stem]; +x0=.5w; y0=h-.5sym_height; +for d=-150 step 60 until 150: z[d]=z0+.5dir d xscaled 7.5sym_u yscaled sym_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; + +ecchar "Fraction"; % from punct (cm)" 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; + +ecchar "Left angle bracket"; +beginchar(oct"074",7u#,body_height#,paren_depth#); +adjust_fit(0,0); pickup rule.nib; +rt x1=hround(w-u)+eps; x1=x3; lft x2=hround 2u-1-eps; +top y1=h+eps; .5[y1,y3]=y2=math_axis; +draw z1--z2--z3; % diagonals +labels(1,2,3); endchar; + +ecchar "Minus sign"; +beginarithchar("="); pickup extra_rule.nib; +lft x3=hround u-eps; x4=w-x3; y3=y4=math_axis; +draw z3--z4; % crossbar +labels(1,2,3,4); endchar; + +ecchar "Right angle bracket"; +beginchar(oct"076",7u#,body_height#,paren_depth#); +adjust_fit(0,0); pickup rule.nib; +rt(w-x1)=hround(w-u)+eps; x1=x3; lft(w-x2)=hround 2u-1-eps; +top y1=h+eps; .5[y1,y3]=y2=math_axis; +draw z1--z2--z3; % diagonals +labels(1,2,3); endchar; + +ecchar"Mho sign (turned Omega)"; % from lasy +beginchar(oct"115",13u#,cap_height#,0); +italcorr cap_height#*slant-.35u#; %italcorr .75cap_height#*slant-.5u#; +adjust_fit(0,0); +pickup tiny.nib; pos1(vair,-90); pos2(cap_curve,0); +pos3(vair,0); pos4(cap_curve,180); pos5(vair,180); +x1=.5w; bot y1r=0-o; lft x4r=hround u; y2=y4=1/3h; x2=w-x4; +rt x5l=hround(1/3(w+.5u)+.5hair); top y3=top y5=h; x3=w-x5; +filldraw stroke z3e{down}...{down}z2e + & pulled_super_arc.e(2,1)(.5superpull) + & pulled_super_arc.e(1,4)(.5superpull) + & z4e{up}...{up}z5e; % bowl +numeric arm_thickness; path p; p=z3{down}...{down}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,0); +top y6r=h; x6=x3; rt x7r=hround (w-.8u); y7=good.y(y6l-.5beak)+eps; +(x,y)=p intersectionpoint((0,y6l)--(w+h,y6l)); x6l:=x; +arm(6,7,a,.5beak_darkness,1.2beak_jut); % right arm and beak +pos8(arm_thickness,90); pos9(fudged.hair,180); +y8=y6; y9=y7; x8+x6=x9+x7=w; x8l:=w-x6l; +arm(8,9,b,.5beak_darkness,-1.2beak_jut); % left arm and beak +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9); endchar; + +ecchar"Big circle for copyright, etc";% (CMBR) +%beginchar("O",20u#,body_height#,max(paren_depth#,desc_depth#)); autorounded; +beginchar("O",circ_w#,body_height#,max(paren_depth#,desc_depth#)); autorounded; +adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); endchar; + +ecchar"Ohm sign (ISO 6937)"; % from greeku (cmfonts) +beginchar(oct"127",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; + +ecchar"Musical note (one eigth note)"; % jk +beginchar("n",11u#,asc_height#,0); +pickup rule.nib; +x1=3/5w; x2=x1; top y1=h; bot y2=.5bar_height; +lft x3=u; x5= x2; x4=x6=.5[x3,x5]; +y3=y5=vround(.5bar_height); y4=y6-bar_height=-oo; +x7=x1; rt x9=w-u; x8=.5[x7,x9]; +y7=y1; bot y9=vround(.5bar_height); y8=.5[y7,y9]; +draw z1--z2; % stem +filldraw z3{down}...z4{right}...z5{up}...z6{left}...cycle; % body +draw z7{down}...z8...{down}z9; % flag +endchar; + +ecchar "Left semantic bracket"; % [[ from stmaryrd +beginchar(oct"133",7.25u#,body_height#,paren_depth#); +adjust_fit(0,0); +pickup crisp.nib; pos1(rule_thickness,0); pos2(rule_thickness,0); +top y1=h; bot y2=-d; lft x1l=lft x2l=hround(2.5u-.5rule_thickness)-1-eps; +filldraw stroke z1e--z2e; % left stem +pos7(rule_thickness,0); pos8(rule_thickness,0); +top y7=h; bot y8=-d; lft x7l=lft x8l=hround(4.75u-.5rule_thickness)-1-eps; +filldraw stroke z7e--z8e; % right stem +pos3(rule_thickness,90); pos4(rule_thickness,90); +pos5(rule_thickness,90); pos6(rule_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,7,8); endchar; + + +ecchar "Right semantic bracket"; % ]] from stmaryrd +beginchar(oct"135",7.25u#,body_height#,paren_depth#); +adjust_fit(0,0); +pickup crisp.nib; pos1(rule_thickness,0); pos2(rule_thickness,0); +top y1=h; bot y2=-d; rt x1r=rt x2r=hround(w-2.5u+.5rule_thickness)+1+eps; +filldraw stroke z1e--z2e; % left stem +pos7(rule_thickness,0); pos8(rule_thickness,0); +top y7=h; bot y8=-d; rt x7r=rt x8r=hround(w-4.75u+.5rule_thickness)+1+eps; +filldraw stroke z7e--z8e; % right stem +pos3(rule_thickness,90); pos4(rule_thickness,90); +pos5(rule_thickness,90); pos6(rule_thickness,90); +x3=x5=x1l; lft x4=lft x6=ceiling(.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,7,8); endchar; + +ecchar "Upward arrow"; % from sym +beginchar(oct"136",9u#,asc_height#,asc_depth#); +italcorr .76asc_height#*slant+.5crisp#-u#; +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,0); pos2(rule_thickness,0); +pos3(rule_thickness,90); pos4(rule_thickness,90); +lft x1l=hround(.5w-.5rule_thickness); y1-.5rule_thickness=-d; +x0=x1=x2; top y0=h; x0-x3=x4-x0=if monospace:3u else:4u fi+eps; +y3=y4=y0-if monospace:.24 else:.36 fi asc_height-eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +z9=.2[.5[z3,z4],z0]; +%numeric t; path p; p=z4l{z9-z4}..z6r; +numeric t; path p; p=z4l{z9-z4}..z6l; +t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p; +filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) + --z2r---z1r..z1l---z2l--subpath (t,0) of\\(z3l{z9-z3}..z5r) + --z3r{z9-z3}..z0 & cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6,9); endchar; + +ecchar "Downward arrow"; % from sym +beginchar(oct"137",9u#,asc_height#,asc_depth#); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,0); pos2(rule_thickness,0); +pos3(rule_thickness,90); pos4(rule_thickness,90); +lft x1l=hround(.5w-.5rule_thickness); y1+.5rule_thickness=h; +x0=x1=x2; bot y0=-d; x0-x3=x4-x0=if monospace:3u else:4u fi+eps; +y3=y4=y0+if monospace:.24 else:.36 fi asc_height+eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +z9=.2[.5[z3,z4],z0]; +numeric t; path p; p=z4r{z9-z4}..z6r; +%t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p; +t=xpart(p intersectiontimes((x2l,-d)--(x2l,h))); y2=ypart point t of p; +filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --z2r---z1r..z1l---z2l--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6,9); endchar; + +ecchar"Backwards tick mark"; % from accent (cmfonts, grave accent) +beginchar(oct"140",9u#,min(asc_height#,2x_height#),0); +adjust_fit(0,0); +if serifs: pickup crisp.nib; x1-.5stem=hround 2u; x2=2/3[x1,w-x1]; + y1+.5stem=h+eps; y2=max(2/3[h,x_height],x_height+o+hair); + numeric theta; theta=angle(z2-z1)+90; + pos1(stem,theta); pos2(hair,theta); + filldraw circ_stroke z1e--z2e; % diagonal +else: pickup fine.nib; pos1(stem,0); pos2(vair,0); + lft x1l=hround 1.5u; rt x2r=hround(.5w+.25u+.5vair); + top y1=h; bot y2=vround 2/3[h,x_height]; + filldraw stroke z1e--z2e; fi % diagonal +penlabels(1,2); endchar; + +ecchar "Low lying tilde (squiggle)"; +beginchar(oct"176",11u#,min(bar_height#,2/7x_height#),0); +italcorr h#*slant-u#; +adjust_fit(0,0); +if serifs: numeric theta; + theta=angle(1/8(7u if monospace: /expansion_factor fi-vair),1/4acc_height); +% theta=angle(1/6(6u-vair),1/4h); + pickup crisp.nib; numeric mid_width; mid_width=.4[vair,stem]; + pos1(vair,theta+90); pos2(vair,theta+90); + pos3(vair,theta+90); pos4(vair,theta+90); + z2-z1=z4-z3=(mid_width-crisp)*dir theta; + lft x1r=w-rt x4l=hround 1.5u; top y4r=h; + bot y1l=0; + pair delta; ypart delta=3(y3l-y1l); delta=whatever*dir theta; + filldraw z1l..controls(z1l+delta)and(z3l-delta)..z3l..z4l + --z4r..controls(z4r-delta)and(z2r+delta)..z2r..z1r--cycle; % stroke +else: pickup fine.nib; pos1(vair,180); pos2(vair,90); + pos3(.5[vair,slab],90); pos4(vair,90); pos5(vair,180); + lft x1r=w-rt x5l=hround 1.5u; x2-x1=x3-x2=x4-x3=x5-x4; + bot y1=bot y4l=0; + top y2r=top y5=h; y3=.5[y2,y4]; + filldraw stroke z1e{up}...z2e{right}..z3e..{right}z4e...{up}z5e; fi % stroke +penlabels(1,2,3,4,5); endchar; + +iff not monospace: +ecchar "Double hyphen-hyphenchar"; % jk % (CMBR) +compute_spread(.45sym_height#,.55sym_height#); +beginchar(oct"177",3u#,v_center(spread#+rule_thickness#)); +italcorr h#*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); +pos3(thickness,90); pos4(thickness,90); +y1=y2; y3=y4; +top y1=vround .5h+.5thickness+.5spread; +top y3=vround .5h+.5thickness-.5spread; +rt x2=hround(2w-u)+eps; +lft x1=hround .2u-eps; +x3=x1; x4=x2; +filldraw stroke z1e--z2e; % upper bar +filldraw stroke z3e--z4e; % lower bar +penlabels(1,2,3,4); endchar; + +iff monospace: +ecchar "Double hyphen-hyphenchar"; % jk +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"177",6u#,v_center(spread#+rule_thickness#)); +italcorr h#*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); +pos3(thickness,90); pos4(thickness,90); +y1=y2; y3=y4; y1-y3=spread; .5[y1,y3]=math_axis; +rt x2=hround(w-u)+eps; +if monospace: x2=w-x1 else: lft x1=hround .2u-eps fi; +x3=x1; x4=x2; +filldraw stroke z1e--z2e; % upper bar +filldraw stroke z3e--z4e; % lower bar +penlabels(1,2,3,4); endchar; + +ecchar"Breve"; +beginchar(oct"200",11u#,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 +penlabels(1,2,3); endchar; + +ecchar "Hachek (Caron)"; +beginchar(oct"201",11u#,min(asc_height#,2x_height#),0); +h':=vround min(asc_height,2x_height); % height of circumflex being inverted +if serifs: italcorr h#*slant+.5hair#-1.75u#; + adjust_fit(0,0); + pickup crisp.nib; pos2'(.5[vair,curve],90); top y2'r=h; + pos2(.5[vair,curve],90); x2=.5w; + x1=w-x3=good.x 2.25u; top y1=top y3=h; y1-y2=.5(y2'-x_height); + pos1(hair,angle(z2-z1)+90); pos3(hair,angle(z3-z2)+90); + filldraw stroke z1e--z2e--z3e; % diagonals +else: italcorr h#*slant-.5stem#+.5vair#-.75u#; + adjust_fit(0,0); + pickup fine.nib; pos1(vair,0); pos3(vair,0); x1=w-x3; + pos2(stem,0); bot y2=vround(1/12[x_height,h']+o); x2=.5w; + top y1=top y3=h+o; lft x1l=hround(rt x2r-3.25u-.5vair); + z0=whatever[z1r,z2r]=whatever[z2l,z3l]; + y4l=y4r=y2; x4l=good.x .2[x2l,x2]; x4r=w-x4l; + filldraw z4l--z1l--z1r--z0--z3l--z3r--z4r--cycle; fi % diagonals +penlabels(0,1,2,3,4); endchar; + +ecchar"Double tick mark (inch sign)"; % from accent (hungarian long umlaut) +beginchar(oct"202",9u#,min(asc_height#,2x_height#),0); +italcorr h#*slant-u#; +adjust_fit(0,0); +x3-x1=x4-x2=hround 3u; y3=y1; y4=y2; +if serifs: pickup crisp.nib; x3+.5stem=hround(w-1.5u); x2=2.5u; + y1+.5stem=h; y2=max(2/3[h,x_height],x_height+o+hair); + numeric theta; theta=angle(z2-z1)+90; + pos1(stem,theta); pos2(hair,theta); + pos3(stem,theta); pos4(hair,theta); + filldraw circ_stroke z1e--z2e; % left diagonal + filldraw circ_stroke z3e--z4e; % right diagonal +else: pickup fine.nib; pos1(stem,0); pos2(vair,0); + pos3(stem,0); pos4(vair,0); + rt x3r=hround(w-1.5u); lft x4l=hround(.5w+u-.5vair); + top y1=h; bot y2=vround 2/3[h,x_height]; + filldraw stroke z1e--z2e; % left diagonal + filldraw stroke z3e--z4e; fi % right diagonal +penlabels(1,2,3,4); endchar; + +ecchar"Double backwards tick mark"; % jk +beginchar(oct"203",9u#,min(asc_height#,2x_height#),0); +adjust_fit(0,0); +x3-x1=x4-x2=hround 3u; y3=y1; y4=y2; +if serifs: pickup crisp.nib; x1-.5stem=hround 1.5u; x2=3.5u; + y1+.5stem=h; y2=max(2/3[h,x_height],x_height+o+hair); + numeric theta; theta=angle(z2-z1)+90; + pos1(stem,theta); pos2(hair,theta); + pos3(stem,theta); pos4(hair,theta); + filldraw circ_stroke z1e--z2e; % left diagonal + filldraw circ_stroke z3e--z4e; % right diagonal +else: pickup fine.nib; pos1(stem,0); pos2(vair,0); + pos3(stem,0); pos4(vair,0); + lft x1l=hround 1.5u; rt x2r=hround(.5w-u+.5vair); + top y1=h; bot y2=vround 2/3[h,x_height]; + filldraw stroke z1e--z2e; % left diagonal + filldraw stroke z3e--z4e; fi % right diagonal +penlabels(1,2,3,4); endchar; + + +ecchar "Dagger mark"; % from mathsy +beginchar(oct"204",8u#,asc_height#,desc_depth#); +adjust_fit(0,0); pickup fine.nib; +pos1(stem,0); pos2(thin_join,0); pos3(stem,0); pos4(hair,0); +pos5(stem,90); pos2'(thin_join,90); pos6(stem,90); z2'=z2; +x1=x2=x3=x4; x1-.5stem=hround(.5w-.5stem); center_on(x1); +x5-.5stem=hround u; x6=w-x5; +y1+.5stem=h+oo; y2=y5=y6; y3=.57y2; bot y4=-d-o; +y5+.5stem=floor(x_height+.5stem); +filldraw circ_stroke z1e{down}..z2e{down}..z3e{down}..z4e; % stem +filldraw circ_stroke z5e{right}..{right}z2'e; % left bulb +filldraw circ_stroke z6e{left}..{left}z2'e; % right bulb +penlabels(1,2,3,4,5,6); endchar; + +ecchar "Double dagger mark"; % from mathsy +beginchar(oct"205",8u#,asc_height#,desc_depth#); +adjust_fit(0,0); pickup fine.nib; +pos1(stem,0); pos2(thin_join,0); pos3(stem,0); +pos4(stem,90); pos2'(thin_join,90); pos5(stem,90); z2'=z2; +x1=x2=x3; x1-.5stem=hround(.5w-.5stem); center_on(x1); +x4-.5stem=hround u; x5=w-x4; +y1+.5stem=h+oo; y2=y4=y5=.5[y1,y3]; y3-.5stem=ceiling(.5[-d,h]); +filldraw circ_stroke z1e{down}..{down}z2e; % top stem +filldraw circ_stroke z3e{up}..{up}z2e; % upper middle stem +filldraw circ_stroke z4e{right}..{right}z2'e; % top left bulb +filldraw circ_stroke z5e{left}..{left}z2'e; % top right bulb +pos6(stem,0); pos7(thin_join,0); pos8(stem,0); +pos9(stem,90); pos7'(thin_join,90); pos0(stem,90); z7'=z7; +x6=x7=x8=x1; x9=x4; x0=x5; +y6=y3-stem-1; y7=y9=y0=.5[y6,y8]; y8-.5stem=-d-oo; +filldraw circ_stroke z6e{down}..{down}z7e; % lower middle stem +filldraw circ_stroke z8e{up}..{up}z7e; % bottom stem +filldraw circ_stroke z9e{right}..{right}z7'e; % bottom left bulb +filldraw circ_stroke z0e{left}..{left}z7'e; % bottom right bulb +penlabels(1,2,3,4,5,6,7,8,9,0); endchar; + +ecchar "Double vertical line (norm or cardinality)"; % from mathsy +% Change (jk): Made the two lines as close as in \P +beginchar(oct"206",9u#,body_height#,paren_depth#); +adjust_fit(0,0); pickup rule.nib; +x1=x2; top y1=h; .5[y1,y2]=math_axis; +x3=x4=w-x1; y3=y1; y4=y2; +x3-x1=ceiling(rule_thickness+1.25u); +draw z1--z2; draw z3--z4; % stems +labels(1,2,3,4); endchar; + +ecchar "Per mill sign"; % by Emma Pease +beginchar(oct"207",15u#+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(.5(w-6u)-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-7u); lft x6r=hround(.5(w-6u)+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 bowl +% +pos13(vair,90); pos14(left_curve,180); pos15(vair,270); +pos16(right_curve,360); +bot y15r=-d; rt x16r=hround(w-u); lft x14r=hround(.5(w-6u)+1.5u+6u); +top y13r=vround(if monospace: .3 else: .5 fi\\ asc_height); +x13=x15=.5[x14,x16]; y14=y16=.5[y13,y15]; +filldraw stroke pulled_super_arc.e(13,14)(superpull) + & pulled_super_arc.e(14,15)(superpull); % left half of lower bowl +filldraw stroke super_arc.e(15,16) & super_arc.e(16,13); % right half of lower bowl +% +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-6u-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,13,14,15,16); endchar; + +ecchar "Bullet"; % from mathsy +beginchar(oct"210",9u#,v_center(7u#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h; y2=math_axis; circle_points; +filldraw z8{right}...z1{z2-z8}...z2{down}...z3{z4-z2}...z4{left} + ...z5{z6-z4}...z6{up}...z7{z8-z6}...cycle; % circle and interior +labels(1,2,3,4,5,6,7,8); endchar; + +ecchar"Centigrade sign"; +if serifs: beginchar(oct"211",13u#,cap_height#,0); + italcorr cap_height#*slant-.5u#; + adjust_fit(4u#,0); + pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90); + pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360); + rt x1r=rt x5r=hround(w-u); lft x3r=hround u; x2=x4=.55[x3,x1]; + top y2r=h+o; bot y4r=-o; y3=.5[y2,y4]; + bot y1=min(vround max(.6h,x_height-.5vair),bot y2l-eps); + y5=max(good.y .95(h-y1),y4l+eps); + (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u); + (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u); + filldraw stroke z1e{x2-x1,10(y2-y1)} + ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc + pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=h+o; + x1r-x1'=2cap_curve-fine; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left}; + numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1')); + filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb +else: beginchar(oct"211",11.5u#,cap_height#,0); + italcorr cap_height#*slant-.5u#; + adjust_fit(4u#,0); + pickup fine.nib; pos1(1.2flare,80); pos2(slab,90); + pos3(cap_curve,180); pos4(slab,270); pos5(flare,275); + rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u; + lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u); + top y1r=vround .95h+o; top y2r=h+o; y3=.5h; + bot y4r=-o; bot y5r=vround .08h-o; y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,right,.8,4); fi % arc and terminals +penlabels(1,1',2,3,4,5,6); +clearxy; +pickup rule.nib; autorounded; +lft x6=-4u; rt x2=0; top y8=h; y8-y2=x2-x8; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); +math_fit(-.3cap_height#*slant-.5u#,.5ic#); +endchar; + +ecchar "Oldstyle dollar sign"; % based on romanp (cm) +beginchar(oct"212",11u#,body_height#,body_height#-asc_height#); +italcorr fig_height#*slant-.5u#; % same as for digits +adjust_fit(0,0); +numeric theta; theta=90-angle(50u,asc_height); slope:=-asc_height/50u; +pickup fine.nib; pos2(slab,-90); +pos0(cap_stem,theta); pos7(slab,-90); +x2=x0=x7=.5w; top y2l=asc_height+oo; bot y7r=-oo; +y0=.52asc_height; lft x3l=hround u; rt x6r=hround(w-u); +x3r-x3l=x6r-x6l=hround .35[slab,cap_stem]-fine; +ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; +ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; +filldraw stroke super_arc.e(2,3) & z3e{down} + ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke +if serifs: pos1(hair,0); pos8(hair,180); + pos10(flare,0); pos9(flare,180); + rt x1r=hround(w-u); lft x8r=hround u; y1=.5[y0,y2]; y8=.5[y0,y7]; + {{less_tense; pos2'(slab,90); z2'=z2; bulb(2',1,10); % upper arc and bulb + bulb(7,8,9)}}; % lower arc and bulb +else: pos1(.6[slab,flare],-100); pos8(flare,-100); + rt x1l=hround(w-1.3u); lft x8r=hround .8u; + top y1l=vround .92asc_height+oo; bot y8r=vround .1asc_height-oo; + filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal + filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal +pickup crisp.nib; pos12(bar,0); pos11(bar,0); pos13(bar,0); pos14(bar,0); +x11=x12; x13=x14=w-x11; x13-x11=ceiling(rule_thickness+1.25u); +top y12=top y14=h; bot y11=bot y13=-d; +filldraw stroke z12e--z11e; % left vertical crossbar +filldraw stroke z14e--z13e; %right vertical crossbar +penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14); endchar; + +ecchar "Oldstyle cent sign"; % jk, based on cm `c' +beginchar(oct"213",9u#,x_height#+.5desc_depth#,.5desc_depth#); +italcorr x_height#*slant-.2u#; +adjust_fit(0,0); +pickup fine.nib; pos2(vair',90); pos4(vair',270); +x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo; +pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height; +if serifs: pos1(hair,0); pos0(flare,0); + y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,x_height]-.5flare); + rt x1r=hround(w-.7u); bulb(2,1,0); % bulb + pos5(hair,0); rt x5r=hround(w-.5u); + y5=max(good.y(.5bar_height-.9),y4l+vair'); + (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) + ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal +else: pos1(4/7[vair',flare],80); + rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2,1,right,.8,4); % upper terminal + pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; + if angle direction 1 of p.e>75: + p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal +pickup crisp.nib; +x7=x3; x6=w-x7; y6=h; y7=-d; +numeric theta; theta=angle(z7-z6)-90; +pos6(vair,theta); pos7(vair,theta); +filldraw stroke z6e--z7e; % diagonal +penlabels(0,1,2,3,4,5,6,7); endchar; + +iff variant_g: % I use this as marker for italic fonts +ecchar "Italic florin sign (italic letter f)"; % from itall (cm) +beginchar(oct"214",max(1.5u#,stem#)+max(3.5u#,2flare#), + asc_height#,desc_depth#); +italcorr asc_height#*slant+.75u#; +adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib; +numeric theta; z88=(.5w-.5u,h); z89=(.5w+.5u,-d); theta=angle(z88-z89); +pos0(flare,0); pos1(hair,0); pos2(vair,90); +pos3(.5[hair,stem],180); pos4(stem,theta+90); +pos5(stem,theta-90); pos6(.5[hair,stem],0); +pos7(vair,-90); pos8(hair,-180); pos9(flare,-180); +rt x1r=hround(w+.25u); lft x8r=hround-.35u; x2=.6[x1,x4]; x7=.6[x8,x5]; +y9-.5flare=vround -.85d; y2-y0=y9-y7; top y2r=h+oo; bot y7r=-d-oo; +y4=.25[x_height,h]; y5=.5[-d,y4]; +z4=whatever[z88,z89]; z5=whatever[z88,z89]; +x3=.8[x2+x4-x88,x88]; x6=.8[x7+x5-x89,x89]; y3=.8[y4,y2]; y6=.8[y5,y7]; +bulb(2,1,0); bulb(7,8,9); % bulbs +filldraw stroke z2e{left}...z3e...{z89-z88}z4e; % upper arc +filldraw z4r--z5l--z5r--z4l--cycle; % stem +filldraw stroke z5e{z89-z88}...z6e...{left}z7e; % lower arc +pickup crisp.nib; pos20(bar,90); pos21(bar,90); +top y20r=top y21r=x_height; +lft x20=lft x4r-.5stem-u; rt x21=rt x4l+.5stem+1.5u; +filldraw stroke z20e--z21e; % crossbar +math_fit(desc_depth#*slant+u#,x_height#*slant); +penlabels(0,1,2,3,4,5,6,7,8,9,20,21,88,89); endchar; + + +iff not variant_g: +ecchar "Florin sign (The letter f)"; % from romanl (cm) +beginchar(oct"214",5.5u#,asc_height#,0); +italcorr asc_height#*slant+if serifs:flare#-.25u# else: 1.25u# fi; +adjust_fit(stem_shift#,if monospace: .5u# else:-stem_shift# fi); +pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); +pickup fine.nib; numeric bulb_diam; +if serifs: bulb_diam=hround .8[stem,flare]; + pos2(bulb_diam,0); y2+.5bulb_diam=.9[x_height,h+oo]; + if monospace: rt x2r=hround(w-.5u)+1 else: lft x2l=hround(w-.75u+.5) fi; +else: pos2(5/7[vair,flare],90); top y2r=h; + rt x2=hround(if monospace:w-.5u else:w+.75u fi); fi +f_stroke(1,2,a,b,c,jut,if not monospace:1.25fi\\ jut); % stem, terminal, serif +pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; +pos3(bar,90); pos4(bar,90); +rt x4=hround(w-if monospace:.75u+1 else:1/3u fi); +filldraw stroke z3e--z4e; % bar +penlabels(1,2,3,4); endchar; + +ecchar"Colon sign or Cedi sign"; % Panamese or Ghanese currency +if serifs: beginchar(oct"215",13u#,body_height#,body_height#-asc_height#); + italcorr cap_height#*slant-.5u#; + adjust_fit(0,0); + pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90); + pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360); + rt x1r=rt x5r=hround(w-u); lft x3r=hround u; x2=x4=.55[x3,x1]; + numeric hh; hh=cap_height; + top y2r=hh+o; bot y4r=-o; y3=.5[y2,y4]; + bot y1=min(vround max(.6hh,x_height-.5vair),bot y2l-eps); + y5=max(good.y .95(hh-y1),y4l+eps); + (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u); + (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u); + filldraw stroke z1e{x2-x1,10(y2-y1)} + ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc + pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=hh+o; + x1r-x1'=2cap_curve-fine; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left}; + numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1')); + filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb + pickup crisp.nib; pos12(bar,0); pos11(bar,0); + lft x12l=lft x11l=hround(x2-.5bar); top y12=h; bot y11=-d; + filldraw stroke z12e--z11e; % vertical crossbar +else: beginchar(oct"215",11.5u#,body_height#,body_height#-asc_height#); + italcorr cap_height#*slant-.5u#; + adjust_fit(0,0); + pickup fine.nib; pos1(1.2flare,80); pos2(slab,90); + pos3(cap_curve,180); pos4(slab,270); pos5(flare,275); + rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u; + lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u); + numeric hh; hh=cap_height; + top y1r=vround .95hh+o; top y2r=hh+o; y3=.5hh; + bot y4r=-o; bot y5r=vround .08hh-o; y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,right,.8,4); % arc and terminals + pickup crisp.nib; pos12(bar,0); pos11(bar,0); + lft x12l=lft x11l=hround(x2-.5bar); top y12=h; bot y11=-d; + filldraw stroke z12e--z11e; % vertical crossbar +fi +math_fit(-.3cap_height#*slant-.5u#,.5ic#); +penlabels(1,1',2,3,4,5,6,11,12); endchar; + +ecchar"Won sign"; % Korean currency +beginchar(oct"216",18u#,cap_height#,0); +italcorr cap_height#*slant+.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); +numeric stem[],outer_jut,upper_notch,alpha,mid_corr; +outer_jut=.7cap_jut; x1l=w-x8r=l+letter_fit+outer_jut+.25u; +stem1=fudged.cap_stem-stem_corr; +stem4=min(fudged.hair if hefty:-2stem_corr fi,stem1); +stem2=stem4 if hefty:-2stem_corr fi; +stem3=stem1 if hefty:-2stem_corr fi; +x2-x1=x4-x3=x6-x5=x8-x7; x2l+apex_corr=x3l; x6l+apex_corr=x7l; +y1=y8=h; y2=y3=y6=y7=-apex_o; y4=y5=if monospace: vround .6 fi\\ h; +mid_corr=if monospace or hefty:-apex_corr else: 1/3jut fi; +alpha=diag_ratio(4,stem2-stem3+stem4,y1-y2,x8r-x1l+mid_corr-2apex_corr); +penpos1(alpha*stem1,0); penpos2(alpha*stem1,0); +penpos3(alpha*stem2,0); penpos4(alpha*stem2,0); +penpos5(alpha*stem3,0); penpos6(alpha*stem3,0); +penpos7(alpha*stem4,0); penpos8(alpha*stem4,0); +x4l-x1l=floor(x4l-x1l+.5(x5r+mid_corr-x4r)); % |x5r+mid_corr| $\approx$ |x4r| +z23=whatever[z1r,z2r]=whatever[z3l,z4l]; +z45=whatever[z3r,z4r]=whatever[z5l,z6l]; +z67=whatever[z5r,z6r]=whatever[z7l,z8l]; upper_notch=y4-cap_notch_cut; +fill diag_end(1l,2l,1,1,3r,4r){z4-z3} + ...if y45<upper_notch:(x45,upper_notch)+.5left{up} + --(x45,upper_notch)+.5right{down} else: z45&z45 fi + ...{z6-z5}diag_end(5l,6l,1,1,7r,8r)--diag_end(7r,8r,1,1,8l,7l){z7-z8} + ...if y67>cap_notch_cut:(x67,cap_notch_cut)+.5right{down} + --(x67,cap_notch_cut)+.5left{up} else: z67&z67 fi + ...{z5-z6}special_diag_end(6,5,4,3){z3-z4} + ...if y23>cap_notch_cut:(x23,cap_notch_cut)+.5right{down} + --(x23,cap_notch_cut)+.5left{up} else: z23&z23 fi + ...{z1-z2}diag_end(2r,1r,1,1,1l,2l)--cycle; % diagonals +if serifs: numeric inner_jut[]; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(5,6); +prime_points_inside(8,7); + if monospace: inner_jut1=inner_jut4=1.5cap_jut; + elseif hefty: inner_jut1=inner_jut4=cap_jut; + else: fill diag_end(6r,5r,1,1,5l,6l) + --.5[z5l,z6l]--.5[z5r,z6r]--cycle; % middle stem + inner_jut2=.7inner_jut1; inner_jut4=1.1inner_jut3; + if rt x1'r+cap_jut+.5u+1<=lft x5'l-.7cap_jut: inner_jut1=cap_jut; + else: rt x1'r+inner_jut1+.5u+1=lft x5'l-inner_jut2; fi + if rt x5'r+cap_jut+.5u+1<=lft x8'l-1.1cap_jut: inner_jut3=cap_jut; + else: rt x5'r+inner_jut3+.5u+1=lft x8'l-inner_jut4; fi + dish_serif(5',6,e,1/3,inner_jut2,f,1/2,inner_jut3); fi % middle serif + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut1); % left serif + dish_serif(8',7,c,.6,inner_jut4,d,1/2,outer_jut)(dark); fi % right serif +pickup extra_rule.nib; +x9=x11=x1l; x10=x12=x8r; y9=y10; +top y9=bar_height; y11=y12; draw z9--z10; +y11-y9=spread; draw z11--z12; % crossing bars +math_fit(.75u#-cap_height#*slant,ic#-2.5u#); +penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,23,45,67); endchar; + +ecchar"Naira sign"; % Nigerian currency +beginchar(oct"217",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#+.25u#,cap_serif_fit#+.25u#); +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 +pickup extra_rule.nib; +x8=x10=0; x9=x11=w; y10=y11; +top y8=bar_height; y8=y9; draw z8--z9; +y10-y8=spread; draw z10--z11; % crossing bars +math_fit(0,max(.5ic#-.5u#,0)); +penlabels(1,1',2,3,4,4',5,6,7,8,9,10,11); endchar; + +ecchar"Guarani sign"; % Currency of Paraguay +if serifs: beginchar(oct"220",14u#,body_height#,body_height#-asc_height#); + italcorr cap_height#*slant-1.5u#-.5cap_serif_fit#; + adjust_fit(0,.5cap_serif_fit#); + numeric hh; hh=cap_height; + pickup tiny.nib; pos0(cap_stem,0); pos7(cap_stem,0); + rt x0r=hround(w-2u); y0=good.y(.1[bar_height,x_height]+1); x7=x0; + pickup fine.nib; + if hefty: bot y7=0; pos5(cap_stem,0); x5=x0; top y5=tiny.top y0; + else: pos5(cap_hair,0); pos8(cap_stem,0); + y7=.5bar_height; z5l=z8l; z8=z7; x9=x8r; bot y9=0; + filldraw z8l{down}..{4(x9-x8),y9-y8}z9--z8r--cycle; fi % spur + pos1(cap_hair,0); pos2(cap_band,90); + pos3(cap_curve,180); pos4(cap_band,270); + rt x1r=hround(w-2u); lft x3r=hround u; x2=x4=.55[x3,x1]; + top y2r=hh+o; bot y4r=-o; y3=.5[y2,y4]; + bot y1=min(vround max(.6hh,x_height-.5vair),bot y2l-eps); + (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u); + (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u); + filldraw stroke z1e{x2-x1,10(y2-y1)} + ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...z5e{up}; % arc + pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=hh+o; + x1r-x1'=2cap_curve-fine; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left}; + numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1')); + filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb + pickup tiny.nib; filldraw stroke z0e--z7e; % stem + dish_serif(0,7,a,1/3,max(cap_jut,2.25u),b,1/3,1.25u); % serif + pickup crisp.nib; pos12(bar,0); pos11(bar,0); + lft x12l=lft x11l=hround(x2-.5bar); top y12=h; bot y11=-d; + filldraw stroke z12e--z11e; % vertical crossbar + math_fit(-.3cap_height#*slant-.5u#,ic#); +else: beginchar(oct"220",14u#,body_height#,body_height#-asc_height#); + italcorr cap_height#*slant-.5u#; + adjust_fit(0,0); + numeric hh; hh=cap_height; + pickup fine.nib; pos1(1.2flare,80); pos2(slab,90); + pos3(cap_curve,180); pos4(slab,270); pos5(flare,270); + rt x1r=hround(w-1.35u); x2=x4=.5w+u; + lft x3r=hround max(u,2u-.5cap_curve); rt x5l=hround(w-1.2u); + top y1r=vround .93hh+o; top y2r=hh+o; y3=.5hh; + bot y4r=-o; bot y5r=vround .07hh-o; + filldraw stroke rterm.e(2,1,right,.9,4)&super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,right,1,4); % arc and terminals + pos0(stem,0); pos7(stem,0); + z7r=z5r; x0=x7; top y0=1+vround .35[bar_height,x_height]; + filldraw stroke z0e--z7e; % stem + pos8(cap_bar,90); pos9(cap_bar,90); + z0r=z9r; y8=y9; lft x8=hround x4; + filldraw stroke z8e--z9e; % bar + pickup crisp.nib; pos12(bar,0); pos11(bar,0); + lft x12l=lft x11l=hround(x2-.5bar); top y12=h; bot y11=-d; + filldraw stroke z12e--z11e; % vertical crossbar + math_fit(-.3cap_height#*slant-.5u#,.5ic#); fi +penlabels(0,1,1',2,3,4,5,6,7,8,9,11,12); endchar; + +ecchar"Peso sign"; +beginchar(oct"221",12u#,cap_height#,0); +italcorr .75cap_height#*slant-.5u#; +adjust_fit(cap_serif_fit#+.25u#,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: nodish_serif(1,0,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + dish_serif(2,0',c,1/3,cap_jut,d,1/3,cap_jut); fi % lower serif +pickup extra_rule.nib; +x8=0; x9=.5[x1r,x5r]; top y8=bar_height; y8=y9; draw z8--z9; +math_fit(0,ic#-2.5u#); penlabels(0,1,2,3,4,5,6,7); labels(8,9); +endchar; + +ecchar "Lira sign"; % +compute_spread(.35x_height#,.45x_height#); +beginchar(oct"222",12u#,asc_height#,0); +adjust_fit(0,.75asc_height#*slant-.5u#); pickup fine.nib; +pos0(flare,0); pos1(hair,0); pos2(vair,90); pos3(stem,180); +pos4(stem,180); pos4'(stem,0); pos5(vair,-90); z4'=z4; +x2=2/3w-.5u; rt x3l=rt x4l=hround(.5w-u+.5stem); x5=2.5u; +y1=y3=.75h; top y2=h+oo; y4=.25h; bot y5r=-oo; +rt x1r=hround(w-1.5u); bulb(2,1,0); % bulb +filldraw stroke pulled_arc.e(2,3)..z4e; % stem +numeric light_stem; light_stem=2/3[vair,vstem]; +pos6(.5[hair,light_stem],-180); pos7(light_stem,-300); +pos8(light_stem,-300); pos9(hair,-180); +lft x6r=hround u; x7=3u; x8=w-3.5u; rt x9l=hround(w-u); +y6=.4[y5,y7]; top y7r=vround .2h; bot y8l=-oo; y9=good.y .2h; +filldraw stroke pulled_arc.e(4',5)...z6e{up}...z7e{right} + ..{right}z8e...{up}z9e; % loop and arm +pickup extra_rule.nib; +x10=3u; x11=w-4.5u; x12=3u; x13=w-4.5u; +top y12=bar_height; +y11=y10; y13=y12; y10-y12=spread; +draw z10--z11; % upper bar +draw z12--z13; % lower bar +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; + +ecchar"Recipe sign"; +beginchar(oct"223",if serifs: 12u#+.5max(2u#,cap_curve#) + else:12.5u#-.5width_adj# fi,cap_height#,0); +italcorr .75cap_height#*slant- if serifs: 1.75 else: .5 fi\\ u#; +adjust_fit(cap_serif_fit#,0); +pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); +lft x1l=lft x2l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +penpos3(cap_band,90); penpos4(cap_band,90); +penpos5(cap_curve if hefty:-3stem_corr fi,0); +penpos6(vair,-90); penpos7(vair,-90); +z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7; +x7=x2; y7l=vround(.5h+.5vair); x4=x6; +if serifs: x4=.5w-.5u; x5r=hround(w-2.25u); +else: x4=.5w+.5u; x5r=hround(w-u); fi +x4l:=x6l:=x4-.125cap_curve; +fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe +if serifs: pos6'(vair,-90); pos0(cap_stem,180); + pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0); + z6'=z6; lft x0r=lft x8r=hround(x5-2/3u-.5cap_curve); + y8=1/3[y2,y7]; y0=3/5[y2,y7]; x9=.5[x8l,x10r]; + bot y9r=-o; rt x10r=hround(w-.05u); y10=1/4[y2,y7]; + filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up}; % tail + nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); % lower serif +else: penpos8(cap_stem-2stem_corr,0); penpos9(cap_stem,0); + x8=x6+.5u; y8=y6; x9r=hround(w-.5u); y9=0; + fill z8l--diag_end(8l,9l,.5,1,9r,8r)--z8r--cycle; fi % tail +x1:=x8; +put_cross(.5cap_stem+if serifs: .9max(limit_dist,cap_jut) else: .8u fi, + .5cap_stem+if serifs: 3u else: 4u fi); +math_fit(0,.75ic#); penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +iff not variant_g: % not italic +ecchar"Interrobang"; +beginchar(oct"224",8.5u#,asc_height#,0); +italcorr .8asc_height#*slant; +adjust_fit(0,0); +pickup tiny.nib; pos7(dot_size,0); pos8(dot_size,90); +lft x7l=hround(.5w-.25u-.5dot_size); bot y8l=0; z7=z8; % dot(7,8); % dot +numeric bot_width; +bot_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi; +pickup fine.nib; pos2(vair,90); pos3(curve,0); +pos4(vair,-90); pos5(bot_width,0); pos6(bot_width,0); +x2=x4=x5=x6=x7; rt x3r=hround(w-u); bot y6=1+.25[top y8r,x_height]; +top y2r=hround .9h+oo; y3=.75[y6,y2]; y4=.5[y6,y2]; y5=.1[y6,y2]; +{{interim superness:=more_super; +filldraw stroke pulled_super_arc.e(2,3)(superpull) + & subpath (0,1) of super_arc.e(3,4) .. z5e---z6e\\}}; % arc and stem +if serifs: pos1(hair,180); pos0(flare,180); + lft x1r=hround u; y1=y3; bulb(2,1,0); % bulb +else: pos1(Vround 5/7[vair,flare],110); + lft x1r=hround u; top y1r=vround .9[y6,top y2r]; + filldraw stroke term.e(2,1,left,1,4); fi % terminal +penlabels(0,1,2,3,4,5,6,7,8); +clearxy; +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; + +iff not variant_g: % not italic +ecchar"Gnaborretni"; +beginchar(oct"225",8.5u#,asc_height#-desc_depth#,desc_depth#); +adjust_fit(0,0); +pickup tiny.nib; pos7(dot_size,0); pos8(dot_size,90); +lft x7l=hround(.5w-.25u-.5dot_size); top y8r=h; z7=z8; % dot(7,8); % dot +numeric top_width; +top_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi; +pickup fine.nib; pos2(vair,270); pos3(curve,180); +pos4(vair,90); pos5(top_width,180); pos6(top_width,180); +x2=x4=x5=x6=x7; lft x3r=hround u; top y6=.25[bot y8l,h-x_height]-1; +bot y2r=hround .1asc_height-d-oo; y3=.75[y6,y2]; y4=.5[y6,y2]; y5=.1[y6,y2]; +{{interim superness:=more_super; +filldraw stroke pulled_super_arc.e(2,3)(superpull) + & subpath (0,1) of super_arc.e(3,4) .. z5e---z6e\\}}; % arc and stem +if serifs: pos1(hair,0); pos0(flare,0); + rt x1r=hround(w-u); y1=y3; bulb(2,1,0); % bulb +else: pos1(Vround 5/7[vair,flare],-70); + rt x1r=hround(w-u); bot y1r=vround .9[y6,bot y2r]; + filldraw stroke term.e(2,1,right,1,4); fi % terminal +penlabels(0,1,2,3,4,5,6,7,8); +clearxy; +pickup tiny.nib; pos3(dot_size,0); pos4(dot_size,90); +lft x3l=hround(.5w-.5dot_size); top y4r=h; z3=z4; dot(3,4); % dot +numeric top_width; +top_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi; +pickup fine.nib; pos1(dot_size,0); pos2(top_width,0); +x1=x2=x3; top y2=.25[bot y4l,h-x_height]-1; +if square_dots: bot y1=-d; + filldraw stroke z1e--z2e; % stem +else: bot z0=(x1,-d-o); y1-.5dot_size=-d-o; + filldraw z1l...z0...z1r---z2r--z2l---cycle; fi % stem and bulb +penlabels(0,1,2,3,4); endchar; + +iff variant_g: % italic +ecchar"Interrobang"; +beginchar(oct"224",9u#,asc_height#,0); +italcorr asc_height#*slant-u#; +adjust_fit(0,0); +adjust_fit(0,0); pickup tiny.nib; pos10(dot_size,0); pos11(dot_size,90); +lft x10l=hround(.5w-.5dot_size); bot y11l=0; z10=z11; % dot(10,11); % dot +pickup fine.nib; pos1(flare,180); pos2(hair,180); pos3(vair,90); +lft x1r=hround u; x3=.5w; +y1-.5flare=x_height; top y3r=hround .9h+o; bulb(3,2,1); % bulb +pos8(vair,-90); x8=.5w; bot y8r=.25[top y11r,x_height]+1; +numeric theta; theta=90+angle(10u,y3-y8); slope:=(y3-y8)/10u; +pos3'(vair,-90); z3'=z3; pos0(vstem,theta); x0=x3; y0=1/3[y8,y3]; +rt x4l=hround(w-1.5u); lft x7r=hround 1/3w; +x4l-x4r=x7l-x7r=hround .5[vair,vstem]-fine; +ellipse_set(3'l,4l,5l,0l); ellipse_set(3'r,4r,5r,0r); y4=y4r; +ellipse_set(8l,7l,6l,0l); ellipse_set(8r,7r,6r,0r); y7=y7r; +pos9(hair,0); rt x9r=hround(2/3w+.5hair); y9=good.y .5[y8,y0]; +filldraw stroke super_arc.e(3',4) & z4e{down} + ..z5e---z6e..z7e{down} & super_arc.e(7,8)...{up}z9e; % main stroke +penlabels(0,1,2,3,4,5,6,7,8,9,10,11); +clearxy; +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; + +iff variant_g: % italic +ecchar"Gnaborretni"; +beginchar(oct"225",9u#,asc_height#-desc_depth#,desc_depth#); +adjust_fit(0,0); +pickup tiny.nib; pos10(dot_size,0); pos11(dot_size,90); +lft x10l=hround(.5w-.5dot_size); top y11r=h; z10=z11; % dot(10,11); % dot +pickup fine.nib; pos1(flare,0); pos2(hair,0); pos3(vair,-90); +rt x1r=hround(w-u); x3=.5w; y1+.5flare=asc_height-x_height-d; +bot y3r=hround .1asc_height-d-o; bulb(3,2,1); % bulb +pos8(vair,90); x8=.5w; top y8r=.25[bot y11l,y1+.5flare]-1; +numeric theta; theta=angle(10u,y8-y3)-90; slope:=(y8-y3)/10u; +pos3'(vair,90); z3'=z3; pos0(vstem,theta); x0=x3; y0=1/3[y8,y3]; +lft x4l=hround 1.5u; rt x7r=hround 2/3w; +x4r-x4l=x7r-x7l=hround .5[vair,vstem]-fine; +ellipse_set(3'l,4l,5l,0l); ellipse_set(3'r,4r,5r,0r); y4=y4r; +ellipse_set(8l,7l,6l,0l); ellipse_set(8r,7r,6r,0r); y7=y7r; +pos9(hair,180); lft x9r=hround(1/3w-.5hair); y9=good.y .5[y8,y0]; +filldraw stroke super_arc.e(3',4) & z4e{up} + ..z5e---z6e..z7e{up} & super_arc.e(7,8)...{down}z9e; % main stroke +penlabels(0,1,2,3,4,5,6,7,8,9,10,11); +clearxy; +pickup tiny.nib; pos3(dot_size,0); pos4(dot_size,90); +lft x3l=hround(.5w-.5dot_size); top y4r=h; z3=z4; dot(3,4); % dot +numeric top_width; +top_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi; +pickup fine.nib; pos1(dot_size,0); pos2(top_width,0); +x1=x2=x3; top y2=.25[bot y4l,h-x_height]-1; +if square_dots: bot y1=-d; + filldraw stroke z1e--z2e; % stem +else: bot z0=(x1,-d-o); y1-.5dot_size=-d-o; + filldraw z1l...z0...z1r---z2r--z2l---cycle; fi % stem and bulb +penlabels(0,1,2,3,4); endchar; + +iff not variant_g: % not italic +ecchar"Dong sign"; % Vietnamese currency +beginchar(oct"226",10u#+serif_fit#,body_height#,0); +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(0,serif_fit#); +numeric hh; hh=asc_height; +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); top y1=hh; +numeric edge; edge=lft x2l; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo if monospace: -hair fi; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height if monospace: -.5hair fi; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...pulled_arc.e(4,5) + & pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); +pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif +% + pos8(bar,90); pos9(bar,90); + x8=.5[x4,x5]; + if serifs: x9=x2r+jut; else: x9=w; fi + if serifs: y8=y9=.5[y.a2-.5slab,y4+.5vair]; + else: y8=y9=.5[x_height,asc_height-serif_drop]; fi + filldraw stroke z8e--z9e; +currentpicture:=currentpicture shifted (0,body_height-asc_height); +pickup rule.nib; +x10=x5; x11=x9; top y10=0; y10=y11; +draw z10--z11; +penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; + +iff variant_g: %italic +ecchar"Italic Dong sign"; % Vietnamese currency +beginchar(oct"226",9u#,body_height#,0); +italcorr max(1/3x_height#*slant+.5hair#+.5u#, + h#*slant+.5stem#-2u#) if math_fitting:-.5u# fi; +adjust_fit(0,0); pickup fine.nib; +pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); +x0=x4; x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); +x4+.5stem=hround(w-2.5u+.5stem); +top y1r=x_height+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=x0; x7=w; hook_out(5,6,7); % closing hook +pickup tiny.nib; pos5'(stem,0); pos4(stem,0); +z5'=z5; top y4=h; filldraw stroke z4e--z5'e; % stem +sloped_serif.l(4,5',a,1/3,jut,serif_drop); % serif +math_fit(-.3x_height#*slant+.5curve#-u#,ic#); +% the bar + pos8(bar,90); pos9(bar,90); + x8=x1; % .5[x1,x4]; + x9=x6; + y8=y9=.5[y.a2-.5slab,y1+.5vair]; + filldraw stroke z8e--z9e; +currentpicture:=currentpicture shifted (0,body_height-asc_height); +pickup rule.nib; +x10=x2; x11=x9; top y10=0; y10=y11; +draw z10--z11; +penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; + +ecchar"Trademark"; % jk, design based on logo font +beginchar(oct"227",12u#,body_height#,0); +italcorr .7body_height#; +adjust_fit(0,0); +numeric ww, hh; ww=.5w; hh=vround .5body_height; +pickup pencircle xscaled hair yscaled vair; +lft x1=-eps; x2=ww-x1; x3=x4=.5ww; +y1=y2=y3; top y1=hh; bot y4=-o; +draw z1--z2; draw z3--z4; +labels(1,2,3,4); +clearxy; +x1=x2=hround(ww+u); x4=x5=hround(w-u); x3=hround .5[x1,x4]; +y1=y5; y2=y4; bot y1=-o; +top y2=hh+o; y3=vround (y1+.5bar_height); +draw z1--z2--z3--z4--z5; +labels(1,2,3,4,5); +currentpicture:=currentpicture shifted (0,hh); +endchar; + +ecchar"Per ten thousand sign"; % Yannis, Unicode Computer Modern +beginchar(oct"230",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, + 2*(.5*(9u#+max(6u#,2fudge*(hair#+stem#))) + -2.5u#+5/6[fudged.hair#,fudged.stem#])); +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]; +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 bowl +hihi:=(.5*(9u#+max(6u#,2fudge*(hair#+stem#))) + -2.5u#+5/6[fudged.hair#,fudged.stem#]) +if monospace: *expansion_factor fi *hppp; +picture petit_zero; petit_zero := currentpicture; +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 +pickup fine.nib; +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 +addto currentpicture also (petit_zero shifted (hihi,0)); +addto currentpicture also (petit_zero shifted (2hihi,0)); +picture petit_zero; % Release resources allocated to the picture variable +penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; + +ecchar "Alternate pilcrow sign"; % one vertical bar only +beginchar(oct"231",8.5u#,asc_height#,desc_depth#); +adjust_fit(0,0); pickup rule.nib; autorounded; +top y1=h; bot y6=-d-eps; y4=y9=y1; +y3=y5=good.y .5[y1,y6]; +lft x2=hround u; y2=.5[y1,y3]; rt x9=hround(w-.5u); x4=x5=x6=good.x(x9-1.5u); +x1=x3=min(.5w,x4); +filldraw z4..z1{left}...z2{down}...{right}z5--cycle; % filled bowl +draw z9--z4--z6; % left stem and upper serif +if serifs: + x11=x9; x10-x6=x4-x9; + bot y10=-d-eps; y10=y11; + draw z10--z11; % lower serif +fi +labels(1,2,3,4,5,6,9,10,11); endchar; + +ecchar"Baht sign"; % currency of Thailand +beginchar(oct"232",12.5u#,body_height#,body_height#-asc_height#); +italcorr .75cap_height#*slant-.5u#; +adjust_fit(cap_serif_fit#,0); +numeric hh; hh=cap_height; +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=hh; 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]=.52hh; +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: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif +pickup crisp.nib; pos13(bar,0); pos14(bar,0); +rt x13r=rt x14r=rt x4; top y13=h; bot y14=-d; +filldraw stroke z13e--z14e; % vertical crossbar +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; + +ecchar"Numero sign"; % from wncyr +beginchar(oct"233",15u#+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# + if serifs: +.5(flare#+(cap_stem#-stem#)) fi ,cap_serif_fit#); +w:=if serifs: 10u else: 11u fi; +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); +top y1=h; +if serifs: top y3=.79h; bot y2=.21h; +else: top y3=h; bot y2=0; fi +bot y4=0; +x1=x2; x3=x4; x1l=w-x3r; +rt x3r=hround min(w-2u,w-3u+.5fudged.cap_stem); +x91=x2-.75flare; bot y91r=-oo; x92=w-x91; +top y92l=h+oo; +pos91(thin_stem,-90); pos92(thin_stem,-90); +if serifs: + filldraw stroke z1e--z2e & pulled_arc.e(2,91); % left stem + filldraw stroke z4e--z3e & pulled_arc.e(3,92); % right stem +else: + filldraw stroke z1e--z2e; filldraw stroke z4e--z3e; % stems +fi +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; % diagonal +fi +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 +fi +pickup tiny.nib; +if serifs: + x93=x2-1.5flare; + y93=.75flare; + pos95(flare+(cap_stem-stem),-180); + x94=x3+1.5flare; + y94=h-y93; + pos96(flare+(cap_stem-stem),0); + pos92'(thin_stem,90); + z92'=z92; + pos93(cap_hair,-180); + pos94(cap_hair,0); + bulb(91,93,95); bulb(92',94,96); +fi +w:=15u; +penpos71(vair,90); penpos73(vair',-90); penpos72(.8curve,180); +penpos74(.8curve,0); x72r=hround max(.5u,1.25u-.4curve)+9.5u; +x74r=w-x72r+9u; x71=x73=12u; y71r=h-3u+vround 1.5oo; y73r=x_height-3u-oo; +y72=y74=.5[h,x_height]-3u-vair_corr; y72l:=y74l:=.52[h,x_height]-3u; +penstroke pulled_arc.e(71,72) & pulled_arc.e(72,73) & pulled_arc.e(73,74) & +pulled_arc.e(74,71) & cycle; +x81=max(lft x72r,x73-(lft w-x73)); +x82=min(rt x74r,lft w); y81=y82=.8x_height-3u; +pos81(bar,90); pos82(bar,90); +filldraw stroke z81e--z82e; +math_fit(0,max(.5ic#-.5u#,0)); +penlabels(1,1',2,3,4,4',5,6,7); endchar; + +ecchar "Abzueglich sign"; % jk +beginchar(oct"234",9u#,body_height#,0); +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=-eps; +draw z1--z2; % diagonal +x3=w-x5=good.x (lft x1 - .5dot_size); +bot y4 = good.y .5dot_size; +top y6 = good.y h-.5dot_size; +pos3(dot_size,0); pos4(dot_size,90); z3=z4; +pos5(dot_size,0); pos6(dot_size,90); z5=z6; +dot(3,4); dot(5,6); % dots +penlabels(1,2,3,4,5,6); endchar; + +ecchar"Aestimated sign (large e)"; % jk +beginchar(oct"235",(11.25u#+max(.75u#,.5cap_curve#)),cap_height#,0); +italcorr .76cap_height#*slant+.5min(curve#-1.5u#,0); +adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); +numeric left_curve,right_curve; +left_curve=right_curve+3stem_corr=cap_curve if not serifs: -1.5stem_corr fi; +if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; +pos1(right_curve,0); pos2(vair,90); pos3(left_curve,180); +y1=good.y .52h; top y2r=h+vround 1.5oo; y0l=bot y1; +rt x1r=hround min(w-.5u,w-u+.5right_curve); +lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; +if serifs: pos4(vair',270); pos5(hair,360); + y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; + (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal +else: pos4(vair,270); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,270); z4=z4'; + pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke term.e(4',5,right,1,4); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: + x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +penlabels(0,1,2,3,4,5); endchar; + +ecchar "Open bullet"; % derived from Circle operator +beginchar(oct"236",9u#,v_center(7u#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h; y2=math_axis; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); endchar; + +ecchar"Servicemark"; % jk, design based on logo font +beginchar(oct"237",12u#,body_height#,0); +italcorr .7body_height#; +adjust_fit(0,0); +numeric ww, hh; ww=.5w; hh=vround .5body_height; +pickup pencircle xscaled hair yscaled vair; +x3=x8= u; +x2=x4=.382[x3,ww-x3]; +x1=ww-x3; +x5=x7=.618[x3,ww-x3]; +x6=.5[ww-x3,lft ww]; +top y1=hh; y4=good.y .55hh; bot y8=0; +y1=y2; y3=.5[y2,y4]; y4=y5; y6=.5[y5,y7]; y7=y8; +draw z1--z2; draw z4--z5; draw z7--z8; +super_crescent(2,3,4); +super_crescent(5,6,7); +labels(1,2,3,4,5,6,7,8); +clearxy; +x1=x2=hround(ww+u); x4=x5=hround(w-u); x3=hround .5[x1,x4]; +y1=y5; y2=y4; bot y1=-o; +top y2=hh+o; y3=vround (y1+.5bar_height); +draw z1--z2--z3--z4--z5; +labels(1,2,3,4,5); +currentpicture:=currentpicture shifted (0,hh); +endchar; + +ecchar "Left square bracket with quill"; % from Haralambous/Plaice +beginchar(oct"240",9u#,body_height#,paren_depth#); +italcorr math_axis#*slant+.5vair#-u#; +adjust_fit(if monospace: -1.5u#,u# else: -2.5u#,0 fi); +pickup fine.nib; +forsuffixes $=1,1',4,4',7,7',11,11',17,17': + pos$(vair,0); endfor +forsuffixes $=2,3,5,6: pos$(stem,0); endfor +x2=x3=x5=x6; x1=x1'=x7=x7'=w-x4=w-x4'; +rt x4r=hround(w-1.5u+.5vair); rt x2r=hround(.5w+.5stem); +top y1=h; bot y7=-d; .5[y4,y4']=.5[y1,y7]=.5[y2,y6]=.5[y3,y5]; +y1-y2=y3-y4=(y1-y4)/4; +y1-y1'=y4-y4'=y7'-y7=y11-y11'=y17-y17'=vair-fine; +x11=x11'=x17=x17'; x11-x2=x2-x1; y11=y1; y17=y7; +filldraw z11'l{left}...z2r---z3r...{right}z4r + --z4'r{left}...z5r---z6r...{right}z17l + --z17r--z17'r{left}...z6l---z5l...{right}.5[z4l,z4'l]{left} + ...z3l---z2l...{right}z11r--z11'r--cycle; % stroke +penlabels(1,2,3,4,5,6,7); endchar; + +ecchar "Right square bracket with quill"; % from Haralambous/Plaice +beginchar(oct"241",9u#,body_height#,paren_depth#); +italcorr body_height#*slant+.5vair#-u#; +adjust_fit(if monospace: u#,-1.5u# else: 0,-2.5u# fi); +pickup fine.nib; +forsuffixes $=1,1',4,4',7,7',11,11',17,17': + pos$(vair,0); endfor +forsuffixes $=2,3,5,6: pos$(stem,0); endfor +x2=x3=x5=x6; x1=x1'=x7=x7'=w-x4=w-x4'; +lft x4l=hround(1.5u-.5vair); lft x2l=hround(.5w-.5stem); +top y1=h; bot y7=-d; .5[y4,y4']=.5[y1,y7]=.5[y2,y6]=.5[y3,y5]; +y1-y2=y3-y4=(y1-y4)/4; y1-y1'=y4-y4'=y7'-y7=vair-fine; +x11=x11'; x17=x17'; +y11=y1; y17=y7; +x1-x2=x2-x11; x17=x11; y11-y11'=y17'-y17=vair-fine; +filldraw z11'r{right}...z2l---z3l...{left}z4l + --z4'l{right}...z5l---z6l...{left}z17'r +--z17'l--z17l{right}...z6r---z5r...{left}.5[z4r,z4'r]{right} + ...z3r---z2r...{left}z11l--z11'l--cycle; % stroke +penlabels(1,2,3,4,5,6,7); endchar; + +ecchar "Cent sign"; % from wasychr (wasy) +% Modified height and depth (jk) +% Modified: Bar instead of broken bar +beginchar(oct"242",9u#,x_height#+.5desc_depth#,.5desc_depth#); +italcorr x_height#*slant-.2u#; +adjust_fit(0,0); +pickup fine.nib; pos2(vair',90); pos4(vair',270); +x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo; +pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height; +if serifs: pos1(hair,0); pos0(flare,0); + y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,x_height]-.5flare); + rt x1r=hround(w-.7u); bulb(2,1,0); % bulb + pos5(hair,0); rt x5r=hround(w-.5u); + y5=max(good.y(.5bar_height-.9),y4l+vair'); + (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) + ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal +else: pos1(4/7[vair',flare],80); + rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2,1,right,.8,4); % upper terminal + pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; + if angle direction 1 of p.e>75: + p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal +pickup crisp.nib; +x6=x7=x8=x9=x2; y7=y2; y8=y4; bot y9=-d; y6-y7 = y8-y9; +pos6(bar,0); pos7(bar,0); +pos8(bar,0); pos9(bar,0); +filldraw stroke z6e--z9e; % bar +%filldraw stroke z6e--z7e; % upper bar +%filldraw stroke z8e--z9e; % lower bar +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +ecchar "Sterling sign"; % from italp (cm) +% already contains bug fix found by Yannis Haralambous +beginchar(oct"243",12u#,asc_height#,0); +adjust_fit(0,.75asc_height#*slant-.5u#); pickup fine.nib; +pos0(flare,0); pos1(hair,0); pos2(vair,90); pos3(stem,180); +pos4(stem,180); pos4'(stem,0); pos5(vair,-90); z4'=z4; +x2=2/3w-.5u; rt x3l=rt x4l=hround(.5w-u+.5stem); x5=2.5u; +y1=y3=.75h; top y2=h+oo; y4=.25h; bot y5r=-oo; +rt x1r=hround(w-1.5u); bulb(2,1,0); % bulb +filldraw stroke pulled_arc.e(2,3)..z4e; % stem +numeric light_stem; light_stem=2/3[vair,vstem]; +pos6(.5[hair,light_stem],-180); pos7(light_stem,-300); +pos8(light_stem,-300); pos9(hair,-180); +lft x6r=hround u; x7=3u; x8=w-3.5u; rt x9l=hround(w-u); +y6=.4[y5,y7]; top y7r=vround .2h; bot y8l=-oo; y9=good.y .2h; +filldraw stroke pulled_arc.e(4',5)...z6e{up}...z7e{right} + ..{right}z8e...{up}z9e; % loop and arm +pos10(bar,90); pos11(bar,90); x10=3u; x11=w-4.5u; +top y10r=top y11r=vround(.5h+.5bar); filldraw stroke z10e--z11e; % bar +penlabels(1,2,3,4,5,6,7,8,9,10,11); endchar; + +ecchar "Currency sign"; % from rsym (wasy) +beginchar(oct"244",1.13 min(asc_height#,9/7x_height#)+2u#, + min(asc_height#,9/7x_height#),0); +italcorr x_height#*slant; +adjust_fit(if monospace: u#,u# else: 0,0 fi); +pickup rule.nib; autorounded; +x4 = good.x .5w; x2-x6=y8-y4; y2=good.y .5h; bot y4=-oo; +circle_points; +z9 = 1.30[z5,z1]; +z10 = 1.30[z7,z3]; +z11 = 1.30[z1,z5]; +z12 = 1.30[z3,z7]; +draw_circle; +draw z1--z9; +draw z3--z10; +draw z5--z11; +draw z7--z12; +labels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; + + +ecchar "Yen symbol"; % from asymbols (msam) +% Change (jk): Use correct pen for horizontal bars +compute_spread(.45x_height#, .55x_height#); +beginchar(oct"245",13u#,cap_height#,0); %% adapted from "Y" +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 & 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 +pickup extra_rule.nib; +x7=x9=x1l; x8=x10=x4r; y9=y10; +top y7=bar_height; y7=y8; draw z7--z8; +y9-y7=spread; draw z9--z10; % crossing bars +penlabels(0,1,2,3,4,5,6,1',2',3',4',5',6',7,8,9,10); endchar; + +ecchar "Broken vertical bar"; % jk +beginchar(oct"246",3u#,body_height#,paren_depth#); +italcorr body_height#*slant - u#; +adjust_fit(0,0); pickup rule.nib; +top y1=h; .5[y1,y4]=math_axis; +compute_spread(.45x_height#,.55x_height#); y2-y3=spread; +.5[y2,y3]=math_axis; +x1=x2=x3=x4=good.x .5w; +draw z1--z2; draw z3--z4; +labels(1,2,3,4); endchar; + +ecchar "Section sign"; % from mathsy, renovated (jk) +beginchar(oct"247",6.5u#+max(1.5u#,stem#),asc_height#,desc_depth#); +adjust_fit(0,0); pickup fine.nib; +numeric s_slab; s_slab=if serifs:slab else:vround .2[slab,cap_stem] fi; +numeric ess'; ess'=max(fine.breadth,cap_ess); +numeric sstem; sstem=hround .5[s_slab,ess']-fine; +if sstem < fine.breadth: sstem:=fine.breadth; fi +pos2(vair,90); pos3(sstem,180); +pos4(ess',270); pos4'(vair,270); +pos5'(sstem,0); pos5(sstem,180); +pos6(ess',90); pos6'(vair,90); pos7(sstem,0); +pos8(vair,-90); +top y2r=h+oo; bot y8r=-d-oo; +y3=.52[y4,y2]; y5=.52[y4,y6]; y7=.52[y6,y8]; y5'=.52[y6,y4]; +y2-y4=y4-y6=y6-y8; +bot z4'=bot z4; top z6'=top z6; +lft x3r=hround 1.25u; +x2=x4=x6=x8=.5w; x5=x7=w-x3; x5'=x3; +if serifs: + pos0(stem,0); pos1(hair,0); pos9(hair,-180); pos10(stem,-180); + rt x1r=hround(w-1.5u); x9=w-x1; y2-y1=y9-y8=(y2-y8)/8; + bulb(2,1,0); bulb(8,9,10); % bulbs +else: + pos1(.6[slab,flare],-100); pos9(flare,-100); pos2'(vair,-90); + rt x1l=hround(w-1.3u); lft x9r=hround .8u; z2'=z2; + top y1l=vround .92asc_height+oo; bot y9r=vround .1asc_height-d-oo; + filldraw stroke term.e(2',1,right,.9,4); % upper arc and terminal + filldraw stroke term.e(8,9,left,.9,4); % lower arc and terminal +fi +filldraw stroke z2e{left}...z3e{down}...z4e{3(x5-x3),y5-y3} + ...z5e{down}...{left}z6'e; % upper stroke +filldraw stroke z4'e{left}...z5'e{down}...z6e{3(x7-x5'),y7-y5'} + ...z7e{down}...{left}z8e; % upper stroke +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +ecchar "Umlaut (double dot) accent"; % from accent (cm) +numeric dot_diam#,dot_diam; +dot_diam#=max(dot_size#,cap_curve#); +beginchar(oct"250",9u#,min(asc_height#,10/7x_height#+.5dot_diam#),0); +dot_diam=max(tiny.breadth,hround(max(dot_size,cap_curve)-2stem_corr)); +italcorr h#*slant+.5dot_diam#-2.25u#; +adjust_fit(0,0); +pickup tiny.nib; pos1(dot_diam,0); pos2(dot_diam,90); +x1=x2=2.75u; top y2r=h+1; +if bot y2l<x_height+o+slab: y2l:=min(y2r-eps,x_height+o+slab+.5tiny); fi +y1=.5[y2l,y2r]; dot(1,2); % left dot +pos3(dot_diam,0); penpos4(y2r-y2l,90); y3=y4=y1; x3=x4=w-x1; +dot(3,4); % right dot +penlabels(1,2,3,4); endchar; + +ecchar"Copyright";% (CMBR) +%beginchar(oct"251",20u#,body_height#,max(paren_depth#,desc_depth#)); +beginchar(oct"251",circ_w#,body_height#,max(paren_depth#,desc_depth#)); +autorounded; +adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); +clearxy; autorounding:=0; +numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-6u); +rr=hround(.5w+5u); +if serifs: + pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90); + pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360); + rt x1r=rt x5r=hround(rr-u); lft x3r=hround(ll+u); x2=x4=.55[x3,x1]; + top y2r=hh+o; bot y4r=-o; y3=.5[y2,y4]; + bot y1=min(vround max(.6hh,.7x_height-.5vair),bot y2l-eps); + y5=max(good.y .95(hh-y1),y4l+eps); + (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u); + (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u); + filldraw stroke z1e{x2-x1,10(y2-y1)} + ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc + pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=hh+o; + x1r-x1'=2cap_curve-fine; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left}; + numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1')); + filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb +else: + pickup fine.nib; pos1(1.2flare,80); pos2(slab,90); + pos3(cap_curve,180); pos4(slab,270); pos5(flare,275); + rt x1r=hround(rr-1.1u); x2=x4=.5w+1.25u; + lft x3r=ll+hround max(u,2u-.5cap_curve); rt x5r=hround(rr-.9u); + top y1r=vround .95hh+o; top y2r=hh+o; y3=.5hh; + bot y4r=-o; bot y5r=vround .08hh-o; y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,right,.8,4); fi % arc and terminals +penlabels(1,1',2,3,4,5,6); endchar; + +ecchar"Copyleft";% (CMBR) +%beginchar(oct"253",20u#,body_height#,max(paren_depth#,desc_depth#)); +beginchar(oct"253",circ_w#,body_height#,max(paren_depth#,desc_depth#)); +autorounded; +adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); +clearxy; autorounding:=0; +numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-5u); +rr=hround(.5w+6u); +if serifs: + pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,-90); + pos3(cap_curve,-180); pos4(cap_band,-270); pos5(hair,-360); + lft x1l=lft x5l=hround(ll+u); rt x3l=hround(rr-u); x2=x4=.55[x3,x1]; + top y2l=hh+o; bot y4l=-o; y3=.5[y2,y4]; + bot y1=min(vround max(.6hh,.7x_height-.5vair),bot y2r-eps); + y5=max(good.y .95(hh-y1),y4r+eps); + (x2r',y2r)=whatever[z2l,z1r]; x2r:=min(x2r',x2r+.5u); + (x4r',y4r)=whatever[z4l,z5r]; x4r:=min(x4r',x4r+.5u); + filldraw stroke z1e{x2-x1,10(y2-y1)} + ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc + pos6(.3[fine.breadth,cap_hair],0); x6l=x1l; top y6=hh+o; + x1l-x1'=2cap_curve-fine; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{right}; + numeric t; t=xpart(upper_arc intersectiontimes (z6r--z1')); + filldraw z1l--z6l--z6r--subpath(t,0) of upper_arc--cycle; % barb +else: + pickup fine.nib; pos1(1.2flare,-80); pos2(slab,-90); + pos3(cap_curve,-180); pos4(slab,-270); pos5(flare,-275); + lft x1l=hround(ll+1.1u); x2=x4=.5w-1.25u; + rt x3l=rr-hround max(u,2u-.5cap_curve); lft x5l=hround(ll+.9u); + top y1l=vround .95hh+o; top y2l=hh+o; y3=.5hh; + bot y4l=-o; bot y5l=vround .08hh-o; y5r:=good.y y5r; x5r:=good.x x5r; + filldraw stroke rterm.e(2,1,left,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,left,.8,4); fi % arc and terminals +penlabels(1,1',2,3,4,5,6); endchar; + +ecchar "Logical not sign"; % from sym % (CMBR) +beginchar(oct"254",11u#,sym_height#,0); +italcorr sym_height#*slant-.5u#; +adjust_fit(0,0); pickup rule.nib; +lft x1=hround u-eps; x2=x3=w-x1; +y1=y2=good.y .5[bar_height,h]; y2-y3=1.2(h-bar_height); +draw z1--z2--z3; % bar and stem +labels(1,2,3); endchar; + +ecchar"Circled P"; % Sound recording copyright sign % jk (CMBR) +%beginchar(oct"255",20u#,body_height#,max(paren_depth#,desc_depth#)); +beginchar(oct"255",circ_w#,body_height#,max(paren_depth#,desc_depth#)); +autorounded; +adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); +clearxy; autorounding:=0; +numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-6u); +rr=hround(.5w+6u); +pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); +pos0(cap_stem',0); pos0'(cap_stem,0); +lft x1l=ll+hround max(2u,3u-.5cap_stem'); top y1=hh; 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(.5hh); x4=x6=.5w+.75u; x5r=hround(rr-u); +x4l:=x6l:=x4-.25cap_curve; +filldraw stroke z1e--z2e; % stem +fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe +if serifs: + nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower serif +fi +penlabels(0,1,2,3,4,5,6); endchar; + +ecchar"Registered"; % jk (CMBR) +%beginchar(oct"256",20u#,body_height#,max(paren_depth#,desc_depth#)); +beginchar(oct"256",circ_w#,body_height#,max(paren_depth#,desc_depth#)); +autorounded; +adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); +clearxy; autorounding:=0; +numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-6u); +rr=hround(.5w+6u); +pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); +lft x1l=lft x2l=ll+hround max(2u,3u-.5cap_stem'); top y1=hh; bot y2=0; +filldraw stroke z1e--z2e; % stem +penpos3(cap_band,90); penpos4(cap_band,90); +penpos5(cap_curve if hefty:-3stem_corr fi,0); +penpos6(vair,-90); penpos7(vair,-90); +z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7; +x7=x2; y7l=vround(.5hh+.5vair); x4=x6; +if serifs: x4=.5w-.5u; x5r=hround(rr-2.25u); +else: x4=.5w+.5u; x5r=hround(rr-u); fi +x4l:=x6l:=x4-.125cap_curve; +fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe +if serifs: pos6'(vair,-90); pos0(cap_stem,180); + pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0); + z6'=z6; lft x0r=lft x8r=hround(x5-2/3u-.5cap_curve); + y8=1/3[y2,y7]; y0=3/5[y2,y7]; x9=.5[x8l,x10r]; + bot y9r=-o; rt x10r=hround(rr-.25u); y10=1/3[y2,y7]; + filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up}; % tail + nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower serif +else: penpos8(cap_stem-2stem_corr,0); penpos9(cap_stem,0); + x8=x6+.5u; y8=y6; x9r=hround(rr-.5u); y9=0; + fill z8l--diag_end(8l,9l,.5,1,9r,8r)--z8r--cycle; fi % tail +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +ecchar"High bar (Macron)"; % jk +beginchar(oct"257",14u#,min(asc_height#,2x_height#),0); +adjust_fit(0,0); pickup rule.nib; +lft x1=hround 1.5u-eps; x2=w-x1; top y1=top y2=h; +draw z1--z2; % bar +labels(1,2); endchar; + +ecchar "Plus-or-minus sign"; % from sym +beginarithchar(oct"261"); pickup rule.nib; +numeric shiftup; shiftup=vround 1.5u; +x1=x2=.5w; lft x3=lft x5=hround u-eps; x4=x6=w-x3; +.5[y1,y2]=y3=y4=math_axis+shiftup; top y1=h+shiftup; y5=y6=y2; +draw z1--z2; % stem +draw z3--z4; % plus bar +draw z5--z6; % minus bar +labels(1,2,3,4,5,6); endchar; + +ecchar"Degree sign"; % Yannis, Unicode Computer Modern +beginchar(oct"260",4u#,cap_height#,0); +adjust_fit(if monospace: 1.5u#,1.5u# else: u#,u# fi); +pickup rule.nib; autorounded; +if .5w <> good.x .5w: change_width; fi +lft x6=0; x2=w-x6; top y8=h; y8-y2=x2-x8; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); endchar; + +ecchar"Tick mark"; % from accent (cmfonts, acute accent) +beginchar(oct"264",9u#,min(asc_height#,2x_height#),0); +italcorr h#*slant-if serifs: 1.5 fi u#; +adjust_fit(0,0); +if serifs: pickup crisp.nib; x1+.5stem=hround(w-2u); x2=2/3[x1,w-x1]; + y1+.5stem=h+eps; y2=max(2/3[h,x_height],x_height+o+hair); + numeric theta; theta=angle(z2-z1)+90; + pos1(stem,theta); pos2(hair,theta); + filldraw circ_stroke z1e--z2e; % diagonal +else: pickup fine.nib; pos1(stem,0); pos2(vair,0); + rt x1r=hround(w-1.5u); lft x2l=hround(.5w-.25u-.5vair); + top y1=h; bot y2=vround 2/3[h,x_height]; + filldraw stroke z1e--z2e; fi % diagonal +penlabels(1,2); endchar; + +iff not variant_g: +ecchar"Micro sign"; % jk, based on cm `u' +beginchar(oct"265",10u#,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; +if light_vair<fine.breadth: light_vair:=fine.breadth; fi +pickup tiny.nib; pos1(stem,0); pos2(stem,0); pos7(stem,0); +pos3(stem,0); pos4(stem',0); +lft x1l=hround(2.5u-.5stem); x1=x2=x7; x3=w-x1; x3r=x4r; +if serifs: top y1=h+min(oo,serif_drop); bot y4=-min(oo,serif_drop); +else: top y1=h; bot y4=0; fi +pos0(stem,0); pos0'(stem',0); +x0=x3; x0'=x4; y0=y0'; bot y7=-d; +penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; +penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); +y6=y0=2/3bar_height; +filldraw stroke z1e--z7e; % left stem +filldraw stroke z3e..z0e--z0'e..z4e; % right stem +pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; +(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); +filldraw stroke {{interim superness:=hein_super; + pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif + sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif + sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); % lower right serif + pickup crisp.nib; + dish_serif(7,1,d,1/3,jut,e,1/3,jut); fi % lower left serif +penlabels(1,2,3,4,5,7); labels(6); endchar; + +iff variant_g: % This triggers italics +ecchar "Micro sign"; % from greekl (cm) +beginchar(oct"265",9u#,x_height#,desc_depth#); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(0,0); pickup fine.nib; 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#); +penlabels(1,2,3,4,5,6,7,8,9); endchar; + +ecchar "Paragraph mark"; % from mathsy +beginchar(oct"266",11u#,asc_height#,desc_depth#); +adjust_fit(0,0); pickup rule.nib; autorounded; +top y1=h; bot y6=-d-eps; y4=y7=y9=y1; +y8=y6; y3=y5=good.y .5[y1,y6]; +x7-x4=ceiling(rule_thickness+1.25u); +lft x2=hround u; y2=.5[y1,y3]; x4=x5=x6; rt x9=hround(w-.5u); +x7=x8=good.x(x9-1.5u); x1=x3=min(.5w,x4); +filldraw z4..z1{left}...z2{down}...{right}z5--cycle; % filled bowl +draw z9--z4--z6; % left stem and upper serif +draw z7--z8; % right stem +if serifs: + x11=x9; x10-x8=x4-x9; + bot y10=-d-eps; y10=y11; + draw z10--z11; % lower serif +fi +labels(1,2,3,4,5,6,7,8,9,10,11); endchar; + +ecchar "Centered dot"; % reengineered for catalan l.l +beginchar(oct"267",(11u#-width_adj#-2max(2u#+.5cap_stem#,3u#)), + x_height#,0); +adjust_fit(0,0); +pickup fine.nib; +pos1(udot_diam,0); pos2(udot_diam,90); +lft x1l=hround(.5w-.5udot_diam); y1+.5udot_diam=vround(bar_height+.5udot_diam); +z1=z2; dot(1,2); % dot +penlabels(1,2); endchar; + +ecchar "Reference mark"; % From Haralambous/Plaice %(CMBR) +beginchar(oct"270",1/3[sym_height#,asc_height#], + 1/3[sym_height#,asc_height#],0); +italcorr .5sym_height#*slant-.5u#; +adjust_fit(if monospace: + -1/3[sym_height#,asc_height#] + mono_charwd#, + -1/3[sym_height#,asc_height#] + mono_charwd# + else: u#,u# fi); +pickup rule.nib; +Dot_size:=min(dot_size,max(1,.25h-rule_thickness)); +lft x1=0; top y1=h; +x2=x3=w-x1; x4=x1; .5[y1,y2]=.5[y3,y4]=.5h; y2=y4; +draw z1--z2; draw z3--z4; % diagonals +top z1'=.5[top z1,top z3]-(0,.5Dot_size); +rt z3'=.5[rt z3,rt z2]-(.5Dot_size,0); +bot z2'=.5[bot z2,bot z4]+(0,.5Dot_size); +lft z4'=.5[lft z4,lft z1]+(.5Dot_size,0); +z1'=z1''; z2'=z2''; z3'=z3''; z4'=z4''; +penpos1'(Dot_size,0); +penpos1''(Dot_size,90); dot(1',1''); +penpos2'(Dot_size,0); +penpos2''(Dot_size,90); dot(2',2''); +penpos3'(Dot_size,0); +penpos3''(Dot_size,90); dot(3',3''); +penpos4'(Dot_size,0); +penpos4''(Dot_size,90); dot(4',4''); +labels(1,2,3,4,1',2',3',4',1'',2'',3'',4'',1'r,1'l,1''r,1''l); +endchar; + +ecchar"Root sign"; % textsurd, from wnri (CMBR) +beginchar(oct"273",8.5u#,body_height#,paren_depth#-rule_thickness#); +italcorr body_height#*slant; +adjust_fit(0,-letter_fit#); +pickup rule.nib; + w':=7u; + x1=good.x (1/9w'+2.5u); x2=good.x (.65w'+2.5u); + bot y1=-.5d; bot y2=asc_height; + draw z1--z2; % diagonal + pickup crisp.nib; +% pos3(if hefty: else: .7 fi max(curve,rule_thickness),0); + pos3(1.25 vair,0); + x3l=1.5[x2,x1]; y3=.5[y1,y2]; + pos4(rule_thickness,0); x4=x1; bot y4=-.5d; + pos5(vair,-45); x5l=good.x(x3l-u); z5l=whatever[z3r,z2]; + z6=z5r+whatever*(z2-z3r)=whatever[z3l,z4l]; + z7=whatever[z1,z2]=z3r+whatever*(z4l-z3l); + filldraw z5r--z6--z4l--z4--z7--z3r--z5l--cycle; % left diagonal and serif +x8=x2+2u; y8=y2; +pickup rule.nib; +draw z2--z8; +penlabels(1,2,3,4,5,6,7,8); +endchar; + +ecchar "Euro currency sign"; % improved (CMBR) +% sans serif variant only! +beginchar(oct"277",14u#,cap_height#,0); + italcorr cap_height#*slant-.5u#; + adjust_fit(0,0); + pickup fine.nib; pos1(1.2flare,69); pos2(slab,90); + pos3(cap_curve,180); pos4(slab,270); pos5(flare,270); % 281 + rt x1r=hround(w-u); x2=x4=hround(x1-3u); + lft x3r=hround (max(u,2u-.5cap_curve)+u); rt x5r=hround(w-1.4u); + top y1r=vround .95h+o; top y2r=h+o; y3=.5h; + bot y4r=-o; bot y5r=vround .08h-o; y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,right,.8,4); % arc and terminals +% middle bars: + pos7(slab,69); pos8(slab,69); + pos9(slab,69); pos10(slab,69); + % Unterkante oberer Balken: + bot y7l=vround(y3+if hefty: .5vair else: min(vair, .06h) fi +eps); + % Oberkante unterer Balken: + top y9r=vround(y3-if hefty: .5vair else: min(vair, .06h) fi); + y8=y7; + y10=y9; + x7=x9=hround u; + rt x8r=hround(w - if serifs: 3 else: 2.5 fi u); + rt x10r = rt x8r - + ((slab + if hefty: vair else: 2min(vair, .06h) fi) * sind 21); + filldraw stroke z7e--z8e; % upper bar + filldraw stroke z9e--z10e;% lower bar + +math_fit(-.3cap_height#*slant-.5u#,.5ic#); + +penlabels(1,1',2,3,4,5,6,7,8,9,10); endchar; + + +ecchar "Times operator"; % from mathsy +beginarithchar(oct"326"); pickup rule.nib; +x1=good.x(1/sqrt2)[.5w,rt u]; y1=good.y(1/sqrt2)[math_axis,bot h]; +x2=x3=w-x1; x4=x1; .5[y1,y2]=.5[y3,y4]=math_axis; y2=y4; +draw z1--z2; draw z3--z4; % diagonals +labels(1,2,3,4); endchar; + +ecchar "Elementary division operator"; % from mathsy % (CMBR) +beginarithchar(oct"366"); pickup rule.nib; +numeric del; del=dot_size-currentbreadth; +x3-.5del=good.x(.5w-.5del); center_on(x3); +y3+.5del=good.y(math_axis+math_spread[.5sym_height,.6sym_height]+.5del); +lft x1=hround u-eps; x2=w-x1; y1=y2=math_axis; +draw z1--z2; % bar +pos3(dot_size,0); pos4(dot_size,90); z3=z4; +pos5(dot_size,0); pos6(dot_size,90); z5=z6; x5=x3; .5[y3,y5]=math_axis; +dot(3,4); dot(5,6); % dots +penlabels(1,2,3,4,5,6); endchar; + + +endinput; diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbtl10.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbtl10.mf new file mode 100644 index 00000000000..becdc573665 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbtl10.mf @@ -0,0 +1,85 @@ +% EC Typewriter Light 10 point text companion font [2000/02/09 v1.0f (WaS)] + +% This is a 10 pt typewriter font with all stroke widths +% taken from cmtt8, so that it looks lighter than cmtt10 +% and may be used together with the CM Bright fonts. + +if unknown exbase: input exbase fi + +font_identifier:="TBTL"; 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#:=220/36pt#; % height of lowercase ascenders +cap_height#:=220/36pt#; % height of caps +fig_height#:=220/36pt#; % height of numerals +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 + +acc_height#:=75/36pt#; +dot_height#:=75/36pt#; +udot_height#:=59/36pt; + +crisp#:=19/36pt#; % diameter of serif corners +tiny#:=19/36pt#; % diameter of rounded corners +fine#:=18/36pt#; % diameter of sharply rounded corners +thin_join#:=18/36pt#; % width of extrafine details +hair#:=22/36pt#; % lowercase hairline breadth +stem#:=22/36pt#; % lowercase stem breadth +curve#:=22/36pt#; % lowercase curve breadth +ess#:=19/36pt#; % breadth in middle of lowercase s +flare#:=28/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=31/36pt#; % diameter of dots +cap_hair#:=22/36pt#; % uppercase hairline breadth +cap_stem#:=22/36pt#; % uppercase stem breadth +cap_curve#:=22/36pt#; % uppercase curve breadth +cap_ess#:=22/36pt#; % breadth in middle of uppercase s +rule_thickness#:=22/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#:=19/36pt#; % vertical diameter of hairlines +notch_cut#:=22/36pt#; % maximum breadth above or below notches +bar#:=19/36pt#; % lowercase bar thickness +slab#:=19/36pt#; % serif and arm thickness +cap_bar#:=19/36pt#; % uppercase bar thickness +cap_band#:=19/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=22/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#:=8/36pt#; % extra width at diagonal junctions + +o#:=3/36pt#; % amount of overshoot for curves +apex_o#:=3/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +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? +true_mono:=true; +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? + +generate ttsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/tbto10.mf b/Master/texmf-dist/fonts/source/public/cmbright/tbto10.mf new file mode 100644 index 00000000000..bdea927d01d --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/tbto10.mf @@ -0,0 +1,86 @@ +% EC Typewriter Light oblique 10 point +% text companion font [2000/02/09 v1.0f (WaS)] + +% This is a 10 pt typewriter font with all stroke widths +% taken from cmtt8, so that it looks lighter than cmtt10 +% and may be used together with the CM Bright fonts. + +if unknown exbase: input exbase fi + +font_identifier:="TBTO"; 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#:=220/36pt#; % height of lowercase ascenders +cap_height#:=220/36pt#; % height of caps +fig_height#:=220/36pt#; % height of numerals +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 + +acc_height#:=75/36pt#; +dot_height#:=75/36pt#; +udot_height#:=59/36pt; + +crisp#:=19/36pt#; % diameter of serif corners +tiny#:=19/36pt#; % diameter of rounded corners +fine#:=18/36pt#; % diameter of sharply rounded corners +thin_join#:=18/36pt#; % width of extrafine details +hair#:=22/36pt#; % lowercase hairline breadth +stem#:=22/36pt#; % lowercase stem breadth +curve#:=22/36pt#; % lowercase curve breadth +ess#:=19/36pt#; % breadth in middle of lowercase s +flare#:=28/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=31/36pt#; % diameter of dots +cap_hair#:=22/36pt#; % uppercase hairline breadth +cap_stem#:=22/36pt#; % uppercase stem breadth +cap_curve#:=22/36pt#; % uppercase curve breadth +cap_ess#:=22/36pt#; % breadth in middle of uppercase s +rule_thickness#:=22/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#:=19/36pt#; % vertical diameter of hairlines +notch_cut#:=22/36pt#; % maximum breadth above or below notches +bar#:=19/36pt#; % lowercase bar thickness +slab#:=19/36pt#; % serif and arm thickness +cap_bar#:=19/36pt#; % uppercase bar thickness +cap_band#:=19/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=22/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#:=8/36pt#; % extra width at diagonal junctions + +o#:=3/36pt#; % amount of overshoot for curves +apex_o#:=3/36pt#; % amount of overshoot for diagonal junctions + +slant:=1/6; % tilt ratio $(\Delta x/\Delta y)$ +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? +true_mono:=true; +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? + +generate ttsymb % switch to the driver file diff --git a/Master/texmf-dist/fonts/source/public/cmbright/ttsymb.mf b/Master/texmf-dist/fonts/source/public/cmbright/ttsymb.mf new file mode 100644 index 00000000000..9a5e5ff1ecb --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ttsymb.mf @@ -0,0 +1,64 @@ +% ttsymb.mf +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% (c) Copyright 2000 J"org Knappen, Walter Schmidt +% +% This file is part of the CM Bright fonts v1.0f +% +% Driver file for the tc fonts, +% to be used for the Typewriter Light typefaces. +% + +version_check(1,0); % |version_check| was introduced in dc1.3 + +input exaccess; % accent accessories +input txpseudo; % pseudoparameters + +mode_setup; font_setup; pseudo_setup; + +input txaccent; % flat accents for capital letters +input txgen; % genealogical symbols (by DEK) +input ttsymbol; % misc. symbols % <----------------- +if variant_g: % italics? + input txitlod; % old style digits (by GJL) + input txisuper; % superscript 1,2,3 + input txifract; % fractions 1/4, 1/2, 3/4 +else: % roman + input txromod; % old style digits (by DEK) + input txrsuper; % superscript 1,2,3 + input txrfract; % fractions 1/4, 1/2, 3/4 +fi; + +% Ligtable + +if not monospace: + ligtable "-": oct"177" =: oct"177"; % <hyphen><hyphenchar> => <hyphenchar> +fi + +% Fontparameter +% +font_coding_scheme:="TeX text companion symbols 1---TS1"; +boundarychar:=oct"027"; +font_slant slant; +font_x_height x_height#; +font_cap_height cap_height#; +font_asc_height asc_height#; +font_acc_cap_height (cap_height#+acc_height#); +font_desc_depth desc_depth#; +font_max_height(max(asc_height#,body_height#, + cap_height#+acc_height#)); +font_max_depth(max(desc_depth#,paren_depth#,the_ogonek_depth#)); +% font_digit_width % set inside the digits file +font_cap_stem cap_stem#; % No letter capital I in the symbols +font_baselineskip max(1.2*designsize,body_height#+paren_depth#); + +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/cmbright/ttsymbol.mf b/Master/texmf-dist/fonts/source/public/cmbright/ttsymbol.mf new file mode 100644 index 00000000000..f1ac0285936 --- /dev/null +++ b/Master/texmf-dist/fonts/source/public/cmbright/ttsymbol.mf @@ -0,0 +1,2208 @@ +% ttsymbol.mf +% +% (c) Copyright 1995, 1996, 1997 J"org Knappen +% (c) Copyright 2000 J"org Knappen, Walter Schmidt +% +% This file is part of the CM bright fonts v1.0f +% +% Miscellaneous symbols for the TS1 encoding, +% to be used for the `Typewriter Light' typefaces. +% +% Heavily borrowing from existent fonts, like Computer Modern, AMS symbols +% and wasy symbols + +version_check(1,0); % |version_check| was introduced in dc1.3 + +ecchar"Single straight base quote"; % jk +beginchar(oct"015",7u#,asc_height#,0); + numeric shifth_down; + adjust_fit(0,0); + x1=x2=.5w; + y2=max(.5[bar_height,x_height]+.5vair,h-x_height)-the_shift; + if serifs: + y1=flare/2; the_shift=h-.5stem-y1; + pickup crisp.nib; + pos1(flare,0); pos2(vair,0); + filldraw circ_stroke (z1e--z2e); % stem and bulb + else: + top y1=stem; the_shift=h-y1; + pickup fine.nib; + pos1(stem,0); pos2(vair,0); + filldraw stroke z1e--z2e; % stem + fi + charht:=dot_size#; chardp:=desc_depth#; + penlabels(1,2,3,4); +endchar; + +ecchar"Double straight base quotes"; % from pl_cud (plfonts) +beginchar(oct"022",9u#,asc_height#,0); + numeric top_width#,spread#,shifth_down; + top_width#=if serifs: flare# else: stem# fi; + spread#=max(3u#,top_width#+.5u#); define_pixels(spread); + adjust_fit(0,0); + numeric the_shift; + x1=x2; x3=x4=w-x1; x3-x1=spread+2; y1=y3; + y2=y4=max(.5[bar_height,x_height]+.5vair,h-x_height)-the_shift; + if serifs: + y1=flare/2; the_shift=h-.5stem-y1; + pickup crisp.nib; + pos1(flare,0); pos2(vair,0); pos3(flare,0); pos4(vair,0); + filldraw circ_stroke (z1e--z2e); % left stem and bulb + filldraw circ_stroke (z3e--z4e); % right stem and bulb + else: + top y1=stem; the_shift=h-y1; + pickup fine.nib; + pos1(stem,0); pos2(vair,0); pos3(stem,0); pos4(vair,0); + filldraw stroke z1e--z2e; % left stem + filldraw stroke z3e--z4e; % right stem + fi + charht:=dot_size#; chardp:=desc_depth#; + penlabels(1,2,3,4); +endchar; + +ecchar "twelve u dash"; +beginchar(oct"025",12u#,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; + +ecchar "three quarters em dash"; +beginchar(oct"026",13.5u#,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; + +ecchar "Capital compound word mark"; +beginchar(oct"027",0,cap_height#,0); +zero_width; +endchar; + +ecchar "Leftward arrow"; % from sym.mf (cmfonts) +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"030",18u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,90); pos2(rule_thickness,90); +pos3(rule_thickness,0); pos4(rule_thickness,0); +y0=y1=y2=math_axis; x1+.5rule_thickness=hround(w-u); lft x0=hround u; +y3-y0=y0-y4=if monospace:.24 else:.36 fi asc_height+eps; +x3=x4=x0+if monospace:3u else:4u fi+eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +z9=.2[.5[z3,z4],z0]; +numeric t; path p; p=z4r{z9-z4}..z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6,9); endchar; + +ecchar "Rightward arrow"; % from sym.mf (cmfonts) +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"031",18u#,v_center(spread#+rule_thickness#)); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,90); pos2(rule_thickness,90); +pos3(rule_thickness,0); pos4(rule_thickness,0); +y0=y1=y2=math_axis; x1-.5rule_thickness=hround u; rt x0=hround(w-u); +y3-y0=y0-y4=if monospace:.24 else:.36 fi asc_height+eps; +x3=x4=x0-if monospace:3u else:4u fi-eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +z9=.2[.5[z3,z4],z0]; +numeric t; path p; p=z4l{z9-z4}..z6r; +t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; +filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) + --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r) + --z3r{z9-z3}..z0 & cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6,9); endchar; + +ecchar"Tie accent"; % from italms (cmfonts) +beginchar(oct"032",5u#,asc_height#,0); +italcorr 4/9[x_height#,asc_height#]*slant+4.5u#+2letter_fit#+.5hair#; +adjust_fit(if monospace:2u#,2u# else:serif_fit#,serif_fit# fi); +pickup fine.nib; pos1(hair,180); pos2(vround 1/5[vair,stem],90); +pos3(hair,0); +lft x1r=hround(.5w-.5hair); x2=.5[x1,x3]; +rt x3r=hround(w+4u+2letter_fit+.5hair); +y1=y3=4/9[x_height,asc_height]; top y2r=vround 8/9[x_height,asc_height]; +filldraw stroke super_arc.e(1,2) & super_arc.e(2,3); % arc +penlabels(1,2,3); endchar; + +ecchar"New tie accent"; % centered +beginchar(oct"034",9u#,asc_height#,0); +italcorr 4/9[x_height#,asc_height#]*slant+4.5u#+2letter_fit#+.5hair#; +adjust_fit(if monospace:2u#,2u# else:serif_fit#,serif_fit# fi); +pickup fine.nib; pos1(hair,180); pos2(vround 1/5[vair,stem],90); +pos3(hair,0); +lft x1r=w-rt x3r=hround(2u-.5vair); x2=.5w; +y1=y3=4/9[x_height,asc_height]; top y2r=vround 8/9[x_height,asc_height]; +filldraw stroke super_arc.e(1,2) & super_arc.e(2,3); % arc +penlabels(1,2,3); endchar; + +ecchar "Ascender height compound word mark"; +beginchar(oct"037",0,asc_height#,0); +zero_width; +endchar; + +iff not variant_g: % not italic +ecchar"Blank symbol"; % jk +beginchar(oct"040",10u#+serif_fit#,asc_height#,0); +italcorr .5x_height#*slant+min(.5curve#-u#,-.25u#); +adjust_fit(serif_fit#,0); +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; +lft x1l=hround(2.5u-.5stem'); top y1=h; +numeric edge; edge=rt x2r; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); +pos4(vair,90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); +rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l),1/3[rt x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; +rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x4,x5r]); +(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x6,x5r]); +filldraw stroke z3e{up}...pulled_arc.e(4,5)&pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); +y2=ypart(((edge,h)--(edge,0))intersectionpoint(z6l{left}...{up}z7l)); +pickup tiny.nib; filldraw stroke z1e--z0'e--z0e--z2e; % stem +pickup crisp.nib; pos8(hair,0); pos7'(stem,0); +z7'=z2; x8l=x7'l; bot y8=0; +filldraw stroke z7'e--z8e; % point +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif +put_cross(.5stem+if serifs: .9max(limit_dist,jut) else: 1.8u fi,.5stem+3u); +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +iff variant_g: % italic +ecchar"Blank symbol"; % jk +beginchar(oct"040",8u#,asc_height#,0); +italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; +adjust_fit(0,0); pickup tiny.nib; +pos1(stem,0); pos2(stem,0); x1=x2; +lft x1l=hround(1.5u-.5stem); top y1=h; y2=.5x_height; +filldraw stroke z1e--z2e; % stem +sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif +pickup fine.nib; pos2'(stem,-180); pos3(vair,-90); +pos4(curve,0); pos5(vair,90); pos0(hair,180); +z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-1.5u+.5curve); +bot y3r=-oo; top y5r=x_height+oo; y4=y2; +filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4) + & pulled_arc.e(4,5) & super_arc.e(5,0); % bowl +math_fit(-.3x_height#*slant+.5curve#-u#,ic#); +put_cross(.5stem+if serifs: .9max(limit_dist,jut) else: 1.8u fi,.5stem+3u); +penlabels(0,1,2,3,4,5); endchar; + +ecchar"Dollar sign"; % from romanp (cm) +beginchar("$",9u#,body_height#,body_height#-asc_height#); +italcorr fig_height#*slant-.5u#; % same as for digits +adjust_fit(0,0); +numeric theta; theta=90-angle(50u,asc_height); slope:=-asc_height/50u; +pickup fine.nib; pos2(slab,-90); +pos0(cap_stem,theta); pos7(slab,-90); +x2=x0=x7=.5w; top y2l=asc_height+oo; bot y7r=-oo; +y0=.52asc_height; lft x3l=hround u; rt x6r=hround(w-u); +x3r-x3l=x6r-x6l=hround .35[slab,cap_stem]-fine; +ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; +ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; +filldraw stroke super_arc.e(2,3) & z3e{down} + ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke +if serifs: pos1(hair,0); pos8(hair,180); + pos10(flare,0); pos9(flare,180); + rt x1r=hround(w-u); lft x8r=hround u; y1=.5[y0,y2]; y8=.5[y0,y7]; + {{less_tense; pos2'(slab,90); z2'=z2; bulb(2',1,10); % upper arc and bulb + bulb(7,8,9)}}; % lower arc and bulb +else: pos1(.6[slab,flare],-100); pos8(flare,-100); + rt x1l=hround(w-1.3u); lft x8r=hround .8u; + top y1l=vround .92asc_height+oo; bot y8r=vround .1asc_height-oo; + filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal + filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal +pickup crisp.nib; pos12(bar,0); pos11(bar,0); +lft x12l=lft x11l=hround(.5w-.5bar); top y12=h; bot y11=-d; +filldraw stroke z12e--z11e; % vertical crossbar +penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12); endchar; + + +ecchar "Straight single quote"; % from romsub (cm) +beginchar(oct"047",5u#,asc_height#,0); +italcorr asc_height#*slant+.5 if serifs: flare# else: stem# fi -2u#; +adjust_fit(0,0); +x1=x2=.5w; y2=max(.5[bar_height,x_height]+.5vair,h-x_height); +if serifs: pickup crisp.nib; pos1(flare,0); pos2(vair,0); + y1+.5stem=h; filldraw circ_stroke z1e--z2e; % stem and bulb +else: pickup fine.nib; pos1(stem,0); pos2(vair,0); + top y1=h; filldraw stroke z1e--z2e; fi % stem +penlabels(1,2); endchar; + +ecchar "Comma"; +beginchar(",",5u#,pdot_diam#,comma_depth#); +adjust_fit(0,0); +x1-.5pdot_diam=hround(.5w-.5pdot_diam); y1-.5pdot_diam=0; +comma(1,a,pdot_diam,.2u,comma_depth); % dot and tail +penlabels(1); endchar; + +ecchar "Double hyphen or short equals sign"; % jk +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"055",6u#,v_center(spread#+rule_thickness#)); +italcorr h#*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); +pos3(thickness,90); pos4(thickness,90); +y1=y2; y3=y4; +top y1=vround .5h+.5thickness+.5spread; +top y3=vround .5h+.5thickness-.5spread; +rt x2=hround(w-u)+eps; +if monospace: x2=w-x1 else: lft x1=hround .2u-eps fi; +x3=x1; x4=x2; +filldraw stroke z1e--z2e; % upper bar +filldraw stroke z3e--z4e; % lower bar +penlabels(1,2,3,4); endchar; + +ecchar "Period"; +beginchar(".",5u#,pdot_diam#,0); +adjust_fit(0,0); pickup fine.nib; +pos1(pdot_diam,0); pos2(pdot_diam,90); +lft x1l=hround(.5w-.5pdot_diam); bot y2l=0; z1=z2; dot(1,2); % dot +penlabels(1,2); endchar; + +ecchar "Asterisk at the axis"; % from mathsy +beginchar(oct"052",9u#,v_center(x_height#)); +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; + +ecchar "Fraction"; % from punct (cm)" 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; + +ecchar "Left angle bracket"; +beginchar(oct"074",7u#,body_height#,paren_depth#); +adjust_fit(0,0); pickup rule.nib; +rt x1=hround(w-u)+eps; x1=x3; lft x2=hround 2u-1-eps; +top y1=h+eps; .5[y1,y3]=y2=math_axis; +draw z1--z2--z3; % diagonals +labels(1,2,3); endchar; + +ecchar "Minus sign"; +beginarithchar("="); pickup extra_rule.nib; +lft x3=hround u-eps; x4=w-x3; y3=y4=math_axis; +draw z3--z4; % crossbar +labels(1,2,3,4); endchar; + +ecchar "Right angle bracket"; +beginchar(oct"076",7u#,body_height#,paren_depth#); +adjust_fit(0,0); pickup rule.nib; +rt(w-x1)=hround(w-u)+eps; x1=x3; lft(w-x2)=hround 2u-1-eps; +top y1=h+eps; .5[y1,y3]=y2=math_axis; +draw z1--z2--z3; % diagonals +labels(1,2,3); endchar; + +ecchar"Mho sign (turned Omega)"; % from lasy +beginchar(oct"115",13u#,cap_height#,0); +italcorr cap_height#*slant-.35u#; %italcorr .75cap_height#*slant-.5u#; +adjust_fit(0,0); +pickup tiny.nib; pos1(vair,-90); pos2(cap_curve,0); +pos3(vair,0); pos4(cap_curve,180); pos5(vair,180); +x1=.5w; bot y1r=0-o; lft x4r=hround u; y2=y4=1/3h; x2=w-x4; +rt x5l=hround(1/3(w+.5u)+.5hair); top y3=top y5=h; x3=w-x5; +filldraw stroke z3e{down}...{down}z2e + & pulled_super_arc.e(2,1)(.5superpull) + & pulled_super_arc.e(1,4)(.5superpull) + & z4e{up}...{up}z5e; % bowl +numeric arm_thickness; path p; p=z3{down}...{down}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,0); +top y6r=h; x6=x3; rt x7r=hround (w-.8u); y7=good.y(y6l-.5beak)+eps; +(x,y)=p intersectionpoint((0,y6l)--(w+h,y6l)); x6l:=x; +arm(6,7,a,.5beak_darkness,1.2beak_jut); % right arm and beak +pos8(arm_thickness,90); pos9(fudged.hair,180); +y8=y6; y9=y7; x8+x6=x9+x7=w; x8l:=w-x6l; +arm(8,9,b,.5beak_darkness,-1.2beak_jut); % left arm and beak +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9); endchar; + +ecchar"Big circle for copyright, etc"; +beginchar("O",20u#,body_height#,max(paren_depth#,desc_depth#)); autorounded; +adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); endchar; + +ecchar"Ohm sign (ISO 6937)"; % from greeku (cmfonts) +beginchar(oct"127",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; + +ecchar"Musical note (one eigth note)"; % jk +beginchar("n",11u#,asc_height#,0); +pickup rule.nib; +x1=3/5w; x2=x1; top y1=h; bot y2=.5bar_height; +lft x3=u; x5= x2; x4=x6=.5[x3,x5]; +y3=y5=vround(.5bar_height); y4=y6-bar_height=-oo; +x7=x1; rt x9=w-u; x8=.5[x7,x9]; +y7=y1; bot y9=vround(.5bar_height); y8=.5[y7,y9]; +draw z1--z2; % stem +filldraw z3{down}...z4{right}...z5{up}...z6{left}...cycle; % body +draw z7{down}...z8...{down}z9; % flag +endchar; + +ecchar "Left semantic bracket"; % [[ from stmaryrd +beginchar(oct"133",7.25u#,body_height#,paren_depth#); +adjust_fit(0,0); +pickup crisp.nib; pos1(rule_thickness,0); pos2(rule_thickness,0); +top y1=h; bot y2=-d; lft x1l=lft x2l=hround(2.5u-.5rule_thickness)-1-eps; +filldraw stroke z1e--z2e; % left stem +pos7(rule_thickness,0); pos8(rule_thickness,0); +top y7=h; bot y8=-d; lft x7l=lft x8l=hround(4.75u-.5rule_thickness)-1-eps; +filldraw stroke z7e--z8e; % right stem +pos3(rule_thickness,90); pos4(rule_thickness,90); +pos5(rule_thickness,90); pos6(rule_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,7,8); endchar; + + +ecchar "Right semantic bracket"; % ]] from stmaryrd +beginchar(oct"135",7.25u#,body_height#,paren_depth#); +adjust_fit(0,0); +pickup crisp.nib; pos1(rule_thickness,0); pos2(rule_thickness,0); +top y1=h; bot y2=-d; rt x1r=rt x2r=hround(w-2.5u+.5rule_thickness)+1+eps; +filldraw stroke z1e--z2e; % left stem +pos7(rule_thickness,0); pos8(rule_thickness,0); +top y7=h; bot y8=-d; rt x7r=rt x8r=hround(w-4.75u+.5rule_thickness)+1+eps; +filldraw stroke z7e--z8e; % right stem +pos3(rule_thickness,90); pos4(rule_thickness,90); +pos5(rule_thickness,90); pos6(rule_thickness,90); +x3=x5=x1l; lft x4=lft x6=ceiling(.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,7,8); endchar; + +ecchar "Upward arrow"; % from sym +beginchar(oct"136",9u#,asc_height#,asc_depth#); +italcorr .76asc_height#*slant+.5crisp#-u#; +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,0); pos2(rule_thickness,0); +pos3(rule_thickness,90); pos4(rule_thickness,90); +lft x1l=hround(.5w-.5rule_thickness); y1-.5rule_thickness=-d; +x0=x1=x2; top y0=h; x0-x3=x4-x0=if monospace:3u else:4u fi+eps; +y3=y4=y0-if monospace:.24 else:.36 fi asc_height-eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +z9=.2[.5[z3,z4],z0]; +%numeric t; path p; p=z4l{z9-z4}..z6r; +numeric t; path p; p=z4l{z9-z4}..z6l; +t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p; +filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) + --z2r---z1r..z1l---z2l--subpath (t,0) of\\(z3l{z9-z3}..z5r) + --z3r{z9-z3}..z0 & cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6,9); endchar; + +ecchar "Downward arrow"; % from sym +beginchar(oct"137",9u#,asc_height#,asc_depth#); +adjust_fit(0,0); pickup crisp.nib; +pos1(rule_thickness,0); pos2(rule_thickness,0); +pos3(rule_thickness,90); pos4(rule_thickness,90); +lft x1l=hround(.5w-.5rule_thickness); y1+.5rule_thickness=h; +x0=x1=x2; bot y0=-d; x0-x3=x4-x0=if monospace:3u else:4u fi+eps; +y3=y4=y0+if monospace:.24 else:.36 fi asc_height+eps; +pos5(rule_thickness,angle(z4-z0)); z5l=z0; +pos6(rule_thickness,angle(z3-z0)); z6l=z0; +z9=.2[.5[z3,z4],z0]; +numeric t; path p; p=z4r{z9-z4}..z6r; +%t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p; +t=xpart(p intersectiontimes((x2l,-d)--(x2l,h))); y2=ypart point t of p; +filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) + --z2r---z1r..z1l---z2l--subpath (t,0) of\\(z3r{z9-z3}..z5r) + --z3l{z9-z3}..z0 & cycle; % arrowhead and stem +penlabels(0,1,2,3,4,5,6,9); endchar; + +ecchar"Backwards tick mark"; % from accent (cmfonts, grave accent) +beginchar(oct"140",9u#,min(asc_height#,2x_height#),0); +adjust_fit(0,0); +if serifs: pickup crisp.nib; x1-.5stem=hround 2u; x2=2/3[x1,w-x1]; + y1+.5stem=h+eps; y2=max(2/3[h,x_height],x_height+o+hair); + numeric theta; theta=angle(z2-z1)+90; + pos1(stem,theta); pos2(hair,theta); + filldraw circ_stroke z1e--z2e; % diagonal +else: pickup fine.nib; pos1(stem,0); pos2(vair,0); + lft x1l=hround 1.5u; rt x2r=hround(.5w+.25u+.5vair); + top y1=h; bot y2=vround 2/3[h,x_height]; + filldraw stroke z1e--z2e; fi % diagonal +penlabels(1,2); endchar; + +ecchar "Low lying tilde (squiggle)"; +beginchar(oct"176",11u#,min(bar_height#,2/7x_height#),0); +italcorr h#*slant-u#; +adjust_fit(0,0); +if serifs: numeric theta; + theta=angle(1/8(7u if monospace: /expansion_factor fi-vair),1/4acc_height); +% theta=angle(1/6(6u-vair),1/4h); + pickup crisp.nib; numeric mid_width; mid_width=.4[vair,stem]; + pos1(vair,theta+90); pos2(vair,theta+90); + pos3(vair,theta+90); pos4(vair,theta+90); + z2-z1=z4-z3=(mid_width-crisp)*dir theta; + lft x1r=w-rt x4l=hround 1.5u; top y4r=h; + bot y1l=0; + pair delta; ypart delta=3(y3l-y1l); delta=whatever*dir theta; + filldraw z1l..controls(z1l+delta)and(z3l-delta)..z3l..z4l + --z4r..controls(z4r-delta)and(z2r+delta)..z2r..z1r--cycle; % stroke +else: pickup fine.nib; pos1(vair,180); pos2(vair,90); + pos3(.5[vair,slab],90); pos4(vair,90); pos5(vair,180); + lft x1r=w-rt x5l=hround 1.5u; x2-x1=x3-x2=x4-x3=x5-x4; + bot y1=bot y4l=0; + top y2r=top y5=h; y3=.5[y2,y4]; + filldraw stroke z1e{up}...z2e{right}..z3e..{right}z4e...{up}z5e; fi % stroke +penlabels(1,2,3,4,5); endchar; + +iff not monospace: +ecchar "Double hyphen-hyphenchar"; % jk +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"177",3u#,v_center(spread#+rule_thickness#)); +italcorr h#*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); +pos3(thickness,90); pos4(thickness,90); +y1=y2; y3=y4; +top y1=vround .5h+.5thickness+.5spread; +top y3=vround .5h+.5thickness-.5spread; +rt x2=hround(2w-u)+eps; +lft x1=hround .2u-eps; +x3=x1; x4=x2; +filldraw stroke z1e--z2e; % upper bar +filldraw stroke z3e--z4e; % lower bar +penlabels(1,2,3,4); endchar; + +iff monospace: +ecchar "Double hyphen-hyphenchar"; % jk +compute_spread(.45x_height#,.55x_height#); +beginchar(oct"177",6u#,v_center(spread#+rule_thickness#)); +italcorr h#*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); +pos3(thickness,90); pos4(thickness,90); +y1=y2; y3=y4; y1-y3=spread; .5[y1,y3]=math_axis; +rt x2=hround(w-u)+eps; +if monospace: x2=w-x1 else: lft x1=hround .2u-eps fi; +x3=x1; x4=x2; +filldraw stroke z1e--z2e; % upper bar +filldraw stroke z3e--z4e; % lower bar +penlabels(1,2,3,4); endchar; + +ecchar"Breve"; +beginchar(oct"200",11u#,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 +penlabels(1,2,3); endchar; + +ecchar "Hachek (Caron)"; +beginchar(oct"201",11u#,min(asc_height#,2x_height#),0); +h':=vround min(asc_height,2x_height); % height of circumflex being inverted +if serifs: italcorr h#*slant+.5hair#-1.75u#; + adjust_fit(0,0); + pickup crisp.nib; pos2'(.5[vair,curve],90); top y2'r=h; + pos2(.5[vair,curve],90); x2=.5w; + x1=w-x3=good.x 2.25u; top y1=top y3=h; y1-y2=.5(y2'-x_height); + pos1(hair,angle(z2-z1)+90); pos3(hair,angle(z3-z2)+90); + filldraw stroke z1e--z2e--z3e; % diagonals +else: italcorr h#*slant-.5stem#+.5vair#-.75u#; + adjust_fit(0,0); + pickup fine.nib; pos1(vair,0); pos3(vair,0); x1=w-x3; + pos2(stem,0); bot y2=vround(1/12[x_height,h']+o); x2=.5w; + top y1=top y3=h+o; lft x1l=hround(rt x2r-3.25u-.5vair); + z0=whatever[z1r,z2r]=whatever[z2l,z3l]; + y4l=y4r=y2; x4l=good.x .2[x2l,x2]; x4r=w-x4l; + filldraw z4l--z1l--z1r--z0--z3l--z3r--z4r--cycle; fi % diagonals +penlabels(0,1,2,3,4); endchar; + +ecchar"Double tick mark (inch sign)"; % from accent (hungarian long umlaut) +beginchar(oct"202",9u#,min(asc_height#,2x_height#),0); +italcorr h#*slant-u#; +adjust_fit(0,0); +x3-x1=x4-x2=hround 3u; y3=y1; y4=y2; +if serifs: pickup crisp.nib; x3+.5stem=hround(w-1.5u); x2=2.5u; + y1+.5stem=h; y2=max(2/3[h,x_height],x_height+o+hair); + numeric theta; theta=angle(z2-z1)+90; + pos1(stem,theta); pos2(hair,theta); + pos3(stem,theta); pos4(hair,theta); + filldraw circ_stroke z1e--z2e; % left diagonal + filldraw circ_stroke z3e--z4e; % right diagonal +else: pickup fine.nib; pos1(stem,0); pos2(vair,0); + pos3(stem,0); pos4(vair,0); + rt x3r=hround(w-1.5u); lft x4l=hround(.5w+u-.5vair); + top y1=h; bot y2=vround 2/3[h,x_height]; + filldraw stroke z1e--z2e; % left diagonal + filldraw stroke z3e--z4e; fi % right diagonal +penlabels(1,2,3,4); endchar; + +ecchar"Double backwards tick mark"; % jk +beginchar(oct"203",9u#,min(asc_height#,2x_height#),0); +adjust_fit(0,0); +x3-x1=x4-x2=hround 3u; y3=y1; y4=y2; +if serifs: pickup crisp.nib; x1-.5stem=hround 1.5u; x2=3.5u; + y1+.5stem=h; y2=max(2/3[h,x_height],x_height+o+hair); + numeric theta; theta=angle(z2-z1)+90; + pos1(stem,theta); pos2(hair,theta); + pos3(stem,theta); pos4(hair,theta); + filldraw circ_stroke z1e--z2e; % left diagonal + filldraw circ_stroke z3e--z4e; % right diagonal +else: pickup fine.nib; pos1(stem,0); pos2(vair,0); + pos3(stem,0); pos4(vair,0); + lft x1l=hround 1.5u; rt x2r=hround(.5w-u+.5vair); + top y1=h; bot y2=vround 2/3[h,x_height]; + filldraw stroke z1e--z2e; % left diagonal + filldraw stroke z3e--z4e; fi % right diagonal +penlabels(1,2,3,4); endchar; + + +ecchar "Dagger mark"; % from mathsy +beginchar(oct"204",8u#,asc_height#,desc_depth#); +adjust_fit(0,0); pickup fine.nib; +pos1(stem,0); pos2(thin_join,0); pos3(stem,0); pos4(hair,0); +pos5(stem,90); pos2'(thin_join,90); pos6(stem,90); z2'=z2; +x1=x2=x3=x4; x1-.5stem=hround(.5w-.5stem); center_on(x1); +x5-.5stem=hround u; x6=w-x5; +y1+.5stem=h+oo; y2=y5=y6; y3=.57y2; bot y4=-d-o; +y5+.5stem=floor(x_height+.5stem); +filldraw circ_stroke z1e{down}..z2e{down}..z3e{down}..z4e; % stem +filldraw circ_stroke z5e{right}..{right}z2'e; % left bulb +filldraw circ_stroke z6e{left}..{left}z2'e; % right bulb +penlabels(1,2,3,4,5,6); endchar; + +ecchar "Double dagger mark"; % from mathsy +beginchar(oct"205",8u#,asc_height#,desc_depth#); +adjust_fit(0,0); pickup fine.nib; +pos1(stem,0); pos2(thin_join,0); pos3(stem,0); +pos4(stem,90); pos2'(thin_join,90); pos5(stem,90); z2'=z2; +x1=x2=x3; x1-.5stem=hround(.5w-.5stem); center_on(x1); +x4-.5stem=hround u; x5=w-x4; +y1+.5stem=h+oo; y2=y4=y5=.5[y1,y3]; y3-.5stem=ceiling(.5[-d,h]); +filldraw circ_stroke z1e{down}..{down}z2e; % top stem +filldraw circ_stroke z3e{up}..{up}z2e; % upper middle stem +filldraw circ_stroke z4e{right}..{right}z2'e; % top left bulb +filldraw circ_stroke z5e{left}..{left}z2'e; % top right bulb +pos6(stem,0); pos7(thin_join,0); pos8(stem,0); +pos9(stem,90); pos7'(thin_join,90); pos0(stem,90); z7'=z7; +x6=x7=x8=x1; x9=x4; x0=x5; +y6=y3-stem-1; y7=y9=y0=.5[y6,y8]; y8-.5stem=-d-oo; +filldraw circ_stroke z6e{down}..{down}z7e; % lower middle stem +filldraw circ_stroke z8e{up}..{up}z7e; % bottom stem +filldraw circ_stroke z9e{right}..{right}z7'e; % bottom left bulb +filldraw circ_stroke z0e{left}..{left}z7'e; % bottom right bulb +penlabels(1,2,3,4,5,6,7,8,9,0); endchar; + +ecchar "Double vertical line (norm or cardinality)"; % from mathsy +% Change (jk): Made the two lines as close as in \P +beginchar(oct"206",9u#,body_height#,paren_depth#); +adjust_fit(0,0); pickup rule.nib; +x1=x2; top y1=h; .5[y1,y2]=math_axis; +x3=x4=w-x1; y3=y1; y4=y2; +x3-x1=ceiling(rule_thickness+1.25u); +draw z1--z2; draw z3--z4; % stems +labels(1,2,3,4); endchar; + +ecchar "Per mill sign"; % by Emma Pease +beginchar(oct"207",15u#+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(.5(w-6u)-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-7u); lft x6r=hround(.5(w-6u)+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 bowl +% +pos13(vair,90); pos14(left_curve,180); pos15(vair,270); +pos16(right_curve,360); +bot y15r=-d; rt x16r=hround(w-u); lft x14r=hround(.5(w-6u)+1.5u+6u); +top y13r=vround(if monospace: .3 else: .5 fi\\ asc_height); +x13=x15=.5[x14,x16]; y14=y16=.5[y13,y15]; +filldraw stroke pulled_super_arc.e(13,14)(superpull) + & pulled_super_arc.e(14,15)(superpull); % left half of lower bowl +filldraw stroke super_arc.e(15,16) & super_arc.e(16,13); % right half of lower bowl +% +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-6u-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,13,14,15,16); endchar; + +ecchar "Bullet"; % from mathsy +beginchar(oct"210",9u#,v_center(7u#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h; y2=math_axis; circle_points; +filldraw z8{right}...z1{z2-z8}...z2{down}...z3{z4-z2}...z4{left} + ...z5{z6-z4}...z6{up}...z7{z8-z6}...cycle; % circle and interior +labels(1,2,3,4,5,6,7,8); endchar; + +ecchar"Centigrade sign"; +if serifs: beginchar(oct"211",13u#,cap_height#,0); + italcorr cap_height#*slant-.5u#; + adjust_fit(4u#,0); + pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90); + pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360); + rt x1r=rt x5r=hround(w-u); lft x3r=hround u; x2=x4=.55[x3,x1]; + top y2r=h+o; bot y4r=-o; y3=.5[y2,y4]; + bot y1=min(vround max(.6h,x_height-.5vair),bot y2l-eps); + y5=max(good.y .95(h-y1),y4l+eps); + (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u); + (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u); + filldraw stroke z1e{x2-x1,10(y2-y1)} + ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc + pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=h+o; + x1r-x1'=2cap_curve-fine; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left}; + numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1')); + filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb +else: beginchar(oct"211",11.5u#,cap_height#,0); + italcorr cap_height#*slant-.5u#; + adjust_fit(4u#,0); + pickup fine.nib; pos1(1.2flare,80); pos2(slab,90); + pos3(cap_curve,180); pos4(slab,270); pos5(flare,275); + rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u; + lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u); + top y1r=vround .95h+o; top y2r=h+o; y3=.5h; + bot y4r=-o; bot y5r=vround .08h-o; y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,right,.8,4); fi % arc and terminals +penlabels(1,1',2,3,4,5,6); +clearxy; +pickup rule.nib; autorounded; +lft x6=-4u; rt x2=0; top y8=h; y8-y2=x2-x8; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); +math_fit(-.3cap_height#*slant-.5u#,.5ic#); +endchar; + +ecchar "Oldstyle dollar sign"; % based on romanp (cm) +beginchar(oct"212",11u#,body_height#,body_height#-asc_height#); +italcorr fig_height#*slant-.5u#; % same as for digits +adjust_fit(0,0); +numeric theta; theta=90-angle(50u,asc_height); slope:=-asc_height/50u; +pickup fine.nib; pos2(slab,-90); +pos0(cap_stem,theta); pos7(slab,-90); +x2=x0=x7=.5w; top y2l=asc_height+oo; bot y7r=-oo; +y0=.52asc_height; lft x3l=hround u; rt x6r=hround(w-u); +x3r-x3l=x6r-x6l=hround .35[slab,cap_stem]-fine; +ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; +ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; +filldraw stroke super_arc.e(2,3) & z3e{down} + ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke +if serifs: pos1(hair,0); pos8(hair,180); + pos10(flare,0); pos9(flare,180); + rt x1r=hround(w-u); lft x8r=hround u; y1=.5[y0,y2]; y8=.5[y0,y7]; + {{less_tense; pos2'(slab,90); z2'=z2; bulb(2',1,10); % upper arc and bulb + bulb(7,8,9)}}; % lower arc and bulb +else: pos1(.6[slab,flare],-100); pos8(flare,-100); + rt x1l=hround(w-1.3u); lft x8r=hround .8u; + top y1l=vround .92asc_height+oo; bot y8r=vround .1asc_height-oo; + filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal + filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal +pickup crisp.nib; pos12(bar,0); pos11(bar,0); pos13(bar,0); pos14(bar,0); +x11=x12; x13=x14=w-x11; x13-x11=ceiling(rule_thickness+1.25u); +top y12=top y14=h; bot y11=bot y13=-d; +filldraw stroke z12e--z11e; % left vertical crossbar +filldraw stroke z14e--z13e; %right vertical crossbar +penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14); endchar; + +ecchar "Oldstyle cent sign"; % jk, based on cm `c' +beginchar(oct"213",9u#,x_height#+.5desc_depth#,.5desc_depth#); +italcorr x_height#*slant-.2u#; +adjust_fit(0,0); +pickup fine.nib; pos2(vair',90); pos4(vair',270); +x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo; +pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height; +if serifs: pos1(hair,0); pos0(flare,0); + y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,x_height]-.5flare); + rt x1r=hround(w-.7u); bulb(2,1,0); % bulb + pos5(hair,0); rt x5r=hround(w-.5u); + y5=max(good.y(.5bar_height-.9),y4l+vair'); + (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) + ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal +else: pos1(4/7[vair',flare],80); + rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2,1,right,.8,4); % upper terminal + pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; + if angle direction 1 of p.e>75: + p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal +pickup crisp.nib; +x7=x3; x6=w-x7; y6=h; y7=-d; +numeric theta; theta=angle(z7-z6)-90; +pos6(vair,theta); pos7(vair,theta); +filldraw stroke z6e--z7e; % diagonal +penlabels(0,1,2,3,4,5,6,7); endchar; + +iff variant_g: % I use this as marker for italic fonts +ecchar "Italic florin sign (italic letter f)"; % from itall (cm) +beginchar(oct"214",max(1.5u#,stem#)+max(3.5u#,2flare#), + asc_height#,desc_depth#); +italcorr asc_height#*slant+.75u#; +adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib; +numeric theta; z88=(.5w-.5u,h); z89=(.5w+.5u,-d); theta=angle(z88-z89); +pos0(flare,0); pos1(hair,0); pos2(vair,90); +pos3(.5[hair,stem],180); pos4(stem,theta+90); +pos5(stem,theta-90); pos6(.5[hair,stem],0); +pos7(vair,-90); pos8(hair,-180); pos9(flare,-180); +rt x1r=hround(w+.25u); lft x8r=hround-.35u; x2=.6[x1,x4]; x7=.6[x8,x5]; +y9-.5flare=vround -.85d; y2-y0=y9-y7; top y2r=h+oo; bot y7r=-d-oo; +y4=.25[x_height,h]; y5=.5[-d,y4]; +z4=whatever[z88,z89]; z5=whatever[z88,z89]; +x3=.8[x2+x4-x88,x88]; x6=.8[x7+x5-x89,x89]; y3=.8[y4,y2]; y6=.8[y5,y7]; +bulb(2,1,0); bulb(7,8,9); % bulbs +filldraw stroke z2e{left}...z3e...{z89-z88}z4e; % upper arc +filldraw z4r--z5l--z5r--z4l--cycle; % stem +filldraw stroke z5e{z89-z88}...z6e...{left}z7e; % lower arc +pickup crisp.nib; pos20(bar,90); pos21(bar,90); +top y20r=top y21r=x_height; +lft x20=lft x4r-.5stem-u; rt x21=rt x4l+.5stem+1.5u; +filldraw stroke z20e--z21e; % crossbar +math_fit(desc_depth#*slant+u#,x_height#*slant); +penlabels(0,1,2,3,4,5,6,7,8,9,20,21,88,89); endchar; + + +iff not variant_g: +ecchar "Florin sign (The letter f)"; % from romanl (cm) +beginchar(oct"214",5.5u#,asc_height#,0); +italcorr asc_height#*slant+if serifs:flare#-.25u# else: 1.25u# fi; +adjust_fit(stem_shift#,if monospace: .5u# else:-stem_shift# fi); +pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); +pickup fine.nib; numeric bulb_diam; +if serifs: bulb_diam=hround .8[stem,flare]; + pos2(bulb_diam,0); y2+.5bulb_diam=.9[x_height,h+oo]; + if monospace: rt x2r=hround(w-.5u)+1 else: lft x2l=hround(w-.75u+.5) fi; +else: pos2(5/7[vair,flare],90); top y2r=h; + rt x2=hround(if monospace:w-.5u else:w+.75u fi); fi +f_stroke(1,2,a,b,c,jut,if not monospace:1.25fi\\ jut); % stem, terminal, serif +pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; +pos3(bar,90); pos4(bar,90); +rt x4=hround(w-if monospace:.75u+1 else:1/3u fi); +filldraw stroke z3e--z4e; % bar +penlabels(1,2,3,4); endchar; + +ecchar"Colon sign or Cedi sign"; % Panamese or Ghanese currency +if serifs: beginchar(oct"215",13u#,body_height#,body_height#-asc_height#); + italcorr cap_height#*slant-.5u#; + adjust_fit(0,0); + pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90); + pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360); + rt x1r=rt x5r=hround(w-u); lft x3r=hround u; x2=x4=.55[x3,x1]; + numeric hh; hh=cap_height; + top y2r=hh+o; bot y4r=-o; y3=.5[y2,y4]; + bot y1=min(vround max(.6hh,x_height-.5vair),bot y2l-eps); + y5=max(good.y .95(hh-y1),y4l+eps); + (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u); + (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u); + filldraw stroke z1e{x2-x1,10(y2-y1)} + ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc + pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=hh+o; + x1r-x1'=2cap_curve-fine; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left}; + numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1')); + filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb + pickup crisp.nib; pos12(bar,0); pos11(bar,0); + lft x12l=lft x11l=hround(x2-.5bar); top y12=h; bot y11=-d; + filldraw stroke z12e--z11e; % vertical crossbar +else: beginchar(oct"215",11.5u#,body_height#,body_height#-asc_height#); + italcorr cap_height#*slant-.5u#; + adjust_fit(0,0); + pickup fine.nib; pos1(1.2flare,80); pos2(slab,90); + pos3(cap_curve,180); pos4(slab,270); pos5(flare,275); + rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u; + lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u); + numeric hh; hh=cap_height; + top y1r=vround .95hh+o; top y2r=hh+o; y3=.5hh; + bot y4r=-o; bot y5r=vround .08hh-o; y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,right,.8,4); % arc and terminals + pickup crisp.nib; pos12(bar,0); pos11(bar,0); + lft x12l=lft x11l=hround(x2-.5bar); top y12=h; bot y11=-d; + filldraw stroke z12e--z11e; % vertical crossbar +fi +math_fit(-.3cap_height#*slant-.5u#,.5ic#); +penlabels(1,1',2,3,4,5,6,11,12); endchar; + +ecchar"Won sign"; % Korean currency +beginchar(oct"216",18u#,cap_height#,0); +italcorr cap_height#*slant+.25u#; +adjust_fit(cap_serif_fit#,cap_serif_fit#); +numeric stem[],outer_jut,upper_notch,alpha,mid_corr; +outer_jut=.7cap_jut; x1l=w-x8r=l+letter_fit+outer_jut+.25u; +stem1=fudged.cap_stem-stem_corr; +stem4=min(fudged.hair if hefty:-2stem_corr fi,stem1); +stem2=stem4 if hefty:-2stem_corr fi; +stem3=stem1 if hefty:-2stem_corr fi; +x2-x1=x4-x3=x6-x5=x8-x7; x2l+apex_corr=x3l; x6l+apex_corr=x7l; +y1=y8=h; y2=y3=y6=y7=-apex_o; y4=y5=if monospace: vround .6 fi\\ h; +mid_corr=if monospace or hefty:-apex_corr else: 1/3jut fi; +alpha=diag_ratio(4,stem2-stem3+stem4,y1-y2,x8r-x1l+mid_corr-2apex_corr); +penpos1(alpha*stem1,0); penpos2(alpha*stem1,0); +penpos3(alpha*stem2,0); penpos4(alpha*stem2,0); +penpos5(alpha*stem3,0); penpos6(alpha*stem3,0); +penpos7(alpha*stem4,0); penpos8(alpha*stem4,0); +x4l-x1l=floor(x4l-x1l+.5(x5r+mid_corr-x4r)); % |x5r+mid_corr| $\approx$ |x4r| +z23=whatever[z1r,z2r]=whatever[z3l,z4l]; +z45=whatever[z3r,z4r]=whatever[z5l,z6l]; +z67=whatever[z5r,z6r]=whatever[z7l,z8l]; upper_notch=y4-cap_notch_cut; +fill diag_end(1l,2l,1,1,3r,4r){z4-z3} + ...if y45<upper_notch:(x45,upper_notch)+.5left{up} + --(x45,upper_notch)+.5right{down} else: z45&z45 fi + ...{z6-z5}diag_end(5l,6l,1,1,7r,8r)--diag_end(7r,8r,1,1,8l,7l){z7-z8} + ...if y67>cap_notch_cut:(x67,cap_notch_cut)+.5right{down} + --(x67,cap_notch_cut)+.5left{up} else: z67&z67 fi + ...{z5-z6}special_diag_end(6,5,4,3){z3-z4} + ...if y23>cap_notch_cut:(x23,cap_notch_cut)+.5right{down} + --(x23,cap_notch_cut)+.5left{up} else: z23&z23 fi + ...{z1-z2}diag_end(2r,1r,1,1,1l,2l)--cycle; % diagonals +if serifs: numeric inner_jut[]; pickup tiny.nib; + prime_points_inside(1,2); prime_points_inside(5,6); +prime_points_inside(8,7); + if monospace: inner_jut1=inner_jut4=1.5cap_jut; + elseif hefty: inner_jut1=inner_jut4=cap_jut; + else: fill diag_end(6r,5r,1,1,5l,6l) + --.5[z5l,z6l]--.5[z5r,z6r]--cycle; % middle stem + inner_jut2=.7inner_jut1; inner_jut4=1.1inner_jut3; + if rt x1'r+cap_jut+.5u+1<=lft x5'l-.7cap_jut: inner_jut1=cap_jut; + else: rt x1'r+inner_jut1+.5u+1=lft x5'l-inner_jut2; fi + if rt x5'r+cap_jut+.5u+1<=lft x8'l-1.1cap_jut: inner_jut3=cap_jut; + else: rt x5'r+inner_jut3+.5u+1=lft x8'l-inner_jut4; fi + dish_serif(5',6,e,1/3,inner_jut2,f,1/2,inner_jut3); fi % middle serif + dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut1); % left serif + dish_serif(8',7,c,.6,inner_jut4,d,1/2,outer_jut)(dark); fi % right serif +pickup extra_rule.nib; +x9=x11=x1l; x10=x12=x8r; y9=y10; +top y9=bar_height; y11=y12; draw z9--z10; +y11-y9=spread; draw z11--z12; % crossing bars +math_fit(.75u#-cap_height#*slant,ic#-2.5u#); +penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,23,45,67); endchar; + +ecchar"Naira sign"; % Nigerian currency +beginchar(oct"217",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#+.25u#,cap_serif_fit#+.25u#); +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 +pickup extra_rule.nib; +x8=x10=0; x9=x11=w; y10=y11; +top y8=bar_height; y8=y9; draw z8--z9; +y10-y8=spread; draw z10--z11; % crossing bars +math_fit(0,max(.5ic#-.5u#,0)); +penlabels(1,1',2,3,4,4',5,6,7,8,9,10,11); endchar; + +ecchar"Guarani sign"; % Currency of Paraguay +if serifs: beginchar(oct"220",14u#,body_height#,body_height#-asc_height#); + italcorr cap_height#*slant-1.5u#-.5cap_serif_fit#; + adjust_fit(0,.5cap_serif_fit#); + numeric hh; hh=cap_height; + pickup tiny.nib; pos0(cap_stem,0); pos7(cap_stem,0); + rt x0r=hround(w-2u); y0=good.y(.1[bar_height,x_height]+1); x7=x0; + pickup fine.nib; + if hefty: bot y7=0; pos5(cap_stem,0); x5=x0; top y5=tiny.top y0; + else: pos5(cap_hair,0); pos8(cap_stem,0); + y7=.5bar_height; z5l=z8l; z8=z7; x9=x8r; bot y9=0; + filldraw z8l{down}..{4(x9-x8),y9-y8}z9--z8r--cycle; fi % spur + pos1(cap_hair,0); pos2(cap_band,90); + pos3(cap_curve,180); pos4(cap_band,270); + rt x1r=hround(w-2u); lft x3r=hround u; x2=x4=.55[x3,x1]; + top y2r=hh+o; bot y4r=-o; y3=.5[y2,y4]; + bot y1=min(vround max(.6hh,x_height-.5vair),bot y2l-eps); + (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u); + (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u); + filldraw stroke z1e{x2-x1,10(y2-y1)} + ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...z5e{up}; % arc + pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=hh+o; + x1r-x1'=2cap_curve-fine; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left}; + numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1')); + filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb + pickup tiny.nib; filldraw stroke z0e--z7e; % stem + dish_serif(0,7,a,1/3,max(cap_jut,2.25u),b,1/3,1.25u); % serif + pickup crisp.nib; pos12(bar,0); pos11(bar,0); + lft x12l=lft x11l=hround(x2-.5bar); top y12=h; bot y11=-d; + filldraw stroke z12e--z11e; % vertical crossbar + math_fit(-.3cap_height#*slant-.5u#,ic#); +else: beginchar(oct"220",14u#,body_height#,body_height#-asc_height#); + italcorr cap_height#*slant-.5u#; + adjust_fit(0,0); + numeric hh; hh=cap_height; + pickup fine.nib; pos1(1.2flare,80); pos2(slab,90); + pos3(cap_curve,180); pos4(slab,270); pos5(flare,270); + rt x1r=hround(w-1.35u); x2=x4=.5w+u; + lft x3r=hround max(u,2u-.5cap_curve); rt x5l=hround(w-1.2u); + top y1r=vround .93hh+o; top y2r=hh+o; y3=.5hh; + bot y4r=-o; bot y5r=vround .07hh-o; + filldraw stroke rterm.e(2,1,right,.9,4)&super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,right,1,4); % arc and terminals + pos0(stem,0); pos7(stem,0); + z7r=z5r; x0=x7; top y0=1+vround .35[bar_height,x_height]; + filldraw stroke z0e--z7e; % stem + pos8(cap_bar,90); pos9(cap_bar,90); + z0r=z9r; y8=y9; lft x8=hround x4; + filldraw stroke z8e--z9e; % bar + pickup crisp.nib; pos12(bar,0); pos11(bar,0); + lft x12l=lft x11l=hround(x2-.5bar); top y12=h; bot y11=-d; + filldraw stroke z12e--z11e; % vertical crossbar + math_fit(-.3cap_height#*slant-.5u#,.5ic#); fi +penlabels(0,1,1',2,3,4,5,6,7,8,9,11,12); endchar; + +ecchar"Peso sign"; +beginchar(oct"221",12u#,cap_height#,0); +italcorr .75cap_height#*slant-.5u#; +adjust_fit(cap_serif_fit#+.25u#,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: nodish_serif(1,0,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + dish_serif(2,0',c,1/3,cap_jut,d,1/3,cap_jut); fi % lower serif +pickup extra_rule.nib; +x8=0; x9=.5[x1r,x5r]; top y8=bar_height; y8=y9; draw z8--z9; +math_fit(0,ic#-2.5u#); penlabels(0,1,2,3,4,5,6,7); labels(8,9); +endchar; + +ecchar "Lira sign"; % +compute_spread(.35x_height#,.45x_height#); +beginchar(oct"222",12u#,asc_height#,0); +adjust_fit(0,.75asc_height#*slant-.5u#); pickup fine.nib; +pos0(flare,0); pos1(hair,0); pos2(vair,90); pos3(stem,180); +pos4(stem,180); pos4'(stem,0); pos5(vair,-90); z4'=z4; +x2=2/3w-.5u; rt x3l=rt x4l=hround(.5w-u+.5stem); x5=2.5u; +y1=y3=.75h; top y2=h+oo; y4=.25h; bot y5r=-oo; +rt x1r=hround(w-1.5u); bulb(2,1,0); % bulb +filldraw stroke pulled_arc.e(2,3)..z4e; % stem +numeric light_stem; light_stem=2/3[vair,vstem]; +pos6(.5[hair,light_stem],-180); pos7(light_stem,-300); +pos8(light_stem,-300); pos9(hair,-180); +lft x6r=hround u; x7=3u; x8=w-3.5u; rt x9l=hround(w-u); +y6=.4[y5,y7]; top y7r=vround .2h; bot y8l=-oo; y9=good.y .2h; +filldraw stroke pulled_arc.e(4',5)...z6e{up}...z7e{right} + ..{right}z8e...{up}z9e; % loop and arm +pickup extra_rule.nib; +x10=3u; x11=w-4.5u; x12=3u; x13=w-4.5u; +top y12=bar_height; +y11=y10; y13=y12; y10-y12=spread; +draw z10--z11; % upper bar +draw z12--z13; % lower bar +penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; + +ecchar"Recipe sign"; +beginchar(oct"223",if serifs: 12u#+.5max(2u#,cap_curve#) + else:12.5u#-.5width_adj# fi,cap_height#,0); +italcorr .75cap_height#*slant- if serifs: 1.75 else: .5 fi\\ u#; +adjust_fit(cap_serif_fit#,0); +pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); +lft x1l=lft x2l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0; +filldraw stroke z1e--z2e; % stem +penpos3(cap_band,90); penpos4(cap_band,90); +penpos5(cap_curve if hefty:-3stem_corr fi,0); +penpos6(vair,-90); penpos7(vair,-90); +z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7; +x7=x2; y7l=vround(.5h+.5vair); x4=x6; +if serifs: x4=.5w-.5u; x5r=hround(w-2.25u); +else: x4=.5w+.5u; x5r=hround(w-u); fi +x4l:=x6l:=x4-.125cap_curve; +fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe +if serifs: pos6'(vair,-90); pos0(cap_stem,180); + pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0); + z6'=z6; lft x0r=lft x8r=hround(x5-2/3u-.5cap_curve); + y8=1/3[y2,y7]; y0=3/5[y2,y7]; x9=.5[x8l,x10r]; + bot y9r=-o; rt x10r=hround(w-.05u); y10=1/4[y2,y7]; + filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up}; % tail + nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); % lower serif +else: penpos8(cap_stem-2stem_corr,0); penpos9(cap_stem,0); + x8=x6+.5u; y8=y6; x9r=hround(w-.5u); y9=0; + fill z8l--diag_end(8l,9l,.5,1,9r,8r)--z8r--cycle; fi % tail +x1:=x8; +put_cross(.5cap_stem+if serifs: .9max(limit_dist,cap_jut) else: .8u fi, + .5cap_stem+if serifs: 3u else: 4u fi); +math_fit(0,.75ic#); penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +iff not variant_g: % not italic +ecchar"Interrobang"; +beginchar(oct"224",8.5u#,asc_height#,0); +italcorr .8asc_height#*slant; +adjust_fit(0,0); +pickup tiny.nib; pos7(dot_size,0); pos8(dot_size,90); +lft x7l=hround(.5w-.25u-.5dot_size); bot y8l=0; z7=z8; % dot(7,8); % dot +numeric bot_width; +bot_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi; +pickup fine.nib; pos2(vair,90); pos3(curve,0); +pos4(vair,-90); pos5(bot_width,0); pos6(bot_width,0); +x2=x4=x5=x6=x7; rt x3r=hround(w-u); bot y6=1+.25[top y8r,x_height]; +top y2r=hround .9h+oo; y3=.75[y6,y2]; y4=.5[y6,y2]; y5=.1[y6,y2]; +{{interim superness:=more_super; +filldraw stroke pulled_super_arc.e(2,3)(superpull) + & subpath (0,1) of super_arc.e(3,4) .. z5e---z6e\\}}; % arc and stem +if serifs: pos1(hair,180); pos0(flare,180); + lft x1r=hround u; y1=y3; bulb(2,1,0); % bulb +else: pos1(Vround 5/7[vair,flare],110); + lft x1r=hround u; top y1r=vround .9[y6,top y2r]; + filldraw stroke term.e(2,1,left,1,4); fi % terminal +penlabels(0,1,2,3,4,5,6,7,8); +clearxy; +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; + +iff not variant_g: % not italic +ecchar"Gnaborretni"; +beginchar(oct"225",8.5u#,asc_height#-desc_depth#,desc_depth#); +adjust_fit(0,0); +pickup tiny.nib; pos7(dot_size,0); pos8(dot_size,90); +lft x7l=hround(.5w-.25u-.5dot_size); top y8r=h; z7=z8; % dot(7,8); % dot +numeric top_width; +top_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi; +pickup fine.nib; pos2(vair,270); pos3(curve,180); +pos4(vair,90); pos5(top_width,180); pos6(top_width,180); +x2=x4=x5=x6=x7; lft x3r=hround u; top y6=.25[bot y8l,h-x_height]-1; +bot y2r=hround .1asc_height-d-oo; y3=.75[y6,y2]; y4=.5[y6,y2]; y5=.1[y6,y2]; +{{interim superness:=more_super; +filldraw stroke pulled_super_arc.e(2,3)(superpull) + & subpath (0,1) of super_arc.e(3,4) .. z5e---z6e\\}}; % arc and stem +if serifs: pos1(hair,0); pos0(flare,0); + rt x1r=hround(w-u); y1=y3; bulb(2,1,0); % bulb +else: pos1(Vround 5/7[vair,flare],-70); + rt x1r=hround(w-u); bot y1r=vround .9[y6,bot y2r]; + filldraw stroke term.e(2,1,right,1,4); fi % terminal +penlabels(0,1,2,3,4,5,6,7,8); +clearxy; +pickup tiny.nib; pos3(dot_size,0); pos4(dot_size,90); +lft x3l=hround(.5w-.5dot_size); top y4r=h; z3=z4; dot(3,4); % dot +numeric top_width; +top_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi; +pickup fine.nib; pos1(dot_size,0); pos2(top_width,0); +x1=x2=x3; top y2=.25[bot y4l,h-x_height]-1; +if square_dots: bot y1=-d; + filldraw stroke z1e--z2e; % stem +else: bot z0=(x1,-d-o); y1-.5dot_size=-d-o; + filldraw z1l...z0...z1r---z2r--z2l---cycle; fi % stem and bulb +penlabels(0,1,2,3,4); endchar; + +iff variant_g: % italic +ecchar"Interrobang"; +beginchar(oct"224",9u#,asc_height#,0); +italcorr asc_height#*slant-u#; +adjust_fit(0,0); +adjust_fit(0,0); pickup tiny.nib; pos10(dot_size,0); pos11(dot_size,90); +lft x10l=hround(.5w-.5dot_size); bot y11l=0; z10=z11; % dot(10,11); % dot +pickup fine.nib; pos1(flare,180); pos2(hair,180); pos3(vair,90); +lft x1r=hround u; x3=.5w; +y1-.5flare=x_height; top y3r=hround .9h+o; bulb(3,2,1); % bulb +pos8(vair,-90); x8=.5w; bot y8r=.25[top y11r,x_height]+1; +numeric theta; theta=90+angle(10u,y3-y8); slope:=(y3-y8)/10u; +pos3'(vair,-90); z3'=z3; pos0(vstem,theta); x0=x3; y0=1/3[y8,y3]; +rt x4l=hround(w-1.5u); lft x7r=hround 1/3w; +x4l-x4r=x7l-x7r=hround .5[vair,vstem]-fine; +ellipse_set(3'l,4l,5l,0l); ellipse_set(3'r,4r,5r,0r); y4=y4r; +ellipse_set(8l,7l,6l,0l); ellipse_set(8r,7r,6r,0r); y7=y7r; +pos9(hair,0); rt x9r=hround(2/3w+.5hair); y9=good.y .5[y8,y0]; +filldraw stroke super_arc.e(3',4) & z4e{down} + ..z5e---z6e..z7e{down} & super_arc.e(7,8)...{up}z9e; % main stroke +penlabels(0,1,2,3,4,5,6,7,8,9,10,11); +clearxy; +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; + +iff variant_g: % italic +ecchar"Gnaborretni"; +beginchar(oct"225",9u#,asc_height#-desc_depth#,desc_depth#); +adjust_fit(0,0); +pickup tiny.nib; pos10(dot_size,0); pos11(dot_size,90); +lft x10l=hround(.5w-.5dot_size); top y11r=h; z10=z11; % dot(10,11); % dot +pickup fine.nib; pos1(flare,0); pos2(hair,0); pos3(vair,-90); +rt x1r=hround(w-u); x3=.5w; y1+.5flare=asc_height-x_height-d; +bot y3r=hround .1asc_height-d-o; bulb(3,2,1); % bulb +pos8(vair,90); x8=.5w; top y8r=.25[bot y11l,y1+.5flare]-1; +numeric theta; theta=angle(10u,y8-y3)-90; slope:=(y8-y3)/10u; +pos3'(vair,90); z3'=z3; pos0(vstem,theta); x0=x3; y0=1/3[y8,y3]; +lft x4l=hround 1.5u; rt x7r=hround 2/3w; +x4r-x4l=x7r-x7l=hround .5[vair,vstem]-fine; +ellipse_set(3'l,4l,5l,0l); ellipse_set(3'r,4r,5r,0r); y4=y4r; +ellipse_set(8l,7l,6l,0l); ellipse_set(8r,7r,6r,0r); y7=y7r; +pos9(hair,180); lft x9r=hround(1/3w-.5hair); y9=good.y .5[y8,y0]; +filldraw stroke super_arc.e(3',4) & z4e{up} + ..z5e---z6e..z7e{up} & super_arc.e(7,8)...{down}z9e; % main stroke +penlabels(0,1,2,3,4,5,6,7,8,9,10,11); +clearxy; +pickup tiny.nib; pos3(dot_size,0); pos4(dot_size,90); +lft x3l=hround(.5w-.5dot_size); top y4r=h; z3=z4; dot(3,4); % dot +numeric top_width; +top_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi; +pickup fine.nib; pos1(dot_size,0); pos2(top_width,0); +x1=x2=x3; top y2=.25[bot y4l,h-x_height]-1; +if square_dots: bot y1=-d; + filldraw stroke z1e--z2e; % stem +else: bot z0=(x1,-d-o); y1-.5dot_size=-d-o; + filldraw z1l...z0...z1r---z2r--z2l---cycle; fi % stem and bulb +penlabels(0,1,2,3,4); endchar; + +iff not variant_g: % not italic +ecchar"Dong sign"; % Vietnamese currency +beginchar(oct"226",10u#+serif_fit#,body_height#,0); +italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(0,serif_fit#); +numeric hh; hh=asc_height; +pickup tiny.nib; pos1(stem',0); pos2(stem,0); +pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; +rt x1r=hround(w-2.5u+.5stem'); top y1=hh; +numeric edge; edge=lft x2l; +pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); +pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); +lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); +y3=1/8[bar_height,x_height]; +x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo if monospace: -hair fi; +lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height if monospace: -.5hair fi; +x6l=x4l-.2u; bot y6r=-oo; +x7=x3; y7=min(y3,y6+y4-y3+.6vair); +(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); +(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); +filldraw stroke z3e{up}...pulled_arc.e(4,5) + & pulled_arc.e(5,6)...{up}z7e; % bowl +y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); +pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; +filldraw stroke z1e--z0'e--z0e--z2e; % stem +if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif + sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif +% + pos8(bar,90); pos9(bar,90); + x8=.5[x4,x5]; + if serifs: x9=x2r+jut; else: x9=w; fi + if serifs: y8=y9=.5[y.a2-.5slab,y4+.5vair]; + else: y8=y9=.5[x_height,asc_height-serif_drop]; fi + filldraw stroke z8e--z9e; +currentpicture:=currentpicture shifted (0,body_height-asc_height); +pickup rule.nib; +x10=x5; x11=x9; top y10=0; y10=y11; +draw z10--z11; +penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; + +iff variant_g: %italic +ecchar"Italic Dong sign"; % Vietnamese currency +beginchar(oct"226",9u#,body_height#,0); +italcorr max(1/3x_height#*slant+.5hair#+.5u#, + h#*slant+.5stem#-2u#) if math_fitting:-.5u# fi; +adjust_fit(0,0); pickup fine.nib; +pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); +x0=x4; x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); +x4+.5stem=hround(w-2.5u+.5stem); +top y1r=x_height+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=x0; x7=w; hook_out(5,6,7); % closing hook +pickup tiny.nib; pos5'(stem,0); pos4(stem,0); +z5'=z5; top y4=h; filldraw stroke z4e--z5'e; % stem +sloped_serif.l(4,5',a,1/3,jut,serif_drop); % serif +math_fit(-.3x_height#*slant+.5curve#-u#,ic#); +% the bar + pos8(bar,90); pos9(bar,90); + x8=x1; % .5[x1,x4]; + x9=x6; + y8=y9=.5[y.a2-.5slab,y1+.5vair]; + filldraw stroke z8e--z9e; +currentpicture:=currentpicture shifted (0,body_height-asc_height); +pickup rule.nib; +x10=x2; x11=x9; top y10=0; y10=y11; +draw z10--z11; +penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; + +ecchar"Trademark"; % jk, design based on logo font +beginchar(oct"227",12u#,body_height#,0); +italcorr .7body_height#; +adjust_fit(0,0); +numeric ww, hh; ww=.5w; hh=vround .5body_height; +pickup pencircle xscaled hair yscaled vair; +lft x1=-eps; x2=ww-x1; x3=x4=.5ww; +y1=y2=y3; top y1=hh; bot y4=-o; +draw z1--z2; draw z3--z4; +labels(1,2,3,4); +clearxy; +x1=x2=hround(ww+u); x4=x5=hround(w-u); x3=hround .5[x1,x4]; +y1=y5; y2=y4; bot y1=-o; +top y2=hh+o; y3=vround (y1+.5bar_height); +draw z1--z2--z3--z4--z5; +labels(1,2,3,4,5); +currentpicture:=currentpicture shifted (0,hh); +endchar; + +ecchar"Per ten thousand sign"; % Yannis, Unicode Computer Modern +beginchar(oct"230",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, + 2*(.5*(9u#+max(6u#,2fudge*(hair#+stem#))) + -2.5u#+5/6[fudged.hair#,fudged.stem#])); +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]; +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 bowl +hihi:=(.5*(9u#+max(6u#,2fudge*(hair#+stem#))) + -2.5u#+5/6[fudged.hair#,fudged.stem#]) +if monospace: *expansion_factor fi *hppp; +picture petit_zero; petit_zero := currentpicture; +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 +pickup fine.nib; +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 +addto currentpicture also (petit_zero shifted (hihi,0)); +addto currentpicture also (petit_zero shifted (2hihi,0)); +picture petit_zero; % Release resources allocated to the picture variable +penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; + +ecchar "Alternate pilcrow sign"; % one vertical bar only +beginchar(oct"231",8.5u#,asc_height#,desc_depth#); +adjust_fit(0,0); pickup rule.nib; autorounded; +top y1=h; bot y6=-d-eps; y4=y9=y1; +y3=y5=good.y .5[y1,y6]; +lft x2=hround u; y2=.5[y1,y3]; rt x9=hround(w-.5u); x4=x5=x6=good.x(x9-1.5u); +x1=x3=min(.5w,x4); +filldraw z4..z1{left}...z2{down}...{right}z5--cycle; % filled bowl +draw z9--z4--z6; % left stem and upper serif +if serifs: + x11=x9; x10-x6=x4-x9; + bot y10=-d-eps; y10=y11; + draw z10--z11; % lower serif +fi +labels(1,2,3,4,5,6,9,10,11); endchar; + +ecchar"Baht sign"; % currency of Thailand +beginchar(oct"232",12.5u#,body_height#,body_height#-asc_height#); +italcorr .75cap_height#*slant-.5u#; +adjust_fit(cap_serif_fit#,0); +numeric hh; hh=cap_height; +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=hh; 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]=.52hh; +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: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif +pickup crisp.nib; pos13(bar,0); pos14(bar,0); +rt x13r=rt x14r=rt x4; top y13=h; bot y14=-d; +filldraw stroke z13e--z14e; % vertical crossbar +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; + +ecchar"Numero sign"; % from wncyr +beginchar(oct"233",15u#+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# + if serifs: +.5(flare#+(cap_stem#-stem#)) fi ,cap_serif_fit#); +w:=if serifs: 10u else: 11u fi; +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); +top y1=h; +if serifs: top y3=.79h; bot y2=.21h; +else: top y3=h; bot y2=0; fi +bot y4=0; +x1=x2; x3=x4; x1l=w-x3r; +rt x3r=hround min(w-2u,w-3u+.5fudged.cap_stem); +x91=x2-.75flare; bot y91r=-oo; x92=w-x91; +top y92l=h+oo; +pos91(thin_stem,-90); pos92(thin_stem,-90); +if serifs: + filldraw stroke z1e--z2e & pulled_arc.e(2,91); % left stem + filldraw stroke z4e--z3e & pulled_arc.e(3,92); % right stem +else: + filldraw stroke z1e--z2e; filldraw stroke z4e--z3e; % stems +fi +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; % diagonal +fi +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 +fi +pickup tiny.nib; +if serifs: + x93=x2-1.5flare; + y93=.75flare; + pos95(flare+(cap_stem-stem),-180); + x94=x3+1.5flare; + y94=h-y93; + pos96(flare+(cap_stem-stem),0); + pos92'(thin_stem,90); + z92'=z92; + pos93(cap_hair,-180); + pos94(cap_hair,0); + bulb(91,93,95); bulb(92',94,96); +fi +w:=15u; +penpos71(vair,90); penpos73(vair',-90); penpos72(.8curve,180); +penpos74(.8curve,0); x72r=hround max(.5u,1.25u-.4curve)+9.5u; +x74r=w-x72r+9u; x71=x73=12u; y71r=h-3u+vround 1.5oo; y73r=x_height-3u-oo; +y72=y74=.5[h,x_height]-3u-vair_corr; y72l:=y74l:=.52[h,x_height]-3u; +penstroke pulled_arc.e(71,72) & pulled_arc.e(72,73) & pulled_arc.e(73,74) & +pulled_arc.e(74,71) & cycle; +x81=max(lft x72r,x73-(lft w-x73)); +x82=min(rt x74r,lft w); y81=y82=.8x_height-3u; +pos81(bar,90); pos82(bar,90); +filldraw stroke z81e--z82e; +math_fit(0,max(.5ic#-.5u#,0)); +penlabels(1,1',2,3,4,4',5,6,7); endchar; + +ecchar "Abzueglich sign"; % jk +beginchar(oct"234",9u#,body_height#,0); +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=-eps; +draw z1--z2; % diagonal +x3=w-x5=good.x (lft x1 - .5dot_size); +bot y4 = good.y .5dot_size; +top y6 = good.y h-.5dot_size; +pos3(dot_size,0); pos4(dot_size,90); z3=z4; +pos5(dot_size,0); pos6(dot_size,90); z5=z6; +dot(3,4); dot(5,6); % dots +penlabels(1,2,3,4,5,6); endchar; + +ecchar"Aestimated sign (large e)"; % jk +beginchar(oct"235",(11.25u#+max(.75u#,.5cap_curve#)),cap_height#,0); +italcorr .76cap_height#*slant+.5min(curve#-1.5u#,0); +adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); +numeric left_curve,right_curve; +left_curve=right_curve+3stem_corr=cap_curve if not serifs: -1.5stem_corr fi; +if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi +if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi +pickup tiny.nib; +pos1(right_curve,0); pos2(vair,90); pos3(left_curve,180); +y1=good.y .52h; top y2r=h+vround 1.5oo; y0l=bot y1; +rt x1r=hround min(w-.5u,w-u+.5right_curve); +lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; +{{interim superness:=more_super; + filldraw stroke super_arc.e(1,2)}}; % right bowl +y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; +if serifs: pos4(vair',270); pos5(hair,360); + y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; + (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) + ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal +else: pos4(vair,270); + filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc + pickup fine.nib; pos4'(vair,270); z4=z4'; + pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke term.e(4',5,right,1,4); fi % terminal +path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); +y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; +forsuffixes $=l,r: + x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor +fill stroke z0e--z1'e; % crossbar +penlabels(0,1,2,3,4,5); endchar; + +ecchar "Open bullet"; % derived from Circle operator +beginchar(oct"236",9u#,v_center(7u#)); +adjust_fit(0,0); pickup rule.nib; autorounded; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h; y2=math_axis; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); endchar; + +ecchar"Servicemark"; % jk, design based on logo font +beginchar(oct"237",12u#,body_height#,0); +italcorr .7body_height#; +adjust_fit(0,0); +numeric ww, hh; ww=.5w; hh=vround .5body_height; +pickup pencircle xscaled hair yscaled vair; +x3=x8= u; +x2=x4=.382[x3,ww-x3]; +x1=ww-x3; +x5=x7=.618[x3,ww-x3]; +x6=.5[ww-x3,lft ww]; +top y1=hh; y4=good.y .55hh; bot y8=0; +y1=y2; y3=.5[y2,y4]; y4=y5; y6=.5[y5,y7]; y7=y8; +draw z1--z2; draw z4--z5; draw z7--z8; +super_crescent(2,3,4); +super_crescent(5,6,7); +labels(1,2,3,4,5,6,7,8); +clearxy; +x1=x2=hround(ww+u); x4=x5=hround(w-u); x3=hround .5[x1,x4]; +y1=y5; y2=y4; bot y1=-o; +top y2=hh+o; y3=vround (y1+.5bar_height); +draw z1--z2--z3--z4--z5; +labels(1,2,3,4,5); +currentpicture:=currentpicture shifted (0,hh); +endchar; + +ecchar "Left square bracket with quill"; % from Haralambous/Plaice +beginchar(oct"240",9u#,body_height#,paren_depth#); +italcorr math_axis#*slant+.5vair#-u#; +adjust_fit(if monospace: -1.5u#,u# else: -2.5u#,0 fi); +pickup fine.nib; +forsuffixes $=1,1',4,4',7,7',11,11',17,17': + pos$(vair,0); endfor +forsuffixes $=2,3,5,6: pos$(stem,0); endfor +x2=x3=x5=x6; x1=x1'=x7=x7'=w-x4=w-x4'; +rt x4r=hround(w-1.5u+.5vair); rt x2r=hround(.5w+.5stem); +top y1=h; bot y7=-d; .5[y4,y4']=.5[y1,y7]=.5[y2,y6]=.5[y3,y5]; +y1-y2=y3-y4=(y1-y4)/4; +y1-y1'=y4-y4'=y7'-y7=y11-y11'=y17-y17'=vair-fine; +x11=x11'=x17=x17'; x11-x2=x2-x1; y11=y1; y17=y7; +filldraw z11'l{left}...z2r---z3r...{right}z4r + --z4'r{left}...z5r---z6r...{right}z17l + --z17r--z17'r{left}...z6l---z5l...{right}.5[z4l,z4'l]{left} + ...z3l---z2l...{right}z11r--z11'r--cycle; % stroke +penlabels(1,2,3,4,5,6,7); endchar; + +ecchar "Right square bracket with quill"; % from Haralambous/Plaice +beginchar(oct"241",9u#,body_height#,paren_depth#); +italcorr body_height#*slant+.5vair#-u#; +adjust_fit(if monospace: u#,-1.5u# else: 0,-2.5u# fi); +pickup fine.nib; +forsuffixes $=1,1',4,4',7,7',11,11',17,17': + pos$(vair,0); endfor +forsuffixes $=2,3,5,6: pos$(stem,0); endfor +x2=x3=x5=x6; x1=x1'=x7=x7'=w-x4=w-x4'; +lft x4l=hround(1.5u-.5vair); lft x2l=hround(.5w-.5stem); +top y1=h; bot y7=-d; .5[y4,y4']=.5[y1,y7]=.5[y2,y6]=.5[y3,y5]; +y1-y2=y3-y4=(y1-y4)/4; y1-y1'=y4-y4'=y7'-y7=vair-fine; +x11=x11'; x17=x17'; +y11=y1; y17=y7; +x1-x2=x2-x11; x17=x11; y11-y11'=y17'-y17=vair-fine; +filldraw z11'r{right}...z2l---z3l...{left}z4l + --z4'l{right}...z5l---z6l...{left}z17'r +--z17'l--z17l{right}...z6r---z5r...{left}.5[z4r,z4'r]{right} + ...z3r---z2r...{left}z11l--z11'l--cycle; % stroke +penlabels(1,2,3,4,5,6,7); endchar; + +ecchar "Cent sign"; % from wasychr (wasy) +% Modified height and depth (jk) +% Modified: Bar instead of broken bar +beginchar(oct"242",9u#,x_height#+.5desc_depth#,.5desc_depth#); +italcorr x_height#*slant-.2u#; +adjust_fit(0,0); +pickup fine.nib; pos2(vair',90); pos4(vair',270); +x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo; +pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height; +if serifs: pos1(hair,0); pos0(flare,0); + y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,x_height]-.5flare); + rt x1r=hround(w-.7u); bulb(2,1,0); % bulb + pos5(hair,0); rt x5r=hround(w-.5u); + y5=max(good.y(.5bar_height-.9),y4l+vair'); + (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) + ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal +else: pos1(4/7[vair',flare],80); + rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; + filldraw stroke term.e(2,1,right,.8,4); % upper terminal + pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); + y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; + forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; + if angle direction 1 of p.e>75: + p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor + filldraw stroke pulled_super_arc.e(2,3)(.7superpull) + & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal +pickup crisp.nib; +x6=x7=x8=x9=x2; y7=y2; y8=y4; bot y9=-d; y6-y7 = y8-y9; +pos6(bar,0); pos7(bar,0); +pos8(bar,0); pos9(bar,0); +filldraw stroke z6e--z9e; % bar +%filldraw stroke z6e--z7e; % upper bar +%filldraw stroke z8e--z9e; % lower bar +penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +ecchar "Sterling sign"; % from italp (cm) +% already contains bug fix found by Yannis Haralambous +beginchar(oct"243",12u#,asc_height#,0); +adjust_fit(0,.75asc_height#*slant-.5u#); pickup fine.nib; +pos0(flare,0); pos1(hair,0); pos2(vair,90); pos3(stem,180); +pos4(stem,180); pos4'(stem,0); pos5(vair,-90); z4'=z4; +x2=2/3w-.5u; rt x3l=rt x4l=hround(.5w-u+.5stem); x5=2.5u; +y1=y3=.75h; top y2=h+oo; y4=.25h; bot y5r=-oo; +rt x1r=hround(w-1.5u); bulb(2,1,0); % bulb +filldraw stroke pulled_arc.e(2,3)..z4e; % stem +numeric light_stem; light_stem=2/3[vair,vstem]; +pos6(.5[hair,light_stem],-180); pos7(light_stem,-300); +pos8(light_stem,-300); pos9(hair,-180); +lft x6r=hround u; x7=3u; x8=w-3.5u; rt x9l=hround(w-u); +y6=.4[y5,y7]; top y7r=vround .2h; bot y8l=-oo; y9=good.y .2h; +filldraw stroke pulled_arc.e(4',5)...z6e{up}...z7e{right} + ..{right}z8e...{up}z9e; % loop and arm +pos10(bar,90); pos11(bar,90); x10=3u; x11=w-4.5u; +top y10r=top y11r=vround(.5h+.5bar); filldraw stroke z10e--z11e; % bar +penlabels(1,2,3,4,5,6,7,8,9,10,11); endchar; + +ecchar "Currency sign"; % from rsym (wasy) +beginchar(oct"244",1.13 min(asc_height#,9/7x_height#)+2u#, + min(asc_height#,9/7x_height#),0); +italcorr x_height#*slant; +adjust_fit(if monospace: u#,u# else: 0,0 fi); +pickup rule.nib; autorounded; +x4 = good.x .5w; x2-x6=y8-y4; y2=good.y .5h; bot y4=-oo; +circle_points; +z9 = 1.30[z5,z1]; +z10 = 1.30[z7,z3]; +z11 = 1.30[z1,z5]; +z12 = 1.30[z3,z7]; +draw_circle; +draw z1--z9; +draw z3--z10; +draw z5--z11; +draw z7--z12; +labels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; + + +ecchar "Yen symbol"; % from asymbols (msam) +% Change (jk): Use correct pen for horizontal bars +compute_spread(.45x_height#, .55x_height#); +beginchar(oct"245",13u#,cap_height#,0); %% adapted from "Y" +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 & 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 +pickup extra_rule.nib; +x7=x9=x1l; x8=x10=x4r; y9=y10; +top y7=bar_height; y7=y8; draw z7--z8; +y9-y7=spread; draw z9--z10; % crossing bars +penlabels(0,1,2,3,4,5,6,1',2',3',4',5',6',7,8,9,10); endchar; + +ecchar "Broken vertical bar"; % jk +beginchar(oct"246",3u#,body_height#,paren_depth#); +italcorr body_height#*slant - u#; +adjust_fit(0,0); pickup rule.nib; +top y1=h; .5[y1,y4]=math_axis; +compute_spread(.45x_height#,.55x_height#); y2-y3=spread; +.5[y2,y3]=math_axis; +x1=x2=x3=x4=good.x .5w; +draw z1--z2; draw z3--z4; +labels(1,2,3,4); endchar; + +ecchar "Section sign"; % from mathsy, renovated (jk) +beginchar(oct"247",6.5u#+max(1.5u#,stem#),asc_height#,desc_depth#); +adjust_fit(0,0); pickup fine.nib; +numeric s_slab; s_slab=if serifs:slab else:vround .2[slab,cap_stem] fi; +numeric ess'; ess'=max(fine.breadth,cap_ess); +numeric sstem; sstem=hround .5[s_slab,ess']-fine; +if sstem < fine.breadth: sstem:=fine.breadth; fi +pos2(vair,90); pos3(sstem,180); +pos4(ess',270); pos4'(vair,270); +pos5'(sstem,0); pos5(sstem,180); +pos6(ess',90); pos6'(vair,90); pos7(sstem,0); +pos8(vair,-90); +top y2r=h+oo; bot y8r=-d-oo; +y3=.52[y4,y2]; y5=.52[y4,y6]; y7=.52[y6,y8]; y5'=.52[y6,y4]; +y2-y4=y4-y6=y6-y8; +bot z4'=bot z4; top z6'=top z6; +lft x3r=hround 1.25u; +x2=x4=x6=x8=.5w; x5=x7=w-x3; x5'=x3; +if serifs: + pos0(stem,0); pos1(hair,0); pos9(hair,-180); pos10(stem,-180); + rt x1r=hround(w-1.5u); x9=w-x1; y2-y1=y9-y8=(y2-y8)/8; + bulb(2,1,0); bulb(8,9,10); % bulbs +else: + pos1(.6[slab,flare],-100); pos9(flare,-100); pos2'(vair,-90); + rt x1l=hround(w-1.3u); lft x9r=hround .8u; z2'=z2; + top y1l=vround .92asc_height+oo; bot y9r=vround .1asc_height-d-oo; + filldraw stroke term.e(2',1,right,.9,4); % upper arc and terminal + filldraw stroke term.e(8,9,left,.9,4); % lower arc and terminal +fi +filldraw stroke z2e{left}...z3e{down}...z4e{3(x5-x3),y5-y3} + ...z5e{down}...{left}z6'e; % upper stroke +filldraw stroke z4'e{left}...z5'e{down}...z6e{3(x7-x5'),y7-y5'} + ...z7e{down}...{left}z8e; % upper stroke +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +ecchar "Umlaut (double dot) accent"; % from accent (cm) +numeric dot_diam#,dot_diam; +dot_diam#=max(dot_size#,cap_curve#); +beginchar(oct"250",9u#,min(asc_height#,10/7x_height#+.5dot_diam#),0); +dot_diam=max(tiny.breadth,hround(max(dot_size,cap_curve)-2stem_corr)); +italcorr h#*slant+.5dot_diam#-2.25u#; +adjust_fit(0,0); +pickup tiny.nib; pos1(dot_diam,0); pos2(dot_diam,90); +x1=x2=2.75u; top y2r=h+1; +if bot y2l<x_height+o+slab: y2l:=min(y2r-eps,x_height+o+slab+.5tiny); fi +y1=.5[y2l,y2r]; dot(1,2); % left dot +pos3(dot_diam,0); penpos4(y2r-y2l,90); y3=y4=y1; x3=x4=w-x1; +dot(3,4); % right dot +penlabels(1,2,3,4); endchar; + +ecchar"Copyright"; +beginchar(oct"251",20u#,body_height#,max(paren_depth#,desc_depth#)); +autorounded; +adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); +clearxy; autorounding:=0; +numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-6u); +rr=hround(.5w+5u); +if serifs: + pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90); + pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360); + rt x1r=rt x5r=hround(rr-u); lft x3r=hround(ll+u); x2=x4=.55[x3,x1]; + top y2r=hh+o; bot y4r=-o; y3=.5[y2,y4]; + bot y1=min(vround max(.6hh,.7x_height-.5vair),bot y2l-eps); + y5=max(good.y .95(hh-y1),y4l+eps); + (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u); + (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u); + filldraw stroke z1e{x2-x1,10(y2-y1)} + ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc + pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=hh+o; + x1r-x1'=2cap_curve-fine; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left}; + numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1')); + filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb +else: + pickup fine.nib; pos1(1.2flare,80); pos2(slab,90); + pos3(cap_curve,180); pos4(slab,270); pos5(flare,275); + rt x1r=hround(rr-1.1u); x2=x4=.5w+1.25u; + lft x3r=ll+hround max(u,2u-.5cap_curve); rt x5r=hround(rr-.9u); + top y1r=vround .95hh+o; top y2r=hh+o; y3=.5hh; + bot y4r=-o; bot y5r=vround .08hh-o; y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,right,.8,4); fi % arc and terminals +penlabels(1,1',2,3,4,5,6); endchar; + +ecchar"Copyleft"; +beginchar(oct"253",20u#,body_height#,max(paren_depth#,desc_depth#)); +autorounded; +adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); +clearxy; autorounding:=0; +numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-5u); +rr=hround(.5w+6u); +if serifs: + pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,-90); + pos3(cap_curve,-180); pos4(cap_band,-270); pos5(hair,-360); + lft x1l=lft x5l=hround(ll+u); rt x3l=hround(rr-u); x2=x4=.55[x3,x1]; + top y2l=hh+o; bot y4l=-o; y3=.5[y2,y4]; + bot y1=min(vround max(.6hh,.7x_height-.5vair),bot y2r-eps); + y5=max(good.y .95(hh-y1),y4r+eps); + (x2r',y2r)=whatever[z2l,z1r]; x2r:=min(x2r',x2r+.5u); + (x4r',y4r)=whatever[z4l,z5r]; x4r:=min(x4r',x4r+.5u); + filldraw stroke z1e{x2-x1,10(y2-y1)} + ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc + pos6(.3[fine.breadth,cap_hair],0); x6l=x1l; top y6=hh+o; + x1l-x1'=2cap_curve-fine; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{right}; + numeric t; t=xpart(upper_arc intersectiontimes (z6r--z1')); + filldraw z1l--z6l--z6r--subpath(t,0) of upper_arc--cycle; % barb +else: + pickup fine.nib; pos1(1.2flare,-80); pos2(slab,-90); + pos3(cap_curve,-180); pos4(slab,-270); pos5(flare,-275); + lft x1l=hround(ll+1.1u); x2=x4=.5w-1.25u; + rt x3l=rr-hround max(u,2u-.5cap_curve); lft x5l=hround(ll+.9u); + top y1l=vround .95hh+o; top y2l=hh+o; y3=.5hh; + bot y4l=-o; bot y5l=vround .08hh-o; y5r:=good.y y5r; x5r:=good.x x5r; + filldraw stroke rterm.e(2,1,left,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,left,.8,4); fi % arc and terminals +penlabels(1,1',2,3,4,5,6); endchar; + +ecchar "Logical not sign"; % from sym +beginchar(oct"254",12u#,x_height#,0); +italcorr x_height#*slant-.5u#; +adjust_fit(0,0); pickup rule.nib; +lft x1=hround u-eps; x2=x3=w-x1; +y1=y2=good.y .5[bar_height,h]; y2-y3=1.2(h-bar_height); +draw z1--z2--z3; % bar and stem +labels(1,2,3); endchar; + +ecchar"Circled P"; % Sound recording copyright sign % jk +beginchar(oct"255",20u#,body_height#,max(paren_depth#,desc_depth#)); +autorounded; +adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); +clearxy; autorounding:=0; +numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-6u); +rr=hround(.5w+6u); +pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); +pos0(cap_stem',0); pos0'(cap_stem,0); +lft x1l=ll+hround max(2u,3u-.5cap_stem'); top y1=hh; 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(.5hh); x4=x6=.5w+.75u; x5r=hround(rr-u); +x4l:=x6l:=x4-.25cap_curve; +filldraw stroke z1e--z2e; % stem +fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe +if serifs: + nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower serif +fi +penlabels(0,1,2,3,4,5,6); endchar; + +ecchar"Registered"; % jk +beginchar(oct"256",20u#,body_height#,max(paren_depth#,desc_depth#)); +autorounded; +adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib; +if .5w <> good.x .5w: change_width; fi +lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); +clearxy; autorounding:=0; +numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-6u); +rr=hround(.5w+6u); +pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); +lft x1l=lft x2l=ll+hround max(2u,3u-.5cap_stem'); top y1=hh; bot y2=0; +filldraw stroke z1e--z2e; % stem +penpos3(cap_band,90); penpos4(cap_band,90); +penpos5(cap_curve if hefty:-3stem_corr fi,0); +penpos6(vair,-90); penpos7(vair,-90); +z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7; +x7=x2; y7l=vround(.5hh+.5vair); x4=x6; +if serifs: x4=.5w-.5u; x5r=hround(rr-2.25u); +else: x4=.5w+.5u; x5r=hround(rr-u); fi +x4l:=x6l:=x4-.125cap_curve; +fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe +if serifs: pos6'(vair,-90); pos0(cap_stem,180); + pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0); + z6'=z6; lft x0r=lft x8r=hround(x5-2/3u-.5cap_curve); + y8=1/3[y2,y7]; y0=3/5[y2,y7]; x9=.5[x8l,x10r]; + bot y9r=-o; rt x10r=hround(rr-.25u); y10=1/3[y2,y7]; + filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up}; % tail + nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower serif +else: penpos8(cap_stem-2stem_corr,0); penpos9(cap_stem,0); + x8=x6+.5u; y8=y6; x9r=hround(rr-.5u); y9=0; + fill z8l--diag_end(8l,9l,.5,1,9r,8r)--z8r--cycle; fi % tail +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +ecchar"High bar (Macron)"; % jk +beginchar(oct"257",14u#,min(asc_height#,2x_height#),0); +adjust_fit(0,0); pickup rule.nib; +lft x1=hround 1.5u-eps; x2=w-x1; top y1=top y2=h; +draw z1--z2; % bar +labels(1,2); endchar; + +ecchar "Plus-or-minus sign"; % from sym +beginarithchar(oct"261"); pickup rule.nib; +numeric shiftup; shiftup=vround 1.5u; +x1=x2=.5w; lft x3=lft x5=hround u-eps; x4=x6=w-x3; +.5[y1,y2]=y3=y4=math_axis+shiftup; top y1=h+shiftup; y5=y6=y2; +draw z1--z2; % stem +draw z3--z4; % plus bar +draw z5--z6; % minus bar +labels(1,2,3,4,5,6); endchar; + +ecchar"Degree sign"; % Yannis, Unicode Computer Modern +beginchar(oct"260",4u#,cap_height#,0); +adjust_fit(if monospace: 1.5u#,1.5u# else: u#,u# fi); +pickup rule.nib; autorounded; +if .5w <> good.x .5w: change_width; fi +lft x6=0; x2=w-x6; top y8=h; y8-y2=x2-x8; +circle_points; draw_circle; % circle +labels(1,2,3,4,5,6,7,8); endchar; + +ecchar"Tick mark"; % from accent (cmfonts, acute accent) +beginchar(oct"264",9u#,min(asc_height#,2x_height#),0); +italcorr h#*slant-if serifs: 1.5 fi u#; +adjust_fit(0,0); +if serifs: pickup crisp.nib; x1+.5stem=hround(w-2u); x2=2/3[x1,w-x1]; + y1+.5stem=h+eps; y2=max(2/3[h,x_height],x_height+o+hair); + numeric theta; theta=angle(z2-z1)+90; + pos1(stem,theta); pos2(hair,theta); + filldraw circ_stroke z1e--z2e; % diagonal +else: pickup fine.nib; pos1(stem,0); pos2(vair,0); + rt x1r=hround(w-1.5u); lft x2l=hround(.5w-.25u-.5vair); + top y1=h; bot y2=vround 2/3[h,x_height]; + filldraw stroke z1e--z2e; fi % diagonal +penlabels(1,2); endchar; + +iff not variant_g: +ecchar"Micro sign"; % jk, based on cm `u' +beginchar(oct"265",10u#,x_height#,desc_depth#); +italcorr x_height#*slant-serif_fit#+.5stem#-2u#; +adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); +numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; +if light_vair<fine.breadth: light_vair:=fine.breadth; fi +pickup tiny.nib; pos1(stem,0); pos2(stem,0); pos7(stem,0); +pos3(stem,0); pos4(stem',0); +lft x1l=hround(2.5u-.5stem); x1=x2=x7; x3=w-x1; x3r=x4r; +if serifs: top y1=h+min(oo,serif_drop); bot y4=-min(oo,serif_drop); +else: top y1=h; bot y4=0; fi +pos0(stem,0); pos0'(stem',0); +x0=x3; x0'=x4; y0=y0'; bot y7=-d; +penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; +penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); +y6=y0=2/3bar_height; +filldraw stroke z1e--z7e; % left stem +filldraw stroke z3e..z0e--z0'e..z4e; % right stem +pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; +(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); +filldraw stroke {{interim superness:=hein_super; + pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc +if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif + sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif + sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); % lower right serif + pickup crisp.nib; + dish_serif(7,1,d,1/3,jut,e,1/3,jut); fi % lower left serif +penlabels(1,2,3,4,5,7); labels(6); endchar; + +iff variant_g: % This triggers italics +ecchar "Micro sign"; % from greekl (cm) +beginchar(oct"265",9u#,x_height#,desc_depth#); +italcorr 1/3x_height#*slant+.5hair#+.5u#; +adjust_fit(0,0); pickup fine.nib; 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#); +penlabels(1,2,3,4,5,6,7,8,9); endchar; + +ecchar "Paragraph mark"; % from mathsy +beginchar(oct"266",11u#,asc_height#,desc_depth#); +adjust_fit(0,0); pickup rule.nib; autorounded; +top y1=h; bot y6=-d-eps; y4=y7=y9=y1; +y8=y6; y3=y5=good.y .5[y1,y6]; +x7-x4=ceiling(rule_thickness+1.25u); +lft x2=hround u; y2=.5[y1,y3]; x4=x5=x6; rt x9=hround(w-.5u); +x7=x8=good.x(x9-1.5u); x1=x3=min(.5w,x4); +filldraw z4..z1{left}...z2{down}...{right}z5--cycle; % filled bowl +draw z9--z4--z6; % left stem and upper serif +draw z7--z8; % right stem +if serifs: + x11=x9; x10-x8=x4-x9; + bot y10=-d-eps; y10=y11; + draw z10--z11; % lower serif +fi +labels(1,2,3,4,5,6,7,8,9,10,11); endchar; + +ecchar "Centered dot"; % reengineered for catalan l.l +beginchar(oct"267",(11u#-width_adj#-2max(2u#+.5cap_stem#,3u#)), + x_height#,0); +adjust_fit(0,0); +pickup fine.nib; +pos1(udot_diam,0); pos2(udot_diam,90); +lft x1l=hround(.5w-.5udot_diam); y1+.5udot_diam=vround(bar_height+.5udot_diam); +z1=z2; dot(1,2); % dot +penlabels(1,2); endchar; + +ecchar "Reference mark"; % From Haralambous/Plaice +beginchar(oct"270",1/3[x_height#,asc_height#], + 1/3[x_height#,asc_height#],0); +italcorr .5x_height#*slant-.5u#; +adjust_fit(if monospace: + -1/3[x_height#,asc_height#] + mono_charwd#, + -1/3[x_height#,asc_height#] + mono_charwd# + else: u#,u# fi); +pickup rule.nib; +Dot_size:=min(dot_size,max(1,.25h-rule_thickness)); +lft x1=0; top y1=h; +x2=x3=w-x1; x4=x1; .5[y1,y2]=.5[y3,y4]=.5h; y2=y4; +draw z1--z2; draw z3--z4; % diagonals +top z1'=.5[top z1,top z3]-(0,.5Dot_size); +rt z3'=.5[rt z3,rt z2]-(.5Dot_size,0); +bot z2'=.5[bot z2,bot z4]+(0,.5Dot_size); +lft z4'=.5[lft z4,lft z1]+(.5Dot_size,0); +z1'=z1''; z2'=z2''; z3'=z3''; z4'=z4''; +penpos1'(Dot_size,0); +penpos1''(Dot_size,90); dot(1',1''); +penpos2'(Dot_size,0); +penpos2''(Dot_size,90); dot(2',2''); +penpos3'(Dot_size,0); +penpos3''(Dot_size,90); dot(3',3''); +penpos4'(Dot_size,0); +penpos4''(Dot_size,90); dot(4',4''); +labels(1,2,3,4,1',2',3',4',1'',2'',3'',4'',1'r,1'l,1''r,1''l); +endchar; + +ecchar"Root sign"; % textsurd, from wnri +beginchar(oct"273",8.5u#,body_height#,paren_depth#-rule_thickness#); +italcorr body_height#*slant; +adjust_fit(0,-letter_fit#); +pickup rule.nib; + w':=7u; + x1=good.x (1/9w'+2.5u); x2=good.x (.65w'+2.5u); + bot y1=-.5d; bot y2=asc_height; + draw z1--z2; % diagonal + pickup crisp.nib; + pos3(if hefty: else: .7 fi max(curve,rule_thickness),0); + x3l=1.5[x2,x1]; y3=.5[y1,y2]; + pos4(rule_thickness,0); x4=x1; bot y4=-.5d; + pos5(vair,-45); x5l=good.x(x3l-u); z5l=whatever[z3r,z2]; + z6=z5r+whatever*(z2-z3r)=whatever[z3l,z4l]; + z7=whatever[z1,z2]=z3r+whatever*(z4l-z3l); + filldraw z5r--z6--z4l--z4--z7--z3r--z5l--cycle; % left diagonal and serif +x8=x2+2u; y8=y2; +pickup rule.nib; +draw z2--z8; +penlabels(1,2,3,4,5,6,7,8); +endchar; + +ecchar "Euro currency sign"; % derived from the letter C (WaS) +if serifs: beginchar(oct"277",14u#,cap_height#,0); % 1u# wider than C + italcorr cap_height#*slant-.5u#; + adjust_fit(0,0); + pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90); + pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360); + rt x1r=rt x5r=hround(w-u); lft x3r=hround 2u; x2=x4=.55[x3,x1]; + top y2r=h+o; bot y4r=-o; y3=.5[y2,y4]; + bot y1=min(vround max(.6h,x_height-.5vair),bot y2l-eps); + y5=max(good.y .95(h-y1),y4l+eps); + (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u); + (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u); + filldraw stroke z1e{x2-x1,10(y2-y1)} + ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc + pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=h+o; + x1r-x1'=2cap_curve-fine; y1'=y1; + path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left}; + numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1')); + filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb +else: beginchar(oct"277",12.5u#,cap_height#,0); % 1u# wider than C + italcorr cap_height#*slant-.5u#; + adjust_fit(0,0); + pickup fine.nib; pos1(1.2flare,80); pos2(slab,90); + pos3(cap_curve,180); pos4(slab,270); pos5(flare,275); + rt x1r=hround(w-.9u); x2=x4=.5w+1.25u; + lft x3r=hround (max(u,2u-.5cap_curve)+u); rt x5r=hround(w-1.1u); + top y1r=vround .95h+o; top y2r=h+o; y3=.5h; + bot y4r=-o; bot y5r=vround .08h-o; y5l:=good.y y5l; x5l:=good.x x5l; + filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3) + & super_arc.e(3,4) & term.e(4,5,right,.8,4); % arc and terminals +fi +% middle bars: + pos7(slab,69); pos8(slab,69); + pos9(slab,69); pos10(slab,69); + % Unterkante oberer Balken: + bot y7l=vround(y3+if hefty: .5vair else: min(vair, .06h) fi +eps); + % Oberkante unterer Balken: + top y9r=vround(y3-if hefty: .5vair else: min(vair, .06h) fi); + y8=y7; + y10=y9; + x7=x9=hround u; + rt x8r=hround(w - if serifs: 3 else: 2.5 fi u); + rt x10r = rt x8r - + ((slab + if hefty: vair else: 2min(vair, .06h) fi) * sind 21); + filldraw stroke z7e--z8e; % upper bar + filldraw stroke z9e--z10e;% lower bar + +math_fit(-.3cap_height#*slant-.5u#,.5ic#); + +penlabels(1,1',2,3,4,5,6,7,8,9,10); endchar; + + +ecchar "Times operator"; % from mathsy +beginarithchar(oct"326"); pickup rule.nib; +x1=good.x(1/sqrt2)[.5w,rt u]; y1=good.y(1/sqrt2)[math_axis,bot h]; +x2=x3=w-x1; x4=x1; .5[y1,y2]=.5[y3,y4]=math_axis; y2=y4; +draw z1--z2; draw z3--z4; % diagonals +labels(1,2,3,4); endchar; + +ecchar "Elementary division operator"; % from mathsy +beginarithchar(oct"366"); pickup rule.nib; +numeric del; del=dot_size-currentbreadth; +x3-.5del=good.x(.5w-.5del); center_on(x3); +y3+.5del=good.y(math_axis+math_spread[.5x_height,.6x_height]+.5del); +lft x1=hround u-eps; x2=w-x1; y1=y2=math_axis; +draw z1--z2; % bar +pos3(dot_size,0); pos4(dot_size,90); z3=z4; +pos5(dot_size,0); pos6(dot_size,90); z5=z6; x5=x3; .5[y3,y5]=math_axis; +dot(3,4); dot(5,6); % dots +penlabels(1,2,3,4,5,6); endchar; + + +endinput; |