aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/dashing.cpp
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2016-03-17 07:01:49 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-17 07:01:49 -0700
commit1aaadbd2fe26b828942fdbb2261245625b4d2e75 (patch)
tree84c774d055926e1e1c4edc1aa7a81c708960f029 /gm/dashing.cpp
parentc5035e70cc3fb290f95fd1c052c637aa0dbaf9ea (diff)
make sausages rounder and portable
Diffstat (limited to 'gm/dashing.cpp')
-rw-r--r--gm/dashing.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gm/dashing.cpp b/gm/dashing.cpp
index 0e249c7d61..dfd1b629c1 100644
--- a/gm/dashing.cpp
+++ b/gm/dashing.cpp
@@ -534,8 +534,10 @@ DEF_SIMPLE_GM(dashtextcaps, canvas, 512, 512) {
p.setStyle(SkPaint::kStroke_Style);
p.setStrokeWidth(10);
p.setStrokeCap(SkPaint::kRound_Cap);
+ p.setStrokeJoin(SkPaint::kRound_Join);
p.setTextSize(100);
p.setARGB(0xff, 0xbb, 0x00, 0x00);
+ sk_tool_utils::set_portable_typeface(&p);
const SkScalar intervals[] = { 12, 12 };
p.setPathEffect(SkDashPathEffect::Create(intervals, SK_ARRAY_COUNT(intervals), 0))->unref();
canvas->drawText("Sausages", 8, 10, 90, p);