Index: src/core/SkDraw.cpp |
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp |
index 32fe4bbe766506643f798fdb2798e9fcc21e0dce..7787a28249479430c03d78fb31150f04be0cc7a5 100644 |
--- a/src/core/SkDraw.cpp |
+++ b/src/core/SkDraw.cpp |
@@ -1638,7 +1638,9 @@ void SkDraw::drawPosText_asPaths(const char text[], size_t byteLength, |
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; |