[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Different minimum-length for broken spanner
From: |
Mark Knoop |
Subject: |
Different minimum-length for broken spanner |
Date: |
Thu, 04 Aug 2022 12:58:29 +0100 |
User-agent: |
mu4e 1.8.7; emacs 28.1 |
Hi,
I'm creating a TextSpanner to indicate a gradual transition between
instrumental techniques. In order that the left and right texts don't collide,
my before-line-breaking callback sets the minimum-length property of the
spanner to the sum of the width of the two markups.
This all works well, until the spanner is broken. Then, the first part retains
this minimum-length, making it unnecessarily long. The problem is that once the
spanner has been broken, it is too late to reset minimum-length.
Ideally there could be a property `minimum-length-before-break` to match
`minimum-length-after-break` to address this? Or am I simply approaching this
problem from the wrong angle?
See attachments for code and examples.
Thanks for any input,
Mark
transitionSpanner.ly
Description: Text document
transitionSpanner.pdf
Description: Adobe PDF document
--
Mark Knoop
- Different minimum-length for broken spanner,
Mark Knoop <=