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

Unified Diff: ui/gfx/font_list.cc

Issue 19666006: Supports FontList in Textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes examples and unittests. Created 7 years, 5 months 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/font_list.cc
diff --git a/ui/gfx/font_list.cc b/ui/gfx/font_list.cc
index 3c1b0146cd57998cdc002e15dd58a3f54f146726..0e6fd51c7bc15f4e849c88ff77be1624898a1b07 100644
--- a/ui/gfx/font_list.cc
+++ b/ui/gfx/font_list.cc
@@ -230,4 +230,8 @@ const std::vector<Font>& FontList::GetFonts() const {
return fonts_;
}
+const Font& FontList::GetPrimaryFont() const {
+ return GetFonts()[0];
+}
+
} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698