| Index: src/pdf/SkPDFDevice.cpp
|
| diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
|
| index 33ae8a49d88399ed058973aa404ccfd53e250ce9..01e8c82526ed295ed554d2f0ff1b5444f3372b35 100644
|
| --- a/src/pdf/SkPDFDevice.cpp
|
| +++ b/src/pdf/SkPDFDevice.cpp
|
| @@ -1216,7 +1216,9 @@ void SkPDFDevice::drawText(const SkDraw& d, const void* text, size_t len,
|
| int numGlyphs = force_glyph_encoding(paint, text, len, &storage, &glyphIDs);
|
| textPaint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
|
|
|
| - SkPaint::GlyphCacheProc glyphCacheProc = textPaint.getGlyphCacheProc(true);
|
| + SkPaint::GlyphCacheProc glyphCacheProc = SkPaint::GetGlyphCacheProc(textPaint.getTextEncoding(),
|
| + textPaint.isDevKernText(),
|
| + true);
|
| align_text(glyphCacheProc, textPaint, glyphIDs, numGlyphs, &x, &y);
|
| content.entry()->fContent.writeText("BT\n");
|
| set_text_transform(x, y, textPaint.getTextSkewX(),
|
| @@ -1293,7 +1295,9 @@ void SkPDFDevice::drawPosText(const SkDraw& d, const void* text, size_t len,
|
| size_t numGlyphs = force_glyph_encoding(paint, text, len, &storage, &glyphIDs);
|
| textPaint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
|
|
|
| - SkPaint::GlyphCacheProc glyphCacheProc = textPaint.getGlyphCacheProc(true);
|
| + SkPaint::GlyphCacheProc glyphCacheProc = SkPaint::GetGlyphCacheProc(textPaint.getTextEncoding(),
|
| + textPaint.isDevKernText(),
|
| + true);
|
| content.entry()->fContent.writeText("BT\n");
|
| this->updateFont(textPaint, glyphIDs[0], content.entry());
|
| GlyphPositioner glyphPositioner(&content.entry()->fContent,
|
|
|