[#ifdef MOZ_MATHML] Patch of Shyjan Mahamud to set mActualSize to the designed size of the font, when the font requested is not a scalable font

This commit is contained in:
rbs%maths.uq.edu.au 2000-01-07 14:07:56 +00:00
parent 1e5ae7141b
commit f1416deebf

View File

@ -1384,7 +1384,15 @@ nsFontGTK::LoadFont(nsFontCharSet* aCharSet, nsFontMetricsGTK* aMetrics)
}
}
mFont = gdkFont;
#ifdef MOZ_MATHML
// setting the actual size to the pixel size mSize from the XFLD
// seems to be more reliable.
mActualSize = mSize;
#else
mActualSize = xFont->max_bounds.ascent + xFont->max_bounds.descent;
#endif
#if 0
if (aCharSet->mInfo->mSpecialUnderline && aMetrics->mFontHandle) {
XFontStruct* asciiXFont =