pango_layout_get_extents() question



For the ink and logical rectangles returned by
pango_layout_get_extents(), is the ink rectangle supposed to be
contained within the logical rectangle?  I'm seeing a case where this
doesn't seem to be the case:

  text `W': ink: x=1024 y=2048 w=7168 h=6144, logical: x=0 y=0 w=7168 h=10240

Here, the ink and logical rectangles have the same width (7168), but
the ink rectangle as an x offset of 1024 whereas the logical rectangle
has an offset of 0.  This doesn't make sense to me, but perhaps I'm
just not understanding the API.

Thanks and best regards,

  --david


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]