lilypond-devel
[Top][All Lists]
Advanced

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

Re: Creates a Flag grob. (issue 4922042)


From: Mike Solomon
Subject: Re: Creates a Flag grob. (issue 4922042)
Date: Thu, 25 Aug 2011 21:08:07 +0200

On Aug 25, 2011, at 3:17 PM, Han-Wen Nienhuys wrote:

> On Thu, Aug 25, 2011 at 7:03 AM, Mike Solomon <address@hidden> wrote:
> 
>> I have verified via pacifier prints that the pure heights of the flag are 
>> being taken from the stencil function and are going into the spacing engine 
>> in separation-item.cc.  However, in theory, this patch should have null 
>> effect on the minimum and ideal distances of paper columns.  This is not the 
>> case (see attached).
> 
> ? it's not the heights but the widths that should go into separation-item?
> 
> Have you verified that the new flag grob gets taken into account in
> note-spacing.cc ?
> 

I found the problem after a couple hours of banging my head against the wall.

The Stem::width function uses Stem::flag to get the flag, whereas the stencil 
uses Stem::get_translated_flag.  Thus, the flag used for widths is not 
translated.  As the flag's bounding box in the font is shifted by a half stem 
length to the right of where the glyph actually is, and as the translated flag 
was always shifted by half a stem width, this is what made it work (albeit 
kludgily).

I'll work this into the patch tonight or tomorrow.

Cheers,
MS


reply via email to

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