| Index: src/ports/SkFontMgr_custom.cpp
|
| diff --git a/src/ports/SkFontMgr_custom.cpp b/src/ports/SkFontMgr_custom.cpp
|
| index 20d6f78f7e801ed1800c426f97cd708d90f631c9..6401d5591432c25290f0f9b1b9825d94d61c6e58 100644
|
| --- a/src/ports/SkFontMgr_custom.cpp
|
| +++ b/src/ports/SkFontMgr_custom.cpp
|
| @@ -149,7 +149,7 @@ public:
|
| static int match_score(const SkFontStyle& pattern, const SkFontStyle& candidate) {
|
| int score = 0;
|
| score += (pattern.width() - candidate.width()) * 100;
|
| - score += (pattern.isItalic() == candidate.isItalic()) ? 0 : 1000;
|
| + score += (pattern.slant() == candidate.slant()) ? 0 : 1000;
|
| score += pattern.weight() - candidate.weight();
|
| return score;
|
| }
|
|
|