+#if 1
+ if (char_ == '=' && has_math_fonts) {
+ FontSetChanger dummy(mi.base, "cmr");
+ mathed_char_dim(mi.base.font, char_, dim);
+ } else if ((char_ == '>' || char_ == '<') && has_math_fonts) {
+ FontSetChanger dummy(mi.base, "cmm");
+ mathed_char_dim(mi.base.font, char_, dim);
+ } else if (!slanted(char_) && mi.base.fontname == "mathnormal") {
+ ShapeChanger dummy(mi.base.font, LyXFont::UP_SHAPE);
+ mathed_char_dim(mi.base.font, char_, dim);
+ } else {
+ mathed_char_dim(mi.base.font, char_, dim);
+ }
+ int const em = mathed_char_width(mi.base.font, 'M');
+ if (isBinaryOp(char_))
+ dim.wid += static_cast<int>(0.5*em+0.5);
+ else if (char_ == '\'')
+ dim.wid += static_cast<int>(0.1667*em+0.5);
+#else
+ whichFont(font_, code_, mi);
+ mathed_char_dim(font_, char_, dim_);
+ if (isBinaryOp(char_, code_))
+ width_ += 2 * font_metrics::width(' ', font_);
+ lyxerr << "MathCharInset::metrics: " << dim << endl;
+#endif
+ width_ = dim.wid;