Index: src/core/SkTypeface.cpp |
diff --git a/src/core/SkTypeface.cpp b/src/core/SkTypeface.cpp |
index 90a1eaabeca08d956974e96812bb5273ec5a0ffb..9ab37a80dff137825330dfe033c581df0dd234e9 100644 |
--- a/src/core/SkTypeface.cpp |
+++ b/src/core/SkTypeface.cpp |
@@ -167,7 +167,7 @@ void SkTypeface::serialize(SkWStream* wstream) const { |
return; |
} |
bool isLocal = false; |
- SkFontDescriptor desc(this->style()); |
+ SkFontDescriptor desc; |
this->onGetFontDescriptor(&desc, &isLocal); |
// Embed font data if it's a local font. |
@@ -195,8 +195,7 @@ sk_sp<SkTypeface> SkTypeface::MakeDeserialize(SkStream* stream) { |
} |
} |
- return SkTypeface::MakeFromName(desc.getFamilyName(), |
- SkFontStyle::FromOldStyle(desc.getStyle())); |
+ return SkTypeface::MakeFromName(desc.getFamilyName(), desc.getStyle()); |
} |
/////////////////////////////////////////////////////////////////////////////// |