Debian Codegraph @

texmf-dist/fonts/source/public/aspectratio/arb5.mf

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