Index: gm/textblobrandomfont.cpp |
diff --git a/gm/textblobrandomfont.cpp b/gm/textblobrandomfont.cpp |
index 51dbfceab3331c578c82cbf04e12272eb5163304..2a6fc8e8329a1646024bb5a453160952b33f5c09 100644 |
--- a/gm/textblobrandomfont.cpp |
+++ b/gm/textblobrandomfont.cpp |
@@ -39,8 +39,8 @@ protected: |
paint.setLCDRenderText(true); |
// Setup our random scaler context |
- sk_sp<SkTypeface> orig(sk_tool_utils::create_portable_typeface("sans-serif", |
- SkTypeface::kBold)); |
+ sk_sp<SkTypeface> orig(sk_tool_utils::create_portable_typeface( |
+ "sans-serif", SkFontStyle::FromOldStyle(SkTypeface::kBold))); |
if (nullptr == orig) { |
orig = SkTypeface::MakeDefault(); |
} |