bug 13072; Shyjan and Roger (MathML) guys came up with this fix to base

the font size on the normal "design" size (em square) of the font;
r=erik; a=pavlov
This commit is contained in:
erik%netscape.com 2000-02-08 03:20:40 +00:00
Родитель 01d5d9441e
Коммит 97be3d9aa4
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -1414,13 +1414,10 @@ 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
//mActualSize = xFont->max_bounds.ascent + xFont->max_bounds.descent;
#if 0
if (aCharSet->mInfo->mSpecialUnderline && aMetrics->mFontHandle) {