- Box b (Interval (PANGO_LBEARING (ink_rect),
- PANGO_RBEARING (ink_rect)),
- Interval (-PANGO_DESCENT (ink_rect),
- PANGO_ASCENT (ink_rect)));
+
+ PangoRectangle const *which_rect
+ = (tight_bbox)
+ ? &ink_rect
+ : &logical_rect;
+
+ Box b (Interval (PANGO_LBEARING (logical_rect),
+ PANGO_RBEARING (logical_rect)),
+ Interval (-PANGO_DESCENT (*which_rect),
+ PANGO_ASCENT (*which_rect)));