]> git.donarmstrong.com Git - lilypond.git/blob - mf/feta-params.mf
af82b3cc0182e8c11943293d8f4539c6e6d039a0
[lilypond.git] / mf / feta-params.mf
1
2 stafflines = 5;
3
4 %
5 % The design size of a staff should really be the 
6 % staff_space, but we use staffsize for historical reasons.
7
8 staff_space# = staffsize#/(stafflines-1);
9
10
11 % measuring on pocket scores turns out: stafflinethickness is
12 % largely independent on staff size, and generally about 0.5 pt.
13 %
14 % by request of WL, we tune down the blackness a little
15 % for increased contrast with beams.
16
17 %% !! synchronize with paper.scm
18 stafflinethickness#  = 0.3 pt# + 0.04 staff_space#; 
19
20 %
21 % The following tunes the general blackness of the glyphs. 
22 %
23 linethickness# = stafflinethickness#; %%   0.5 pt#;
24
25 %
26 % bigger puff_up_factor, relatively thicker stafflines.
27 % 20 pt = puff_up_factor 0.
28 % 10 pt = puff_up_factor 1
29 %
30 puff_up_factor =  (linethickness# - 0.1 staff_space#) / (0.1 staff_space#);
31
32
33
34 stemthickness# := 1.3 stafflinethickness#;
35 ledgerlinethickness# := 2 stafflinethickness#;
36
37 define_pixels(staff_space, stemthickness);
38 define_pixels(stafflinethickness, ledgerlinethickness, linethickness);
39
40
41
42 % Because of the engraving/stamping process, no traditional
43 % characters have sharp edges and corners
44 % The following variable controls the amount of "roundness"
45 %
46 % this is not a meta variable: it is related to absolute sizes.
47 %
48 % FIXME: According to [Wanske], only outside corners should be round
49 %        I don't think we do this anywhere -- jcn
50 numeric blot_diameter;
51 blot_diameter# = .35 pt#;
52 if (blot_diameter# * hppp) < 1:
53         blot_diameter# := 1/hppp;
54 fi
55 if (blot_diameter# * vppp) < 1:
56         blot_diameter# := 1/vppp;
57 fi
58 define_pixels(blot_diameter);
59
60
61
62