- int const w = text_.width() + 2 * border_;
- int const a = text_.ascent() + border_;
- int const h = a + text_.descent() + border_;
- pi.pain.fillRectangle(x, y - a, (wide() ? text_.maxwidth_ : w), h,
+ TextMetrics & tm = pi.base.bv->textMetrics(&text_);
+
+ int const w = tm.width() + 2 * border_;
+ int const a = tm.ascent() + border_;
+ int const h = a + tm.descent() + border_;
+ pi.pain.fillRectangle(x, y - a, (wide() ? tm.maxWidth() : w), h,