Index: src/fonts/SkTestScalerContext.cpp |
diff --git a/src/fonts/SkTestScalerContext.cpp b/src/fonts/SkTestScalerContext.cpp |
index a2748564a56cca6722d165c3fb224fee80712eb9..6cfcb738da2bbb4be4c73156272ba48028e7d600 100644 |
--- a/src/fonts/SkTestScalerContext.cpp |
+++ b/src/fonts/SkTestScalerContext.cpp |
@@ -156,6 +156,7 @@ SkAdvancedTypefaceMetrics* SkTestTypeface::onGetAdvancedTypefaceMetrics( |
void SkTestTypeface::onGetFontDescriptor(SkFontDescriptor* desc, bool* isLocal) const { |
desc->setFamilyName(fTestFont->fName); |
+ desc->setStyle(this->fontStyle()); |
*isLocal = false; |
} |