| 1 |
% Modify a set of "bold" parameters to make them suitable for a |
| 2 |
% bolded math font. This is used to turn CMBX into CMBSY and CMMIB. |
| 3 |
|
| 4 |
% AMS doubles cmbx's values for cmbsy. But we can't just multiply |
| 5 |
% c-cmbx's value of |letter_fit| by two, since that introduces round-off |
| 6 |
% error -- cmbsy5's value should be 0.16667, not 0.16666. So instead we |
| 7 |
% halve the divisor. |
| 8 |
letter_fit#:= % extra space added to all sidebars |
| 9 |
(if design_size < 8: (-(design_size*10)+80) |
| 10 |
else: (0)fi)/180pt#; |
| 11 |
|
| 12 |
% Version 2.1 of the AMS fonts has confused values for this -- 5--8pt |
| 13 |
% are whole numbers 9--12pt#, while 9pt is 13/36pt#. CM's 10pt value |
| 14 |
% is also 13/36pt#. |
| 15 |
crisp#:= % diameter of serif corners |
| 16 |
(if design_size < 9: (design_size + 4pt#) |
| 17 |
else: ((crisp#*360pt#) + (design_size * 13))/360pt# |
| 18 |
fi); |
| 19 |
|
| 20 |
% cmbsy5=23, cmbsy6=27, cmbsy7=31, cmbsy8=34, cmbsy9=37, cmbsy10=40. |
| 21 |
stem#:= % lowercase stem breadth |
| 22 |
(if design_size <= 7: ((design_size - 5pt#) * 4pt# + 23pt#) |
| 23 |
else: ((design_size - 8pt#) * 3pt# + 34pt#) |
| 24 |
fi) / 36pt#; |
| 25 |
|
| 26 |
curve#:= % lowercase curve breadth |
| 27 |
(if design_size < 10: ((design_size - 5pt#) * 4pt# + 26pt#) |
| 28 |
else: ((design_size - 10pt#) * 3pt# + 45pt#) |
| 29 |
fi) / 36pt#; |
| 30 |
|
| 31 |
ess#:= % breadth in middle of lowercase s |
| 32 |
((ess#*360pt#) - (design_size * 2))/360pt#; |
| 33 |
|
| 34 |
flare#:= % diameter of bulbs or breadth of terminals |
| 35 |
((flare#*360pt#) - (design_size * 3))/360pt#; |
| 36 |
|
| 37 |
cap_stem#:= % uppercase stem breadth |
| 38 |
((cap_stem#*360pt#) - (design_size * 1) - 0.0004)/360pt#; |
| 39 |
|
| 40 |
cap_curve#:= % uppercase curve breadth |
| 41 |
(if design_size < 10: |
| 42 |
((design_size - 5pt#) * 5pt# + 30pt#) |
| 43 |
else: |
| 44 |
((design_size - 10pt#) * 3pt# + 53pt#) |
| 45 |
fi) / 36pt#; |
| 46 |
% ((cap_curve#*360pt#) - (design_size * 2) + 0.0025)/360pt#; |
| 47 |
|
| 48 |
cap_ess#:= % breadth in middle of uppercase s |
| 49 |
((cap_ess#*360pt#) - (design_size * 2))/360pt#; |
| 50 |
|
| 51 |
jut#:= % protrusion of lowercase serifs |
| 52 |
((jut#*360pt#) + (design_size * 2))/360pt#; |
| 53 |
|
| 54 |
o#:= % amount of overshoot for curves |
| 55 |
((o#*360pt#) + (design_size * 2))/360pt#; |
| 56 |
|
| 57 |
apex_o#:= % amount of overshoot for diagonal junctions |
| 58 |
((apex_o#*360pt#) + (design_size * 3) + 0.001)/360pt#; |
| 59 |
|
| 60 |
slant:= % tilt ratio $(\Delta x/\Delta y)$ |
| 61 |
0.25; |
| 62 |
|
| 63 |
variant_g:= % should an italic-style g be used? |
| 64 |
true; |
| 65 |
|
| 66 |
math_fitting:= % should math-mode spacing be used? |
| 67 |
true; |