Index: tests/FontObjTest.cpp |
diff --git a/tests/FontObjTest.cpp b/tests/FontObjTest.cpp |
index 66c8bd500f3c8a409666ad191b0489085ab2bb7e..44f799ece185a43849832568fce7eccfba5936cb 100644 |
--- a/tests/FontObjTest.cpp |
+++ b/tests/FontObjTest.cpp |
@@ -78,7 +78,7 @@ static void test_cachedfont(skiatest::Reporter* reporter) { |
char txt[] = "long.text.with.lots.of.dots."; |
for (size_t i = 0; i < SK_ARRAY_COUNT(faces); i++) { |
- paint.setTypeface(SkTypeface::MakeFromName(faces[i], SkTypeface::kNormal)); |
+ paint.setTypeface(SkTypeface::MakeFromName(faces[i], SkFontStyle())); |
for (size_t j = 0; j < SK_ARRAY_COUNT(settings); j++) { |
paint.setHinting(settings[j].hinting); |