[HarfBuzz] Bounding box info

Behdad Esfahbod behdad at behdad.org
Fri Dec 17 19:53:10 UTC 2021


On Fri, Dec 17, 2021 at 12:49 PM Johan Vromans <jvromans at squirrel.nl> wrote:

> Hi,
>
> After shaping the buffer contains the output glyphs and their positions.
>
> Maybe I'm overlooking something trivial, but does HarfBuzz provide a means
> to get the bounding box for the buffer?
>

Not directly. But the bounding box of each glyph can be fetched using
hb_font_get_glyph_extents().

behdad


> -- Johan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20211217/4862bb6e/attachment.htm>


More information about the HarfBuzz mailing list