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

Unified Diff: include/core/SkTypeface.h

Issue 2171163002: Add test for typeface style round trip. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Work around Mac for now. Created 4 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
« no previous file with comments | « no previous file | src/core/SkFontStyle.cpp » ('j') | src/core/SkFontStyle.cpp » ('J')
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 e3a311da4337eae9429185104225db62bed07ccb..981339e3665f57c57a9105492afdf7b550563651 100644
--- a/include/core/SkTypeface.h
+++ b/include/core/SkTypeface.h
@@ -346,6 +346,7 @@ protected:
/** Sets the fixedPitch bit. If used, must be called in the constructor. */
void setIsFixedPitch(bool isFixedPitch) { fIsFixedPitch = isFixedPitch; }
+ void setFontStyle(SkFontStyle style) { fStyle = style; }
reed1 2016/07/25 16:48:50 repeat comment/constraint about being only called
bungeman-skia 2016/07/25 21:03:58 I made a mental note to do that and forgot. Done.
friend class SkScalerContext;
static SkTypeface* GetDefaultTypeface(Style style = SkTypeface::kNormal);
« no previous file with comments | « no previous file | src/core/SkFontStyle.cpp » ('j') | src/core/SkFontStyle.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698