From: Han-Wen Nienhuys Date: Thu, 1 May 2003 01:45:13 +0000 (+0000) Subject: revamp flat symbol: use less points, X-Git-Tag: release/1.7.18~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7244c2583a5ea8b89fd72a8b96d33511935cfe88;p=lilypond.git revamp flat symbol: use less points, better parametrisation. Move fatness of bulb downward. --- diff --git a/ChangeLog b/ChangeLog index b05cac7958..e140d0c2f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2003-05-01 Han-Wen Nienhuys + * mf/feta-toevallig.mf: revamp flat symbol: use less points, + better parametrisation. Move fatness of bulb downward. + * mf/parmesan-custodes.mf (dir_down): remove underscores from glyph names. Underscores are not allowed .ps encoding files. diff --git a/mf/feta-generic.mf b/mf/feta-generic.mf index 1d606b90fe..0270ad3803 100644 --- a/mf/feta-generic.mf +++ b/mf/feta-generic.mf @@ -43,8 +43,8 @@ else: % input feta-banier; % input feta-eindelijk; % input feta-klef; -% input feta-toevallig; - input feta-schrift; + input feta-toevallig; +% input feta-schrift; % input feta-haak; % input feta-timesig; % input feta-pendaal; diff --git a/mf/feta-toevallig.mf b/mf/feta-toevallig.mf index be80c6089d..9616c63d75 100644 --- a/mf/feta-toevallig.mf +++ b/mf/feta-toevallig.mf @@ -168,7 +168,9 @@ fet_beginchar( "Natural", "0", "natural") def draw_meta_flat(expr xcenter, w, crook_fatness) = clearxy; save crook_thinness; + save bottom_overshoot; save top_stem_thick, bottom_stem_thick, hair, smaller_hole; + save zwiep; save center; pair center; save clearing; @@ -186,13 +188,15 @@ def draw_meta_flat(expr xcenter, w, crook_fatness) = else: smaller_hole = 0.0 stafflinethickness; fi - crook_thinness = 1.25 stafflinethickness; + crook_thinness = 1.1 stafflinethickness; top_stem_thick = 2.2 stafflinethickness; + 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)+ center; + z1 = (0, 2 staff_space) + center - (0, stafflinethickness/2 + + clearing); + z2 = (0, - 1/2 staff_space - stafflinethickness/2 )+ center; penpos1(top_stem_thick, 0); penpos2(bottom_stem_thick, 0); @@ -200,55 +204,54 @@ def draw_meta_flat(expr xcenter, w, crook_fatness) = fill simple_serif(z1r, z1l, 30) -- z2l -- z2r -- cycle; - y3l = (staff_space - stafflinethickness)/2 + ypart center; + y3l = (staff_space - stafflinethickness) / 2 + ypart center; z3l = whatever [z2r,z1r]; - z3r = .26 [z2r, z1r] + (smaller_hole, 0); - z10 = whatever [z2r, z1r] + (smaller_hole , 0); + z3r = .3 [z2r, z1r] + (smaller_hole, 0); - + z10 = whatever [z2r, z1r] + (smaller_hole , 0); + z11 = center + (bottom_overshoot/3, + -staff_space/2 - stafflinethickness/2) - (0,bottom_overshoot); - z4 = (3/8 staff_space, staff_space/2) + center; penpos4(whatever, 53); - y4l - y4r = 2 crook_thinness ; -% y4l - y4r = 6/20[crook_thinness, crook_fatness] ; + y4l - y4r = 1.5 crook_thinness ; - y5r = 1/4 staff_space + ypart center; + y5r = .20 staff_space + ypart center; x5l = w + xpart center; - penpos5(crook_fatness, -175); + y4 = ypart center + staff_space/2; + x4r = .45 [x5r, x3r]; - z8 = (0, - staff_space/2 - stafflinethickness/2) + center; + penpos5(crook_fatness, -185); - z9 = (x5,0); + save bot_crook_dir ; + pair bot_crook_dir ; + bot_crook_dir = unitvector ((x5l,0) - z11); + z8 = z11 + whatever * bot_crook_dir; + y8 = - staff_space /2 +0.0* stafflinethickness; - save ne_angle; - ne_angle = angle(z9 - z8); + z7 = z8 + whatever * bot_crook_dir + crook_thinness * (bot_crook_dir rotated 90); - z7 = 8/33 [z8,z9] + (1.0 smaller_hole, 0); - z6l = 18/33 [z8,z9] + .5 crook_thinness *dir(ne_angle -90); - - penpos7(crook_thinness, ne_angle + 90); + x7 = .5 [x11, x8]; - z6r = .3 (z9-z8) + z7r; - - penpos8(whatever, ne_angle + 90); - x8r = xpart center - bottom_stem_thick/2; penlabels(range 0 thru 10); y10 = -1/5 staff_space; +% draw_staff (-2, 2, 0.5); +% draw_staff (-2, 2, 0.0); + + unfill z3r{z3r-z10} .. z4r{right} .. z5r{down} - unfill z3r .. z4r{right} .. tension .9 - .. z6r --- - z7r{left} + .. z7{- bot_crook_dir} + & z7 .. tension 1.3 .. z10{z3r-z10} -- cycle; - fill z8r{down} - .. tension 0.8 ..z8l{(z9-z8)} - .. z7l - .. z6l + fill z2l{down} + + .. z11{right} + .. z8{bot_crook_dir} .. z5l{up} .. z4l{left} .. z3l -- cycle; - labels(10); + labels(11); enddef;