问题描述
我尝试旋转文本(10 度)和文本换行(CanvasWordWrapping.Wrap);在 Win2D 中使用 CanvasDrawingSession 如下所述。
this.DrawingSession.Transform = Matrix3x2.CreateRotation(radians,new Vector2((float)pointOfRotation.X,(float)pointOfRotation.Y)); //ROTATING THE DRAWING SESSION (10 degrees)
this.DrawingSession.DrawTextLayout(textLayout as CanvasTextLayout,(float)textStartingPoint.X,(float)textStartingPoint.Y,Colors.Red);
输出:
随着文本换行条件旋转整个文本。但我希望文本的每一行都与同一垂直轴对齐。
预期输出:
如何实现这一目标?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)