lilypond-user
[Top][All Lists]
Advanced

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

Re: how to change extents of a grob?


From: David Kastrup
Subject: Re: how to change extents of a grob?
Date: Thu, 14 Apr 2022 11:08:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Werner LEMBERG <wl@gnu.org> writes:

> Dear LilyPonders,
>
>
> I can get the extents of a grob with `ly:grob-extent`.  What is the
> corresponding Scheme function to set the extents?
>
> Or to ask in a different way: At the time when properties are
> processed and you have to manipulate stencils, changing the stencil of
> a grob doesn't change the extents of this grob, AFAICS.

You are not supposed to change stencils at all.  They are not entities
with identity.

It's like asking how to change the exponent of a floating point number.
Whatever ability on the machine level exists for that, it does not make
sense to export an interface.

> How can I adjust the extents at this stage to fit the dimensions of
> the stencil (even if LilyPond no longer needs and/or uses the values
> for positioning)?

Create a new stencil with different dimensions and use that.

-- 
David Kastrup



reply via email to

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