lyx_mirror/src/mathed/math_diminset.C
André Pönitz 858355fb69 - reduce sizeof(MathCharInset) by 20 by better font caching
(lots of subsequent changes)
- ascii art drawing for \frac and \sqrt


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3780 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-19 16:55:58 +00:00

23 lines
385 B
C

#include "math_diminset.h"
#include "Lsstream.h"
#include "textpainter.h"
void MathDimInset::metrics(TextMetricsInfo const &) const
{
std::ostringstream os;
os << *this;
width_ = int(os.str().size());
ascent_ = 1;
descent_ = 0;
}
void MathDimInset::draw(TextPainter & pain, int x, int y) const
{
std::ostringstream os;
os << *this;
pain.draw(x, y, os.str().c_str());
}