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