|
From: | Keith OHara |
Subject: | Re: Set indent based on instrument name (issue 6457049) |
Date: | Sat, 04 Aug 2012 01:03:53 -0700 |
User-agent: | Opera Mail/12.00 (Win32) |
On Sat, 04 Aug 2012 00:37:21 -0700, <address@hidden> wrote:
On 2012/08/04 07:28:29, Keith wrote:On 2012/08/01 06:45:22, MikeSol wrote:> Avoid measuring extents when engraving is happening because theycould be> dependent on other callbacks which could trigger many layoutdecisions before> engraving is finished. >This is a case where measuring extents early seems appropriate.I suppose this would spell the death knell to solving a somewhat different problem in the way linked to in comment 5 of issue 766 <URL:http://code.google.com/p/lilypond/issues/detail?id=766#c5>.
I do not hear any death knell. Nicolas' function makes the instrument name fill the space available, based on 'indent'. If the engraver evaluates the extents of instrument names with this function in place, the function can still look up 'indent' with no cycle of call-backs or any such problem. After line breaking, when the actual stencils are formed for each line, Nicolas' function will be called again for each actual printing of an instrument name. These calls will use the possibly-changed value of 'indent', but the same value for each staff.
[Prev in Thread] | Current Thread | [Next in Thread] |