Chromium Code Reviews| 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..7e8a54672477ae630030d201d77ff952beb44f72 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::GetActualFontName() const { |
| + // With the current implementation on Windows, HFontRef::font_name() returns |
| + // the font name taken from HFONT handle, but it's not the name comes from |
|
msw
2013/12/09 19:27:15
nit: "from the HFONT", "name that comes", "metadat
Yuki
2013/12/10 09:58:59
Done.
|
| + // the font's meta data. |
| + return font_ref_->font_name(); |
| +} |
| + |
| std::string PlatformFontWin::GetLocalizedFontName() const { |
| base::win::ScopedCreateDC memory_dc(CreateCompatibleDC(NULL)); |
| if (!memory_dc.Get()) |