Index: gm/typeface.cpp |
diff --git a/gm/typeface.cpp b/gm/typeface.cpp |
index e77d27747f27b31de84236c157416e06de46c72f..e4e0d24867bde99524c45b0901e29373dc5f27d4 100644 |
--- a/gm/typeface.cpp |
+++ b/gm/typeface.cpp |
@@ -103,7 +103,8 @@ protected: |
void onOnceBeforeDraw() override { |
for (int i = 0; i < gFaceStylesCount; i++) { |
fFaces[i] = SkTypeface::MakeFromName( |
- sk_tool_utils::platform_font_name(gFaceStyles[i].fName), gFaceStyles[i].fStyle); |
+ sk_tool_utils::platform_font_name( |
+ gFaceStyles[i].fName), SkFontStyle::FromOldStyle(gFaceStyles[i].fStyle)); |
} |
} |