Debian Codegraph @

texmf-dist/fonts/source/public/pacioli/cpclig.mf

raw
1 %%
2 %% This is file `cpclig.mf',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% pacioli.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 and NIST)
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
27 cmchar "Closing quotes";
28 beginchar(oct"042",7u#+max(2u#,dot_size#),asc_height#,0);
29 italcorr asc_height#*slant+dot_size#-4.1u#;
30 adjust_fit(0,0);
31 x1-.5dot_size=hround .6u; y2+.5dot_size=h;
32 x2-x1=hround(1.5u+max(2u,dot_size)); y2=y1;
33 comma(1,a,dot_size,.25u,comma_depth); % left dot and tail
34 comma(2,b,dot_size,.25u,comma_depth); % right dot and tail
35 penlabels(1,2); endchar;
36
37
38 cmchar "Hyphen";
39 beginchar("-",6u#,x_height#,0);
40 italcorr .5x_height#*slant-.5u#;
41 adjust_fit(0,0);
42 numeric thickness; thickness=if hefty:bar else:.75[hair,stem] fi;
43 pickup crisp.nib; pos1(thickness,90); pos2(thickness,90);
44 top y1r=top y2r=vround(.5h+.5thickness); rt x2=hround(w-u)+eps;
45 if monospace: x2=w-x1 else: lft x1=hround .2u-eps fi;
46 filldraw stroke z1e--z2e; % bar
47 penlabels(1,2); endchar;
48
49
50 cmchar "Opening quotes";
51 beginchar(oct"134",7u#+max(2u#,dot_size#),asc_height#,0);
52 italcorr asc_height#*slant-.1u#;
53 adjust_fit(0,0);
54 x2+.5dot_size=hround(w-.6u); y1+.5dot_size=h-comma_depth;
55 x2-x1=hround(1.5u+max(2u,dot_size)); y2=y1;
56 ammoc(1,a,dot_size,.25u,comma_depth); % left dot and tail
57 ammoc(2,b,dot_size,.25u,comma_depth); % right dot and tail
58 penlabels(1,2); endchar;
59
60
61 cmchar "En dash";
62 beginchar(oct"173",9u#,x_height#,0);
63 italcorr .61803x_height#*slant+.5u#;
64 adjust_fit(0,0);
65 %%pickup crisp.nib; pos1(vair,90); pos2(vair,90);
66 pickup crisp.nib; pos1(medium,90); pos2(medium,90);
67 top y1r=top y2r=vround(.61803h+.5vair); lft x1=-eps; rt x2=w+eps;
68 filldraw stroke z1e--z2e; % bar
69 penlabels(1,2); endchar;
70
71
72 cmchar "Em dash";
73 beginchar(oct"174",18u#,x_height#,0);
74 italcorr .61803x_height#*slant+.5u#;
75 adjust_fit(letter_fit#,letter_fit#);
76 %%pickup crisp.nib; pos1(vair,90); pos2(vair,90);
77 pickup crisp.nib; pos1(medium,90); pos2(medium,90);
78 top y1r=top y2r=vround(.61803h+.5vair); lft x1=-eps; rt x2=w+eps;
79 filldraw stroke z1e--z2e; % bar
80 penlabels(1,2); endchar;
81