From: Han-Wen Nienhuys <hanwen@xs4all.nl>
Date: Sat, 19 Jul 2003 15:31:11 +0000 (+0000)
Subject: * mf/feta-macros.mf: whoops: only draw lines for test situations.
X-Git-Tag: release/1.7.27~3
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1eb500fa7633787152b47ffd598e962f950cebc3;p=lilypond.git

* mf/feta-macros.mf: whoops: only draw lines for test situations.

* mf/feta-toevallig.mf: lowres fixes.
---

diff --git a/ChangeLog b/ChangeLog
index 878dfb6bdb..0b53e6a739 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-07-19  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
+
+	* mf/feta-macros.mf: whoops: only draw lines for test situations.
+
+	* mf/feta-toevallig.mf: lowres fixes.
+
 2003-07-19  Jan Nieuwenhuizen  <janneke@gnu.org>
 
 	* NEWS: Typo and fill-paragraph fixes.
diff --git a/mf/feta-macros.mf b/mf/feta-macros.mf
index 4b2517dbe3..a224abb331 100644
--- a/mf/feta-macros.mf
+++ b/mf/feta-macros.mf
@@ -18,11 +18,14 @@ enddef;
 
 
 def draw_staff(expr first, last, offset)=
+if test <> 0:
 	pickup pencircle scaled stafflinethickness;
 	for i:= first step 1 until last:
 		draw (- staff_space, (i + offset) * staff_space) .. (4 staff_space,( i+ offset)* staff_space);
 	endfor
-	enddef;
+fi;
+
+enddef;
 
 
 %
diff --git a/mf/feta-toevallig.mf b/mf/feta-toevallig.mf
index 117d6330c5..d94a8fcc09 100644
--- a/mf/feta-toevallig.mf
+++ b/mf/feta-toevallig.mf
@@ -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;
@@ -192,12 +194,10 @@ def draw_meta_flat(expr xcenter, w, crook_fatness) =
 	crook_thinness = 1.3 stafflinethickness;
 	top_crook_thinness = 1.65 stafflinethickness;
 
-	% actually, this used to be 2.2 stafflinethickness,
-	% that looks very awful in 600dpi.
-	% TODO: a better (resolution indepedendent) fix  
-	
-	top_stem_thick# = 2.3 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;