зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
01d5d9441e
Коммит
97be3d9aa4
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче