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

Unified Diff: ui/gfx/font_list.h

Issue 2441343003: Allow the default generic font family settings to find the first available font (Closed)
Patch Set: msw review Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/GenericFontFamilySettingsTest.cpp ('k') | ui/gfx/font_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font_list.h
diff --git a/ui/gfx/font_list.h b/ui/gfx/font_list.h
index 432f627bceaa97b31f7c222ecfd5b400b98bdd84..e2c30725e2f4becbb4d09583ac7733dd1ab92309 100644
--- a/ui/gfx/font_list.h
+++ b/ui/gfx/font_list.h
@@ -164,6 +164,12 @@ class GFX_EXPORT FontList {
// Returns the first font in the list.
const Font& GetPrimaryFont() const;
+ // Returns the first available font name. If there is no available font,
+ // returns the first font name. Empty entries are ignored.
+ // Used by Blink and webui to pick the primary standard/serif/sans/fixed/etc.
+ // fonts from region-specific IDS lists.
+ static std::string FirstAvailableOrFirst(const std::string& font_name_list);
+
private:
explicit FontList(FontListImpl* impl);
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/GenericFontFamilySettingsTest.cpp ('k') | ui/gfx/font_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698