commit | e34f17d23699abfc672289f51319b37294b3c257 | [log] [tgz] |
---|---|---|
author | robertphillips <robertphillips@google.com> | Tue Jul 19 07:59:22 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue Jul 19 07:59:22 2016 -0700 |
tree | eef74fb1356491c4a23c31e32ead9a275a8fa09c | |
parent | b117ff194ff888ef9107a4797aad053b0d76be30 [diff] [blame] |
Make SkFont a bit more useable Split out of https://codereview.chromium.org/2163483002/ (Use SkFont in GrStencilAndCoverTextContext) GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2163633002 Review-Url: https://codereview.chromium.org/2163633002
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp index 32fe4bb..7787a28 100644 --- a/src/core/SkDraw.cpp +++ b/src/core/SkDraw.cpp
@@ -1638,7 +1638,9 @@ paint.setStyle(SkPaint::kFill_Style); paint.setPathEffect(nullptr); - SkPaint::GlyphCacheProc glyphCacheProc = paint.getGlyphCacheProc(true); + SkPaint::GlyphCacheProc glyphCacheProc = SkPaint::GetGlyphCacheProc(paint.getTextEncoding(), + paint.isDevKernText(), + true); SkAutoGlyphCache cache(paint, &fDevice->surfaceProps(), this->scalerContextFlags(), nullptr); const char* stop = text + byteLength;