#include "LaTeXFeatures.h"
-LyXFont WhichFont(short type, int size);
-
namespace {
string const getAlign(short int type, int cols)
{
size_ = (GetType() == LM_OT_SIMPLE) ? LM_ST_TEXT : LM_ST_DISPLAY;
- //LyXFont wfont = WhichFont(LM_TC_BF, size());
- //wfont.setLatex(LyXFont::OFF);
-
// let the cells adjust themselves
MathGridInset::Metrics(size_);
if (numberedType()) {
int l = 0;
for (int row = 0; row < nrows(); ++row)
- l = std::max(l, mathed_string_width(LM_TC_TEXTRM, size(), nicelabel(row)));
+ l = std::max(l, mathed_string_width(LM_TC_BF, size(), nicelabel(row)));
if (l)
width_ += 30 + l;
MathGridInset::draw(pain, x, y);
if (numberedType()) {
- LyXFont wfont = WhichFont(LM_TC_BF, size());
-#ifndef NO_LATEX
- wfont.setLatex(LyXFont::OFF);
-#endif
int xx = x + colinfo_.back().offset_ + colinfo_.back().width_ + 20;
- for (int row = 0; row < nrows(); ++row)
- pain.text(xx, y + rowinfo_[row].offset_, nicelabel(row), wfont);
+ for (int row = 0; row < nrows(); ++row) {
+ int yy = y + rowinfo_[row].offset_;
+ drawStr(pain, LM_TC_BF, size(), xx, yy, nicelabel(row));
+ }
}
}