text baseline, not from the middle of the line.
We are now getting much closer to LateX drawing...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35413
a592a061-630c-0410-9148-
cb99ea01b6c8
Length offset = Length(to_ascii(getParam("offset")));
offset_ = offset.inPixels(max_width, fm.width(char_type('M')));
- dim.asc = max(fm.maxAscent(), offset_ + height_/2);
- dim.des = max(fm.maxDescent(), height_/2 - offset_);
+ dim.asc = max(fm.maxAscent(), offset_ + height_);
+ dim.des = max(fm.maxDescent(), - offset_);
// Cache the inset dimension
setDimCache(mi, dim);