| 1 |
% |
| 2 |
% Copyright (c) 2011, 2012, Sebastian Schubert <[email protected]> |
| 3 |
% |
| 4 |
% This Font Software is licensed under the SIL Open Font License, |
| 5 |
% Version 1.1. This license is in the accompanying file OFL.txt, and |
| 6 |
% is also available with a FAQ at: http://scripts.sil.org/OFL |
| 7 |
% |
| 8 |
|
| 9 |
def sthick(expr scale) = |
| 10 |
%option 1: make symbols thicker with scale |
| 11 |
sqrt scale |
| 12 |
%option 2: keep same thickness |
| 13 |
% 1 |
| 14 |
enddef; |
| 15 |
|
| 16 |
def bop_line_thickness(expr scale) = |
| 17 |
bop_thickness_fac * letter_line_thickness * sqrt sthick(scale) |
| 18 |
enddef; |
| 19 |
def bop_part_line_thickness(expr scale) = |
| 20 |
bop_thickness_fac * line_thickness * sqrt sthick(scale) |
| 21 |
enddef; |
| 22 |
def bop_dot_size(expr scale) = |
| 23 |
bop_thickness_fac * 3/4dot_size * sqrt sthick(scale) |
| 24 |
enddef; |
| 25 |
|
| 26 |
for scale = 1, 1.4: |
| 27 |
beginsquarebigop(scale, scale); "big plus"; |
| 28 |
draw_line_linethick(centre + op_height/2 * right, centre + op_height/2 * left, bop_line_thickness(scale), false); |
| 29 |
draw_line_linethick(centre + op_height/2 * up, centre + op_height/2 * down, bop_line_thickness(scale), false); |
| 30 |
endchar; |
| 31 |
endfor; |
| 32 |
charlist current_char - 1: current_char; |
| 33 |
|
| 34 |
for scale = 1, 1.4: |
| 35 |
beginsquarebigop(scale, scale); "big times"; |
| 36 |
z1 - z0 = z3 - z2 = (op_width - bop_line_thickness(scale) / sqrt(2)) * right; |
| 37 |
z2 - z0 = (op_width - bop_line_thickness(scale) / sqrt(2)) * up; |
| 38 |
1/2[1/2[z0,z1], 1/2[z2,z3]] = centre; |
| 39 |
|
| 40 |
draw_line_linethick(z0, z3, bop_line_thickness(scale), false); |
| 41 |
draw_line_linethick(z1, z2, bop_line_thickness(scale), false); |
| 42 |
endchar; |
| 43 |
endfor; |
| 44 |
charlist current_char - 1: current_char; |
| 45 |
|
| 46 |
for sign = 1, -1: |
| 47 |
for scale = 1, 1.4: |
| 48 |
beginbigop(scale, scale); "big wedge"; |
| 49 |
draw_less(a, centre + sign * op_height/2 * up, centre - sign * op_height/2 * up, op_width - bop_line_thickness(scale), bop_line_thickness(scale), false, true); |
| 50 |
endchar; |
| 51 |
endfor; |
| 52 |
charlist current_char - 1: current_char; |
| 53 |
endfor; |
| 54 |
|
| 55 |
for sign = 1, -1: |
| 56 |
for scale = 1, 1.4: |
| 57 |
beginbigop(scale, scale); "big wedge dot"; |
| 58 |
draw_less(a, centre + sign * op_height/2 * up, centre - sign * op_height/2 * up, op_width - bop_line_thickness(scale), bop_line_thickness(scale), false, true); |
| 59 |
fill dot(centre - sign * 1/4op_height * up, bop_dot_size(scale)); |
| 60 |
endchar; |
| 61 |
endfor; |
| 62 |
charlist current_char - 1: current_char; |
| 63 |
endfor; |
| 64 |
|
| 65 |
for sign = 1, -1: |
| 66 |
for scale = 1, 1.4: |
| 67 |
beginbigop(4/3scale, scale); "double big wedge"; |
| 68 |
z0 = centre - 1/8op_width * right; |
| 69 |
z1 = centre + 1/8op_width * right; |
| 70 |
|
| 71 |
draw_less(a, z0 + sign * op_height/2 * up, z0 - sign * op_height/2 * up, 3/4op_width - bop_line_thickness(scale), bop_line_thickness(scale), false, true); |
| 72 |
draw_less(b, z1 + sign * op_height/2 * up, z1 - sign * op_height/2 * up, 3/4op_width - bop_line_thickness(scale), bop_line_thickness(scale), false, true); |
| 73 |
endchar; |
| 74 |
endfor; |
| 75 |
charlist current_char - 1: current_char; |
| 76 |
endfor; |
| 77 |
|
| 78 |
for sign = 1, -1: |
| 79 |
for scale = 1, 1.4: |
| 80 |
beginbigop(scale, scale); "big curly wedge"; |
| 81 |
draw_prec(a, centre + sign * op_height/2 * up, centre - sign * op_height/2 * up, op_width - bop_line_thickness(scale), bop_line_thickness(scale), false); |
| 82 |
endchar; |
| 83 |
endfor; |
| 84 |
charlist current_char - 1: current_char; |
| 85 |
endfor; |
| 86 |
|
| 87 |
for sign = 1, -1: |
| 88 |
for scale = 1, 1.4: |
| 89 |
beginbigop(scale, scale); "big union"; |
| 90 |
draw_subset(a, centre + sign * op_height/2 * up, centre - sign * op_height/2 * up, op_width - bop_line_thickness(scale), bop_line_thickness(scale)); |
| 91 |
endchar; |
| 92 |
endfor; |
| 93 |
charlist current_char - 1: current_char; |
| 94 |
endfor; |
| 95 |
|
| 96 |
for sign = 1, -1: |
| 97 |
for scale = 1, 1.4: |
| 98 |
beginbigop(scale, scale); "big union dot"; |
| 99 |
draw_subset(a, centre + sign * op_height/2 * up, centre - sign * op_height/2 * up, op_width - bop_line_thickness(scale), bop_line_thickness(scale)); |
| 100 |
fill dot(centre - sign * 1/8op_height * up, bop_dot_size(scale)); |
| 101 |
endchar; |
| 102 |
endfor; |
| 103 |
charlist current_char - 1: current_char; |
| 104 |
endfor; |
| 105 |
|
| 106 |
for sign = 1, -1: |
| 107 |
for scale = 1, 1.4: |
| 108 |
beginbigop(scale, scale); "big union plus"; |
| 109 |
draw_subset(a, centre + sign * op_height/2 * up, centre - sign * op_height/2 * up, op_width - bop_line_thickness(scale), bop_line_thickness(scale)); |
| 110 |
|
| 111 |
r := 1/4op_width; |
| 112 |
|
| 113 |
draw_line_linethick(centre - sign * 1/8op_width * up + r * right, centre - sign * 1/8op_width * up + r * left, bop_line_thickness(scale), false); |
| 114 |
draw_line_linethick(centre + (r - sign * 1/8op_width) * up, centre + (r + sign * 1/8op_width) * down, bop_line_thickness(scale), false); |
| 115 |
endchar; |
| 116 |
endfor; |
| 117 |
charlist current_char - 1: current_char; |
| 118 |
endfor; |
| 119 |
|
| 120 |
for sign = 1, -1: |
| 121 |
for scale = 1, 1.4: |
| 122 |
beginbigop(scale, scale); "big square union"; |
| 123 |
z3 - z0 = z2 - z1 = (op_width - bop_line_thickness(scale)) * right; |
| 124 |
z1 - z0 = sign * (op_height - bop_line_thickness(scale)) * up; |
| 125 |
1/2[1/2[z0,z1], 1/2[z2,z3]] = centre; |
| 126 |
|
| 127 |
draw_line_linethick(z0, z1, bop_line_thickness(scale), true); |
| 128 |
draw_line_linethick(z1, z2, bop_line_thickness(scale), true); |
| 129 |
draw_line_linethick(z2, z3, bop_line_thickness(scale), true); |
| 130 |
endchar; |
| 131 |
endfor; |
| 132 |
charlist current_char - 1: current_char; |
| 133 |
endfor; |
| 134 |
|
| 135 |
for sign = 1, -1: |
| 136 |
for scale = 1, 1.4: |
| 137 |
beginbigop(scale, scale); "big square union dot"; |
| 138 |
z3 - z0 = z2 - z1 = (op_width - bop_line_thickness(scale)) * right; |
| 139 |
z1 - z0 = sign * (op_height - bop_line_thickness(scale)) * up; |
| 140 |
1/2[1/2[z0,z1], 1/2[z2,z3]] = centre; |
| 141 |
|
| 142 |
draw_line_linethick(z0, z1, bop_line_thickness(scale), true); |
| 143 |
draw_line_linethick(z1, z2, bop_line_thickness(scale), true); |
| 144 |
draw_line_linethick(z2, z3, bop_line_thickness(scale), true); |
| 145 |
fill dot(centre - sign * 1/8op_height * up, bop_dot_size(scale)); |
| 146 |
endchar; |
| 147 |
endfor; |
| 148 |
charlist current_char - 1: current_char; |
| 149 |
endfor; |
| 150 |
|
| 151 |
for sign = 1, -1: |
| 152 |
for scale = 1, 1.4: |
| 153 |
beginbigop(scale, scale); "big square union plus"; |
| 154 |
z3 - z0 = z2 - z1 = (op_width - bop_line_thickness(scale)) * right; |
| 155 |
z1 - z0 = sign * (op_height - bop_line_thickness(scale)) * up; |
| 156 |
1/2[1/2[z0,z1], 1/2[z2,z3]] = centre; |
| 157 |
|
| 158 |
draw_line_linethick(z0, z1, bop_line_thickness(scale), true); |
| 159 |
draw_line_linethick(z1, z2, bop_line_thickness(scale), true); |
| 160 |
draw_line_linethick(z2, z3, bop_line_thickness(scale), true); |
| 161 |
|
| 162 |
r := 1/4op_width; |
| 163 |
|
| 164 |
draw_line_linethick(centre - sign * 1/8op_width * up + r * right, centre - sign * 1/8op_width * up + r * left, bop_line_thickness(scale), false); |
| 165 |
draw_line_linethick(centre + (r - sign * 1/8op_width) * up, centre + (r + sign * 1/8op_width) * down, bop_line_thickness(scale), false); |
| 166 |
endchar; |
| 167 |
endfor; |
| 168 |
charlist current_char - 1: current_char; |
| 169 |
endfor; |
| 170 |
|
| 171 |
for alpha = 0, 45: |
| 172 |
for scale = 1, 1.4: |
| 173 |
beginsquarebigop(scale, scale); "big circle plus"; |
| 174 |
r := (op_height - bop_line_thickness(scale))/2; |
| 175 |
|
| 176 |
draw_circle(centre, r, bop_line_thickness(scale)); |
| 177 |
draw_line_linethick(centre - r * dir alpha, centre + r * dir alpha, bop_line_thickness(scale), false); |
| 178 |
draw_line_linethick(centre - r * dir (alpha + 90), centre + r * dir (alpha + 90), bop_line_thickness(scale), false); |
| 179 |
endchar; |
| 180 |
endfor; |
| 181 |
charlist current_char - 1: current_char; |
| 182 |
endfor; |
| 183 |
|
| 184 |
for scale = 1, 1.4: |
| 185 |
beginsquarebigop(scale, scale); "big circle dot"; |
| 186 |
draw_circle(centre, (op_height - bop_line_thickness(scale))/2, bop_line_thickness(scale)); |
| 187 |
fill dot(centre, bop_dot_size(scale)); |
| 188 |
endchar; |
| 189 |
endfor; |
| 190 |
charlist current_char - 1: current_char; |
| 191 |
|
| 192 |
for scale = 1, 1.4: |
| 193 |
beginsquarebigop(scale, scale); "big circle asterisk"; |
| 194 |
thick := bop_line_thickness(scale); |
| 195 |
r := (op_height - bop_line_thickness(scale))/2; |
| 196 |
|
| 197 |
draw_circle(centre, r, bop_line_thickness(scale)); |
| 198 |
|
| 199 |
penpos a0(4/3thick, 0); |
| 200 |
penpos a1(4/3thick, 60); |
| 201 |
penpos a2(4/3thick, 120); |
| 202 |
penpos a3(4/3thick, 180); |
| 203 |
penpos a4(4/3thick, 240); |
| 204 |
penpos a5(4/3thick, 300); |
| 205 |
|
| 206 |
penpos b0(thick, 0); |
| 207 |
penpos b1(thick, 60); |
| 208 |
penpos b2(thick, 120); |
| 209 |
penpos b3(thick, 180); |
| 210 |
penpos b4(thick, 240); |
| 211 |
penpos b5(thick, 300); |
| 212 |
|
| 213 |
reg_poly_points(a)(6, centre, r, 90); |
| 214 |
|
| 215 |
z.b0 = z.b1 = z.b2 = z.b3 = z.b4 = z.b5 = centre; |
| 216 |
|
| 217 |
fill stroke z.a0e -- z.b0e; |
| 218 |
fill stroke z.a1e -- z.b1e; |
| 219 |
fill stroke z.a2e -- z.b2e; |
| 220 |
fill stroke z.a3e -- z.b3e; |
| 221 |
fill stroke z.a4e -- z.b4e; |
| 222 |
fill stroke z.a5e -- z.b5e; |
| 223 |
endchar; |
| 224 |
endfor; |
| 225 |
charlist current_char - 1: current_char; |
| 226 |
|
| 227 |
for sign = 1, -1: |
| 228 |
for scale = 1, 1.4: |
| 229 |
beginbigop(1.3scale, scale); "product"; |
| 230 |
draw_product(centre, op_width, op_height, sign, bop_line_thickness(scale)); |
| 231 |
endchar; |
| 232 |
endfor; |
| 233 |
charlist current_char - 1: current_char; |
| 234 |
endfor; |
| 235 |
|
| 236 |
for scale = 1, 1.4: |
| 237 |
beginbigop(scale, scale); "sum"; |
| 238 |
draw_sum(a)(centre, op_width, op_height, bop_line_thickness(scale)); |
| 239 |
endchar; |
| 240 |
endfor; |
| 241 |
charlist current_char - 1: current_char; |
| 242 |
|
| 243 |
for scale = 1, 1.4: |
| 244 |
beginbigop(scale, scale); "sum modulo two"; |
| 245 |
draw_sum(a)(centre, op_width, op_height, bop_line_thickness(scale)); |
| 246 |
draw_circle(z4a, sqrt scale * 1/4op_width, bop_part_line_thickness(scale)); |
| 247 |
endchar; |
| 248 |
endfor; |
| 249 |
charlist current_char - 1: current_char; |
| 250 |
|
| 251 |
for number = 0, 1, 2, 3: |
| 252 |
for scale = 1, 1.8: |
| 253 |
beginsymbol(scale * (5number + 4) * u# + (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness# + 2side_bearing#, vcentre(scale * 1.6asc_height#)); "integral"; |
| 254 |
italcorr scale * 3u# - (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness#; % kerning between upper limit and lower limit |
| 255 |
|
| 256 |
pair centre; |
| 257 |
|
| 258 |
for i = 0 upto number: |
| 259 |
centre := (side_bearing + scale * (5i + 7/2) * u, (h - d)/2); |
| 260 |
draw_integral([i])(scale, centre, bop_line_thickness(scale)); |
| 261 |
endfor; |
| 262 |
endchar; |
| 263 |
endfor; |
| 264 |
charlist current_char - 1: current_char; |
| 265 |
endfor; |
| 266 |
|
| 267 |
for scale = 1, 1.8: |
| 268 |
beginsymbol(scale * 9u# + 4(equal_spread# + sqrt sthick(scale) * bop_thickness_fac*dot_size#) + (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness# + 2side_bearing#, vcentre(scale * 1.6asc_height#)); "integral dots"; |
| 269 |
italcorr scale * 3u# - (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness#; % kerning between upper limit and lower limit |
| 270 |
|
| 271 |
pair centre; |
| 272 |
centre := (side_bearing + scale * 7/2u, (h - d)/2); |
| 273 |
|
| 274 |
draw_integral([0])(scale, centre, bop_line_thickness(scale)); |
| 275 |
|
| 276 |
centre := (side_bearing + scale * 6u + 4(equal_spread + bop_dot_size(scale)), (h - d)/2); |
| 277 |
|
| 278 |
draw_integral([1])(scale, centre, bop_line_thickness(scale)); |
| 279 |
|
| 280 |
z0 = 1/4[z0[0],z0[1]]; |
| 281 |
z1 = 2/4[z0[0],z0[1]]; |
| 282 |
z2 = 3/4[z0[0],z0[1]]; |
| 283 |
|
| 284 |
fill dot(z0, bop_dot_size(scale)); |
| 285 |
fill dot(z1, bop_dot_size(scale)); |
| 286 |
fill dot(z2, bop_dot_size(scale)); |
| 287 |
endchar; |
| 288 |
endfor; |
| 289 |
charlist current_char - 1: current_char; |
| 290 |
|
| 291 |
for sign = 1, -1: |
| 292 |
for scale = 1, 1.8: |
| 293 |
beginsymbol(scale * 6u# + if scale > 1: (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness# else: scale * 3u# fi + 2side_bearing#, vcentre(scale * 1.6asc_height#)); "oriented integral"; |
| 294 |
if scale > 1: |
| 295 |
italcorr scale * 3u# - (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness#; % kerning between upper limit and lower limit |
| 296 |
fi |
| 297 |
|
| 298 |
pair centre; |
| 299 |
centre := (side_bearing + scale * 9/2u, (h - d)/2); |
| 300 |
|
| 301 |
draw_integral(a)(scale, centre, bop_line_thickness(scale)); |
| 302 |
|
| 303 |
thick := bop_part_line_thickness(scale); |
| 304 |
r := 4u; |
| 305 |
|
| 306 |
penpos0(thick, 135); |
| 307 |
penpos1(thick, 90); |
| 308 |
penpos2(thick, 45); |
| 309 |
|
| 310 |
z0 = z0a + sign * scale * (-r, -1/4r); |
| 311 |
z1 = z0a + sign * scale * (0, 1/4r); |
| 312 |
z2 = z0a + sign * scale * (r, -1/4r); |
| 313 |
|
| 314 |
if sign > 0: |
| 315 |
fill stroke z0.e{dir 45} .. {dir 0}z1.e .. {dir -45}z2.e; |
| 316 |
draw_arrowhead(z2, -40, 2/3scale * arrow_spread, 5/6thick); |
| 317 |
else: |
| 318 |
fill stroke z0.e{dir -135} .. {dir 180}z1.e .. {dir 135}z2.e; |
| 319 |
draw_arrowhead(z0, 40, 2/3scale * arrow_spread, 5/6thick); |
| 320 |
fi |
| 321 |
|
| 322 |
penlabels(0,1,2); |
| 323 |
endchar; |
| 324 |
endfor; |
| 325 |
charlist current_char - 1: current_char; |
| 326 |
endfor; |
| 327 |
|
| 328 |
for scale = 1, 1.8: |
| 329 |
beginsymbol(scale * 4u# + if scale > 1: (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness# else: scale * 3u# fi + 2side_bearing#, vcentre(scale * 1.6asc_height#)); "integral with horizontal bar"; |
| 330 |
if scale > 1: |
| 331 |
italcorr scale * 3u# - (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness#; % kerning between upper limit and lower limit |
| 332 |
fi |
| 333 |
|
| 334 |
pair centre; |
| 335 |
centre := (side_bearing + scale * 7/2u, (h - d)/2); |
| 336 |
|
| 337 |
draw_integral(a)(scale, centre, bop_line_thickness(scale)); |
| 338 |
|
| 339 |
r := scale * 5/2u; |
| 340 |
thick := bop_part_line_thickness(scale); |
| 341 |
|
| 342 |
draw_straight(z0a + r * left, z0a + r * right, thick, true); |
| 343 |
endchar; |
| 344 |
endfor; |
| 345 |
charlist current_char - 1: current_char; |
| 346 |
|
| 347 |
for scale = 1, 1.8: |
| 348 |
beginsymbol(scale * 4u# + if scale > 1: (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness# else: scale * 3u# fi + 2side_bearing#, vcentre(scale * 1.6asc_height#)); "integral with double horizontal bar"; |
| 349 |
if scale > 1: |
| 350 |
italcorr scale * 3u# - (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness#; % kerning between upper limit and lower limit |
| 351 |
fi |
| 352 |
|
| 353 |
pair centre; |
| 354 |
centre := (side_bearing + scale * 7/2u, (h - d)/2); |
| 355 |
|
| 356 |
draw_integral(a)(scale, centre, bop_line_thickness(scale)); |
| 357 |
|
| 358 |
z1 - z0 = equal_spread * up; |
| 359 |
1/2[z0, z1] = z0a; |
| 360 |
|
| 361 |
r := scale * 5/2u; |
| 362 |
thick := bop_part_line_thickness(scale); |
| 363 |
|
| 364 |
draw_straight(z0 + r * left, z0 + r * right, thick, true); |
| 365 |
draw_straight(z1 + r * left, z1 + r * right, thick, true); |
| 366 |
endchar; |
| 367 |
endfor; |
| 368 |
charlist current_char - 1: current_char; |
| 369 |
|
| 370 |
for scale = 1, 1.8: |
| 371 |
beginsymbol(scale * 4u# + (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness# + 2side_bearing#, vcentre(scale * 1.6asc_height#)); "stroked integral"; |
| 372 |
italcorr scale * 3u# - (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness#; % kerning between upper limit and lower limit |
| 373 |
|
| 374 |
pair centre; |
| 375 |
centre := (side_bearing + scale * 7/2u, (h - d)/2); |
| 376 |
|
| 377 |
draw_integral(a)(scale, centre, bop_line_thickness(scale)); |
| 378 |
|
| 379 |
r := scale * 7/2u; |
| 380 |
thick := bop_part_line_thickness(scale); |
| 381 |
|
| 382 |
draw_straight(z0a - r * dir 35, z0a + r * dir 35, thick, true); |
| 383 |
endchar; |
| 384 |
endfor; |
| 385 |
charlist current_char - 1: current_char; |
| 386 |
|
| 387 |
for number = 0, 1, 2: |
| 388 |
for scale = 1, 1.8: |
| 389 |
beginsymbol(scale * (5number + 5) * u# + if scale > 1: (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness# else: scale * 3u# fi + 2side_bearing#, vcentre(scale * 1.6asc_height#)); "contour integral"; |
| 390 |
if scale > 1: |
| 391 |
italcorr scale * 3u# - (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness#; % kerning between upper limit and lower limit |
| 392 |
fi |
| 393 |
|
| 394 |
pair centre; |
| 395 |
|
| 396 |
centre := (side_bearing + scale * (5number/2 + 4) * u, (h - d)/2); |
| 397 |
thick := bop_part_line_thickness(scale); |
| 398 |
r := scale * 4u; |
| 399 |
s := scale * (5number + 8)/2 * u; |
| 400 |
|
| 401 |
if number = 0: |
| 402 |
fill circle(centre, r); |
| 403 |
unfill circle(centre, r - thick); |
| 404 |
else: |
| 405 |
fill superellipse(centre + s * dir 0, centre + r * dir 90, centre - s * dir 0, centre - r * dir 90, 3/4); |
| 406 |
unfill superellipse(centre + (s - thick) * dir 0, centre + (r - thick) * dir 90, centre - (s - thick) * dir 0, centre - (r - thick) * dir 90, 3/4); |
| 407 |
fi |
| 408 |
|
| 409 |
% Integral must come after unfill when processed with MetaPost! |
| 410 |
for i = 0 upto number: |
| 411 |
centre := (side_bearing + scale * (5i + 4) * u, (h - d)/2); |
| 412 |
draw_integral([i])(scale, centre, bop_line_thickness(scale)); |
| 413 |
endfor; |
| 414 |
endchar; |
| 415 |
endfor; |
| 416 |
charlist current_char - 1: current_char; |
| 417 |
endfor; |
| 418 |
|
| 419 |
for alpha = 0, 180: |
| 420 |
for sign = 1, -1: |
| 421 |
for scale = 1, 1.8: |
| 422 |
beginsymbol(scale * 6u# + if scale > 1: (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness# else: scale * 3u# fi + 2side_bearing#, vcentre(scale * 1.6asc_height#)); "oriented contour integral"; |
| 423 |
if scale > 1: |
| 424 |
italcorr scale * 3u# - (sthick(scale)) * 3/4bop_thickness_fac*letter_line_thickness#; % kerning between upper limit and lower limit |
| 425 |
fi |
| 426 |
|
| 427 |
pair centre; |
| 428 |
centre := (side_bearing + scale * (4u + if alpha > 90: u else: 0 fi), (h - d)/2); |
| 429 |
|
| 430 |
draw_integral(a)(scale, centre, bop_line_thickness(scale)); |
| 431 |
|
| 432 |
thick := bop_part_line_thickness(scale); |
| 433 |
r := scale * 4u; |
| 434 |
|
| 435 |
reg_poly_points(a)(8, z0a, r, alpha + 25); |
| 436 |
reg_poly_points(b)(8, z0a, r - thick, alpha + 25); |
| 437 |
z.a8 = z0a + r * dir alpha; |
| 438 |
z.b8 = z0a + (r - thick) * dir alpha; |
| 439 |
|
| 440 |
if sign > 0: |
| 441 |
fill z.a0 .. z.a1 .. z.a2 .. z.a3 .. z.a4 .. z.a5 .. z.a6 .. z.a7 .. z.a8 -- z.b8 .. z.b7 .. z.b6 .. z.b5 .. z.b4 .. z.b3 .. z.b2 .. z.b1 .. z.b0 -- cycle; |
| 442 |
draw_arrowhead(1/2[z.a8, z.b8], alpha + 75, 2/3scale * arrow_spread, 5/6thick); |
| 443 |
else: |
| 444 |
fill z.a8 .. z.a0 .. z.a1 .. z.a2 .. z.a3 .. z.a4 .. z.a5 .. z.a6 .. z.a7 -- z.b7 .. z.b6 .. z.b5 .. z.b4 .. z.b3 .. z.b2 .. z.b1 .. z.b0 .. z.b8 -- cycle; |
| 445 |
draw_arrowhead(1/2[z.a8, z.b8], alpha - 75, 2/3scale * arrow_spread, 5/6thick); |
| 446 |
fi |
| 447 |
endchar; |
| 448 |
endfor; |
| 449 |
charlist current_char - 1: current_char; |
| 450 |
endfor; |
| 451 |
endfor; |
| 452 |
|
| 453 |
for scale = 1, 1.8: |
| 454 |
beginsymbol(scale * 13/2u# + if scale > 1: 0 else: scale * u# fi + 2side_bearing#, vcentre(scale * 1.6asc_height#)); "sum integral"; |
| 455 |
if scale > 1: |
| 456 |
italcorr scale * u#; % kerning between upper limit and lower limit |
| 457 |
fi |
| 458 |
|
| 459 |
pair centre; |
| 460 |
centre := (side_bearing + scale * 4u, (h - d)/2); |
| 461 |
|
| 462 |
draw_integral(a)(scale, centre, bop_line_thickness(scale)); |
| 463 |
draw_sum(b, 1/4[z0a.l,z0a.r], scale * 7u, scale * 3/4asc_height, bop_line_thickness(scale)); |
| 464 |
|
| 465 |
endchar; |
| 466 |
endfor; |
| 467 |
charlist current_char - 1: current_char; |
| 468 |
|
| 469 |
for sign = 1, -1: |
| 470 |
for scale = 1, 1.4: |
| 471 |
beginbigop(1.3scale, scale); "product integral"; |
| 472 |
draw_productintegral(centre, op_width, op_height, sign, bop_line_thickness(scale)); |
| 473 |
endchar; |
| 474 |
endfor; |
| 475 |
charlist current_char - 1: current_char; |
| 476 |
endfor; |
| 477 |
|
| 478 |
|