aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/poly2poly.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/poly2poly.cpp')
-rw-r--r--gm/poly2poly.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gm/poly2poly.cpp b/gm/poly2poly.cpp
index 9e58d9d036..191bb0eaea 100644
--- a/gm/poly2poly.cpp
+++ b/gm/poly2poly.cpp
@@ -37,6 +37,7 @@ private:
SkJSCanvas::SkJSCanvas(SkCanvas* target) : fTarget(target) {
fFillPaint.setAntiAlias(true);
+ sk_tool_utils::set_portable_typeface(&fFillPaint);
fStrokePaint.setAntiAlias(true);
fStrokePaint.setStyle(SkPaint::kStroke_Style);
fStrokePaint.setStrokeWidth(SK_Scalar1);
@@ -229,6 +230,7 @@ protected:
SkPaint paint;
paint.setAntiAlias(true);
+ sk_tool_utils::set_portable_typeface(&paint);
paint.setStrokeWidth(SkIntToScalar(4));
paint.setTextSize(SkIntToScalar(40));
paint.setTextAlign(SkPaint::kCenter_Align);