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

Unified Diff: ui/gfx/platform_font_ios.mm

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_ios.mm
diff --git a/ui/gfx/platform_font_ios.mm b/ui/gfx/platform_font_ios.mm
index 92608d322c0ec46295a393aef085e4e2ac79785f..9242b49d7bd8c040aeef54d2857b5d920b390e1c 100644
--- a/ui/gfx/platform_font_ios.mm
+++ b/ui/gfx/platform_font_ios.mm
@@ -76,6 +76,10 @@ std::string PlatformFontIOS::GetFontName() const {
return font_name_;
}
+std::string PlatformFontIOS::GetActualFontName() const {
+ return base::SysNSStringToUTF8([GetNativeFont() familyName]);
+}
+
int PlatformFontIOS::GetFontSize() const {
return font_size_;
}

Powered by Google App Engine
This is Rietveld 408576698