aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar humper <humper@google.com>2015-01-29 10:26:37 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-29 10:26:37 -0800
commitf75a130c459596c23595d1bf0654863ab5fe3541 (patch)
treeca0bad29cd97c7a6b2dd6e34284c419e536140a4
parente702d9743af700211b3fd49687e0476aabd34012 (diff)
enable subpixel text on the subpixel translate sample
-rw-r--r--samplecode/SampleSubpixelTranslate.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/samplecode/SampleSubpixelTranslate.cpp b/samplecode/SampleSubpixelTranslate.cpp
index 4695962c48..58ad07228d 100644
--- a/samplecode/SampleSubpixelTranslate.cpp
+++ b/samplecode/SampleSubpixelTranslate.cpp
@@ -71,6 +71,7 @@ protected:
SkPaint paint;
paint.setTextSize(48);
+ paint.setSubpixelText(true);
paint.setAntiAlias(true);
for (size_t i = 0; i < SK_ARRAY_COUNT(gLevels); ++i) {