]> git.donarmstrong.com Git - lilypond.git/blobdiff - mf/feta-toevallig.mf
* mf/feta-macros.mf: whoops: only draw lines for test situations.
[lilypond.git] / mf / feta-toevallig.mf
index ea85a29c55e9d7fa498517a3755997403983b04e..d94a8fcc09b5a589c1ca1b8c5e1e23cedefe2b3a 100644 (file)
@@ -108,8 +108,10 @@ fet_beginchar( "Natural", "0", "natural")
        define_pixels(height);
        define_blacker_pixels(beamheight);
 
-       % perhaps we should have a lowres fix?
-       top_stem_thick = 1.9 stafflinethickness;
+       % The +0.4  is a lowres fix to ensure that
+       % the brush doesn't turn into a knob on 600dpi or lower.
+       top_stem_thick = round (1.9 stafflinethickness) + 0.4;
+       
 
        interstem + stemwidth =  w;
        stemwidth = 1.3 stafflinethickness;
@@ -191,12 +193,14 @@ def draw_meta_flat(expr xcenter, w, crook_fatness) =
        fi
        crook_thinness = 1.3 stafflinethickness;
        top_crook_thinness = 1.65 stafflinethickness;
-       top_stem_thick# = 2.2 stafflinethickness#;
-       define_blacker_pixels (top_stem_thick);
+
+       % this is a somewhat heuristic.  We should  probably make it
+       % straight for low resolution (300 dpi and less).
+       top_stem_thick = round (2.2 stafflinethickness) + 0.74;
+
        bottom_overshoot = stafflinethickness;
        bottom_stem_thick = 1.2 stafflinethickness;
 
-
        z1 = (0, 2 staff_space) + center - (0, stafflinethickness/2
                + clearing);
        z2 =  (0, - 1/2 staff_space - stafflinethickness/2 )+  center;
@@ -235,19 +239,21 @@ def draw_meta_flat(expr xcenter, w, crook_fatness) =
 
        z7 = z8 + whatever * bot_crook_dir + crook_thinness  * (bot_crook_dir rotated 90);
 
-       x7 = .4 [x11, x8];
+       x7 = .1 [x3r, x8];
 
        penlabels(range 0 thru 10);
 
-       y10 = -1/5 staff_space;
+       y10 = -1/10 staff_space;
 %      draw_staff (-2, 2, 0.5);
-%      draw_staff (-2, 2, 0.0);
+       draw_staff (-2, 2, 0.0);
 
        unfill z3r{z3r-z10} .. z4r{right} .. z5r{down}
 
                ..  z7{- bot_crook_dir}
-               & z7 .. tension 1.3
-               .. z10{z3r-z10}  -- cycle;
+               & z7 % .. tension 1.3
+               .. z10{z3r-z10}
+
+               -- cycle;
        fill z2l{down}
                
                .. z11{right}
@@ -255,7 +261,7 @@ def draw_meta_flat(expr xcenter, w, crook_fatness) =
                .. z5l{up}
                .. z4l{left} .. z3l -- cycle;
                
-       labels(11);
+       labels(10);
 enddef;