Debian Codegraph @

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

raw
1 %%
2 %% This is file `unilig.mf',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% universa.dtx (with options: `lig')
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 if caps:
21 beginchar(hex"19",5/2x_w#,x_h#,0) ; "Ligature SS" ;
22 temp := (h+p_t)/4 ;
23 uniarc(temp,p_t,(temp,temp),180,270,10) ;
24 uniarc(temp,p_t,(2w/5-temp,temp),270,450,20) ;
25 uniarc(temp,p_t,(temp,h-temp),90,270,30) ;
26 uniarc(temp,p_t,(2w/5-temp,h-temp),0,90,40) ;
27 pickup unipensqu ;
28 bot lft z1 = (temp,0) ; bot rt z2 = (2w/5-temp,0) ;
29 lft z3 = (temp,h/2) ; rt z4 = (2w/5-temp,h/2) ;
30 top lft z5 = (temp,h) ; top rt z6 = (2w/5-temp,h) ;
31 draw z1--z2 ; draw z3--z4 ; draw z5--z6 ;
32 penlabels(1,2,3,4,5,6) ;
33 currentpicture := currentpicture + (currentpicture shifted
34 (3/5w,0)) ;
35 endchar ;
36
37 else:
38 beginchar(hex"19",(l_h#+3p_t#)/2,l_h#,p_t#) ; "Ligature ss" ;
39 rad := (w-p_t)/2 ;
40 uniarc(rad,p_t,(p_t+rad,h-rad),-90,180,10) ;
41 uniarc(rad,p_t,(p_t+rad,rad),-90,90,20) ;
42 pickup unipensqu ;
43 top lft z1 = (p_t,h-rad) ; bot lft z2 = (p_t,-d) ; draw z1--z2 ;
44 lft z3 = (0,h/2) ; rt z4 = (w-rad,h/2) ; draw z3--z4 ;
45 penlabels(1,2,3,4) ;
46 endchar ;
47 fi ;
48
49 if not caps :
50 for temp = 1,2 :
51 if temp = 2 : code_offset := 3 ; fi ;
52 beginchar(hex"1A",2x_w#-p_t#,x_h#,0) ; "Ligature ae" ;
53 currentpicture := a_pic + ( e_pic shifted ((w-p_t)/2,0)) ;
54 endchar ;
55
56 beginchar(hex"1B",2x_w#-p_t#,x_h#,0) ; "Ligature oe" ;
57 unicir(h/2,p_t,(h/2,h/2),10) ;
58 currentpicture := currentpicture + (e_pic shifted ((w-p_t)/2,0)) ;
59 endchar ;
60
61 beginchar(hex"1C",x_w#,x_h#,0) ; "Ligature o/" ;
62 unicir(w/2,p_t,(w/2,h/2),10) ;
63 unilne(p_t,(0,0),(w,h),1,1,20) ;
64 endchar ;
65 exitif (not strict) ;
66 if temp = 2 : code_offset := 0 ; fi ;
67 endfor ;
68 fi ;
69
70 if not strict :
71 for temp = 1,2 :
72 if temp = 2 : do_caps(-3) ; fi ;
73
74 beginchar(hex"1D",M_w#,l_h#,0) ; "Ligature AE" ;
75 uniarc(w/2,P_t,(w/2,h-w/2),90,180,21) ;
76 uniend(P_t,((w+P_t)/2,P_t),180,270,30) ;
77 pickup Unipensqu ;
78 top lft z1 = (w/2,h) ; top rt z2 = (w,h) ;
79 top lft z3 = (0,h-w/2) ; bot lft z4 = (0,0) ;
80 lft z5 = (0,h/2) ; rt z6 = (w,h/2) ;
81 bot lft z7 = ((w+P_t)/2,0) ; bot rt z8 = (w,0) ;
82 top z9 = (w/2,h) ; bot z10 = (w/2,P_t) ;
83 draw z1--z2 ; draw z3--z4 ; draw z5--z6 ;
84 draw z7--z8 ; draw z9--z10 ;
85 penlabels(range 1 thru 10) ;
86 endchar ;
87
88 beginchar(hex"1E",M_w#,l_h#,0) ; "Ligature OE" ;
89 uniarc(h/2,P_t,(h/2,h/2),90,270,10) ;
90 pickup Unipensqu ;
91 top lft z1 = (h/2,h) ; top rt z2 = (w,h) ; draw z1--z2 ;
92 lft z3 = (h/2,h/2) ; rt z4 = (w,h/2) ; draw z3--z4 ;
93 bot lft z5 = (h/2,0) ; bot rt z6 = (w,0) ; draw z5--z6 ;
94 top z7 = (h/2,h) ; bot z8 = (h/2,0) ; draw z7--z8 ;
95 penlabels(range 1 thru 8) ;
96 endchar ;
97
98 beginchar(hex"1F",l_h#,l_h#,0) ; "Liguture O/" ;
99 unicir(w/2,P_t,(w/2,h/2),10) ;
100 unilne(P_t,(0,0),(w,h),1,1,20) ;
101 endchar ;
102
103 exitif (not caps) ;
104 if temp = 2 : end_do_caps ; fi ;
105 endfor ;
106 fi ;
107
108 \endinput
109 %%
110 %% End of file `unilig.mf'.