Debian Codegraph @

texmf-dist/fonts/source/public/musixtex-fonts/xslz.mf

raw
1 %=== xslz.mf=======================================================
2 % WpH modified to be "dashed" (each modification marked with WpH.
3 % 96-08-24 WpH-constants set (ick)
4 % ick 98-05-22 modified constants for gap, dash, endlen.
5 %
6 thick#:=1pt#;
7 nhh#:=5pt#;
8 define_pixels(nhh);
9 define_blacker_pixels(thick);
10 minwidth:=8pt#;
11 delwidth:=4pt#;
12
13 numslurs:=54;
14 maxwidth:=minwidth+(numslurs-1)*delwidth;
15
16 fontdimen 5: maxwidth;
17
18 picture p;
19
20 min_bow:= .4nhh;
21 max_bow:= 1.75nhh;
22 slope:= 10/100;
23
24 code=-1;
25 gap=thick; %was 1.5; WpH new parameter: gap length. ick
26 dash=1.6thick; % 2.5; WpH new parameter: dash length. ick
27 endlen=-0.0thick; % -1.0; WpH new: length of dash at ends measured to center of gap. ick
28 if unknown makedotted: makedotted:=0; fi % WpH
29
30 for i=1 upto numslurs:
31
32 beginchar(incr code, 0, 0, 0);
33 mw:=(minwidth+code*delwidth)*pt;
34 x3= -x1= .5mw; x2= y1= y3 = 0;
35 y2= max(min_bow, slope*mw);
36 y2:= min(y2, max_bow);
37 penpos1(.15thick,90); penpos2(thick,90); penpos3(.15thick,90);
38 penstroke (flex(z1e,z2e,z3e));
39 currentpen:= pencircle; draw (flex(z1,z2,z3));
40 %
41 % wph start of added block to make gaps.
42 if makedotted<>1:
43 % variable makedotted has not been given a value.
44 % Dotted lines will not be made.
45 else:
46 cullit;
47 pickup penrazor scaled gap;
48 xcount:=(mw-2endlen)/(gap+dash); % number of gaps.
49 xcount:=floor(xcount + .5); %round to nearest int number.
50 xinc:=(mw-2endlen)/xcount;
51 for j=0 upto xcount-1:
52 xcur:=x1+endlen+j*xinc;
53 undraw (xcur,y1)..(xcur,y2+.6thick);
54 endfor;
55 cullit;
56 fi
57 % wph end of added block to make gaps.
58 %
59 p:=currentpicture;
60 endchar;
61
62 beginchar(code+54, 0, 0, 0);
63 currentpicture:=p reflectedabout (origin, right);
64 endchar;
65
66 endfor
67 end