| Index: ui/gfx/platform_font_win.cc
|
| diff --git a/ui/gfx/platform_font_win.cc b/ui/gfx/platform_font_win.cc
|
| index a97da2eedcf1ad9e2ecafb5e748a1bb33675b3a6..0209be6673eef616bc02cd46cc1975a71566f608 100644
|
| --- a/ui/gfx/platform_font_win.cc
|
| +++ b/ui/gfx/platform_font_win.cc
|
| @@ -167,6 +167,13 @@ std::string PlatformFontWin::GetFontName() const {
|
| return font_ref_->font_name();
|
| }
|
|
|
| +std::string PlatformFontWin::GetActualFontNameForTesting() const {
|
| + // With the current implementation on Windows, HFontRef::font_name() returns
|
| + // the font name taken from the HFONT handle, but it's not the name that comes
|
| + // from the font's metadata. See http://crbug.com/327287
|
| + return font_ref_->font_name();
|
| +}
|
| +
|
| std::string PlatformFontWin::GetLocalizedFontName() const {
|
| base::win::ScopedCreateDC memory_dc(CreateCompatibleDC(NULL));
|
| if (!memory_dc.Get())
|
|
|