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

Unified Diff: include/core/SkTypeface.h

Issue 1905253002: Implement matchFamilyStyle for SkFontMgr_fontconfig (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | src/core/SkTypeface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkTypeface.h
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h
index 0fbf6a3e0ad337395c66f513e73eb6a37f61e8f2..19e8f2f946dd7c951921bf5c08931a0b1036b310 100644
--- a/include/core/SkTypeface.h
+++ b/include/core/SkTypeface.h
@@ -97,6 +97,7 @@ public:
* when they are done referencing the object. Never returns NULL.
*/
static SkTypeface* RefDefault(Style style = SkTypeface::kNormal);
+ static SkTypeface* RefDefault(SkFontStyle style);
/** Return a new reference to the typeface that most closely matches the
requested familyName and style. Pass null as the familyName to return
@@ -108,6 +109,8 @@ public:
unref() when they are done.
*/
static SkTypeface* CreateFromName(const char familyName[], Style style);
+ static SkTypeface* CreateFromName(const char familyName[],
+ SkFontStyle style);
/** Return a new reference to the typeface that most closely matches the
requested typeface and specified Style. Use this call if you want to
@@ -334,6 +337,7 @@ protected:
friend class SkScalerContext;
static SkTypeface* GetDefaultTypeface(Style style = SkTypeface::kNormal);
+ static SkTypeface* GetDefaultTypeface(SkFontStyle style);
virtual SkScalerContext* onCreateScalerContext(const SkScalerContextEffects&,
const SkDescriptor*) const = 0;
« no previous file with comments | « no previous file | src/core/SkTypeface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698