lilypond-user
[Top][All Lists]
Advanced

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

Re: feature request: abs-fontsize available for all text grobs


From: Jan-Peter Voigt
Subject: Re: feature request: abs-fontsize available for all text grobs
Date: Mon, 22 Jul 2013 12:20:22 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130623 Thunderbird/17.0.7

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 <address@hidden> 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.





reply via email to

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