|
From: | Jan-Peter Voigt |
Subject: | Re: feature request: abs-fontsize available for all text grobs |
Date: | Tue, 23 Jul 2013 09:37:35 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 |
Hello David, thanks for your hint :) Hello Kieren, how do you like this solution?It uses an engraver which acknowledges text-interface and font-interface (maybe we only need font-interface) and then wraps found markups in 'text and 'long-text (for InstrumentName grob) in (markup #:abs-fontsize ... /text/) It uses a property 'abs-font-size ... now lilypond complains about the unknown grob-property, but that doesn't matter for now ;)
* For instrumentName one could use different sizes for the short and the long version. * If we only need to acknowledge the font-interface, this little piece could be simplified a little bit. * We also could use the existing font-size property and use another method to "mark" it an absolute size
HTH Cheers, Jan-Peter On 22.07.2013 12:31, David Kastrup wrote:
The settings of font-interface and text-interface become part of the props alist list for markup interpretation. At the time a markup is interpreted, no information about a possibly responsible grob is available, so no callbacks can be executed.
grob-interpret-markup-abs-fontsize2.ly
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |