- char cx = data_.GetChar(pos);
- MathTextCodes fc = data_.GetCode(pos);
- int asc;
- int des;
- int wid;
- mathed_char_dim(fc, style_, cx, asc, des, wid);
- ascent_ = max(ascent_, asc);
- descent_ = max(descent_, des);
- width_ += wid;
+ p->metrics(st);
+ ascent_ = std::max(ascent_, p->ascent());
+ descent_ = std::max(descent_, p->descent());
+ width_ += p->width();