Hello Harm,

This is probably quite hard to do. Basically the problem here is that Lilypond 
does not in fact know the actual extent of the stencil. So to get that you’d 
somehow need to draw the stencil. So eighter you’d need to implement a custom 
drawing routine for "drawing" stencils within Lilypond, or you could try to do 
a function that takes a stencil, creates a new book containing that stencil, 
you’d then postprocess that file with a script that determines the actual 
extent and writes it into an auxiliary file, which is then included and gives 
the first function a value for overriding the extent.

Cheers,
Valentin

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to