Debian Codegraph @

texmf-dist/fonts/source/public/universa/uniext.mf

raw
1 %%
2 %% This is file `uniext.mf',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% universa.dtx (with options: `ext')
8 %%
9 %% Copyright (C) 1998 Christian Holm.
10 %%
11 %% The universal font and package is distributed in the hope that
12 %% it will be useful, but WITHOUT ANY WARRANTY; without even the
13 %% implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 %% PURPOSE. See the GNU General Public License for more details.
15 %%
16 %% See the file universa.dtx for further comments and documentation.
17 %%
18 %%
19
20 currenttransform := identity ;
21
22 beginchar(hex"00",l_h#,l_h#,0) ; "The filled square symbol" ;
23 z1 = (0,0) ; z2 = (w,0) ; z3 = (w,h) ; z4 = (0,h) ;
24 fill z1--z2--z3--z4--cycle ;
25 penlabels(1,2,3,4) ;
26 endchar ;
27
28 beginchar(hex"01",l_h#,l_h#,0) ; "The filled circle symbol" ;
29 z1 = (w,h/2) ; z2 = (w/2,h) ; z3 = (0,h/2) ; z4 = (w/2,0) ;
30 fill z1..z2..z3..z4..cycle ;
31 penlabels(1,2,3,4) ;
32 endchar ;
33
34 beginchar(hex"02",l_h#,l_h#,0) ; "The filled triangle symbol" ;
35 z1 = (0,0) ; z2 = (w,0) ; z3 = (w/2,h) ;
36 fill z1--z2--z3--cycle ;
37 penlabels(1,2,3) ;
38 endchar ;
39
40 beginchar(hex"03",2l_h#,2l_h#,0) ; "The bauhaus-head symbol" ;
41 unicir(w/2,2c_d/9,(w/2,w/2),40) ;
42 a1 := .702h ; a2 := .561h ; a3 := .491h ; a4 := .351h ;
43 a5 := .272h ; a6 := .140h ;
44 b1 := .202w ; b2 := .307w ; b3 := .412w ; b4 := .447w ;
45 b5 := .465w ; b6 := .518w ; b7 := .588w ; b8 := .623w ;
46 temp := c_d/6 ; pickup pensquare scaled temp ;
47 top lft z1 = (b1,a1) ; top rt z2 = (b2,a1) ; draw z1--z2 ;
48 bot rt z3 = (b4,a3) ; top rt z4 = (b4,a2) ; draw z3--z4 ;
49 z5 = (b2,a1) ; z6 = (b4,a1) ; z7 = (b4,a2) ; z8 = (b2,a2) ;
50 fill z5--z6--z7--z8--cycle ;
51 lft bot z9 = (b4,a4) ; lft bot z10 = (b7,a4) ; draw z9--z10 ;
52 lft bot z11 = (b2,a6) ; rt bot z12 = (b6,a6) ; draw z11--z12 ;
53 temp := 3c_d/5 ; pickup pensquare scaled temp ;
54 lft top z13 = (b5,a5) ; rt top z14 = (b6,a5) ; draw z13--z14 ;
55 z15 = (b6,a4) ; z16 = (b7,a4) ; z17 = (b7,a6) ; z18 = (b6,a6) ;
56 fill z15--z16--z17--z18--cycle ;
57 path noselft, nosert, necklft, neckrt ;
58 path headcircle , parttop, partbot;
59 z19 = (b7,a4) ; z20 = (b7,h) ; noselft = z19--z20 ;
60 z21 = (b8,h) ; z22 = (b8,a4) ; nosert = z21--z22 ;
61 z23 = (b3,a6) ; z24 = (b3,0) ; necklft = z23--z24 ;
62 z25 = (b6,0) ; z26 = (b6,a6) ; neckrt = z25--z26 ;
63 z27 = (w/2,h) ; z28 = (w,h/2) ; z29 = (w/2,0) ; z30 = (0,h/2) ;
64 headcircle := z27..z28..z29..z30..cycle ;
65 z31 = noselft intersectiontimes headcircle ;
66 z32 = nosert intersectiontimes headcircle ;
67 parttop = subpath(y31,y32) of headcircle ;
68 z33 = neckrt intersectiontimes headcircle ;
69 z34 = necklft intersectiontimes headcircle ;
70 partbot = subpath(y34,y33) of headcircle ;
71 fill z19--parttop--z22--cycle ;
72 fill z23--partbot--z26--cycle ;
73 penlabels(range 1 thru 34) ;
74 endchar ;
75
76 beginchar(hex"04",2l_h#,2l_h#,0) ; "The bauhaus-forms symbol" ;
77 phi := 36.673 ;
78 thn_pen := 2c_d/9 ; med_pen := 3c_d/9 ; thk_pen := 4c_d/9 ;
79 unicir(w/2,thn_pen,(w/2,w/2),20) ;
80 z1 = (thn_pen+med_pen,h/2) ;
81 z2 = (.6433w-med_pen,.9790h-med_pen) ;
82 z3 = (.6433w-med_pen,.0210h+med_pen) ;
83 uniend(med_pen,z1,phi+90,270-phi,30) ;
84 uniend(med_pen,z2,0,phi+90,40) ;
85 uniend(med_pen,z3,270-phi,360,50) ;
86 z4 = z1 + med_pen*(-sind(phi),cosd(phi)) ;
87 z5 = z2 + med_pen*(-sind(phi),cosd(phi)) ;
88 path sl_line ; sl_line = z1--z4--z5--z2--cycle ; fill sl_line ;
89 fill sl_line reflectedabout((0,h/2),(w,h/2)) ;
90 pickup pensquare scaled med_pen ;
91 lft bot z6 = z2 ; lft top z7 = z3 ; draw z6--z7 ;
92 z8 = (.3687w+thk_pen,.2254h+thk_pen) ;
93 z9 = (.9179w-thk_pen,.2254h+thk_pen) ;
94 z10 = (.9179w-thk_pen,.7746h-thk_pen) ;
95 z11 = (.3687w+thk_pen,.7746h-thk_pen) ;
96 uniend(thk_pen,z8,180,270,60) ;
97 uniend(thk_pen,z9,270,360,70) ;
98 uniend(thk_pen,z10,0,90,80) ;
99 uniend(thk_pen,z11,90,180,90) ;
100 pickup pensquare scaled thk_pen ;
101 lft top z12 = z8 ; rt top z13 = z9 ; draw z12--z13 ;
102 lft bot z14 = z9 ; lft top z15 = z10 ; draw z14--z15 ;
103 bot rt z16 = z10 ; bot lft z17 = z11 ; draw z16--z17 ;
104 top rt z18 = z11 ; bot rt z19 = z8 ; draw z18--z19 ;
105 penlabels(range 1 thru 19) ;
106 endchar ;
107
108 currenttransform := identity slanted slantratio ;
109
110 if not caps :
111 for temp = 1,2 :
112 if temp = 2 : code_offset := 3 ; fi ;
113 beginchar(hex"05",x_w#,l_h#,0) ; "The letter eth" ;
114 unicir(w/2,p_t,(w/2,w/2),10) ;
115 uniarc(w/2,p_t,(w/2,h-w/2),0,120,20) ;
116 pickup unipensqu ;
117 top rt z1 = (w,h-w/2) ; bot rt z2 = (w,w/2) ; draw z1--z2 ;
118 z3 = (w/2,h-w/2+p_t/sqrt(2)) ; z4 = (w/2+p_t/sqrt(2),h-w/2) ;
119 z5 = (w,h-p_t/sqrt(2)) ; z6 = (w-p_t/sqrt(2),h) ;
120 fill z3--z4--z5--z6--cycle ;
121 penlabels(range 1 thru 6) ;
122 endchar ;
123
124 beginchar(hex"06",x_w#,x_h#,p_d#) ; "The letter eng" ;
125 uniarc(w/2,p_t,(w/2,h-w/2),0,180,10) ;
126 pickup unipensqu ;
127 top lft z1 = (0,h-w/2) ; bot lft z2 = (0,0) ; draw z1--z2 ;
128 top rt z3 = (w,h-w/2) ; bot rt z4 = (w,-d) ; draw z3--z4 ;
129 penlabels(1,2,3,4) ;
130 endchar ;
131
132 beginchar(hex"07",x_w#,l_h#,p_d#) ; "The letter thorn" ;
133 rad := (h+d)/4 ;
134 uniarc(rad,p_t,(w-rad,rad),-90,90,10) ;
135 pickup unipensqu ;
136 top lft z1 = (0,h) ; bot lft z2 = (0,-d) ; draw z1--z2 ;
137 top lft z3 = (p_t,2rad) ; top rt z4 = (w-rad,2rad) ;
138 bot lft z5 = (p_t,0) ; bot rt z6 = (w-rad,0) ;
139 draw z3--z4 ; draw z5--z6 ;
140 penlabels(range 1 thru 6) ;
141 endchar ;
142 exitif (not strict) ;
143 if temp = 2 : code_offset := 0 ; fi ;
144 endfor ;
145 fi ;
146
147 if not strict :
148 for temp = 1,2 :
149 if temp = 2 : do_caps(-3) ; fi ;
150
151 beginchar(hex"08",A_w#,l_h#,0) ; "The variant letter Q";
152 unicir(w/2,P_t,(w/2,h-w/2),10)
153 pickup Unipensqu ;
154 rt top z1 = (w,h-w/2) ; rt bot z2 = (w,0) ; draw z1--z2 ;
155 penlabels(1,2);
156 endchar ;
157
158 beginchar(hex"09",A_w#,l_h#,0) ; "The letter Eng" ;
159 rad := 3C_d ;
160 uniarc(w/2,P_t,(w/2,h-w/2),0,180,10) ;
161 uniarc(rad,P_t,(w-rad,rad),-90,0,20) ;
162 pickup Unipensqu ;
163 top lft z1 = (0,h-w/2) ; bot lft z2 = (0,0); draw z1--z2 ;
164 top rt z3 = (w,h-w/2) ; bot rt z4 = (w,rad) ; draw z3--z4 ;
165 penlabels(1,2,3,4) ;
166 endchar ;
167
168 beginchar(hex"0A",A_w#,l_h#,0) ; "The letter Thorn" ;
169 rad := h/4 ;
170 uniarc(rad,P_t,(w-rad,h/2),-90,90,10) ;
171 pickup Unipensqu ;
172 top lft z1 = (0,h) ; bot lft z2 = (0,0) ; draw z1--z2 ;
173 top lft z3 = (P_t,h/2+rad) ; top rt z4 = (w-rad,h/2+rad) ;
174 bot lft z5 = (P_t,h/2-rad) ; bot rt z6 = (w-rad,h/2-rad) ;
175 draw z3--z4 ; draw z5--z6 ;
176 penlabels(range 1 thru 6) ;
177 endchar ;
178 exitif (not caps) ;
179 if temp = 2 : end_do_caps ; fi ;
180 endfor ;
181 fi ;
182
183 beginchar(hex"0B",x_w#,x_h#,2c_d#) ; "The accent ogoneck" ;
184 uniarc(d/2,2P_T/3,(w/2-d/4,-d/2),-90,90,10) ;
185 endchar ;
186
187 beginchar(hex"0C",3c_d#,l_h#,p_d#) ; "The left brace ({)" ;
188 uniarc(2c_d,p_t,(3c_d,h-2c_d),90,180,10) ;
189 uniarc(2c_d,p_t,(3c_d,-d+2c_d),180,270,20) ;
190 pickup unipensqu ;
191 top lft z1 = (c_d,h-2c_d) ; bot lft z2 = (c_d,-d+2c_d) ; draw z1--z2 ;
192 lft z3 = (0,(h-d)/2) ; rt z4 = (c_d,(h-d)/2) ; draw z3--z4 ;
193 penlabels(1,2,3,4) ;
194 endchar ;
195
196 beginchar(hex"0D",3c_d#,l_h#,p_d#) ; "The right brace (})" ;
197 uniarc(2c_d,p_t,(0,h-2c_d),0,90,10) ;
198 uniarc(2c_d,p_t,(0,-d+2c_d),270,360,20) ;
199 pickup unipensqu ;
200 top rt z1 = (w-c_d,h-2c_d) ; bot rt z2 = (w-c_d,-d+2c_d) ;
201 draw z1--z2 ;
202 rt z3 = (w,(h-d)/2) ; lft z4 = (w-c_d,(h-d)/2) ; draw z3--z4 ;
203 penlabels(1,2,3,4) ;
204 endchar ;
205
206 beginchar(hex"0E",(l_h#+p_d#+2p_t#)/3,l_h#,p_d#) ;
207 "The Paragraph sign" ;
208 uniarc(w/2,p_t,(w/2,h-w/2),30,270,10) ;
209 uniarc(w/2,p_t,(w/2,w/2-d),-150,90,20) ;
210 unicir(w/2,p_t,(w/2,(h-d)/2),30) ;
211 endchar ;
212
213 beginchar(hex"0F",p_t#,l_h#,p_d#) ; "The symbol bar (|)" ;
214 pickup unipensqu ;
215 lft top z1 = (0,h) ; lft bot z2 = (0,-d) ; draw z1--z2 ;
216 penlabels(1,2);
217 endchar ;
218
219 beginchar(hex"22",2x_w#/3,x_h#,0) ; "The single left guillomot" ;
220 z1 = (p_t,h/2) ; z2 = (w,h) ; phi := angle(z2-z1) ;
221 uniend(p_t,(z1),90+phi,270-phi,10) ;
222 z3 = (w-p_t/sind(phi),h) ; z4 = z1 + p_t*(-sind(phi),cosd(phi)) ;
223 path rombe ; rombe := z1--z2--z3--z4--cycle ; fill rombe ;
224 fill rombe reflectedabout ((0,h/2),(w,h/2)) ;
225 penlabels(1,2,3,4) ;
226 endchar ;
227
228 beginchar(hex"5C",2x_w#/3,x_h#,0) ; "The single right guillomot";
229 z1 = (w-p_t,h/2) ; z2 = (0,h) ; phi := 180-angle(z2-z1) ;
230 uniend(p_t,(z1),phi-90,90-phi,10) ;
231 z3 = (p_t/sind(phi),h) ; z4 = z1 + p_t*(sind(phi),cosd(phi)) ;
232 path rombe ; rombe := z1--z2--z3--z4--cycle ; fill rombe ;
233 fill rombe reflectedabout ((0,h/2),(w,h/2)) ;
234 penlabels(1,2,3,4) ;
235 endchar ;
236
237 \endinput
238 %%
239 %% End of file `uniext.mf'.