MathData::MathData(Buffer * buf, const_iterator from, const_iterator to)
: base_type(from, to), minasc_(0), mindes_(0), slevel_(0),
- sshift_(0), kerning_(0), buffer_(buf)
+ sshift_(0), buffer_(buf)
{}
MathRow mrow(mi, this);
mrow.metrics(mi, dim);
- kerning_ = mrow.kerning(bv);
// Set a minimal ascent/descent for the cell
if (tight)
}
+int MathData::kerning(BufferView const * bv) const
+{
+ return bv->mathRow(this).kerning(bv);
+}
+
+
void MathData::updateBuffer(ParIterator const & it, UpdateType utype)
{
// pass down
public:
///
MathData(Buffer * buf = 0) : minasc_(0), mindes_(0), slevel_(0),
- sshift_(0), kerning_(0), buffer_(buf) {}
+ sshift_(0), buffer_(buf) {}
///
MathData(Buffer * buf, const_iterator from, const_iterator to);
///
/// additional super/subscript shift
int sshift() const { return sshift_; }
/// Italic correction as described in InsetMathScript.h
- int kerning(BufferView const *) const { return kerning_; }
+ int kerning(BufferView const *) const;
///
void swap(MathData & ar) { base_type::swap(ar); }
mutable int mindes_;
mutable int slevel_;
mutable int sshift_;
- mutable int kerning_;
Buffer * buffer_;
private: