зеркало из https://github.com/mozilla/gecko-dev.git
Bug 457194. Make sure Ahem font completely covers background. r=jdaggett, sr=vlad
This commit is contained in:
Родитель
0c71bfb811
Коммит
c1f2b81653
|
@ -274,8 +274,8 @@ gfxAtsuiFont::InitMetrics(ATSUFontID aFontID, ATSFontRef aFontRef)
|
|||
|
||||
mMetrics.emHeight = size;
|
||||
|
||||
mMetrics.maxAscent = NS_ceil(atsMetrics.ascent * size);
|
||||
mMetrics.maxDescent = NS_ceil(- (atsMetrics.descent * size));
|
||||
mMetrics.maxAscent = atsMetrics.ascent * size;
|
||||
mMetrics.maxDescent = - (atsMetrics.descent * size);
|
||||
|
||||
mMetrics.maxHeight = mMetrics.maxAscent + mMetrics.maxDescent;
|
||||
|
||||
|
@ -441,6 +441,11 @@ gfxAtsuiFont::SetupGlyphExtents(gfxContext *aContext, PRUint32 aGlyphID,
|
|||
return;
|
||||
}
|
||||
}
|
||||
#ifdef DEBUG_TEXT_RUN_STORAGE_METRICS
|
||||
if (!aNeedTight) {
|
||||
++gGlyphExtentsSetupFallBackToTight;
|
||||
}
|
||||
#endif
|
||||
|
||||
double d2a = appUnitsPerDevUnit;
|
||||
gfxRect bounds(metrics.topLeft.x*d2a, (metrics.topLeft.y - metrics.height)*d2a,
|
||||
|
|
Загрузка…
Ссылка в новой задаче