mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Use ceil instead of round in GetAveCharWidth and GetSpaceWidth for consistency with GetMaxAdvance. b=428458 r=pavlov sr=roc a1.9=damons
This commit is contained in:
parent
e4d79fc85c
commit
2165298cda
@ -252,15 +252,15 @@ nsThebesFontMetrics::GetFontHandle(nsFontHandle &aHandle)
|
||||
NS_IMETHODIMP
|
||||
nsThebesFontMetrics::GetAveCharWidth(nscoord& aAveCharWidth)
|
||||
{
|
||||
aAveCharWidth = ROUND_TO_TWIPS(GetMetrics().aveCharWidth);
|
||||
// Use CEIL instead of ROUND for consistency with GetMaxAdvance
|
||||
aAveCharWidth = CEIL_TO_TWIPS(GetMetrics().aveCharWidth);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsThebesFontMetrics::GetSpaceWidth(nscoord& aSpaceCharWidth)
|
||||
{
|
||||
aSpaceCharWidth = ROUND_TO_TWIPS(GetMetrics().spaceWidth);
|
||||
|
||||
aSpaceCharWidth = CEIL_TO_TWIPS(GetMetrics().spaceWidth);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user