Mark Polesky <[email protected]> writes: > Paul Morris wrote: >> Also, just a quick thought on magnifyMusic. It would be >> nice to somehow capture and restore the current fontSize for >> cases like this: >> >> \new Staff \with { >> fontSize = #2 >> } { >> c'4 d' e' f' >> \magnifyMusic 0.5 { c'4 d' e' f' } >> c'4 d' e' f' >> } >> >> But I'm not sure how to do that... If you can access the >> current fontSize, maybe it would make sense for the >> magnification to be relative to it? > > That's a great idea, and totally do-able. I'll fix it, thanks.
I don't know how you are planning to do it. It would be my guess that it is hard to do in a manner that will behave sensibly when you put that sort of construct into quoted music. It is probably already hard to do when using \magnifyMusic in multiple parallel contexts since you need to store the information somewhere. Perhaps most feasible is to just use \applyContext for increasing fontSize by the given amount, and then use it again at the end for decreasing by the same amount. If someone _sets_ fontSize in the middle then: tough. But at least you do not need to store the old value anywhere then. -- David Kastrup _______________________________________________ lilypond-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-devel
