[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guidelines for bounding boxes?
From: |
Werner LEMBERG |
Subject: |
Re: Guidelines for bounding boxes? |
Date: |
Wed, 12 Aug 2009 10:14:23 +0200 (CEST) |
> So, if I am understanding correctly, LilyPond currently uses the
> same dimensions for both the "metrics" box and the "bounding" box
> for each glyph. This is why the longa glyph, for example, is
> cropped in the EPS/PNG output. Is this true?
I think so. On the other hand, we need an exact bbox only for cropped
images, right? ghostscript has a special output device called `bbox'
which computes a precise bounding box for its input. Wouldn't it be
thus sufficient to introduce an intermediate step during the EPS->PNG
conversion to simply call this device?
>> Another improvement would be to provide `shaped metrics': Currently,
>> the metrics for a glyph consist of a single rectangle. This could be
>> extended to a list of rectangles which are then merged.
>
> But would this help with collision handling? I was under the
> impression that the Stencil extents (which form a box) are used for
> collision handling (skylines, etc.).
My idea is that a single grob can consist of multiple boxes, providing
a more accurate skyline. For objects taken from the emmentaler font
you only get a single rectangle currently, which is often only a very
rough approximation of the real shape.
> Or is the glyph metrics information used instead of the Stencil
> extents?
I don't know these details.
Werner
- Re: Guidelines for bounding boxes?, (continued)
- Re: Guidelines for bounding boxes?, Patrick McCarty, 2009/08/11
- Re: Guidelines for bounding boxes?, Joe Neeman, 2009/08/12
- Re: Guidelines for bounding boxes?, Werner LEMBERG, 2009/08/13
- Re: Guidelines for bounding boxes?, David Kastrup, 2009/08/14
- Re: Guidelines for bounding boxes?, Reinhold Kainhofer, 2009/08/14
- Re: Guidelines for bounding boxes?, Werner LEMBERG, 2009/08/14
- Re: Guidelines for bounding boxes?, David Kastrup, 2009/08/14
- Re: Guidelines for bounding boxes?, Werner LEMBERG, 2009/08/17
- Re: Guidelines for bounding boxes?,
Werner LEMBERG <=
Re: Guidelines for bounding boxes?, Han-Wen Nienhuys, 2009/08/12