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: Wed, 24 Aug 2011 00:20:27 +0200

2011/8/9 Janek Warchoł <address@hidden>:
> 2011/8/7 Bertrand Bordage <address@hidden>:
>>> 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 is
>>> not set in the definition of the glyph.  How to set glyph bounding box
>>> to something different than outside_ellipse bounding box?
>>
>> You could define it in the "final" definitions of glyphs. Here is an
>> example. Of course, these values have to be define in a clean metafont way.
>> fet_beginchar ("Brevis notehead", "sM1");
>> draw_brevis (1, 1);
>> draw_staff (-2, 2, 0);
>> set_char_box (.1 staff_space#, 2.1 staff_space#, .5 staff_space#, .5
>> staff_space#);
>> fet_endchar;
>
> Yes, it works!
> I'll upload a draft soon.

That wasn't very soon, but a patch addressing this is here:
http://codereview.appspot.com/4931043/
It fixes http://code.google.com/p/lilypond/issues/detail?id=1814
Hopefully a patch fixing
http://code.google.com/p/lilypond/issues/detail?id=1546 will follow.

cheers,
Janek



reply via email to

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