Index: gm/verttext2.cpp |
diff --git a/gm/verttext2.cpp b/gm/verttext2.cpp |
index 9918049f10c8403daf2f44d5f4196287bcd79364..3a3955ee7c823aea93d2b28ae529e351ee229820 100644 |
--- a/gm/verttext2.cpp |
+++ b/gm/verttext2.cpp |
@@ -32,12 +32,16 @@ protected: |
void onOnceBeforeDraw() override { |
const int pointSize = 24; |
textHeight = SkIntToScalar(pointSize); |
- fProp = sk_tool_utils::create_portable_typeface("Helvetica", SkTypeface::kNormal); |
- fMono = sk_tool_utils::create_portable_typeface("Courier New", SkTypeface::kNormal); |
+ fProp = SkTypeface::CreateFromName(sk_tool_utils::platform_font_name("sans-serif"), |
+ SkTypeface::kNormal); |
+ fMono = SkTypeface::CreateFromName(sk_tool_utils::platform_font_name("monospace"), |
+ SkTypeface::kNormal); |
} |
SkString onShortName() override { |
- return SkString("verttext2"); |
+ SkString name("verttext2"); |
+ name.append(sk_tool_utils::major_platform_os_name()); |
+ return name; |
} |
SkISize onISize() override { return SkISize::Make(640, 480); } |