lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \vshape and custom curve-stencil for TextSpanner


From: Jean Abou Samra
Subject: Re: \vshape and custom curve-stencil for TextSpanner
Date: Sat, 23 Jul 2022 16:05:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

Hi Harm,


Le 23/07/2022 à 10:59, Thomas Morley a écrit :
I'm attempting to create a s-curve stencil for TextSpanner.
While so far all works as wished and it is possibel to use \shape,
\vshape doesn't print the control-points.

What am I missing?


\shape works because it's an override/tweak to the control-points
property, and your code reads this property.

\vshape is implemented with separate grobs, ControlPoint and
ControlPolygon. This is so that you can override their basic
properties (color, layer, thickness, ...) independently from the
bezier grob. They are created by the Show_control_points_engraver,
which acknowledges bezier curve grobs and reads their
show-control-points-property. Your custom TextSpanner isn't
recognized because it doesn't have the bezier-curve-interface,
and this is what Show_control_points_engraver acknowledges.
Do you have a specific reason to use a TextSpanner? How
about using a Slur?


Code below.
Thanks to Jean how fixed make-path-stencil!


You're welcome :-)

Best,
Jean




reply via email to

[Prev in Thread] Current Thread [Next in Thread]