Re: where X-extent of noteheads is set?

2011-08-23 Thread Janek Warchoł
2011/8/9 Janek Warchoł lemniskata.bernoull...@gmail.com: 2011/8/7 Bertrand Bordage bordage.bertr...@gmail.com: I've done a very dirty test which showed that a properly set glyph bounding box solves this perfectly (see in the attachment how the bounding box should change). However, there is a

Re: where X-extent of noteheads is set?

2011-08-08 Thread Janek Warchoł
2011/8/7 Bertrand Bordage bordage.bertr...@gmail.com: I've done a very dirty test which showed that a properly set glyph bounding box solves this perfectly (see in the attachment how the bounding box should change). However, there is a problem.  Currently bounding box is set by procedure

Re: where X-extent of noteheads is set?

2011-08-06 Thread Janek Warchoł
Hi, i think i know how to fix this (http://code.google.com/p/lilypond/issues/detail?id=1546 and some related problems); there are two things to do. I suppose that noteheads X-extent is wrongly calculated now.  Judging by this

Re: where X-extent of noteheads is set?

2011-08-06 Thread Bertrand Bordage
I've done a very dirty test which showed that a properly set glyph bounding box solves this perfectly (see in the attachment how the bounding box should change). However, there is a problem. Currently bounding box is set by procedure draw_outside_ellipse (defined in mf/feta-params.mf) - it

Re: where X-extent of noteheads is set?

2011-07-23 Thread Janek Warchoł
2011/7/18 Neil Puttock n.putt...@gmail.com: 2011/7/18 Janek Warchoł lemniskata.bernoull...@gmail.com: 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

Re: where X-extent of noteheads is set?

2011-07-23 Thread m...@apollinemike.com
On Jul 23, 2011, at 12:19 PM, Janek Warchoł wrote: I guess that the problem in general is that sometimes we want to include breve's lines in glyph width calculations, and sometimes not. Take this example: If this is the problem, the best solution is to create a sort of NoteHeadFlank grob

Re: where X-extent of noteheads is set?

2011-07-23 Thread Janek Warchoł
2011/7/23 m...@apollinemike.com m...@apollinemike.com: On Jul 23, 2011, at 12:19 PM, Janek Warchoł wrote: I guess that the problem in general is that sometimes we want to include breve's lines in glyph width calculations, and sometimes not. If this is the problem, the best solution is to

Re: where X-extent of noteheads is set?

2011-07-23 Thread m...@apollinemike.com
On Jul 23, 2011, at 12:58 PM, Janek Warchoł wrote: 2011/7/23 m...@apollinemike.com m...@apollinemike.com: On Jul 23, 2011, at 12:19 PM, Janek Warchoł wrote: I guess that the problem in general is that sometimes we want to include breve's lines in glyph width calculations, and sometimes not.

Re: where X-extent of noteheads is set?

2011-07-23 Thread Janek Warchoł
2011/7/23 m...@apollinemike.com m...@apollinemike.com: On Jul 23, 2011, at 12:58 PM, Janek Warchoł wrote: 2011/7/23 m...@apollinemike.com m...@apollinemike.com: On Jul 23, 2011, at 12:19 PM, Janek Warchoł wrote: I guess that the problem in general is that sometimes we want to include

Re: where X-extent of noteheads is set?

2011-07-18 Thread Janek Warchoł
2011/7/18 Joe Neeman joenee...@gmail.com: 2011/7/17 Janek Warchoł lemniskata.bernoull...@gmail.com: 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

Re: where X-extent of noteheads is set?

2011-07-18 Thread Neil Puttock
2011/7/18 Janek Warchoł lemniskata.bernoull...@gmail.com: 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

Re: where X-extent of noteheads is set?

2011-07-18 Thread m...@apollinemike.com
On Jul 18, 2011, at 8:00 PM, Janek Warchoł wrote: 2011/7/18 Joe Neeman joenee...@gmail.com: 2011/7/17 Janek Warchoł lemniskata.bernoull...@gmail.com: 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

Re: where X-extent of noteheads is set?

2011-07-18 Thread Neil Puttock
2011/7/18 Neil Puttock n.putt...@gmail.com: 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

where X-extent of noteheads is set?

2011-07-17 Thread Janek Warchoł
I've searched in note-head.cc, note-column.cc, note-heads-engraver.cc but found nothing... If i knew this i could probably fix http://code.google.com/p/lilypond/issues/detail?id=1546 Thanks in advance, Janek ___ lilypond-devel mailing list

Re: where X-extent of noteheads is set?

2011-07-17 Thread Neil Puttock
2011/7/17 Janek Warchoł lemniskata.bernoull...@gmail.com: 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

Re: where X-extent of noteheads is set?

2011-07-17 Thread Joe Neeman
2011/7/17 Janek Warchoł lemniskata.bernoull...@gmail.com: 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). Cheers, Joe ___