[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: where X-extent of noteheads is set?
From: |
Neil Puttock |
Subject: |
Re: where X-extent of noteheads is set? |
Date: |
Mon, 18 Jul 2011 19:51:53 +0100 |
2011/7/18 Janek Warchoł <address@hidden>:
> i don't see anything called "stencil-width" in grob.cc...
78 if (get_property_data ("X-extent") == SCM_EOL)
79 set_property ("X-extent", Grob::stencil_width_proc);
The C++ name is Grob::stencil_width; the addition of _proc uses the
exported scheme version.
> I don't want to read the value of extent, i want to modify how it's
> calculated in case of noteheads.
The extent comes directly from the font (i.e., using the bounding box
of each glyph).
> 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.
No, the problem is that the code doesn't account for differences in
font-size between heads; all the hard-coded shifts it calculates
(split equally between heads; heads move away from each other by the
same amount) are based on the assumption that meshing notes have the
same font-size.
Cheers,
Neil
- where X-extent of noteheads is set?, Janek Warchoł, 2011/07/17
- Re: where X-extent of noteheads is set?, Neil Puttock, 2011/07/17
- Re: where X-extent of noteheads is set?, Janek Warchoł, 2011/07/18
- Re: where X-extent of noteheads is set?,
Neil Puttock <=
- Re: where X-extent of noteheads is set?, Neil Puttock, 2011/07/18
- Re: where X-extent of noteheads is set?, Janek Warchoł, 2011/07/23
- Re: where X-extent of noteheads is set?, address@hidden, 2011/07/23
- Re: where X-extent of noteheads is set?, Janek Warchoł, 2011/07/23
- Re: where X-extent of noteheads is set?, address@hidden, 2011/07/23
- Re: where X-extent of noteheads is set?, Janek Warchoł, 2011/07/23
- Re: where X-extent of noteheads is set?, address@hidden, 2011/07/18
Re: where X-extent of noteheads is set?, Joe Neeman, 2011/07/17