#include <boost/assert.hpp>
-using lyx::char_type;
-using lyx::docstring;
+
+namespace lyx {
using std::string;
LyXFont::FONT_SIZE oldsize = save_.font.size();
mb.fontname = name;
mb.font = LyXFont();
+ augmentFont(mb.font, from_ascii(name));
+ mb.font.setSize(oldsize);
+}
+
+
+FontSetChanger::FontSetChanger(MetricsBase & mb, docstring const & name)
+ : Changer<MetricsBase>(mb)
+{
+ save_ = mb;
+ LyXFont::FONT_SIZE oldsize = save_.font.size();
+ mb.fontname = to_utf8(name);
+ mb.font = LyXFont();
augmentFont(mb.font, name);
mb.font.setSize(oldsize);
}
{
orig_.setColor(lcolor.getFromLyXName(save_));
}
+
+
+} // namespace lyx