Debian Codegraph @

texmf-dist/fonts/source/public/bookhands/rtndlig.mf

raw
1 %%
2 %% This is file `rtndlig.mf',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% rotunda.dtx (with options: `lig')
8 %%
9 %% Copyright 1999 Peter R. Wilson
10 %%
11 %% This program is provided under the terms of the
12 %% LaTeX Project Public License distributed from CTAN
13 %% archives in directory macros/latex/base/lppl.txt.
14 %%
15 %% Author: Peter Wilson (CUA)
16 %% now at: [email protected]
17 %%
18
19
20 ligtable "`": "`"=:oct"134";
21 ligtable "'": "'"=:oct"042"; %% , "?" kern 2u#, "!" kern 2u#;
22
23 ligtable "-": "-"=:oct"173";
24 ligtable oct"173": "-"=:oct"174";
25
26 %%%%ligtable "c": "t"=:oct"014";
27 %%%%ligtable "s": "t"=:oct"015";
28
29
30 cmchar "Closing quotes";
31 beginchar(oct"042",2sb#+hstretch*(comma_width#+3dot_size#),4/3x_height#,0);
32 adjust_fit(0,0);
33 pcshiftx:=sb;
34 x1=w-pcshiftx-(0.5hstretch*dot_size); y1=y2=h;
35 x2=x1-(2hstretch*dot_size);
36 draw_pcomma(1,dot_size,comma_width); % right
37 draw_pcomma(2,dot_size,comma_width); % left
38 penlabels(1,2);
39 endchar; % end of "''"
40
41
42 cmchar "Opening quotes";
43 beginchar(oct"134",2sb#+hstretch*(comma_width#+3dot_size#),4/3x_height#,0);
44 adjust_fit(0,0);
45 pcshiftx:=sb;
46 x1=pcshiftx+(0.5hstretch*dot_size); y1=y2=h;
47 x2=x1+(2hstretch*dot_size);
48 draw_plq(1,dot_size,comma_width); % left
49 draw_plq(2,dot_size,comma_width); % right
50 penlabels(1,2);
51 endchar; % end of "``"
52
53
54 cmchar "Hyphen";
55 beginchar("-",sb#+hstretch*(0.8x_height#),x_height#,0);
56 adjust_fit(0,0);
57 pcshiftx:=sb/2;
58 %%numeric alpha; alpha:=w/8;
59 %%pickup quill;
60 %%lft x1 = pcshiftx; rt x2=w-pcshiftx; y1=y2=h/2;
61 %%x11=lft x1+alpha/2; y11=top y1-0.5thin;
62 %%x12=rt x2; y12=bot y1+0.5thin;
63 %%draw_triangle(11,alpha);
64 %%draw_rutriangle(12,alpha);
65 pickup halfquill;
66 lft x21=pcshiftx+jut; rt x22=w-pcshiftx-jut; y21=y22=1/2h;
67 draw z21--z22;
68 draw_roundserif(21,22,srad); draw_flatserif(22,21,srad);
69 penlabels(1,2);
70 endchar; % end of "-"
71
72
73 cmchar "En dash";
74 beginchar(oct"173",sb#+hstretch*(x_height#),x_height#,0);
75 adjust_fit(0,0);
76 pcshiftx:=sb/2;
77 %%numeric alpha; alpha:=w/8;
78 %%pickup quill;
79 %%lft x1 = pcshiftx; rt x2=w-pcshiftx; y1=y2=h/2;
80 %%x11=lft x1+alpha/2; y11=top y1-0.5thin;
81 %%x12=rt x2; y12=bot y1+0.5thin;
82 %%draw_triangle(11,alpha);
83 %%draw_rutriangle(12,alpha);
84 pickup halfquill;
85 lft x21=pcshiftx+jut; rt x22=w-pcshiftx-jut; y21=y22=1/2h;
86 draw z21--z22;
87 draw_roundserif(21,22,srad); draw_flatserif(22,21,srad);
88 penlabels(1,2);
89 endchar; % end of "--"
90
91
92 cmchar "Em dash";
93 beginchar(oct"174",sb#+hstretch*(2x_height#),x_height#,0);
94 adjust_fit(0,0);
95 pcshiftx:=sb/2;
96 %%numeric alpha; alpha:=w/8;
97 %%pickup quill;
98 %%lft x1 = pcshiftx; rt x2=w-pcshiftx; y1=y2=h/2;
99 %%x11=lft x1+alpha/2; y11=top y1-0.5thin;
100 %%x12=rt x2; y12=bot y1+0.5thin;
101 %%draw_triangle(11,alpha);
102 %%draw_rutriangle(12,alpha);
103 pickup halfquill;
104 lft x21=pcshiftx+jut; rt x22=w-pcshiftx-jut; y21=y22=1/2h;
105 draw z21--z22;
106 draw_roundserif(21,22,srad); draw_flatserif(22,21,srad);
107 penlabels(1,2);
108 endchar; % end of "---"
109
110
111 cmchar "RTND ampersand";
112 beginchar("&", 2sb#+hstretch*(5/4x_height#+2jut#), asc_height#, 0);
113 adjust_fit(0,0);
114 numeric n[];
115 path pth[];
116 pcshiftx:=sb;
117 pickup quill;
118 %% alpha looking part
119 n1 := w-2pcshiftx-jut; % actual letter width
120 n2 := h/ascratio; % x-height
121 n3 := 16/16n2; % height of alpha
122 x1 = w-pcshiftx; bot y1 = 0;
123 x3 = pcshiftx + 12/16n1; y3 = 1/2n3;
124 lft x5 = pcshiftx; y5 = y3;
125 x4 = x6 = 1/2[x5,x3];
126 top y4 = n3; bot y6 = 0;
127 rt x8 = w-pcshiftx-jut;
128 top y8 = h - thick;
129 x9 = x8-2jut; x10-x8 = x8-x9;
130 y9=y10=y8;
131 pth1 := z1{left}..z3..z4{left}.. tension 0.8 ..z5{down}..
132 tension 0.8 ..z6{right}..z3..z8{up};
133 %% loop
134 z21 = z5;
135 z25 = point 1.5 of pth1;
136 x23 = 1/2[x21,x25];
137 top y23 = h;
138 pth2 := z21{up}..z23{right}..z25{down};
139 %%ductus:=true;
140 if ductus:
141 pickup stylus;
142 fi
143 draw pth1; draw z8--z10; % alpha
144 draw pth2; % loop
145 ductus:=false;
146 penlabels(1,2,3,4,5,6,7,8,9,10,16,17,18,19,21,22,23,24,25);
147 endchar; % end of "&"
148