Index: src/ports/SkFontMgr_android.cpp |
diff --git a/src/ports/SkFontMgr_android.cpp b/src/ports/SkFontMgr_android.cpp |
index ed5a4d53a78a016bde81ab47ec8009ac66a5f4d2..4aea047cdeee106cbffc401d4217fb638d8d0ad4 100644 |
--- a/src/ports/SkFontMgr_android.cpp |
+++ b/src/ports/SkFontMgr_android.cpp |
@@ -257,7 +257,7 @@ private: |
static int match_score(const SkFontStyle& pattern, const SkFontStyle& candidate) { |
int score = 0; |
score += SkTAbs((pattern.width() - candidate.width()) * 100); |
- score += SkTAbs((pattern.isItalic() == candidate.isItalic()) ? 0 : 1000); |
+ score += SkTAbs((pattern.slant() == candidate.slant()) ? 0 : 1000); |
score += SkTAbs(pattern.weight() - candidate.weight()); |
return score; |
} |