| 1 |
% Computer Modern Roman 6 point |
| 2 |
if unknown cmbase: input cmbase fi |
| 3 |
|
| 4 |
font_identifier:="AR"; font_size 6pt#; |
| 5 |
|
| 6 |
u#:=14/36pt#; % unit width |
| 7 |
width_adj#:=0pt#; % width adjustment for certain characters |
| 8 |
serif_fit#:=0pt#; % extra sidebar near lowercase serifs |
| 9 |
cap_serif_fit#:=2.8/36pt#; % extra sidebar near uppercase serifs |
| 10 |
letter_fit#:=6/36pt#; % extra space added to all sidebars |
| 11 |
|
| 12 |
body_height#:=162/36pt#; % height of tallest characters |
| 13 |
asc_height#:=150/36pt#; % height of lowercase ascenders |
| 14 |
cap_height#:=147.6/36pt#; % height of caps |
| 15 |
fig_height#:=139.2/36pt#; % height of numerals |
| 16 |
x_height#:=93/36pt#; % height of lowercase without ascenders |
| 17 |
math_axis#:=54/36pt#; % axis of symmetry for math symbols |
| 18 |
bar_height#:=52.2/36pt#; % height of crossbar in lowercase e |
| 19 |
comma_depth#:=42/36pt#; % depth of comma below baseline |
| 20 |
desc_depth#:=42/36pt#; % depth of lowercase descenders |
| 21 |
|
| 22 |
crisp#:=6.5/36pt#; % diameter of serif corners |
| 23 |
tiny#:=6.5/36pt#; % diameter of rounded corners |
| 24 |
fine#:=6/36pt#; % diameter of sharply rounded corners |
| 25 |
thin_join#:=6/36pt#; % width of extrafine details |
| 26 |
hair#:=8/36pt#; % lowercase hairline breadth |
| 27 |
stem#:=17.5/36pt#; % lowercase stem breadth |
| 28 |
curve#:=20/36pt#; % lowercase curve breadth |
| 29 |
ess#:=17/36pt#; % breadth in middle of lowercase s |
| 30 |
flare#:=20.5/36pt#; % diameter of bulbs or breadth of terminals |
| 31 |
dot_size#:=26/36pt#; % diameter of dots |
| 32 |
cap_hair#:=8.5/36pt#; % uppercase hairline breadth |
| 33 |
cap_stem#:=21/36pt#; % uppercase stem breadth |
| 34 |
cap_curve#:=23.5/36pt#; % uppercase curve breadth |
| 35 |
cap_ess#:=18.5/36pt#; % breadth in middle of uppercase s |
| 36 |
rule_thickness#:=.31pt#; % thickness of lines in math symbols |
| 37 |
|
| 38 |
dish#:=.8/36pt#; % amount erased at top or bottom of serifs |
| 39 |
bracket#:=12/36pt#; % vertical distance from serif base to tangent |
| 40 |
jut#:=19/36pt#; % protrusion of lowercase serifs |
| 41 |
cap_jut#:=23/36pt#; % protrusion of uppercase serifs |
| 42 |
beak_jut#:=6.8/36pt#; % horizontal protrusion of beak serifs |
| 43 |
beak#:=42/36pt#; % vertical protrusion of beak serifs |
| 44 |
vair#:=7/36pt#; % vertical diameter of hairlines |
| 45 |
notch_cut#:=6pt#; % maximum breadth above or below notches |
| 46 |
bar#:=8.5/36pt#; % lowercase bar thickness |
| 47 |
slab#:=8.5/36pt#; % serif and arm thickness |
| 48 |
cap_bar#:=8.5/36pt#; % uppercase bar thickness |
| 49 |
cap_band#:=8.5/36pt#; % uppercase thickness above/below lobes |
| 50 |
cap_notch_cut#:=6pt#; % max breadth above/below uppercase notches |
| 51 |
serif_drop#:=2.4/36pt#; % vertical drop of sloped serifs |
| 52 |
stem_corr#:=.8/36pt#; % for small refinements of stem breadth |
| 53 |
vair_corr#:=.7/36pt#; % for small refinements of hairline height |
| 54 |
apex_corr#:=0pt#; % extra width at diagonal junctions |
| 55 |
|
| 56 |
o#:=4.5/36pt#; % amount of overshoot for curves |
| 57 |
apex_o#:=4.5/36pt#; % amount of overshoot for diagonal junctions |
| 58 |
|
| 59 |
slant:=.25; % tilt ratio $(\Delta x/\Delta y)$ |
| 60 |
fudge:=1; % factor applied to weights of heavy characters |
| 61 |
math_spread:=.8; % extra openness of math symbols |
| 62 |
superness:=1/sqrt2; % parameter for superellipses |
| 63 |
superpull:=1/6; % extra openness inside bowls |
| 64 |
beak_darkness:=11/30; % fraction of triangle inside beak serifs |
| 65 |
ligs:=2; % level of ligatures to be included |
| 66 |
|
| 67 |
square_dots:=false; % should dots be square? |
| 68 |
hefty:=false; % should we try hard not to be overweight? |
| 69 |
serifs:=true; % should serifs and bulbs be attached? |
| 70 |
monospace:=false; % should all characters have the same width? |
| 71 |
variant_g:=true; % should an italic-style g be used? |
| 72 |
low_asterisk:=false; % should the asterisk be centered at the axis? |
| 73 |
math_fitting:=true; % should math-mode spacing be used? |
| 74 |
|
| 75 |
mode_setup; font_setup; |
| 76 |
|
| 77 |
|
| 78 |
cmchar "The ligature AR"; |
| 79 |
beginchar("A",if serifs: 12u#+.5max(2u#,cap_curve#) |
| 80 |
else:12.5u#-.5width_adj# fi,cap_height#,0); |
| 81 |
italcorr .75cap_height#*slant- if serifs: 1.75 else: .5 fi\\ u#; |
| 82 |
adjust_fit(6u#+cap_serif_fit#,0); |
| 83 |
pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); |
| 84 |
lft x1l=lft x2l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0; |
| 85 |
filldraw stroke z1e--z2e; % stem |
| 86 |
penpos3(cap_band,90); penpos4(cap_band,90); |
| 87 |
penpos5(cap_curve if hefty:-3stem_corr fi,0); |
| 88 |
penpos6(vair,-90); penpos7(vair,-90); |
| 89 |
z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7; |
| 90 |
x7=x2; y7l=vround(.5h+.5vair); x4=x6; |
| 91 |
if serifs: x4=.5w-.5u; x5r=hround(w-2.25u); |
| 92 |
else: x4=.5w+.5u; x5r=hround(w-u); fi |
| 93 |
x4l:=x6l:=x4-.125cap_curve; |
| 94 |
fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe |
| 95 |
if serifs: pos6'(vair,-90); pos0(cap_stem,180); |
| 96 |
pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0); |
| 97 |
z6'=z6; lft x0r=lft x8r=hround(x5-2/3u-.5cap_curve); |
| 98 |
y8=1/3[y2,y7]; y0=3/5[y2,y7]; x9=.5[x8l,x10r]; |
| 99 |
bot y9r=-o; rt x10r=hround(w-.05u); y10=1/4[y2,y7]; |
| 100 |
filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up}; % tail |
| 101 |
dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower serif |
| 102 |
else: penpos8(cap_stem-2stem_corr,0); penpos9(cap_stem,0); |
| 103 |
x8=x6+.5u; y8=y6; x9r=hround(w-.5u); y9=0; |
| 104 |
fill z8l--diag_end(8l,9l,.5,1,9r,8r)--z8r--cycle; fi % tail |
| 105 |
left_stem=if monospace:fudged.hair else: cap_hair fi if hefty: -3stem_corr fi; |
| 106 |
outer_jut=.8cap_jut; x11l=l+letter_fit+outer_jut+.5u; y11=0; |
| 107 |
x12=x1l-apex_corr-if monospace:2 fi\\u; y12=h; |
| 108 |
alpha=diag_ratio(1,.5left_stem,y12-y11,x12-x11l); |
| 109 |
penpos11(alpha*left_stem,0); penpos12(alpha*left_stem,0); |
| 110 |
fill diag_end(12l,11l,1,1,11r,12r) |
| 111 |
--diag_end(11r,12r,1,1,12l,11l)--cycle; % diagonal |
| 112 |
y15=h-slab; z15=whatever[z11,z12]; |
| 113 |
fill z15--(x1,y15)--(x1,h)--z12--cycle; % link |
| 114 |
penpos13(whatever,angle(z2-z1)); z13=whatever[z11,z12]; |
| 115 |
penpos14(cap_band,90); x14=x7; y13l=y14l; y13r=y14r; |
| 116 |
if hefty: y14r=.4h; else: y14=y7; fi |
| 117 |
penstroke z13e--z14e; % bar line |
| 118 |
if serifs: numeric inner_jut; pickup tiny.nib; |
| 119 |
prime_points_inside(11,12); |
| 120 |
if rt x11'r+cap_jut+.5u+1<=lft x2l-.75cap_jut: |
| 121 |
inner_jut=cap_jut; |
| 122 |
else: |
| 123 |
rt x11'r+inner_jut+.5u+1=lft x2l-.75inner_jut; |
| 124 |
fi |
| 125 |
dish_serif(11',12,i,1/2,outer_jut,j,.6,inner_jut)(dark); % lower left serif |
| 126 |
nodish_serif(1,2,a,1/3,cap_jut+x1l-x12,b,1/3,.5cap_jut); % upper serif |
| 127 |
fi |
| 128 |
math_fit(0,.75ic#); |
| 129 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); endchar; |
| 130 |
|
| 131 |
font_slant slant; font_x_height x_height#; |
| 132 |
if monospace: font_normal_space 9u#; % no stretching or shrinking |
| 133 |
font_quad 18u#; |
| 134 |
font_extra_space 9u#; |
| 135 |
else: font_normal_space 6u#+2letter_fit#; |
| 136 |
font_normal_stretch 3u#; font_normal_shrink 2u#; |
| 137 |
font_quad 18u#+4letter_fit#; |
| 138 |
font_extra_space 2u#; |
| 139 |
fi |
| 140 |
|
| 141 |
bye. |
| 142 |
|
| 143 |
|
| 144 |
|