- int h = 2 * mathed_char_height(LM_TC_VAR, size(), 'I',
- ascent, descent);
- MathParInset::Metrics();
- int w = Width() + 4;
- if (w < 16) w = 16;
- dh = w / 5;
- if (dh > h) dh = h;
-
- if (upper) {
- ascent += dh + 2;
- dy = -ascent;
+ return
+ name_ == "overline" ||
+ name_ == "underline" ||
+ name_ == "overbrace" ||
+ name_ == "underbrace" ||
+ name_ == "overleftarrow" ||
+ name_ == "overrightarrow" ||
+ name_ == "overleftrightarrow" ||
+ name_ == "widehat" ||
+ name_ == "widetilde" ||
+ name_ == "underleftarrow" ||
+ name_ == "underrightarrow" ||
+ name_ == "underleftrightarrow";
+}
+
+
+void MathDecorationInset::metrics(MathMetricsInfo & mi) const
+{
+ xcell(0).metrics(mi);
+ width_ = xcell(0).width();
+ ascent_ = xcell(0).ascent();
+ descent_ = xcell(0).descent();
+
+ dh_ = 6; //mathed_char_height(LM_TC_VAR, mi, 'I', ascent_, descent_);
+ dw_ = 6; //mathed_char_width(LM_TC_VAR, mi, 'x');
+
+ if (upper()) {
+ dy_ = -ascent_ - dh_;
+ ascent_ += dh_ + 1;