baseline correction for wasy symbols

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4576 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-07-10 06:12:00 +00:00
parent 0a034e45b8
commit 63f7e8ce2e

View File

@ -49,7 +49,7 @@ void MathSymbolInset::metrics(MathMetricsInfo & mi) const
MathFontSetChanger dummy(mi.base, sym_->inset.c_str());
mathed_string_dim(mi.base.font, sym_->draw, ascent_, descent_, width_);
// correct height for broken cmex font
if (sym_->inset == "cmex") {
if (sym_->inset == "cmex" || sym_->inset == "wasy") {
h_ = 4 * descent_ / 5;
ascent_ += h_;
descent_ -= h_;