Index: src/ports/SkFontHost_fontconfig.cpp |
diff --git a/src/ports/SkFontHost_fontconfig.cpp b/src/ports/SkFontHost_fontconfig.cpp |
index 57252d0c18557bbcb2e6b9c51c5f27c64ee21078..b3a893e53687a1c8597a542406414b2c1131ef2a 100644 |
--- a/src/ports/SkFontHost_fontconfig.cpp |
+++ b/src/ports/SkFontHost_fontconfig.cpp |
@@ -169,5 +169,6 @@ void FontConfigTypeface::onGetFamilyName(SkString* familyName) const { |
void FontConfigTypeface::onGetFontDescriptor(SkFontDescriptor* desc, |
bool* isLocalStream) const { |
desc->setFamilyName(this->getFamilyName()); |
+ desc->setFontIndex(this->getIdentity().fTTCIndex); |
*isLocalStream = SkToBool(this->getLocalStream()); |
} |