aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkFontHost.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkFontHost.cpp')
-rw-r--r--src/core/SkFontHost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkFontHost.cpp b/src/core/SkFontHost.cpp
index 01dbc8574c..a5a61c32bd 100644
--- a/src/core/SkFontHost.cpp
+++ b/src/core/SkFontHost.cpp
@@ -63,7 +63,7 @@ SkFontStyle::SkFontStyle(int weight, int width, Slant slant) {
fUnion.fU32 = 0;
fUnion.fR.fWeight = SkPin32(weight, kThin_Weight, kBlack_Weight);
fUnion.fR.fWidth = SkPin32(width, kUltraCondensed_Width, kUltaExpanded_Width);
- fUnion.fR.fSlant = kUpright_Slant;
+ fUnion.fR.fSlant = SkPin32(slant, kUpright_Slant, kItalic_Slant);
}
int SkFontMgr::countFamilies() {