Debian Codegraph @

texmf-dist/fonts/source/public/cmextra/gen.mf

raw
1 % characters for Jill's genealogy publications
2
3 cmchar "Cross (death symbol)";
4 beginchar("d",9u#,.65[x_height#,asc_height#],.1(asc_height#-x_height#));
5 adjust_fit(0,0); pickup tiny.nib; light_stem=Vround .5[vair,stem];
6 pos1(stem,0); pos2(.4[hair,stem],0); pos3(stem,0);
7 %pos4(stem,90); pos5(.5[vair,stem],90); pos6(stem,90);
8 pos4(light_stem,90); pos5(.5[vair,light_stem],90); pos6(light_stem,90);
9 x1=x2=x3=.5w; top y1=h; bot y3=-d; y2=y4r;
10 y4=y5=y6; y4l=good.y .6[-d,h]; x4=good.x u; x6=r-x4; x5=x2;
11 filldraw z1l...z2l{down}...z3l--z3r...z2r{up}...z1r--cycle; % vertical stroke
12 filldraw z4l...z5l...z6l--z6r...z5r...z4r--cycle; % horizontal stroke
13 penlabels(1,2,3,4,5,6); endchar;
14
15 cmchar "Rings (marriage symbol)";
16 beginchar("m",9u#,v_center(x_height#));
17 adjust_fit(0,0); pickup tiny.nib;
18 numeric light_stem; light_stem=Vround .5[vair,stem];
19 pos1(light_stem,90); pos3(light_stem,-90);
20 pos2(light_stem,180); pos4(.3[hair,light_stem],0);
21 x1=x3=.5[x2,x4]; lft x2r=hround(-u-.5light_stem); rt x4r=hround(.6w+.5stem);
22 %top y1r=vround(h+.5light_stem); y2=y4=.5[y1,y3];
23 %bot y3r=vround(-d-.5light_stem);
24 top y1r=h; y2=y4=.5[y1,y3];
25 bot y3r=-d;
26 pos5(light_stem,90); pos7(light_stem,-90);
27 pos6(.3[hair,light_stem],180); pos8(light_stem,0);
28 x5-x1=x6-x2=x7-x3=x8-x4; rt x8r=hround(w+u+.5light_stem);
29 y5-y1=y6-y2=y7-y3=y8-y4=0;
30 filldraw stroke pulled_arc.e(1,2)&pulled_arc.e(2,3)&pulled_arc.e(3,4)
31 &pulled_arc.e(4,1); % left ring
32 filldraw stroke pulled_arc.e(5,6)&pulled_arc.e(6,7)&pulled_arc.e(7,8)
33 &pulled_arc.e(8,5); % right ring
34 penlabels(1,2,3,4,5,6,7,8); endchar;
35
36 cmchar "Five-pointed star (birth symbol)";
37 beginchar("b",9u#,v_center(x_height#));
38 adjust_fit(0,0); pickup tiny.nib;
39 numeric theta; theta=360/5; % degrees between points
40 pos0(curve,0); pos1(rule_thickness,90); x0=x1=good.x .5w;
41 top y1r=vround(math_axis+.5x_height+.5rule_thickness);
42 ypart(.5[z1,z0+(z1-z2) rotated 2theta])=math_axis;
43 pos2(curve,theta); pos3(rule_thickness,90+theta);
44 z2=z0; z3-z0=(z1-z0) rotated theta;
45 z4=whatever[z0l,z1r]=whatever[z2r,z3r];
46 filldraw for n=0 upto 4:
47 z0+(z1r-z0)rotated(n*theta)--z0+(z4-z0)rotated(n*theta)--endfor
48 cycle; % star
49 penlabels(0,1,2,3,4); endchar;
50
51 cmchar "Divided rings (divorce symbol)";
52 beginchar("1",9u#,v_center(x_height#));
53 adjust_fit(0,0); pickup tiny.nib;
54 numeric light_stem; light_stem=Vround .5[vair,stem];
55 pos11(stem,0); pos12(.4[hair,stem],0); pos13(stem,0);
56 x11=x12=x13=.5w; top y11=round 1.3h; bot y13=round(-d-.3h); y12=.6[y13,y11];
57 filldraw z11l...z12l{down}...z13l
58 --z13r...z12r{up}...z11r--cycle; % vertical stroke
59 pos1(light_stem,90); pos3(light_stem,-90);
60 pos2(light_stem,180); pos4(.3[hair,light_stem],0);
61 x1=x3=.5[x2,x4]; lft x2r=hround(-3u-.5light_stem); rt x4r=hround(.25w+.5stem);
62 top y1r=h; y2=y4=.5[y1,y3];
63 bot y3r=-d;
64 pos5(light_stem,90); pos7(light_stem,-90);
65 pos6(.3[hair,light_stem],180); pos8(light_stem,0);
66 x5-x1=x6-x2=x7-x3=x8-x4; rt x8r=hround(w+3u+.5light_stem);
67 y5-y1=y6-y2=y7-y3=y8-y4=0;
68 filldraw stroke pulled_arc.e(1,2)&pulled_arc.e(2,3)&pulled_arc.e(3,4)
69 &pulled_arc.e(4,1); % left ring
70 filldraw stroke pulled_arc.e(5,6)&pulled_arc.e(6,7)&pulled_arc.e(7,8)
71 &pulled_arc.e(8,5); % right ring
72 penlabels(1,2,3,4,5,6,7,8,11,12,13); endchar;
73
74 cmchar "Leaf";
75 beginchar("l",18u#,asc_height#,0);
76 adjust_fit(0,0); pickup pencircle scaled .6rule_thickness;
77 z1=(0,0); z2=(w,h);
78 z3=.5[z1,z2]+.25((z2-z1)rotated 90);
79 z4=.5[z1,z2]+.25((z2-z1)rotated-90);
80 path p[]; p3=z1...z3{z2-z1}...z2; p4=z1...z4{z2-z1}...z2;
81 draw p3; % upper edge
82 draw p4; % lower edge
83 draw z1 -- z2; % stem
84 z5=1/4[z1,z2]; z6=.55[z1,z2];
85 z35=p3 intersectionpoint (z5--(x5,2h));
86 z36=p3 intersectionpoint (z6--(x6,2h));
87 z45=p4 intersectionpoint (z5--(2w,y5));
88 z46=p4 intersectionpoint (z6--(2w,y6));
89 draw z35--z5--z45; % vein
90 draw z36--z6--z46; % vein
91 labels(1,2,3,4,5,6,35,36,45,46); endchar;