lilypond-devel
[Top][All Lists]
Advanced

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

Re: where X-extent of noteheads is set?


From: Janek Warchoł
Subject: Re: where X-extent of noteheads is set?
Date: Mon, 18 Jul 2011 20:00:12 +0200

2011/7/18 Joe Neeman <address@hidden>:
> 2011/7/17 Janek Warchoł <address@hidden>:
>> I've searched in note-head.cc, note-column.cc, note-heads-engraver.cc
>> but found nothing...
>
> I believe it defaults to ly:grob::stencil-width (probably in grob.cc).

2011/7/17 Neil Puttock <address@hidden>:
> 2011/7/17 Janek Warchoł <address@hidden>:
>> I've searched in note-head.cc, note-column.cc, note-heads-engraver.cc
>> but found nothing...
>
> You don't need to know this (though if you're curious, any grob
> without a default is set to ly:grob::stencil-width; see the
> constructor in grob.cc).

i don't see anything called "stencil-width" in grob.cc...

> If you want to know the extent, just use Grob::extent ().

I don't want to read the value of extent, i want to modify how it's
calculated in case of noteheads.
I suppose that noteheads X-extent is wrongly calculated now.  Judging
by this 
http://lilypond.googlecode.com/issues/attachment?aid=-4756087064344904294&name=test.png&token=22aa1208ff6775e1780efcedc7e7e841&inline=1
, all noteheads are assigned the same X-extent, even though the glyphs
have different widths.
Or maybe i don't understand how it works...

thanks,
Janek



reply via email to

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