lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fattens the 256 first braces. (issue4518052)


From: bordage . bertrand
Subject: Re: Fattens the 256 first braces. (issue4518052)
Date: Tue, 10 May 2011 20:08:03 +0000

Reviewers: carl.d.sorensen_gmail.com,

Message:
Thanks for the review !
Patch updated.
I don't know if there's a better way to solve this issue.
As big braces look good, I decided to limit the changes to the smallest
ones.

Description:
Fattens the 256 first braces.

Please review this at http://codereview.appspot.com/4518052/

Affected files:
  M mf/feta-braces.mf


Index: mf/feta-braces.mf
diff --git a/mf/feta-braces.mf b/mf/feta-braces.mf
index 6a095226a3b379f2df1c8cfee152071c668db558..d747079b9b33306e7c9f59eef60633c4f3975fb5 100644
--- a/mf/feta-braces.mf
+++ b/mf/feta-braces.mf
@@ -118,9 +118,11 @@ enddef;

 save stafflinethickness;
 save increment;
+save fatten_factor;

 linethickness := 0.5 pt#;
 increment := 0.5 pt#;
+fatten_factor := 1.5;
 y := 10 pt#;

 for i := 0 step 1 until font_count:
@@ -145,7 +147,10 @@ for i := 0 step 1 until font_count:
                x := y / 15;

                increment := x / 10;
-               linethickness :=  min (0.5 pt#, y / 150);
+               save fatten;
+ fatten := 1 + fatten_factor - min ( number * fatten_factor / 256, fatten_factor);
+               x := x * fatten;
+               linethickness :=  min (0.5 pt#, y * fatten / 150);
                if i = font_count:
                        draw_brace (y, x, linethickness, number);
                fi;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]