Index: src/ports/SkFontHost_mac.cpp |
diff --git a/src/ports/SkFontHost_mac.cpp b/src/ports/SkFontHost_mac.cpp |
index c129a6b24bcd7844e852fd71581f03652ce32289..153783add6f9cdddbe2e17f1453f4c4d5a840a0d 100644 |
--- a/src/ports/SkFontHost_mac.cpp |
+++ b/src/ports/SkFontHost_mac.cpp |
@@ -2036,6 +2036,7 @@ void SkTypeface_Mac::onGetFontDescriptor(SkFontDescriptor* desc, |
desc->setFamilyName(get_str(CTFontCopyFamilyName(fFontRef), &tmpStr)); |
desc->setFullName(get_str(CTFontCopyFullName(fFontRef), &tmpStr)); |
desc->setPostscriptName(get_str(CTFontCopyPostScriptName(fFontRef), &tmpStr)); |
+ desc->setStyle(this->fontStyle()); |
*isLocalStream = fIsLocalStream; |
} |