Skip to content

Fix DurationLine thickness for different staff sizes

Thomas Morley requested to merge dev/harm/fix-duration-line-thick into master

To do so we make thickness dependend on staff space.

Alas, DurationLine.stencil uses different procedures to create the stencil: ly:round-filled-box for style 'beam and ly:line-interface::line relying on grob.thickness, not staff space, for all other styles.

Thus we calculate and set the needed grob.thickness values in the engraver, taking the original grob.thickness, staff line thickness, layout line thickness and staff space into account. This avoids the need to set it in the stencil procedure, which would cause some problems.

While on it, add a warning if a forced arrow can't be printed nicely, because of too short DurationLine.

TODO consider to have ly:line-interface::line output 'beam, too.
TODO this does not fix certain horizontal issues with different staff sizes, up to follow up.
TODO style 'zigzag needs some additional tweaks for some cases.

Edited by Thomas Morley

Merge request reports