summaryrefslogtreecommitdiffstats
path: root/gfx/font.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/font.cc')
-rw-r--r--gfx/font.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gfx/font.cc b/gfx/font.cc
index 625968a..1c3400b 100644
--- a/gfx/font.cc
+++ b/gfx/font.cc
@@ -4,6 +4,7 @@
#include "gfx/font.h"
+#include "base/utf_string_conversions.h"
#include "gfx/platform_font.h"
namespace gfx {
@@ -58,7 +59,7 @@ int Font::GetAverageCharacterWidth() const {
}
int Font::GetStringWidth(const std::wstring& text) const {
- return platform_font_->GetStringWidth(text);
+ return platform_font_->GetStringWidth(WideToUTF16Hack(text));
}
int Font::GetExpectedTextWidth(int length) const {