Chromium Code Reviews| Index: include/core/SkTypeface.h |
| diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h |
| index 0b1ca6a4bdaf02c231fa61fe2e62a68f24b94672..7384317c89ff906cb30770c35b96e4c24f968f21 100644 |
| --- a/include/core/SkTypeface.h |
| +++ b/include/core/SkTypeface.h |
| @@ -99,6 +99,14 @@ public: |
| */ |
| static SkTypeface* RefDefault(Style style = SkTypeface::kNormal); |
| + /** |
| + Creates a new reference to the typeface that most closely matches the |
| + requested familyName and fontStyle. This method allows extended font |
| + face specifiers as in the SkFontStyle type. |
| + */ |
| + static SkTypeface* CreateFromNameAndStyle(const char familyName[], |
|
bungeman-skia
2016/03/21 16:14:26
All of the static 'Create' methods on Typeface are
|
| + SkFontStyle fontStyle); |
| + |
| /** Return a new reference to the typeface that most closely matches the |
| requested familyName and style. Pass null as the familyName to return |
| the default font for the requested style. Will never return null |