| 1 |
% MSA symbols, bright style [1996/07/02 v1.0 (WaS)] |
| 2 |
|
| 3 |
numeric circ_w#; % |
| 4 |
circ_w#=2u#+body_height#+max(paren_depth#,desc_depth#); |
| 5 |
|
| 6 |
cmchar "Yen symbol"; |
| 7 |
% Change (jk): Use correct pen for horizontal bars |
| 8 |
compute_spread(.45x_height#, .55x_height#); |
| 9 |
beginchar(oct"125",13u#,cap_height#,0); %% adapted from "Y" |
| 10 |
italcorr cap_height#*slant+.45u#; |
| 11 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); numeric |
| 12 |
left_stem,right_stem,outer_jut,dy,alpha; |
| 13 |
left_stem=cap_stem-stem_corr; right_stem=min(cap_hair if |
| 14 |
hefty:-2stem_corr fi,left_stem); outer_jut=.75cap_jut; |
| 15 |
x1l=w-x4r=l+letter_fit+outer_jut+.05u; |
| 16 |
x2l=x5l=hround(.5w-.5left_stem); x3r=x5r; y1=y4=h; |
| 17 |
y2=y3=y5=.4h; dy=y1-y2; alpha=((x2l-x1l)++dy)/dy; |
| 18 |
penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); |
| 19 |
penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); |
| 20 |
penpos5(left_stem,0); penpos6(left_stem,0); x5=x6; y6=0; |
| 21 |
z0=whatever[z1r,z2r]=whatever[z3l,z4l]; if |
| 22 |
y0>y2+cap_notch_cut: y0:=y2+cap_notch_cut; |
| 23 |
fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)--z5r |
| 24 |
--diag_end(5r,6r,1,1,6l,5l)--z5l--diag_end(2l,1l,1,1,1r,2r){z2-z1} |
| 25 |
...{down}z0+.5left--cycle; % diagonals and stem |
| 26 |
else: fill z0--diag_end(0,4l,1,1,4r,3r)--z5r |
| 27 |
--diag_end(5r,6r,1,1,6l,5l)--z5l |
| 28 |
--diag_end(2l,1l,1,1,1r,0)--cycle; fi % diagonals & stem |
| 29 |
if serifs: numeric inner_jut; pickup tiny.nib; |
| 30 |
prime_points_inside(1,2); prime_points_inside(4,3); |
| 31 |
prime_points_inside(6,5); |
| 32 |
if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: |
| 33 |
inner_jut=cap_jut; |
| 34 |
else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi |
| 35 |
dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % upper left serif |
| 36 |
dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % upper right serif |
| 37 |
dish_serif(6',5,e,1/3,cap_jut,f,1/3,cap_jut); fi % lower serif |
| 38 |
pickup pencircle scaled min(hair,vair); |
| 39 |
x7=x9=x1l; x8=x10=x4r; y9=y10; |
| 40 |
top y7=bar_height; y7=y8; draw z7--z8; |
| 41 |
y9-y7=spread; draw z9--z10; % crossing bars |
| 42 |
penlabels(0,1,2,3,4,5,6,1',2',3',4',5',6',7,8,9,10); endchar; |
| 43 |
|
| 44 |
% the next characters have been taken from Joerg Knappen's TC fonts: |
| 45 |
|
| 46 |
cmchar"Registered"; |
| 47 |
beginchar(oct"162",circ_w#,body_height#,max(paren_depth#,desc_depth#)); |
| 48 |
autorounded; |
| 49 |
adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib; |
| 50 |
if .5w <> good.x .5w: change_width; fi |
| 51 |
lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o; |
| 52 |
circle_points; draw_circle; % circle |
| 53 |
labels(1,2,3,4,5,6,7,8); |
| 54 |
clearxy; autorounding:=0; |
| 55 |
numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-6u); |
| 56 |
rr=hround(.5w+6u); |
| 57 |
pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); |
| 58 |
lft x1l=lft x2l=ll+hround max(2u,3u-.5cap_stem'); top y1=hh; bot y2=0; |
| 59 |
filldraw stroke z1e--z2e; % stem |
| 60 |
penpos3(cap_band,90); penpos4(cap_band,90); |
| 61 |
penpos5(cap_curve if hefty:-3stem_corr fi,0); |
| 62 |
penpos6(vair,-90); penpos7(vair,-90); |
| 63 |
z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7; |
| 64 |
x7=x2; y7l=vround(.5hh+.5vair); x4=x6; |
| 65 |
if serifs: x4=.5w-.5u; x5r=hround(rr-2.25u); |
| 66 |
else: x4=.5w+.5u; x5r=hround(rr-u); fi |
| 67 |
x4l:=x6l:=x4-.125cap_curve; |
| 68 |
fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe |
| 69 |
if serifs: pos6'(vair,-90); pos0(cap_stem,180); |
| 70 |
pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0); |
| 71 |
z6'=z6; lft x0r=lft x8r=hround(x5-2/3u-.5cap_curve); |
| 72 |
y8=1/3[y2,y7]; y0=3/5[y2,y7]; x9=.5[x8l,x10r]; |
| 73 |
bot y9r=-o; rt x10r=hround(rr-.25u); y10=1/3[y2,y7]; |
| 74 |
filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up}; % tail |
| 75 |
nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif |
| 76 |
dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower serif |
| 77 |
else: penpos8(cap_stem-2stem_corr,0); penpos9(cap_stem,0); |
| 78 |
x8=x6+.5u; y8=y6; x9r=hround(rr-.5u); y9=0; |
| 79 |
fill z8l--diag_end(8l,9l,.5,1,9r,8r)--z8r--cycle; fi % tail |
| 80 |
penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; |
| 81 |
|
| 82 |
cmchar"circledS"; |
| 83 |
beginchar(oct"163",circ_w#,body_height#,max(paren_depth#,desc_depth#)); |
| 84 |
autorounded; |
| 85 |
adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib; |
| 86 |
if .5w <> good.x .5w: change_width; fi |
| 87 |
lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o; |
| 88 |
circle_points; draw_circle; % circle |
| 89 |
labels(1,2,3,4,5,6,7,8); |
| 90 |
clearxy; autorounding:=0; |
| 91 |
numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-5u); |
| 92 |
rr=hround(.5w+5u); |
| 93 |
numeric theta; theta=90-angle(50u,hh); slope:=-hh/50u; % angle at middle |
| 94 |
numeric s_slab; s_slab=vround .2[slab,cap_stem]; |
| 95 |
numeric ess'; ess'=max(fine.breadth,cap_ess); |
| 96 |
pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-90); |
| 97 |
pos0(ess',theta); pos7(s_slab,-90); |
| 98 |
x2+x7=2x0=w; x7-x2=0; top y2l=hh+o; bot y7r=-o; |
| 99 |
y0=.52hh; lft x3l=ll+hround u; rt x6r=hround(rr-u); |
| 100 |
x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine; |
| 101 |
ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; |
| 102 |
ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; |
| 103 |
filldraw stroke super_arc.e(2,3) & z3e{down} |
| 104 |
..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke |
| 105 |
pos1(1.2flare,-100); pos8(1.2flare,-100); |
| 106 |
x1l=good.x(x1l+rr-1.75u-rt x1); lft x8r=ll+hround .8u; |
| 107 |
top y1l=vround .93hh+o; bot y8r=vround .1hh-o; |
| 108 |
filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal |
| 109 |
filldraw stroke term.e(7,8,left,1,4); % lower arc and terminal |
| 110 |
math_fit(0,.5ic#); penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); endchar; |
| 111 |
|