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: address@hidden
Subject: Re: where X-extent of noteheads is set?
Date: Mon, 18 Jul 2011 21:05:59 +0200

On Jul 18, 2011, at 8:00 PM, Janek Warchoł wrote:

> 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


The issue is in the metafont file: see line 160ish in feta-noteheads.mf.

Cheers,
MS


reply via email to

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