MathTextCodes MathSymbolInset::code() const
{
switch(sym_->token) {
+ case LM_TK_CMR:
+ return LM_TC_CMR;
case LM_TK_CMSY:
return LM_TC_CMSY;
case LM_TK_CMM:
}
}
+
+MathTextCodes MathSymbolInset::code2() const
+{
+ if (sym_->token == LM_TK_CMEX)
+ return LM_TC_BOLDSYMB;
+ else
+ return LM_TC_SYMB;
+}
+
+
void MathSymbolInset::metrics(MathStyles st) const
{
size_ = st;
}
} else if (sym_->id > 0 && sym_->id < 255 &&
math_font_available(LM_TC_SYMB)) {
- mathed_char_dim(LM_TC_SYMB, size_, sym_->id,
+ mathed_char_dim(code2(), size_, sym_->id,
ascent_, descent_, width_);
} else {
mathed_string_dim(LM_TC_TEX, size_, sym_->name, ascent_, descent_, width_);
if (sym_->latex_font_id > 0 && math_font_available(Code))
drawChar(pain, Code, size_, x, y - h_, sym_->latex_font_id);
else if (sym_->id > 0 && sym_->id < 255 &&
- math_font_available(LM_TC_SYMB))
- drawChar(pain, LM_TC_SYMB, size_, x, y, sym_->id);
+ math_font_available(LM_TC_SYMB))
+ drawChar(pain, code2(), size_, x, y, sym_->id);
else
drawStr(pain, LM_TC_TEX, size_, x, y, sym_->name);
}