From f75a130c459596c23595d1bf0654863ab5fe3541 Mon Sep 17 00:00:00 2001 From: humper Date: Thu, 29 Jan 2015 10:26:37 -0800 Subject: enable subpixel text on the subpixel translate sample BUG=skia: Review URL: https://codereview.chromium.org/885783006 --- samplecode/SampleSubpixelTranslate.cpp | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3