Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: ui/gfx/platform_font_win.cc

Issue 79263004: Enables font-related unittests again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed a test breakage on Windows. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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())

Powered by Google App Engine
This is Rietveld 408576698