| Index: experimental/PdfViewer/SkPdfFont.h
|
| ===================================================================
|
| --- experimental/PdfViewer/SkPdfFont.h (revision 10543)
|
| +++ experimental/PdfViewer/SkPdfFont.h (working copy)
|
| @@ -172,9 +172,14 @@
|
|
|
| void drawText(const SkDecodedText& text, SkPaint* paint, PdfContext* pdfContext, SkCanvas* canvas) {
|
| for (int i = 0 ; i < text.size(); i++) {
|
| + canvas->setMatrix(pdfContext->fGraphicsState.fMatrixTm);
|
| +#ifdef PDF_TRACE
|
| + SkPoint point = SkPoint::Make(SkDoubleToScalar(0), SkDoubleToScalar(0));
|
| + pdfContext->fGraphicsState.fMatrixTm.mapPoints(&point, 1);
|
| + printf("DrawText at (%f, %f)\n", SkScalarToDouble(point.x()), SkScalarToDouble(point.y()));
|
| +#endif // PDF_TRACE
|
| double width = drawOneChar(text[i], paint, pdfContext, canvas);
|
| pdfContext->fGraphicsState.fMatrixTm.preTranslate(SkDoubleToScalar(width), SkDoubleToScalar(0.0));
|
| - canvas->translate(SkDoubleToScalar(width), SkDoubleToScalar(0.0));
|
| }
|
| }
|
|
|
|
|