mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Bug 1136557 - pt 2 - Round maxDescent similarly to maxAscent in nsFontMetrics. r=smontagu
This commit is contained in:
parent
d8d7cd6058
commit
af316a7d7d
@ -216,8 +216,8 @@ static gfxFloat ComputeMaxDescent(const gfxFont::Metrics& aMetrics,
|
||||
{
|
||||
gfxFloat offset = floor(-aFontGroup->GetUnderlineOffset() + 0.5);
|
||||
gfxFloat size = NS_round(aMetrics.underlineSize);
|
||||
gfxFloat minDescent = floor(offset + size + 0.5);
|
||||
return std::max(minDescent, aMetrics.maxDescent);
|
||||
gfxFloat minDescent = offset + size;
|
||||
return floor(std::max(minDescent, aMetrics.maxDescent) + 0.5);
|
||||
}
|
||||
|
||||
static gfxFloat ComputeMaxAscent(const gfxFont::Metrics& aMetrics)
|
||||
|
Loading…
x
Reference in New Issue
Block a user