Before implementing, we need to figure out how does the transform interfere with DrawTextProcessor.Location and ultimately RenderOptions.Origin. Ideally, I would replace DrawTextProcessor.Location with DrawTextProcessor.Transform entirely, but there might be things I'm missing.
Follow-up on the discussion #124.
We should enable using an arbitrary
Matrix3x2
transform as a parameter withinDrawTextProcessor
.The easiest implementation seems to be to pass it to
PathBuilder
here: https://github.com/SixLabors/ImageSharp.Drawing/blob/e09fe9b91877cf0ae61480dee087476d0208d29d/src/ImageSharp.Drawing/Processing/Processors/Text/DrawTextProcessor%7BTPixel%7D.cs#L223Open questions
Before implementing, we need to figure out how does the transform interfere with
DrawTextProcessor.Location
and ultimatelyRenderOptions.Origin
. Ideally, I would replaceDrawTextProcessor.Location
withDrawTextProcessor.Transform
entirely, but there might be things I'm missing.@tocsoft any thoughts?