| 1 |
% THIS IS THE OFFICIAL COMPUTER MODERN SOURCE FILE tset.mf BY D E KNUTH. |
| 2 |
% IT MUST NOT BE MODIFIED IN ANY WAY UNLESS THE FILE NAME IS CHANGED! |
| 3 |
|
| 4 |
% Special characters for ``extended ASCII character set'' fonts |
| 5 |
|
| 6 |
% Two accents have been copied from {\tt accent.mf} |
| 7 |
% and there's also a (genuinely) blank space. |
| 8 |
|
| 9 |
% Codes \0040, \0136, and \0176 are generated, in addition to the following: |
| 10 |
cdot=oct"000"; |
| 11 |
down_arrow=oct"001"; |
| 12 |
meet=oct"004"; |
| 13 |
false_that=oct"005"; |
| 14 |
elt=oct"006"; |
| 15 |
up_arrow=oct"013"; |
| 16 |
plus_minus=oct"014"; |
| 17 |
o_plus=oct"015"; |
| 18 |
infty=oct"016"; |
| 19 |
subset=oct"020"; |
| 20 |
superset=oct"021"; |
| 21 |
cap=oct"022"; |
| 22 |
cup=oct"023"; |
| 23 |
for_all=oct"024"; |
| 24 |
there_exists=oct"025"; |
| 25 |
o_times=oct"026"; |
| 26 |
double_arrow=oct"027"; |
| 27 |
left_arrow=oct"030"; |
| 28 |
right_arrow=oct"031"; |
| 29 |
neq=oct"032"; |
| 30 |
diamond=oct"033"; |
| 31 |
leq=oct"034"; |
| 32 |
geq=oct"035"; |
| 33 |
eqv=oct"036"; |
| 34 |
join=oct"037"; |
| 35 |
straight_quotes=oct"042"; |
| 36 |
minus=oct"055"; |
| 37 |
less=oct"074"; |
| 38 |
greater=oct"076"; |
| 39 |
backslash=oct"134"; |
| 40 |
underbar=oct"137"; |
| 41 |
left_brace=oct"173"; |
| 42 |
vertical=oct"174"; |
| 43 |
right_brace=oct"175"; |
| 44 |
integral=oct"177"; |
| 45 |
|
| 46 |
input sym; |
| 47 |
|
| 48 |
cmchar "Blank space"; |
| 49 |
beginchar(oct"040",6u#,0,0); |
| 50 |
adjust_fit(0,0); endchar; |
| 51 |
|
| 52 |
cmchar "Circumflex (hat) accent"; |
| 53 |
beginchar(oct"136",9u#,min(asc_height#,2x_height#),0); |
| 54 |
if serifs: italcorr .5[x_height#,h#]*slant+.5hair#-1.75u#; |
| 55 |
adjust_fit(0,0); |
| 56 |
pickup crisp.nib; pos2(.5[vair,curve],90); top y2r=h; x2=.5w; |
| 57 |
x1=w-x3=good.x 2.25u; y1=y3=.5[x_height,y2]; |
| 58 |
pos1(hair,angle(z2-z1)+90); pos3(hair,angle(z3-z2)+90); |
| 59 |
filldraw stroke z1e--z2e--z3e; % diagonals |
| 60 |
else: italcorr 2/3[x_height#,h#]*slant-.5stem#+.5vair#-.75u#; |
| 61 |
adjust_fit(0,0); |
| 62 |
pickup fine.nib; pos1(vair,0); pos3(vair,0); x1=w-x3; |
| 63 |
pos2(stem,0); top y2=h; x2=.5w; bot y1=bot y3=vround 2/3[h,x_height]-eps; |
| 64 |
lft x1l=hround(rt x2r-3.25u-.5vair); % same slope as in the acute accent |
| 65 |
z0=whatever[z1r,z2r]=whatever[z2l,z3l]; |
| 66 |
y4l=y4r=y2; x4l=good.x .2[x2l,x2]; x4r=w-x4l; |
| 67 |
filldraw z4l--z1l--z1r--z0--z3l--z3r--z4r--cycle; fi % diagonals |
| 68 |
penlabels(0,1,2,3,4); endchar; |
| 69 |
|
| 70 |
cmchar "Tilde (squiggle) accent"; |
| 71 |
beginchar(oct"176",9u#,min(asc_height#,10/7x_height#+.5dot_size#),0); |
| 72 |
italcorr h#*slant-u#; |
| 73 |
adjust_fit(0,0); |
| 74 |
if serifs: numeric theta; theta=angle(1/6(6u-vair),1/4(h-x_height)); |
| 75 |
pickup crisp.nib; numeric mid_width; mid_width=.4[vair,stem]; |
| 76 |
pos1(vair,theta+90); pos2(vair,theta+90); |
| 77 |
pos3(vair,theta+90); pos4(vair,theta+90); |
| 78 |
z2-z1=z4-z3=(mid_width-crisp)*dir theta; |
| 79 |
lft x1r=w-rt x4l=hround 1.5u; top y4r=h; |
| 80 |
bot y1l=vround(bot y1l+min(2/3[x_height,h],y3l-.25vair)-top y1r); |
| 81 |
pair delta; ypart delta=3(y3l-y1l); delta=whatever*dir theta; |
| 82 |
filldraw z1l..controls(z1l+delta)and(z3l-delta)..z3l..z4l |
| 83 |
--z4r..controls(z4r-delta)and(z2r+delta)..z2r..z1r--cycle; % stroke |
| 84 |
else: pickup fine.nib; pos1(vair,180); pos2(vair,90); |
| 85 |
pos3(.5[vair,slab],90); pos4(vair,90); pos5(vair,180); |
| 86 |
lft x1r=w-rt x5l=hround 1.5u; x2-x1=x3-x2=x4-x3=x5-x4; |
| 87 |
bot y1=bot y4l=vround(.75[x_height,h]-vair); |
| 88 |
top y2r=top y5=h; y3=.5[y2,y4]; |
| 89 |
filldraw stroke z1e{up}...z2e{right}..z3e..{right}z4e...{up}z5e; fi % stroke |
| 90 |
penlabels(1,2,3,4,5); endchar; |