as one can read in http://www.lilypond.org/doc/v2.17/Documentation/extending/callback-functions.html
you can use callback-functions on /all/ grob-properties ...
so why doesn't this work?
\override TextScript #'font-size = #(lambda (grob) 30)

If this would work, the actual value could be calculated as needed based on the grob-layout-settings. Then the lambda could be hidden in a scheme-function, so it might look like
\override TextScript #'font-size = \absolute 30

Best, Jan-Peter

Am 22.07.2013 11:49, schrieb David Kastrup:
Jan-Peter Voigt <jp.vo...@gmx.de> writes:

Hi Kieren and list,

now I tried to add a feature to ly:grob-interpret-markup - this is
working for instrumentName, but not for TextScript.
So one has to look into text-interface.cc ... AFAICS
But before using a property 'font-size-mode (or whatever you name it),
would'nt it might be more intuitive, if we could write
\override TextScript #'font-size = 14\pt   ?
The value of \pt is not known at the time of the \override.  The music
containing the \override could be used with several different
\layout/\paper blocks with different valued of \pt.



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

Reply via email to