| Index: src/ports/SkFontHost_FreeType.cpp
|
| diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
|
| index 3b1a5b207dca4c59c2c845f6f37310043398c410..82648c3f513452e2f717c4d7002106f601647ede 100644
|
| --- a/src/ports/SkFontHost_FreeType.cpp
|
| +++ b/src/ports/SkFontHost_FreeType.cpp
|
| @@ -1696,6 +1696,11 @@ bool SkTypeface_FreeType::Scanner::scanFont(
|
| if (os2 && os2->version != 0xffff) {
|
| weight = os2->usWeightClass;
|
| width = os2->usWidthClass;
|
| +
|
| + // OS/2::fsSelection bit 9 indicates oblique.
|
| + if (SkToBool(os2->fsSelection & (1u << 9))) {
|
| + slant = SkFontStyle::kOblique_Slant;
|
| + }
|
| } else if (0 == FT_Get_PS_Font_Info(face, &psFontInfo) && psFontInfo.weight) {
|
| static const struct {
|
| char const * const name;
|
|
|