Index: src/utils/win/SkDWrite.h |
diff --git a/src/utils/win/SkDWrite.h b/src/utils/win/SkDWrite.h |
index 60e6a11984c326120130216a86b23ea0709c1167..ddcbc6c42613accf4cd89079ef82bf0a92d18e1d 100644 |
--- a/src/utils/win/SkDWrite.h |
+++ b/src/utils/win/SkDWrite.h |
@@ -90,23 +90,18 @@ public: |
struct DWriteStyle { |
explicit DWriteStyle(const SkFontStyle& pattern) { |
- switch (pattern.slant()) { |
- case SkFontStyle::kUpright_Slant: |
- fSlant = DWRITE_FONT_STYLE_NORMAL; |
- break; |
- case SkFontStyle::kItalic_Slant: |
- fSlant = DWRITE_FONT_STYLE_ITALIC; |
- break; |
- default: |
- SkASSERT(false); |
- } |
- |
fWeight = (DWRITE_FONT_WEIGHT)pattern.weight(); |
fWidth = (DWRITE_FONT_STRETCH)pattern.width(); |
+ switch (pattern.slant()) { |
+ case SkFontStyle::kUpright_Slant: fSlant = DWRITE_FONT_STYLE_NORMAL ; break; |
+ case SkFontStyle::kItalic_Slant: fSlant = DWRITE_FONT_STYLE_ITALIC ; break; |
+ case SkFontStyle::kOblique_Slant: fSlant = DWRITE_FONT_STYLE_OBLIQUE; break; |
+ default: SkASSERT(false); break; |
+ } |
} |
- DWRITE_FONT_STYLE fSlant; |
DWRITE_FONT_WEIGHT fWeight; |
DWRITE_FONT_STRETCH fWidth; |
+ DWRITE_FONT_STYLE fSlant; |
}; |
#endif |