Werner LEMBERG <w...@gnu.org> writes:

>> Are there any guidelines LilyPond adheres to for creating bounding
>> boxes?
>
> No.
>
>> For example, when I adjusted the bbox for the \eyeglasses markup
>> command, I _underestimated_ the bbox.  Should I have slightly
>> _overestimated_ instead?  Attached is a PNG displaying the bbox.
>
> I think overestimation is better.
>
>> Also, in the case of Metafont glyphs, there doesn't appear to be a
>> clear convention: some bounding boxes are underestimated, but others
>> are overestimated.
>
> What you call `bounding boxes' aren't real bboxes but the metrics
> boxes of the glyphs.  In case of the bass clef, for example, the top
> shape is treated as with many other rounded glyphs in normal fonts:
> The `overshoot' sticks out.  On the other hand, the height has been
> enlarged so that it covers the staff vertically.

One has to keep in mind that Metafont does not permit more than 16
different heights per font (something like that, I don't remember the
exact details).

-- 
David Kastrup



_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to