This commit is contained in:
Javier Suárez Ruiz 2022-09-23 12:49:26 +02:00
Родитель d8f5b07929
Коммит 86d0237bd0
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -50,8 +50,8 @@ namespace FigmaSharp.Maui.Graphics.Converters
var bounds = textNode.absoluteBoundingBox;
string text = textNode.characters ?? textNode.name;
var horizontalAlignment = textNode.constraints.horizontal;
var verticalAlignment = textNode.constraints.vertical;
var horizontalAlignment = textNode.style.textAlignHorizontal;
var verticalAlignment = textNode.style.textAlignVertical;
builder.AppendLine($"canvas.DrawString(@\"{text}\", {bounds.X.ToString(nfi)}f, {bounds.Y.ToString(nfi)}f, {bounds.Width.ToString(nfi)}f, {bounds.Height.ToString(nfi)}f, {horizontalAlignment.ToHorizontalAignment()}, {verticalAlignment.ToVerticalAlignment()});");