[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:
@@ -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, //
|
||||
|
||||
Reference in New Issue
Block a user