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

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: Synced. 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
« no previous file with comments | « ui/gfx/platform_font_win.h ('k') | ui/gfx/render_text_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « ui/gfx/platform_font_win.h ('k') | ui/gfx/render_text_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698