mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 00:50:40 +00:00
[#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:
parent
1e5ae7141b
commit
f1416deebf
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user