| Index: ui/gfx/platform_font_win.cc
|
| diff --git a/ui/gfx/platform_font_win.cc b/ui/gfx/platform_font_win.cc
|
| index 5e9d2537e5a188d88bf8b1bd186c36b50376a954..a8c266beb94cd21348ba714505ef800be0051149 100644
|
| --- a/ui/gfx/platform_font_win.cc
|
| +++ b/ui/gfx/platform_font_win.cc
|
| @@ -518,8 +518,7 @@ PlatformFontWin::HFontRef* PlatformFontWin::CreateHFontRefFromSkia(
|
| // The calculations below are similar to those in the CreateHFontRef
|
| // function. The height, baseline and cap height are rounded up to ensure
|
| // that they match up closely with GDI.
|
| - const int height = std::ceil(
|
| - skia_metrics.fDescent - skia_metrics.fAscent + skia_metrics.fLeading);
|
| + const int height = std::ceil(skia_metrics.fDescent - skia_metrics.fAscent);
|
| const int baseline = std::max<int>(1, std::ceil(-skia_metrics.fAscent));
|
| const int cap_height = std::ceil(paint.getTextSize() *
|
| static_cast<double>(dwrite_font_metrics.capHeight) /
|
|
|