Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e17bc64 authored by Leon Scroggins's avatar Leon Scroggins Committed by Android (Google) Code Review
Browse files

Merge "Fix setShadowLayer + drawTextOnPath" into rvc-dev

parents bf8d4b44 950f2aa8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -789,9 +789,11 @@ void SkiaCanvas::drawLayoutOnPath(const minikin::Layout& layout, float hOffset,
        xform[i - start].fTx = pos.x() - tan.y() * y - halfWidth * tan.x();
        xform[i - start].fTy = pos.y() + tan.x() * y - halfWidth * tan.y();
    }
    auto* finalCanvas = this->asSkCanvas();

    sk_sp<SkTextBlob> textBlob(builder.make());

    apply_looper(&paintCopy, [&](const SkPaint& p) {
        finalCanvas->drawTextBlob(builder.make(), 0, 0, paintCopy);
        mCanvas->drawTextBlob(textBlob, 0, 0, p);
    });
}