| 1 |
% lexslides |
| 2 |
% |
| 3 |
% (c) Copyright 2002/07/13 Claudio Beccari |
| 4 |
% |
| 5 |
% Contains the redefinition of all slides glyphs containing l |
| 6 |
% so as to modify it with a hook. |
| 7 |
% The overall definitions are copied and modified from several |
| 8 |
% ex* Metafont files with the ec fonts, copyright by Schwarz and Knappen |
| 9 |
% in compliance with their copyright notice. |
| 10 |
% This file is being invoked by lexroman.mf, a modied version of |
| 11 |
% Schwarz and Knappen exroman.mf, wich in turn is being called by the |
| 12 |
% driver files of the various modified slides fonts. |
| 13 |
% |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
ecchar "The letter l with hook for slides";% jk,cb |
| 18 |
beginchar("l",5u#,asc_height#,0); |
| 19 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 20 |
adjust_fit(0,u#); |
| 21 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 22 |
pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180); |
| 23 |
lft x2r=lft x3r=hround(2u-.5shaved_stem); |
| 24 |
y3=max(.5bar_height,2vair); |
| 25 |
pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0); |
| 26 |
rt x1r=fine.rt x2l; top y1=h; |
| 27 |
penpos2'(x1r-x1l,0); x2'=x1; y2'=y2=x_height; |
| 28 |
filldraw stroke z1e--z2'e; % upper terminal |
| 29 |
pickup fine.nib; interim superness:=more_super; |
| 30 |
pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u)+1.6u; |
| 31 |
pos5(vair,-75); top y5l=vround .2[top y4l,bar_height]; |
| 32 |
x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair; |
| 33 |
filldraw stroke z2e..super_arc.e(3,4); % stem and hook |
| 34 |
path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal |
| 35 |
if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): |
| 36 |
filldraw stroke z4e{right}...{up}z5e; |
| 37 |
else: filldraw p; fi |
| 38 |
penlabels(1,2,3,4,5); endchar; |
| 39 |
|
| 40 |
|
| 41 |
ecchar "The letter l with hook for slides with acute"; % jk,cb |
| 42 |
beginchar_twice(oct"250",5u#,asc_height#,0); |
| 43 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 44 |
adjust_fit(0,u#); |
| 45 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 46 |
pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180); |
| 47 |
lft x2r=lft x3r=hround(2u-.5shaved_stem); |
| 48 |
y3=max(.5bar_height,2vair); |
| 49 |
pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0); |
| 50 |
rt x1r=fine.rt x2l; top y1=h; |
| 51 |
penpos2'(x1r-x1l,0); x2'=x1; y2'=y2=x_height; |
| 52 |
filldraw stroke z1e--z2'e; % upper terminal |
| 53 |
pickup fine.nib; interim superness:=more_super; |
| 54 |
pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u)+1.6u; |
| 55 |
pos5(vair,-75); top y5l=vround .2[top y4l,bar_height]; |
| 56 |
x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair; |
| 57 |
filldraw stroke z2e..super_arc.e(3,4); % stem and hook |
| 58 |
path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal |
| 59 |
if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): |
| 60 |
filldraw stroke z4e{right}...{up}z5e; |
| 61 |
else: filldraw p; fi |
| 62 |
put_accent; |
| 63 |
repeat_once; |
| 64 |
penlabels(1,2,3,4,5); endchar; |
| 65 |
|
| 66 |
ecchar "The letter l with hook for slides with hachek"; % from csotherl.mf (csfonts),cb |
| 67 |
beginchar(oct"251",5u#,lc_acute_height#,0); l_width#:=5u#+2serif_fit#; |
| 68 |
italcorr lc_acute_height#*slant-serif_fit#+.5stem#-2u#; |
| 69 |
adjust_fit(0,u#); |
| 70 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 71 |
pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180); |
| 72 |
lft x2r=lft x3r=hround(2u-.5shaved_stem); |
| 73 |
y3=max(.5bar_height,2vair); |
| 74 |
pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0); |
| 75 |
rt x1r=fine.rt x2l; top y1=h; |
| 76 |
penpos2'(x1r-x1l,0); x2'=x1; y2'=y2=x_height; |
| 77 |
filldraw stroke z1e--z2'e; % upper terminal |
| 78 |
pickup fine.nib; interim superness:=more_super; |
| 79 |
pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u)+1.6u; |
| 80 |
pos5(vair,-75); top y5l=vround .2[top y4l,bar_height]; |
| 81 |
x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair; |
| 82 |
filldraw stroke z2e..super_arc.e(3,4); % stem and hook |
| 83 |
path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal |
| 84 |
if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): |
| 85 |
filldraw stroke z4e{right}...{up}z5e; |
| 86 |
else: filldraw p; fi |
| 87 |
penlabels(1,2,3,4,5); |
| 88 |
dtl_hachek(x1r+u+.5pdot_diam)(y1); |
| 89 |
endchar; |
| 90 |
|
| 91 |
ecchar "The letter crossed l with hook for slides"; % from pl_ml (plfonts),cb |
| 92 |
beginchar_twice(oct"252",5u#,asc_height#,0); |
| 93 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 94 |
charwd_:=charwd; |
| 95 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 96 |
pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180); |
| 97 |
lft x2r=lft x3r=hround(2u-.5shaved_stem); |
| 98 |
y3=max(.5bar_height,2vair); |
| 99 |
pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0); |
| 100 |
rt x1r=fine.rt x2l; top y1=h; |
| 101 |
penpos2'(x1r-x1l,0); x2'=x1; y2'=y2=x_height; |
| 102 |
filldraw stroke z1e--z2'e; % upper terminal |
| 103 |
pickup fine.nib; interim superness:=more_super; |
| 104 |
pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u)+1.6u; |
| 105 |
pos5(vair,-75); top y5l=vround .2[top y4l,bar_height]; |
| 106 |
x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair; |
| 107 |
filldraw stroke z2e..super_arc.e(3,4); % stem and hook |
| 108 |
path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal |
| 109 |
if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): |
| 110 |
filldraw stroke z4e{right}...{up}z5e; |
| 111 |
else: filldraw p; fi |
| 112 |
penlabels(1,2,3,4,5); |
| 113 |
numeric unbalance; |
| 114 |
unbalance=1.1; |
| 115 |
numeric cross_fit#; |
| 116 |
cross_fit#=serif_fit#+if is_bold: 1.5 else: 1.25 fi\\ u#; |
| 117 |
charwd:=charwd_; |
| 118 |
adjust_fit(cross_fit#,u#); |
| 119 |
numeric l_jut; |
| 120 |
l_jut=.5stem+ 1.7u; |
| 121 |
put_cross(l_jut,unbalance*l_jut); |
| 122 |
repeat_once; |
| 123 |
endchar; |
| 124 |
|
| 125 |
|
| 126 |
ecchar "The ligature fl"; |
| 127 |
beginchar(oct"035",10u#+2letter_fit#,asc_height#,0); |
| 128 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 129 |
adjust_fit(0,u#); |
| 130 |
% This is the "f" |
| 131 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 132 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 133 |
pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.3u; |
| 134 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 135 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; |
| 136 |
pos3(bar,90); pos4(bar,90); |
| 137 |
rt x4= hround 5.3u; |
| 138 |
pickup crisp.nib; filldraw stroke z3e--z4e; % bar |
| 139 |
% This is the "l" drawn to the right of the "f" |
| 140 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 141 |
pickup fine.nib; pos12(shaved_stem,180);pos13(shaved_stem,180); |
| 142 |
lft x12r=lft x13r=hround(rt x4 + if is_bold: .5shaved_stem else: 1.3u fi); |
| 143 |
y13=max(.5bar_height,2vair); |
| 144 |
pickup tiny.nib; pos11(hround(shaved_stem-stem_corr),0); |
| 145 |
rt x11r=fine.rt x12l; top y11=h; |
| 146 |
penpos12'(x11r-x11l,0); x12'=x11; y12'=y12=x_height; |
| 147 |
filldraw stroke z11e--z12'e; % upper terminal |
| 148 |
pickup fine.nib; interim superness:=more_super; |
| 149 |
pos14(vair',-90); bot y14r=-oo; rt x15r=hround(w-u)+1.6u; |
| 150 |
pos15(vair,-75); top y15l=vround .2[top y14l,bar_height]; |
| 151 |
x15l:=good.x x15l; x14l=1/3[x13l,x15l]; x14r:=1/3[x13r,x15r]; y13l:=y13l+.2vair; |
| 152 |
filldraw stroke z12e..super_arc.e(13,14); % stem and hook |
| 153 |
path p; p=stroke z14e{right}..tension .9 and atleast 1..z15e; % terminal |
| 154 |
if (xpart(z15l-precontrol 1 of p)<0) or (xpart(z15r-postcontrol 2 of p)<0): |
| 155 |
filldraw stroke z14e{right}...{up}z15e; |
| 156 |
else: filldraw p; fi |
| 157 |
penlabels(1,2,3,4,11,12,13,14,15); endchar; |
| 158 |
|
| 159 |
ecchar "The ligature ffl"; |
| 160 |
beginchar(oct"037",15u#+4letter_fit#,asc_height#,0); |
| 161 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 162 |
adjust_fit(0,u#); |
| 163 |
% These are the two "f" |
| 164 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 165 |
pos11(stem',0); lft x11l=hround(.5w-.5stem'); |
| 166 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 167 |
if serifs: bulb_diam=hround .8[stem,flare]; |
| 168 |
pos2(bulb_diam,0); x2r=x11r-stem_corr; |
| 169 |
pos12(bulb_diam,0); x12r=x21r-stem_corr; |
| 170 |
y2+.5bulb_diam=.85[x_height,h+oo]; y12+.5bulb_diam=.9[x_height,h+oo]; |
| 171 |
sloped_serif.l(21,22,g,1/3,eps,max(serif_drop,oo)); % erase excess at top |
| 172 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 173 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 174 |
else: pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; |
| 175 |
pos12(5/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); fi |
| 176 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 177 |
f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto |
| 178 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; |
| 179 |
pos3(bar,90); pos4(bar,90); |
| 180 |
rt x4=hround(.5w+2.8u); |
| 181 |
if hefty: pos3'(bar,90); x3'-x1=x4-x11; y3'=y3; |
| 182 |
pos4'(bar,90); x4'=x11; y4'=y4; |
| 183 |
filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars |
| 184 |
else: filldraw stroke z3e--z4e; fi % bar |
| 185 |
% This is the "l" drawn to the right of the second "f" |
| 186 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 187 |
pickup fine.nib; pos22(shaved_stem,180);pos23(shaved_stem,180); |
| 188 |
lft x22r=lft x23r=hround(rt x4 + if is_bold: .5shaved_stem else: 1.3u fi); |
| 189 |
y23=max(.5bar_height,2vair); |
| 190 |
pickup tiny.nib; pos21(hround(shaved_stem-stem_corr),0); |
| 191 |
rt x21r=fine.rt x22l; top y21=h; |
| 192 |
penpos22'(x21r-x21l,0); x22'=x21; y22'=y22=x_height; |
| 193 |
filldraw stroke z21e--z22'e; % upper terminal |
| 194 |
pickup fine.nib; interim superness:=more_super; |
| 195 |
pos24(vair',-90); bot y24r=-oo; rt x25r=hround(w-u)+1.6u; |
| 196 |
pos25(vair,-75); top y25l=vround .2[top y24l,bar_height]; |
| 197 |
x25l:=good.x x25l; x24l=1/3[x23l,x25l]; x24r:=1/3[x23r,x25r]; y23l:=y23l+.2vair; |
| 198 |
filldraw stroke z22e..super_arc.e(23,24); % stem and hook |
| 199 |
path p; p=stroke z24e{right}..tension .9 and atleast 1..z25e; % terminal |
| 200 |
if (xpart(z25l-precontrol 1 of p)<0) or (xpart(z25r-postcontrol 2 of p)<0): |
| 201 |
filldraw stroke z24e{right}...{up}z25e; |
| 202 |
else: filldraw p; fi |
| 203 |
penlabels(1,2,3,4,11,12,21,22,23,24,25); endchar; |