Re: pango_layout_get_pixel_extents()



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]