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

Unified Diff: include/core/SkFontStyle.h

Issue 1921903002: Add oblique as a slant. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: static_assert what can be. 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 | « gm/fontmgr.cpp ('k') | src/core/SkFontMgr.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkFontStyle.h
diff --git a/include/core/SkFontStyle.h b/include/core/SkFontStyle.h
index c18f956e94ce5733dbf755e348c7a2e7900f5877..f4ffbb9675f1c4ca5692b006a9664a2b0b4b302d 100644
--- a/include/core/SkFontStyle.h
+++ b/include/core/SkFontStyle.h
@@ -39,6 +39,7 @@ public:
enum Slant {
kUpright_Slant,
kItalic_Slant,
+ kOblique_Slant,
};
SkFontStyle();
@@ -54,10 +55,6 @@ public:
int width() const { return fUnion.fR.fWidth; }
Slant slant() const { return (Slant)fUnion.fR.fSlant; }
- bool isItalic() const {
- return kItalic_Slant == fUnion.fR.fSlant;
- }
-
private:
union {
struct {
« no previous file with comments | « gm/fontmgr.cpp ('k') | src/core/SkFontMgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698