[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
accessing the text stencil of a TextSpanner
From: |
Urs Liska |
Subject: |
accessing the text stencil of a TextSpanner |
Date: |
Mon, 03 Feb 2014 10:43:38 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
It is possible to access/reshape a Metronome Mark like this:
\override MetronomeMark #'stencil =
#(lambda (grob)
(ly:stencil-scale (lyric-text::print grob) 0.78 1))
(which will squeeze the font to a width of 0.78 (which surprisingly
matches the font of the printed model very well).
Now I need to make TextSpanners identical to the MetronomeMark, so I
would need to apply the same scaling to
TextSpanner.bound-details.left.text
but I have no idea how to achieve that.
\once \override TextSpanner.bound-details.stencil =
#(lambda (grob)
(ly:stencil-scale (lyric-text::print grob) 0.78 1))
doesn't have any effect.
Any help?
Urs
- accessing the text stencil of a TextSpanner,
Urs Liska <=