On Sat, Nov 1, 2014 at 5:29 PM, Trevor Daniels <t.dani...@treda.co.uk>
wrote:

>
> > David Nalesnik wrote Saturday, November 01, 2014 9:46 PM
> >>
> >> On Sat, Nov 1, 2014 at 4:34 PM, Trevor Daniels <t.dani...@treda.co.uk>
> wrote:
> >>>
> >>> Should \offset work with the font-size of fingering?  It doesn't seem
> to.
> >>> The default value is -5, so offsetting by -2 should give -7, with a
> size as
> >>> shown by the \override and \tweak, but both forms of \offset give 0.
> >>
> >> You're seeing this behavior with \offset because 'font-size can't be
> set to a
> >> callback, which \offset does.
> >>
> >> Enhancing 'font-size to process callbacks would be a useful feature, I
> think.
> >
> > Thanks, I see.  I agree, although a warning might be a pro tem stand-in.
> >
> > There goes my first example of its use for the docs :(
>
> It also fails to work on Script.padding, although it's fine for
> DynamicLineSpanner.padding.
> {
> c'4\fermata
> \override Script.padding = 3
> c'4\fermata
> \offset padding 3 Script
> c'4\fermata
> }
>
> Is this a similar problem?
>

Actually, no.  To work, \offset needs access to a default value--a number,
number-pair, or list of number-pairs--or a default procedure to calculate
these values with.  If you don't find an entry in define-grobs.scm, it will
have nothing to work with.

DynamicLineSpanner.padding works because it's set by default to 0.6.

--David
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to