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

Unified Diff: include/ports/SkFontMgr.h

Issue 1494253002: Update documentation for SkTypeface constructors. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/ports/SkFontMgr.h
diff --git a/include/ports/SkFontMgr.h b/include/ports/SkFontMgr.h
index 8d57986a13233015c843c4e172adbcbf1680a458..96a8501c48561918c8c03213e3198fa78bc61233 100644
--- a/include/ports/SkFontMgr.h
+++ b/include/ports/SkFontMgr.h
@@ -43,6 +43,8 @@ public:
* The caller must call unref() on the returned object.
* Never returns NULL; will return an empty set if the name is not found.
*
+ * Passing |nullptr| as the parameter will return the default system font.
+ *
* It is possible that this will return a style set not accessible from
* createStyleSet(int) due to hidden or auto-activated fonts.
*/
@@ -54,6 +56,9 @@ public:
* object. Will never return NULL, as it will return the default font if
* no matching font is found.
*
+ * Passing |nullptr| as the parameter for |familyName| will return the
+ * default system font.
+ *
* It is possible that this will return a style set not accessible from
* createStyleSet(int) or matchFamily(const char[]) due to hidden or
* auto-activated fonts.
@@ -68,6 +73,9 @@ public:
* Will return NULL if no family can be found for the character
* in the system fallback.
*
+ * Passing |nullptr| as the parameter for |familyName| will return the
+ * default system font.
+ *
* bcp47[0] is the least significant fallback, bcp47[bcp47Count-1] is the
* most significant. If no specified bcp47 codes match, any font with the
* requested character will be matched.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698