[Impeller] add missing position to exp canvas text. (flutter/engine#53339)

This was missing when I wired up subpixel alignment for the regualr canvas, causing glyphs to not be found with experimental canvas.

Part of https://github.com/flutter/flutter/issues/142054
This commit is contained in:
Jonah Williams
2024-06-11 14:46:46 -07:00
committed by GitHub
parent 0e934c882c
commit 6ac4449341

View File

@@ -391,6 +391,7 @@ void ExperimentalCanvas::DrawTextFrame(
text_contents->SetForceTextColor(paint.mask_blur_descriptor.has_value());
text_contents->SetScale(GetCurrentTransform().GetMaxBasisLengthXY());
text_contents->SetColor(paint.color);
text_contents->SetOffset(position);
text_contents->SetTextProperties(paint.color, //
paint.style == Paint::Style::kStroke, //
paint.stroke_width, //