Index: ui/gfx/platform_font_pango.cc |
diff --git a/ui/gfx/platform_font_pango.cc b/ui/gfx/platform_font_pango.cc |
index 856acc2c432a209b0e451bfa86c8883db92d7e90..020cc7f2291f3c030355b5db8ad3ca3f6a7934ec 100644 |
--- a/ui/gfx/platform_font_pango.cc |
+++ b/ui/gfx/platform_font_pango.cc |
@@ -183,13 +183,13 @@ int PlatformFontPango::GetBaseline() const { |
} |
int PlatformFontPango::GetCapHeight() const { |
- // Return the height as an approximation because Pango doesn't support cap |
+ // Return the ascent as an approximation because Pango doesn't support cap |
// height. |
// TODO(yukishiino): Come up with a better approximation of cap height, or |
// support cap height metrics. Another option is to have a hard-coded table |
// of cap height for major fonts used in Chromium/Chrome. |
// See http://crbug.com/249507 |
- return height_pixels_; |
+ return ascent_pixels_; |
} |
int PlatformFontPango::GetAverageCharacterWidth() const { |