Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: gm/gammatext.cpp

Issue 1256903002: make fontscalar gammatext lcdtext typeface verttext2 gm portable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove useless gm; fix nit Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/fontscaler.cpp ('k') | gm/lcdtext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « gm/fontscaler.cpp ('k') | gm/lcdtext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698