Index: gfx/platform_font_gtk.cc |
diff --git a/gfx/platform_font_gtk.cc b/gfx/platform_font_gtk.cc |
index 7633c10f22e45c8905832b85930e98c6a9fc4efc..bc4d05bbdec60c9045dd3812f35c2600ba1755f9 100644 |
--- a/gfx/platform_font_gtk.cc |
+++ b/gfx/platform_font_gtk.cc |
@@ -221,7 +221,8 @@ int PlatformFontGtk::GetAverageCharacterWidth() const { |
int PlatformFontGtk::GetStringWidth(const std::wstring& text) const { |
int width = 0, height = 0; |
- CanvasSkia::SizeStringInt(text, Font(const_cast<PlatformFontGtk*>(this)), |
+ CanvasSkia::SizeStringInt(WideToUTF16Hack(text), |
+ Font(const_cast<PlatformFontGtk*>(this)), |
&width, &height, gfx::Canvas::NO_ELLIPSIS); |
return width; |
} |