| 1 |
% make a solid diamond to use as a calligraphic-style bullet |
| 2 |
if unknown cmbase: input cmbase fi % omit if CMMF can be assumed |
| 3 |
mode_setup; |
| 4 |
|
| 5 |
def generate suffix t= enddef; |
| 6 |
input cmr12; font_setup; |
| 7 |
|
| 8 |
cmchar "Solid diamond"; % cf Diamond operator in sym.mf |
| 9 |
beginchar("d",9u#,v_center(7u#)); |
| 10 |
italcorr math_axis#*slant; |
| 11 |
adjust_fit(0,0); pickup rule.nib; |
| 12 |
numeric a; a=(lft 3.5u)*sqrt(3.14159/2); % an attempt to match circle area |
| 13 |
x4=x8=good.x .5w; center_on(x4); x2=w-x6=good.x(x4+a); |
| 14 |
y2=y6=.5[y4,y8]=math_axis; y8=good.y(y2+a); |
| 15 |
fill (rt z2)--(top z8)--(lft z6)--(bot z4)--cycle; % bowl |
| 16 |
labels(2,4,6,8); endchar; |
| 17 |
|
| 18 |
end |