X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fflag-styles.scm;h=a2ddf3a9dd0bd8d728b2352c5ea7d03dbcc2b324;hb=7fe3cccd7cfcc4d0df003bc887694779354febfa;hp=2b52f44cb23516eb2ce7924dda97ac37b376231c;hpb=63a0195213dbc749dc5766035b71280893af2b9a;p=lilypond.git diff --git a/scm/flag-styles.scm b/scm/flag-styles.scm index 2b52f44cb2..a2ddf3a9dd 100644 --- a/scm/flag-styles.scm +++ b/scm/flag-styles.scm @@ -81,19 +81,18 @@ All lengths are scaled according to the font size of the note." (raw-length (if stem-up upflag-length downflag-length)) (angle (if stem-up upflag-angle downflag-angle)) (flag-length (+ (* raw-length factor) half-stem-thickness)) - ;; For flat flags the points to create the stencil using - ;; ly:round-filled-polygon need to be different concerning flag-end - (flag-end (if (= angle 0) - (cons flag-length (* half-stem-thickness dir)) - (polar->rectangular flag-length angle))) + (flag-end (polar->rectangular flag-length angle)) (thickness (* flag-thickness factor)) (thickness-offset (cons 0 (* -1 thickness dir))) (spacing (* -1 flag-spacing factor dir )) (start (cons (- half-stem-thickness) (* half-stem-thickness dir))) - (points (list start - flag-end - (offset-add flag-end thickness-offset) - (offset-add start thickness-offset))) + (raw-points + (list + '(0 . 0) + flag-end + (offset-add flag-end thickness-offset) + thickness-offset)) + (points (map (lambda (coord) (offset-add coord start)) raw-points)) (stencil (ly:round-filled-polygon points half-stem-thickness)) ;; Log for 1/8 is 3, so we need to subtract 3 (flag-stencil (buildflag stencil (- log 3) stencil spacing))