backing out previous checked-in, because some tests are failed in tinderbox

This commit is contained in:
masayuki@d-toybox.com 2007-09-05 16:46:09 -07:00
parent 65afde847c
commit 49b8c27317

View File

@ -201,9 +201,9 @@ gfxAtsuiFont::InitMetrics(ATSUFontID aFontID, ATSFontRef aFontRef)
mMetrics.maxAdvance = mMetrics.aveCharWidth;
}
mMetrics.underlineOffset = -mMetrics.maxDescent - atsMetrics.underlinePosition * size;
mMetrics.underlineOffset = atsMetrics.underlinePosition * size;
// ATSUI sometimes returns 0 for underline thickness, see bug 361576.
mMetrics.underlineSize = PR_MAX(1.0, atsMetrics.underlineThickness * size);
mMetrics.underlineSize = PR_MAX(1.0f, atsMetrics.underlineThickness * size);
mMetrics.subscriptOffset = mMetrics.xHeight;
mMetrics.superscriptOffset = mMetrics.xHeight;