Re: pango_layout_get_pixel_extents()
- From: Havoc Pennington <hp redhat com>
- To: Dennis Bjorklund <db zigo dhs org>
- Cc: <gtk-list gnome org>
- Subject: Re: pango_layout_get_pixel_extents()
- Date: 14 Jan 2002 11:27:58 -0500
Dennis Bjorklund <db zigo dhs org> writes:
> The doc for pango_layout_get_pixel_extents() says:
>
> "Compute the logical and ink extents of layout. See the documentation for
> pango_font_get_glyph_extents() for details about the interpretation of the
> rectangles."
>
> And pango_font_get_glyph_extents() says:
>
> "The coordinate system for each rectangle has its origin at the base line
> and horizontal origin of the character with increasing coordinates
> extending to the right and down."
>
> This (former) seems to be wrong. When I use
> pango_layout_get_pixel_extents() it seems like I get the bounding box for
> the whole layout (that can be several lines) starting in the top left
> corner and not at some baseline.
I think that's correct, yes.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]