| Index: ui/gfx/platform_font_win.cc
|
| diff --git a/ui/gfx/platform_font_win.cc b/ui/gfx/platform_font_win.cc
|
| index a9a7a43faf5f6ec43d5f3ab7ff03029c19195773..b4a0ae14c72535798bf2903b7dbe3b4b7e497006 100644
|
| --- a/ui/gfx/platform_font_win.cc
|
| +++ b/ui/gfx/platform_font_win.cc
|
| @@ -193,9 +193,9 @@ void PlatformFontWin::InitWithCopyOfHFONT(HFONT hfont) {
|
|
|
| void PlatformFontWin::InitWithFontNameAndSize(const std::string& font_name,
|
| int font_size) {
|
| - HFONT hf = ::CreateFont(-font_size, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
| - UTF8ToUTF16(font_name).c_str());
|
| - font_ref_ = CreateHFontRef(hf);
|
| + HFONT hf = ::CreateFont(-font_size, 0, 0, 0, 0, 0, 0, 0, DEFAULT_CHARSET, 0,
|
| + 0, 0, 0, UTF8ToUTF16(font_name).c_str());
|
| + font_ref_ = hf ? CreateHFontRef(hf) : GetBaseFontRef();
|
| }
|
|
|
| // static
|
|
|