- Painter & pain(bv->painter());
-
- int const wid = font_metrics::width('n', font);
- int const asc = font_metrics::maxAscent(font);
- int const y = baseline;
-
- // hack, and highly dubious
- lyx::pos_type pos = parOwner()->getPositionOfInset(this);
- bool const ltr_pos = (bv->text->bidi_level(pos) % 2 == 0);
+ frontend::FontMetrics const & fm = theFontMetrics(pi.base.font);
+ int const wid = fm.width('n');
+ int const asc = fm.maxAscent();