Debian Codegraph @

texmf-dist/fonts/source/public/mdsymbol/mdturnstile.mf

raw
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 for factor = 1, 7/10:
10 for alpha = 0, 90, 180, 270:
11 beginturnstile(alpha, factor); "turnstile (" & decimal alpha & ")";
12 draw_line(foot, foot + (len - line_thickness/2) * dir alpha, false);
13 draw_line(foot - spread/2 * dir (alpha + 90), foot + spread/2 * dir (alpha + 90), true);
14
15 if negated:
16 stroke_through_arrow(foot + 1/2len * dir alpha, alpha, spread)(75, 75, 110, 110, 75, 75, 110, 110);
17 fi
18 endchar;
19 endfor;
20 endfor;
21
22 for factor = 1, 7/10:
23 for alpha = 0, 90, 180, 270:
24 beginturnstile(alpha, factor); "double turnstile (" & decimal alpha & ")";
25 z1 - z0 = equal_spread * dir (alpha + 90);
26 1/2[z0,z1] = foot;
27
28 draw_line(z0, z0 + (len - line_thickness/2) * dir alpha, false);
29 draw_line(z1, z1 + (len - line_thickness/2) * dir alpha, false);
30 draw_line(foot - spread/2 * dir (alpha + 90), foot + spread/2 * dir (alpha + 90), true);
31
32 if negated:
33 stroke_through_arrow(foot + 1/2len * dir alpha, alpha, spread)(75, 75, 110, 110, 75, 75, 110, 110);
34 fi
35 endchar;
36 endfor;
37 endfor;
38
39 for factor = 13/10, 1:
40 for alpha = 0, 90, 180, 270:
41 beginturnstile(alpha, factor); "bar with turnstile (" & decimal alpha & ")";
42 z0 = foot + 3/10turnstile_width * dir alpha;
43
44 draw_line(z0, foot + (len - line_thickness/2) * dir alpha, false);
45 draw_line(foot - spread/2 * dir (alpha + 90), foot + spread/2 * dir (alpha + 90), true);
46 draw_line(z0 - spread/2 * dir (alpha + 90), z0 + spread/2 * dir (alpha + 90), true);
47
48 if negated:
49 stroke_through_arrow(z0 + 1/2(len - 3/10turnstile_width) * dir alpha, alpha, spread)(75, 75, 110, 110, 75, 75, 110, 110);
50 fi
51 endchar;
52 endfor;
53 endfor;
54
55 for alpha = 0, 90, 180, 270:
56 beginturnstile(alpha, 13/10); "bar with double turnstile (" & decimal alpha & ")";
57 z0 = foot + 3/10turnstile_width * dir alpha;
58 z2 - z1 = z4 - z3 = equal_spread * dir (alpha + 90);
59 1/2[z1,z2] = foot;
60 1/2[z3,z4] = z0;
61
62 draw_line(z3, z1 + (len - line_thickness/2) * dir alpha, false);
63 draw_line(z4, z2 + (len - line_thickness/2) * dir alpha, false);
64 draw_line(foot - spread/2 * dir (alpha + 90), foot + spread/2 * dir (alpha + 90), true);
65 draw_line(z0 - spread/2 * dir (alpha + 90), z0 + spread/2 * dir (alpha + 90), true);
66
67 if negated:
68 stroke_through_arrow(z0 + 1/2(len - 3/10turnstile_width) * dir alpha, alpha, spread)(75, 75, 110, 110, 75, 75, 110, 110);
69 fi
70 endchar;
71 endfor;
72
73 for alpha = 0, 180:
74 beginturnstile(alpha, 13/10); "double bar with turnstile (" & decimal alpha & ")";
75 z0 = foot + 3/10turnstile_width * dir alpha;
76 z1 = z0 + 3/10turnstile_width * dir alpha;
77
78 draw_line(z1, foot + (len - line_thickness/2) * dir alpha, false);
79 draw_line(foot - spread/2 * dir (alpha + 90), foot + spread/2 * dir (alpha + 90), true);
80 draw_line(z0 - spread/2 * dir (alpha + 90), z0 + spread/2 * dir (alpha + 90), true);
81 draw_line(z1 - spread/2 * dir (alpha + 90), z1 + spread/2 * dir (alpha + 90), true);
82
83 if negated:
84 stroke_through_arrow(z1 + 1/2(len - 3/5turnstile_width) * dir alpha, alpha, spread)(75, 75, 110, 110, 75, 75, 110, 110);
85 fi
86 endchar;
87 endfor;
88
89 for alpha = 0, 180:
90 beginturnstile(alpha, 1); "triple turnstile (" & decimal alpha & ")";
91 z0 - foot = foot - z1 = equal_spread * dir (alpha + 90);
92
93 draw_line(z0, z0 + (len - line_thickness/2) * dir alpha, false);
94 draw_line(foot, foot + (len - line_thickness/2) * dir alpha, false);
95 draw_line(z1, z1 + (len - line_thickness/2) * dir alpha, false);
96 draw_line(foot - spread/2 * dir (alpha + 90), foot + spread/2 * dir (alpha + 90), true);
97
98 if negated:
99 stroke_through_arrow(foot + 1/2len * dir alpha, alpha, spread)(75, 75, 110, 110, 75, 75, 110, 110);
100 fi
101 endchar;
102 endfor;