Index: gm/gammatext.cpp |
diff --git a/gm/gammatext.cpp b/gm/gammatext.cpp |
index ed8c82929d60d74dfaa0dce48c95c581b71ed5d6..b6d4ea23f236e1acb00578c8d85da88edc41d338 100644 |
--- a/gm/gammatext.cpp |
+++ b/gm/gammatext.cpp |
@@ -40,7 +40,9 @@ static bool setFont(SkPaint* paint, const char name[]) { |
class GammaTextGM : public skiagm::GM { |
protected: |
SkString onShortName() override { |
- return SkString("gammatext"); |
+ SkString name("gammatext"); |
+ name.append(sk_tool_utils::major_platform_os_name()); |
+ return name; |
} |
SkISize onISize() override { |
@@ -72,7 +74,7 @@ protected: |
size_t len = strlen(text); |
SkPaint paint; |
- setFont(&paint, "Times"); |
+ setFont(&paint, sk_tool_utils::platform_font_name("serif")); |
paint.setTextSize(SkIntToScalar(16)); |
paint.setAntiAlias(true); |
paint.setLCDRenderText(true); |