Index: src/ports/SkTypeface_win_dw.cpp |
diff --git a/src/ports/SkTypeface_win_dw.cpp b/src/ports/SkTypeface_win_dw.cpp |
index 9c2b41d44cddecf8482caee211cfe6ec2e5d6c14..8b9ed16d1d845e5d21a199e94e6db0cc479b1a56 100644 |
--- a/src/ports/SkTypeface_win_dw.cpp |
+++ b/src/ports/SkTypeface_win_dw.cpp |
@@ -42,6 +42,7 @@ void DWriteFontTypeface::onGetFontDescriptor(SkFontDescriptor* desc, |
sk_get_locale_string(familyNames.get(), NULL/*fMgr->fLocaleName.get()*/, &utf8FamilyName); |
desc->setFamilyName(utf8FamilyName.c_str()); |
+ desc->setFontIndex(fDWriteFontFace->GetIndex()); |
*isLocalStream = SkToBool(fDWriteFontFileLoader.get()); |
} |