mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
backing out previous checked-in, because some tests are failed in tinderbox
This commit is contained in:
parent
65afde847c
commit
49b8c27317
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user