- LyXFont font;
- whichFont(font, LM_TC_VAR, mi);
- mathed_char_dim(font, 'M', ascent_, descent_, width_);
- switch (name_[0]) {
- case 'l': dh_ = 0; break;
- case 'c': dh_ = ascent_ / 2; break;
- case 'v': width_ /= 2;
- case 'd': dh_ = ascent_; break;
- }
+ mathed_char_dim(mi.base.font, 'M', ascent_, descent_, width_);
+ if (name_ == "ldots" || name_ == "dotsm")
+ dh_ = 0;
+ else if (name_ == "cdots" || name_ == "dotsb"
+ || name_ == "dotsm" || name_ == "dotsi")
+ dh_ = ascent_ / 2;
+ else if (name_ == "dotsc")
+ dh_ = ascent_ / 4;
+ else if (name_ == "vdots")
+ width_ /= 2;
+ else if (name_ == "ddots")
+ dh_ = ascent_;