Index: gm/fontcache.cpp |
diff --git a/gm/fontcache.cpp b/gm/fontcache.cpp |
index c4af48930428fde367f21054b702ef3905537f7a..22b29f47aba2fcfcbe8ff706030621453dfebfac 100644 |
--- a/gm/fontcache.cpp |
+++ b/gm/fontcache.cpp |
@@ -32,8 +32,10 @@ protected: |
} |
void onOnceBeforeDraw() override { |
- fTypefaces[0] = sk_tool_utils::create_portable_typeface("serif", SkTypeface::kItalic); |
- fTypefaces[1] = sk_tool_utils::create_portable_typeface("sans-serif", SkTypeface::kItalic); |
+ fTypefaces[0] = sk_tool_utils::create_portable_typeface("serif", |
+ SkFontStyle::FromOldStyle(SkTypeface::kItalic)); |
+ fTypefaces[1] = sk_tool_utils::create_portable_typeface("sans-serif", |
+ SkFontStyle::FromOldStyle(SkTypeface::kItalic)); |
} |
void onDraw(SkCanvas* canvas) override { |