On 2019-01-25 3:36 am, Andrew Bernard wrote:
Do TextSpanners support shorten-pair?

The NR for 2.19.82 says:

shorten-pair (pair of numbers)
The lengths to shorten on both sides a hairpin or text-spanner such as a pedal bracket. Positive values shorten the hairpin or text-spanner, while
negative values lengthen it.

It's not listed under any of the interfaces that TextSpanner supports. Instead, it looks like Hairpin, HorizontalBracket, OttavaBracket, PianoPedalBracket, TupletBracket, and VoltaBracket are the only things referencing shorten-pair. And in NEWS.txt there is this comment:

    The ends of hairpins may now be fine-tuned using the ‘shorten-pair’
    grob property.  This previously only affected text-spanners (e.g.
    ‘TupletBracket’ and ‘OttavaBracket’).

That all said, it looks like bound-details.left/right support padding:

  \override TextSpanner.bound-details.left.padding = #-2
  \override TextSpanner.bound-details.right.padding = #-3


-- Aaron Hill

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to