| 1 |
%% |
| 2 |
%% This is file `cpcromanp.mf', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% pacioli.dtx (with options: `xp') |
| 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 |
cmchar "Ampersand"; |
| 21 |
beginchar("&",14u#,asc_height#,0); |
| 22 |
italcorr x_height#*slant-serif_fit# - if serifs: .4u# else: 1.5u# fi; |
| 23 |
adjust_fit(0,serif_fit#); |
| 24 |
pickup tiny.nib; pos2(slab,-90); x2=4u; bot y2r=-o; |
| 25 |
if not hefty:(x,y2l)=whatever[z2r,(w-5u,x_height)]; x2l:=x; fi |
| 26 |
if serifs: pos0(fudged.hair,0); |
| 27 |
rt x0r+jut=hround(w-.9u); top y0=x_height; |
| 28 |
pos1(fudged.hair,0); z1=whatever[z0,(.6[x0,x2],0)]; |
| 29 |
y1=max(y0-1.5bracket-.2x_height,2/3x_height); |
| 30 |
filldraw stroke z0e---z1e...{left}z2e; % short diagonal |
| 31 |
else: pickup fine.nib; pos1(.25[slab,flare],-15); rt x1r=hround(w-2u); |
| 32 |
y1r=good.y .75[bar_height,x_height]; x1l:=good.x x1l; y1l:=good.y y1l; |
| 33 |
top z2'l=(x2l,tiny.top y2l); bot z2'r=(x2r,tiny.bot y2r); |
| 34 |
filldraw stroke term.e(2',1,right,1,4); fi % short diagonal and terminal |
| 35 |
pickup tiny.nib; numeric slope,theta,reduced_hair; |
| 36 |
slope=(h-2vair-slab)/10.5u; theta=angle(-slope,1); |
| 37 |
reduced_hair=max(tiny.breadth,hround(fudged.hair if hefty:-2stem_corr fi)); |
| 38 |
lft x3r=hround .75u; x5=.5[x3r,x6l]; lft x6r=hround .5(w-u); |
| 39 |
x3l-x3r=curve-tiny; pos6(reduced_hair,180); |
| 40 |
pos5(vair,theta); y5=.5h; |
| 41 |
ellipse_set(2l,3l,4l,5l); ellipse_set(2r,3r,4r,5r); |
| 42 |
pos7(vair,270); top y7l=h+o; x7=.45[x6r,x8r]; |
| 43 |
pos8(fudged.stem,30); x8l=good.x(x8l+3.5u-x8); y8r=y6; |
| 44 |
ellipse_set(7l,6l,5',5l); |
| 45 |
filldraw stroke z2e{left}...z3e{up}...z4e---z5e...{up}z6e |
| 46 |
...z7e{left}...z8e{down}; % bowls |
| 47 |
pos10(slab,90); x10=w-3.5u; bot y10l=-o; |
| 48 |
pos9(fudged.stem,angle(z8-z10)-90); |
| 49 |
z9=.5[z8,z10]+(1.75u,0) rotated(angle(z8-z10)+90); |
| 50 |
filldraw stroke z8e{down}...z9e{z10-z8}...{right}z10e; % long diagonal |
| 51 |
if serifs: pickup crisp.nib; pos10'(slab,90); z10'=z10; |
| 52 |
pos11(fudged.hair,180); rt x11l=hround(w-u); y11=.5bar_height; |
| 53 |
filldraw stroke z10'e{right}...{up}z11e; % terminal |
| 54 |
numeric inner_jut; if rt x6l+.5u<lft x0l-1.5jut: inner_jut=1.5jut; |
| 55 |
else: rt x6l+.5u=lft x0l-inner_jut; fi |
| 56 |
dish_serif(0,1,a,.6,inner_jut,b,.5,jut)(dark); % serif |
| 57 |
else: pickup fine.nib; pos10'(slab,90); z10'=z10; |
| 58 |
pos11(Vround .5[slab,flare],90); |
| 59 |
rt x11=hround(r-letter_fit-u); bot y11l=vround .07bar_height-o; |
| 60 |
filldraw stroke term.e(10',11,right,1,4); fi % terminal |
| 61 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; |
| 62 |
|
| 63 |
|
| 64 |
cmchar "Question mark"; |
| 65 |
beginchar("?",8.5u#,asc_height#,0); |
| 66 |
italcorr .8asc_height#*slant; |
| 67 |
adjust_fit(0,0); |
| 68 |
pickup tiny.nib; pos7(dot_size,0); pos8(dot_size,90); |
| 69 |
lft x7l=hround(.5w-.25u-.5dot_size); bot y8l=0; z7=z8; dot(7,8); % dot |
| 70 |
numeric bot_width; |
| 71 |
bot_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi; |
| 72 |
pickup fine.nib; pos2(vair,90); pos3(curve,0); |
| 73 |
pos4(vair,-90); pos5(bot_width,0); pos6(bot_width,0); |
| 74 |
x2=x4=x5=x6=x7; rt x3r=hround(w-u); bot y6=1+.25[top y8r,x_height]; |
| 75 |
top y2r=h+oo; y3=.75[y6,y2]; y4=.5[y6,y2]; y5=.1[y6,y2]; |
| 76 |
{{interim superness:=more_super; |
| 77 |
%%filldraw stroke pulled_super_arc.e(2,3)(superpull) % macro changed in cpctitle.mf |
| 78 |
filldraw stroke pulled_super_arc.e(2,3,eta) |
| 79 |
& subpath (0,1) of super_arc.e(3,4) .. z5e---z6e\\}}; % arc and stem |
| 80 |
if serifs: pos1(hair,180); pos0(flare,180); |
| 81 |
lft x1r=hround u; y1=y3; bulb(2,1,0); % bulb |
| 82 |
else: |
| 83 |
pos1(Vround 5/7[vair,flare],110); |
| 84 |
lft x1r=hround u; top y1r=vround .9[y6,top y2r]; |
| 85 |
filldraw stroke term.e(2,1,left,1,4); |
| 86 |
fi % terminal |
| 87 |
penlabels(0,1,2,3,4,5,6,7,8); endchar; |
| 88 |
|