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

Unified Diff: gm/colortypexfermode.cpp

Issue 1235343004: make arithmode bigtext colortype* degeneratesegments gm portable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/colortype.cpp ('k') | gm/degeneratesegments.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/colortypexfermode.cpp
diff --git a/gm/colortypexfermode.cpp b/gm/colortypexfermode.cpp
index 855d11a1a4edd3b1a8ee8a2ff08ca4962baea403..7d540110a0fe05fd32a3bd52f1940804455ae750 100644
--- a/gm/colortypexfermode.cpp
+++ b/gm/colortypexfermode.cpp
@@ -42,7 +42,7 @@ protected:
paint.setAntiAlias(true);
paint.setShader(s)->unref();
- SkTypeface* orig = sk_tool_utils::create_portable_typeface("Times",
+ SkTypeface* orig = sk_tool_utils::create_portable_typeface_always("serif",
SkTypeface::kBold);
if (NULL == orig) {
orig = SkTypeface::RefDefault();
@@ -112,7 +112,7 @@ protected:
SkPaint labelP;
labelP.setAntiAlias(true);
- sk_tool_utils::set_portable_typeface(&labelP);
+ sk_tool_utils::set_portable_typeface_always(&labelP);
labelP.setTextAlign(SkPaint::kCenter_Align);
SkPaint textP;
« no previous file with comments | « gm/colortype.cpp ('k') | gm/degeneratesegments.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698