Index: gm/shadertext2.cpp |
diff --git a/gm/shadertext2.cpp b/gm/shadertext2.cpp |
index f625d6c02aa5264b5decf364c33f7217b03552e2..d73fb6f8f3560607da2a5ffa90251b238fff027c 100644 |
--- a/gm/shadertext2.cpp |
+++ b/gm/shadertext2.cpp |
@@ -90,11 +90,13 @@ protected: |
SkPaint fillPaint; |
fillPaint.setAntiAlias(true); |
+ sk_tool_utils::set_portable_typeface(&fillPaint); |
fillPaint.setTextSize(SkIntToScalar(kPointSize)); |
fillPaint.setFilterLevel(SkPaint::kLow_FilterLevel); |
SkPaint outlinePaint; |
outlinePaint.setAntiAlias(true); |
+ sk_tool_utils::set_portable_typeface(&outlinePaint); |
outlinePaint.setTextSize(SkIntToScalar(kPointSize)); |
outlinePaint.setStyle(SkPaint::kStroke_Style); |
outlinePaint.setStrokeWidth(0.f); |
@@ -110,6 +112,7 @@ protected: |
SkPaint labelPaint; |
labelPaint.setColor(0xff000000); |
labelPaint.setAntiAlias(true); |
+ sk_tool_utils::set_portable_typeface(&labelPaint); |
labelPaint.setTextSize(12.f); |
canvas->translate(15.f, 15.f); |