Index: gm/shadertext3.cpp |
diff --git a/gm/shadertext3.cpp b/gm/shadertext3.cpp |
index 49cdced97eb143feca4afde63d998033bcd41bfd..47dd29e60cdcb36a920a846a2867801ac64a93fd 100644 |
--- a/gm/shadertext3.cpp |
+++ b/gm/shadertext3.cpp |
@@ -48,7 +48,7 @@ static const int kPointSize = 300; |
class ShaderText3GM : public GM { |
public: |
ShaderText3GM() { |
- this->setBGColor(0xFFDDDDDD); |
+ this->setBGColor(sk_tool_utils::color_to_565(0xFFDDDDDD)); |
} |
protected: |
@@ -73,7 +73,7 @@ protected: |
SkPaint outlinePaint; |
outlinePaint.setAntiAlias(true); |
- sk_tool_utils::set_portable_typeface(&outlinePaint); |
+ sk_tool_utils::set_portable_typeface_always(&outlinePaint); |
outlinePaint.setTextSize(SkIntToScalar(kPointSize)); |
outlinePaint.setStyle(SkPaint::kStroke_Style); |
outlinePaint.setStrokeWidth(0.f); |
@@ -107,7 +107,7 @@ protected: |
SkPaint fillPaint; |
fillPaint.setAntiAlias(true); |
- sk_tool_utils::set_portable_typeface(&fillPaint); |
+ sk_tool_utils::set_portable_typeface_always(&fillPaint); |
fillPaint.setTextSize(SkIntToScalar(kPointSize)); |
fillPaint.setFilterQuality(kLow_SkFilterQuality); |
fillPaint.setShader(shader); |