summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/fonts/source/public/musictex/musikd11.mf
blob: cb2c11106a07ecc72492a399bca96acf845baf04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
%%%
%  this is musicd11.mf
%%%

% input modes
% input local

mode_setup;

%blacker:=0; %uncomment to override

font_size 11pt#;

nhh#:=1/4designsize; %noteheadheight
nhw#:=1.2nhh#;       %noteheadwidth

thin#:=1/50designsize;
med#:=1/33designsize;
thick#:=1/16designsize;

thinwidth := 0.1pt;
s := 0.70pt;
S := 1/16designsize;

beamht#:=0.48nhh#; %beamthickness

% use pixelmacros from plain
define_pixels(nhh,nhw,beamht);
define_blacker_pixels(thin,med,thick);

% pair constants
pair ne,se,sw,nw; %northeast,southeast,southwest,northwest
ne = up+right; se = down+right; sw = down+left; nw = up+left;

% displaying:=2; %uncomment to see characters immediatly on screen

def clear =
    numeric x[],y[],x[]l,y[]l,x[]r,y[]r,dx[],dy[];
    pair    sh[];
enddef;

% this macro might be deleted
def penstrike text t =
    forsuffixes e = l,r: path_.e:=t; endfor
    if cycle path_.l: cyclestroke_
    else: filldraw path_.l -- reverse path_.r -- cycle
    fi
enddef;