MathTextCodes c = code();
if (sym_->latex_font_id > 0 && math_font_available(c)) {
whichFont(font, c, mi_);
- mathed_char_dim(font, sym_->latex_font_id, ascent_, descent_, width_);
+ mathed_char_dim(font, char(sym_->latex_font_id), ascent_, descent_, width_);
if (c == LM_TC_CMEX) {
h_ = 4 * descent_ / 5;
ascent_ += h_;
} else {
if (sym_->id > 0 && sym_->id < 255 && math_font_available(LM_TC_SYMB)) {
whichFont(font, code2(), mi_);
- mathed_char_dim(font, sym_->id, ascent_, descent_, width_);
+ mathed_char_dim(font, char(sym_->id), ascent_, descent_, width_);
} else {
whichFont(font, LM_TC_TEX, mi_);
mathed_string_dim(font, sym_->name, ascent_, descent_, width_);
void MathSymbolInset::draw(Painter & pain, int x, int y) const
-{
+{
if (isRelOp())
x += 3;
MathTextCodes Code = code();
LyXFont font;
if (sym_->latex_font_id > 0 && math_font_available(Code)) {
whichFont(font, Code, mi_);
- drawChar(pain, font, x, y - h_, sym_->latex_font_id);
+ drawChar(pain, font, x, y - h_, char(sym_->latex_font_id));
} else if (sym_->id > 0 && sym_->id < 255 && math_font_available(LM_TC_SYMB)){
whichFont(font, code2(), mi_);
- drawChar(pain, font, x, y, sym_->id);
+ drawChar(pain, font, x, y, char(sym_->id));
} else {
whichFont(font, LM_TC_TEX, mi_);
drawStr(pain, font, x, y, sym_->name);
bool MathSymbolInset::isRelOp() const
-{
+{
return sym_->type == "mathrel";
}
{
os << '\\' << name();
}
-
-