diff options
author | 2016-04-27 10:21:04 -0700 | |
---|---|---|
committer | 2016-04-27 10:21:05 -0700 | |
commit | b4bb7d825566042ed64697be49457dbac060e6c4 (patch) | |
tree | baad2b4f5125674cc06c06a7d2dd04f7100379c4 /include/core/SkFontStyle.h | |
parent | 12135f50bd8d7d8abbb2befb99a9784043cb90e5 (diff) |
Add oblique as a slant.
Some fonts have italic and oblique in the same family, see
http://lucidafonts.com/fonts/family/lucida-sans
http://www.gust.org.pl/projects/e-foundry/latin-modern
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1921903002
Chromium side change at https://crrev.com/1921503006/ .
Review-Url: https://codereview.chromium.org/1921903002
Diffstat (limited to 'include/core/SkFontStyle.h')
-rw-r--r-- | include/core/SkFontStyle.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/core/SkFontStyle.h b/include/core/SkFontStyle.h index c18f956e94..f4ffbb9675 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 { |